Vafa Khalighi | 24 Oct 2011 18:26
Picon

Why I am getting "ERROR: CHAR: index 0 should be less than the length of the string"

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
------------------------------------------------------------------------------
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
Herbert Voss | 24 Oct 2011 18:49
Picon
Picon
Favicon

Re: Why I am getting "ERROR: CHAR: index 0 should be less than the length of the string"

Am 24.10.2011 18:26, schrieb Vafa Khalighi:
> Consider this minimal example:
>
> \documentclass[a4paper,11pt]{article}
> \usepackage{makeidx}
> \makeindex
> \def\prior{پیشینی}
> \begin{document}
> Testing
> \index{probability!{\prior}}

this works for me:  \index{probability!\prior}

Herbert

------------------------------------------------------------------------------
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
________________________________________________________________________
xindy-discuss mailing list -- general xindy announcements and discussions
Unsubscribe via https://lists.sourceforge.net/lists/listinfo/xindy-discuss
Vafa Khalighi | 24 Oct 2011 18:52
Picon

Re: Why I am getting "ERROR: CHAR: index 0 should be less than the length of the string"

Yes, that works but I was wondering why it does not work with grouping.

2011/10/25 Herbert Voss <Herbert.Voss <at> fu-berlin.de>
Am 24.10.2011 18:26, schrieb Vafa Khalighi:
> Consider this minimal example:
>
> \documentclass[a4paper,11pt]{article}
> \usepackage{makeidx}
> \makeindex
> \def\prior{پیشینی}
> \begin{document}
> Testing
> \index{probability!{\prior}}

this works for me:  \index{probability!\prior}

Herbert


------------------------------------------------------------------------------
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
________________________________________________________________________
xindy-discuss mailing list -- general xindy announcements and discussions
Unsubscribe via https://lists.sourceforge.net/lists/listinfo/xindy-discuss

------------------------------------------------------------------------------
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

Gmane