24 Oct 2011 18:26
Why I am getting "ERROR: CHAR: index 0 should be less than the length of the string"
Vafa Khalighi <vafaklg <at> gmail.com>
2011-10-24 16:26:51 GMT
2011-10-24 16:26:51 GMT
Consider this minimal example:
\documentclass[a4paper,11pt]{article}
\usepackage{makeidx}
\makeindex
\def\prior{پیشینی}
\begin{document}
Testing
\index{probability!{\prior}}
\printindex
\end{document}
after producing test.idx, when I run: xindy -L english -C utf8 -M texindy test.idx
I get:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Opening logfile "/dev/null" (done)
Reading indexstyle...
Loading module "/tmp/dwg7942lmg"...
Loading module "lang/english/utf8-lang.xdy"...
Loading module "lang/english/utf8.xdy"...
Finished loading module "lang/english/utf8.xdy".
Finished loading module "lang/english/utf8-lang.xdy".
Loading module "texindy.xdy"...
Loading module "numeric-sort.xdy"...
Finished loading module "numeric-sort.xdy".
Loading module "latex.xdy"...
Loading module "tex.xdy"...
Finished loading module "tex.xdy".
Finished loading module "latex.xdy".
Loading module "latex-loc-fmts.xdy"...
Finished loading module "latex-loc-fmts.xdy".
Loading module "makeindex.xdy"...
Finished loading module "makeindex.xdy".
Loading module "latin-lettergroups.xdy"...
Finished loading module "latin-lettergroups.xdy".
Finished loading module "texindy.xdy".
Finished loading module "/tmp/dwg7942lmg".
Finished reading indexstyle.
Finalizing indexstyle... (done)
Reading raw-index "/tmp/pS0741y3Ld"...
Finished reading raw-index.
Processing index...
ERROR: CHAR: index 0 should be less than the length of the string
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
makeindex has no problem with this so is this a bug of xindy or I am doing something incorrectly? (I am using TeXLive2011)
Thanks
\documentclass[a4paper,11pt]{article}
\usepackage{makeidx}
\makeindex
\def\prior{پیشینی}
\begin{document}
Testing
\index{probability!{\prior}}
\printindex
\end{document}
after producing test.idx, when I run: xindy -L english -C utf8 -M texindy test.idx
I get:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Opening logfile "/dev/null" (done)
Reading indexstyle...
Loading module "/tmp/dwg7942lmg"...
Loading module "lang/english/utf8-lang.xdy"...
Loading module "lang/english/utf8.xdy"...
Finished loading module "lang/english/utf8.xdy".
Finished loading module "lang/english/utf8-lang.xdy".
Loading module "texindy.xdy"...
Loading module "numeric-sort.xdy"...
Finished loading module "numeric-sort.xdy".
Loading module "latex.xdy"...
Loading module "tex.xdy"...
Finished loading module "tex.xdy".
Finished loading module "latex.xdy".
Loading module "latex-loc-fmts.xdy"...
Finished loading module "latex-loc-fmts.xdy".
Loading module "makeindex.xdy"...
Finished loading module "makeindex.xdy".
Loading module "latin-lettergroups.xdy"...
Finished loading module "latin-lettergroups.xdy".
Finished loading module "texindy.xdy".
Finished loading module "/tmp/dwg7942lmg".
Finished reading indexstyle.
Finalizing indexstyle... (done)
Reading raw-index "/tmp/pS0741y3Ld"...
Finished reading raw-index.
Processing index...
ERROR: CHAR: index 0 should be less than the length of the string
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
makeindex has no problem with this so is this a bug of xindy or I am doing something incorrectly? (I am using TeXLive2011)
Thanks
------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning <at> Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev
------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning <at> Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev
RSS Feed