Menu

#35 Ranges and attributes: location merging is wrong

open
nobody
6
2006-08-30
2005-08-23
No

Consider the following raw index [1]:

(indexentry :key ("Test") :attr "flagged" :open-range :locref "1")
(indexentry :key ("Test") :attr "flagged" :close-range :locref "3")
(indexentry :key ("Test") :locref "2")

[1] should be equivalent to the raw index [2]:

(indexentry :key ("Test") :attr "flagged" :locref "1")
(indexentry :key ("Test") :attr "flagged" :locref "2")
(indexentry :key ("Test") :attr "flagged" :locref "3")
(indexentry :key ("Test") :locref "2")

Given the following index,

(define-attributes (("flagged" "default")))
(define-location-class
"arabic-page-numbers" ("arabic-numbers"))
(markup-locclass-list :open " ")
(markup-locref-list :sep ", ")
(markup-range :sep "-")
(markup-locref :open "*" :close "*" :attr "flagged")

xindy's output for [2] is (as expected):

Test *1*-*3*

For [1], however, xindy outputs:

Test *1*-*3*, 2

Discussion

  • Andreas Nolda

    Andreas Nolda - 2005-08-23

    Logged In: YES
    user_id=950793

    "Given the following index" reads "Given the following index style", of
    course.

     
  • Joachim Schrod

    Joachim Schrod - 2006-08-30
    • labels: --> Kernel (incl. scripts)
    • priority: 5 --> 6
    • summary: Ranges and attributes --> Ranges and attributes: location merging is wrong
     

Log in to post a comment.