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
Logged In: YES
user_id=950793
"Given the following index" reads "Given the following index style", of
course.