ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
To: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: new beta (index)
Date: Wed, 22 Sep 2010 15:22:48 +0200	[thread overview]
Message-ID: <201009221522.48826.alan.braslau@cea.fr> (raw)
In-Reply-To: <4C99B399.6040307@wxs.nl>

On Wednesday 22 September 2010 09:43:21 Hans Hagen wrote:
> Hi,
> 
> I'm dealing with the bugs/anomalies/wishes that showed up during the ctx
> conference. The following has been done so far:
> 
> (1) With respect to registers, Jano had a wish to deal with mixed
> language indexes. As a result the current sorting code has been adapted.
> In the process also different control over sorting has been streamlined
> and this is controlled by the method variable. Also, the language
> related sorting definitions have changed.
> 
> % tricky-002.tex:
> 
> \setuplayout[topspace=1cm,height=middle]
> 
> \setupbodyfont[dejavu,11pt]
> 
> \starttext
> 
> \subject{before : Oo Öo oo öo}
> \placeregister[index][language=en,method=before] \par
> \subject{after  : oo öo Oo Öo}
> \placeregister[index][language=en,method=after]  \par
> \subject{first  : Oo oo Öo öo}
> \placeregister[index][language=en,method=last]   \par
> \subject{last   : oo Oo öo Öo}
> \placeregister[index][language=en,method=first]  \par
> 
> \dorecurse {3} {
>      \page \recurselevel:
>          \index{boo} \index{Boo} \index{BOo} \index{bOo} \index{bõö}
> \index{bõo} \index{boö}
>          \index{oo}  \index{öo}  \index{Oo}  \index{Öo}
>      done
> }
> 
> \stoptext
> 
> We can set up a default method for each language but that has not yet
> been done.
> 

Nice, but something is broken
(of course, my minimal examples work, but not my 700+ page test file!):
(thanks to Taco, I now understand the luatex error message)

! LuaTeX error ...beta/tex/texmf-context/tex/context/base/char-ini.lua:792: 
bad argument #1 to 'utfchar' (number expected, got table)
stack traceback:
	[C]: in function 'utfchar'
	...beta/tex/texmf-context/tex/context/base/char-ini.lua:792: in function 
<...beta/tex/texmf-context/tex/context/base/char-ini.lua:792>
	...beta/tex/texmf-context/tex/context/base/sort-ini.lua:107: in function 
<...beta/tex/texmf-context/tex/context/base/sort-ini.lua:96>
	...beta/tex/texmf-context/tex/context/base/sort-ini.lua:329: in function 
'splitter'
	...beta/tex/texmf-context/tex/context/base/strc-reg.lua:353: in function 
'prepare'
	...beta/tex/texmf-context/tex/context/base/strc-reg.lua:423: in function 
'analyzed'
	...beta/tex/texmf-context/tex/context/base/strc-reg.lua:741: in function 
'process'
	<main ctx instance>:1: in main chunk.

system          > error on line 136 in file Livre.tex: LuaTeX error  ...

134     
135     \startpart [title={Index des sujets}]
136 >>  \placeindex [method=first,criterium=all,compress=yes]
137     \stoppart
138     


\doplaceregister ...ameter \c!pagesegments ", } )}
                                                  \stoppacked \stopcolumns 
\...
l.136 ...[method=first,criterium=all,compress=yes]
                                                  
? X
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2010-09-22 13:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-22  7:43 new beta Hans Hagen
2010-09-22  7:50 ` luigi scarso
2010-09-22  8:05   ` Hans Hagen
2010-09-22 11:28     ` luigi scarso
2010-09-22 10:13 ` Philipp Gesang
2010-09-22 10:22   ` Hans Hagen
2010-09-22 11:13     ` Philipp Gesang
2010-09-22 13:22 ` Alan BRASLAU [this message]
2010-09-22 14:52   ` new beta (index) Hans Hagen
2010-09-24 15:53     ` Steffen Wolfrum
2010-09-25 16:06       ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201009221522.48826.alan.braslau@cea.fr \
    --to=alan.braslau@cea.fr \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).