Book logo xindy

A Flexible Indexing System


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem mit xindy




	Hello,

sorry for my previous postings in German. I wasn't aware that Thomas
has posted his mail to the mailing list.

Thomas had a problem with an index style that didn't produce the
expected results: 

The raw index:

(indexentry :tkey (("1998") ("Mai") ("27")) :locref "1")
(indexentry :tkey (("1998") ("Mai") ("28")) :locref "1")

The style file:

(define-attributes ("default"))
(define-location-class "arabic-page-numbers" ("arabic-numbers"))
(markup-index :open  "" :close "~n" :flat)
(markup-letter-group-list :sep "")
(markup-indexentry :open "~n  " :depth 0)
(markup-indexentry :open "-" :depth 1)
(markup-indexentry :open "-" :depth 2)
(markup-locclass-list :open " % " :sep ", ")

The result:

  1998Mai27 % 1
  1998Mai28 % 1

The expected result:
 
  1998-Mai-27 % 1
  1998-Mai-28 % 1

can be obtained by the following style file:

(define-attributes ("default"))
(define-location-class "arabic-page-numbers" ("arabic-numbers"))
(markup-index :open  "" :close "~n" :flat)
(markup-letter-group-list :sep "")
(markup-indexentry :open "~n  " :depth 0)
(markup-keyword-list :sep "-")
(markup-locclass-list :open " % " :sep ", ")
 
which makes use of the MARKUP-KEYWORD-LIST command which probably
nobody has ever used before ;-)

Remarkably enough I myself first came to a wrong conclusion, but after
thorough testing (should make this more earlier, me ...) I discovered
the mistake. 

Here we actually reach the limits of the mark-up scheme. Something
like 

  1998-Mai/27 % 1
  1998-Mai/28 % 1

i.e. different separator characters are not possible without new
mark-up commands (which are easy to add if someone needs them).

Cheers,
Roger

-- 
======================================================================
Roger Kehr			   kehr@iti.informatik.tu-darmstadt.de
Computer Science Department         Darmstadt University of Technology