[tex-live] [xindy] Problem in sorting entries beginning with a command (TeX Live 2010 pretest)

Joachim Schrod jschrod at acm.org
Thu May 27 19:36:59 CEST 2010


On Thu, May 27, 2010 at 5:38 PM, Joachim Schrod <jschrod at acm.org> wrote:
> On Thu, May 27, 2010 at 2:55 PM, Marc Baudoin <babafou at babafou.eu.org> wrote:

OK, got it.

>> I have noticed a problem with xindy in the TeX Live 2010 pretest.
>> Index entries beginning with a command are sorted in the default
>> section.  [...]
>>
>> Is it now nessacery to use a sort key such as
>> \index{indexed@\path{indexed}} ?

You need to apply the following patch to file lib/xindy/modules/base/tex.xdy:

--- tex.xdy	2005-05-09 22:21:11.000000000 +0200
+++ /opt/xindy/lib/xindy/modules/base/tex.xdy	2010-05-27
19:32:50.000000000 +0200
@@ -16,15 +16,10 @@
 ;; keep-blanks is not loaded. Module keep-blanks would set a flag, and
 ;; this code would check for it. We will need a hook in the kernel, to
 ;; achieve that goal.
-;;
-;; FIXME: Regexps with start-anchored matches do not work. They match
-;; everywhere. We think it's better to not handle leading blanks than
-;; to make all blanks disappear, therefore the first rule is not
-;; activated.

-;(merge-rule "^ +" "" :eregexp)
+(merge-rule "^ +" "" :eregexp)
 (merge-rule " +$" "" :eregexp)
-(merge-rule " +" " " :eregexp)
+(merge-rule "  +" " " :eregexp)


 ;;
@@ -55,7 +50,7 @@

 (merge-rule "\\[a-zA-Z@]+ *" "" :eregexp)
 (merge-rule "\\[^a-zA-Z@]" "" :eregexp)
-(merge-rule "^[{}$]" "" :eregexp)
+(merge-rule "[{}$]" "" :eregexp)




The patch also fixes a long-standing bug that leading blanks are not
suppressed which has the same root cause than the issue you detected.
(I hope Google Mail leaves the patch as is. I'm on a sailing holiday
currently and have no access to my real mail queue and client.)

Cheers,
              Joachim


More information about the tex-live mailing list