Book logo xindy

A Flexible Indexing System


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

bug in tex2xindy



I found the following bug in the tex2xindy converter:

The "-character doesn't get properly quoted in some cases.

For instance:
The .idx-file contains the following line:
\indexentry{Oel|see{"Ol}}{2}

tex2xindy converts this to:
(indexentry :tkey (("Oel")) :attr "see" :xref (""Ol"))

but it should be:
(indexentry :tkey (("Oel")) :attr "see" :xref ("\"Ol"))

I wrote the following patch to remedy this problem.
=====
--- tex2xindy.l.orig    Thu Feb 13 15:42:50 1997
+++ tex2xindy.l Tue Mar  2 18:35:16 1999
@@ -94,7 +94,7 @@
 <key>{ACTUAL}          { printf("\" \""); BEGIN(print); }
 <print>{ACTUAL}        { err( "multiple @'s" ); }

-<key,print>.           { ECHO;}
+<key,print>.           { qc(*yytext);}

 <encap>{ENCAP}         { err( "multiple |'s" ); }
 <encap>{ESCAPE}        { qc('\\'); ECHO; }
@@ -140,7 +140,7 @@
                           BEGIN(skip2location);
                         }
                        }
-<xref>.               { ECHO; }
+<xref>.               { qc(*yytext); }

 <skip2location>[ \t]*{ARGOPEN} {
                         if (xref_mode)
=====

-- 
Thomas Henlich