* Index and accented characters +misc problems
@ 2002-06-11 13:24 Gilles Pérez-Lambert
2002-06-11 20:37 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Gilles Pérez-Lambert @ 2002-06-11 13:24 UTC (permalink / raw)
Hello,
(ConteXt 2002.05.24)
1.
I have a small problem with an index. I obtain:
---
Index
Éluard, Paul 28
Érigène, Scot 245
Ézéchiel 287
a
Acarie 244
Alacoque, Marie 248
Aldington, Richard 20
....
Thoreau 280
Thérèse [sainte] 232, 291
---
I cannot see in the setupregister where I can specify the sort encoding...
2.
I use:
\setupindenting[small,first]
but paragraphs after section are not indented.
3.
When I use:
\version[temporary]
I get the registers in the page but these indications visually collide with
the text.
***
Thanks,
Gilles.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Index and accented characters +misc problems
2002-06-11 13:24 Index and accented characters +misc problems Gilles Pérez-Lambert
@ 2002-06-11 20:37 ` Hans Hagen
2002-06-12 8:44 ` Daniel Flipo
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2002-06-11 20:37 UTC (permalink / raw)
Cc: ntg-context, Daniel Flipo
At 03:24 PM 6/11/2002 +0200, Gilles Pérez-Lambert wrote:
>Hello,
>
>
>(ConteXt 2002.05.24)
>
>1.
>I have a small problem with an index. I obtain:
>
>---
> Index
>
> Éluard, Paul 28
> Érigène, Scot 245
> Ézéchiel 287
>
> a
> Acarie 244
> Alacoque, Marie 248
> Aldington, Richard 20
>
> ....
>
> Thoreau 280
> Thérèse [sainte] 232, 291
Well, this is something to be sorted out (daniel may help us here). We need
to define a sort key (see enco-fpl.tex for an example).
\startlanguagespecifics[...]
\definesortkey {\k a}{a}{d}{\k a}
arg 1: char to be sorted
arg 2: sort under a
arg 3: after d
arg 4: char to show up as identifying the char section
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Index and accented characters +misc problems
2002-06-11 20:37 ` Hans Hagen
@ 2002-06-12 8:44 ` Daniel Flipo
2002-06-12 13:00 ` Gilles Pérez-Lambert
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Flipo @ 2002-06-12 8:44 UTC (permalink / raw)
Cc: Daniel.Flipo, Gilles.Perez, ntg-context
[ Wrong sorting for French accentuated characters]
Hans wrote:
« Well, this is something to be sorted out (daniel may help us here). We need
« to define a sort key (see enco-fpl.tex for an example).
«
« \startlanguagespecifics[...]
«
« \definesortkey {\k a}{a}{d}{\k a}
«
« arg 1: char to be sorted
« arg 2: sort under a
« arg 3: after d
« arg 4: char to show up as identifying the char section
OK, Hans, I'll try to do that, say within a week from now.
==========================================================================
Daniel Flipo Courriel : Daniel.Flipo@univ-lille1.fr
UFR de Mathématiques -- Bâtiment M2 Tél : (33/0) 3 20 43 67 75
Université des Sciences et Technologies Fax : (33/0) 3 20 43 67 74
F-59655 Villeneuve d'Ascq Cedex France
==========================================================================
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Index and accented characters +misc problems
2002-06-12 8:44 ` Daniel Flipo
@ 2002-06-12 13:00 ` Gilles Pérez-Lambert
2002-06-14 15:27 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Gilles Pérez-Lambert @ 2002-06-12 13:00 UTC (permalink / raw)
Cc: Hans Hagen
> [ Wrong sorting for French accentuated characters]
>
> Hans wrote:
> « Well, this is something to be sorted out (daniel may help us here). We
> need
> « to define a sort key (see enco-fpl.tex for an example).
I tried to put a small part:
\startlanguagespecifics[\s!fr]
\definesortkey {\'E}{e}{e}{e}
\definesortkey {\'e}{e}{e}{e}
\definesortkey {É}{e}{e}{e}
\definesortkey {233}{e}{e}{e}
\stoplanguagespecifics
in enco-ffr.tex. I remade the format and it didn't change anything... As
you see, I tried serveral way to define the first arg.
Thanks,
Gilles.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Index and accented characters +misc problems
2002-06-12 13:00 ` Gilles Pérez-Lambert
@ 2002-06-14 15:27 ` Hans Hagen
2002-06-15 10:39 ` Daniel Flipo
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2002-06-14 15:27 UTC (permalink / raw)
Cc: ntg-context, Hans Hagen
At 03:00 PM 6/12/2002 +0200, Gilles Pérez-Lambert wrote:
>>[ Wrong sorting for French accentuated characters]
>>
>>Hans wrote:
>>« Well, this is something to be sorted out (daniel may help us here). We need
>>« to define a sort key (see enco-fpl.tex for an example).
>
>I tried to put a small part:
>
>
>\startlanguagespecifics[\s!fr]
>
> \definesortkey {\'E}{e}{e}{e}
> \definesortkey {\'e}{e}{e}{e}
> \definesortkey {É}{e}{e}{e}
> \definesortkey {233}{e}{e}{e}
>
>\stoplanguagespecifics
>
>
>in enco-ffr.tex. I remade the format and it didn't change anything... As
>you see, I tried serveral way to define the first arg.
i'll look into it
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Index and accented characters +misc problems
2002-06-14 15:27 ` Hans Hagen
@ 2002-06-15 10:39 ` Daniel Flipo
2002-06-17 15:03 ` Gilles Pérez-Lambert
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Flipo @ 2002-06-15 10:39 UTC (permalink / raw)
Cc: Gilles, Perez-Lambert, Daniel Flipo, ntg-context
Hi Hans,
I have played a bit with sorting...
As far as I understand the problem, what is needed
is not to add things like
\startlanguagespecifics[\s!fr]
\definesortkey {\`A}{a}{a}{A}
\stoplanguagespecifics[\s!fr]
But to add sorting keys into the used encoding.
For me, this works in French: I add
\startencoding[ec]
\definesortkey {192}{a}{a}{a} % \`A
\definesortkey {224}{a}{a}{a} % \`a
\definesortkey {194}{a}{a}{a} % \^A
\definesortkey {226}{a}{a}{a} % \^a
\definesortkey {198}{ae}{a}{a} % \AE
\definesortkey {230}{ae}{a}{a} % \ae
\definesortkey {199}{c}{a}{c} % \c C
\definesortkey {231}{c}{a}{c} % \c c
\definesortkey {200}{e}{a}{e}} % \`E
\definesortkey {232}{e}{a}{e} % \`e
\definesortkey {201}{e}{a}{e} % \'E
\definesortkey {233}{e}{a}{e} % \'e
\definesortkey {202}{e}{a}{e} % \^E
\definesortkey {234}{e}{a}{e} % \^e
\definesortkey {203}{e}{a}{e} % \"E
\definesortkey {235}{e}{a}{e} % \"e
\definesortkey {206}{i}{a}{i} % \^I
\definesortkey {238}{i}{a}{i} % \^\i
\definesortkey {207}{i}{a}{i} % \"I
\definesortkey {239}{i}{a}{i} % \"\i
\definesortkey {212}{o}{a}{o} % \^O
\definesortkey {244}{o}{a}{o} % \^o
\definesortkey {215}{oe}{a}{o} % \OE
\definesortkey {247}{oe}{a}{o} % \oe
\definesortkey {217}{u}{a}{u} % \`U
\definesortkey {249}{u}{a}{u} % \`u
\definesortkey {220}{u}{a}{u} % \"U
\definesortkey {252}{u}{a}{u} % \"u
\definesortkey {152}{y}{a}{y} % \"Y
\definesortkey {184}{y}{a}{y} % \"y
\stopencoding
to enco-ec.tex and recompile the format.
There are two flaws (for me):
1) This sorting is language independent, and I guess
this is not correct: for instance we (French) would
sort {\"u} as {u} but Germans could perhaps want (?)
{\"u} to be sorted as {ue} for instance...
2) If you use the 7-bit encoding in the index command
like this:
été\index{\'et\'e}
then "été" appears at a wrong place in the index.
This is bad because it is avaisable to convert
8-bit source files into the raw TeX encoding before
sending them to other people.
Daniel.
PS: Gilles, please, check I have not forgetten anything
in my list.
==========================================================================
Daniel Flipo Courriel : Daniel.Flipo@univ-lille1.fr
UFR de Mathématiques -- Bâtiment M2 Tél : (33/0) 3 20 43 67 75
Université des Sciences et Technologies Fax : (33/0) 3 20 43 67 74
F-59655 Villeneuve d'Ascq Cedex France
==========================================================================
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Index and accented characters +misc problems
2002-06-15 10:39 ` Daniel Flipo
@ 2002-06-17 15:03 ` Gilles Pérez-Lambert
0 siblings, 0 replies; 7+ messages in thread
From: Gilles Pérez-Lambert @ 2002-06-17 15:03 UTC (permalink / raw)
Hello,
Le samedi 15 juin 2002, à 12:39, Daniel Flipo a écrit :
> I have played a bit with sorting...
> As far as I understand the problem, what is needed
> is not to add things like
> \startlanguagespecifics[\s!fr]
> \definesortkey {\`A}{a}{a}{A}
> \stoplanguagespecifics[\s!fr]
>
> But to add sorting keys into the used encoding.
> For me, this works in French: I add
For me, it doesn't work at all... I tried the same thing as you in enco-ec.
tex, rebuild the format ans nothing.
> PS: Gilles, please, check I have not forgetten anything
> in my list.
I looked and saw nothing except that I used (but without testing):
...
\definesortkey {199}{c}{c}{c} % \c C
\definesortkey {231}{c}{c}{c} % \c c
\definesortkey {200}{e}{e}{e} % \`E
\definesortkey {232}{e}{e}{e} % \`e
...
I set the third arg differently.
Thanks,
Gilles.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2002-06-17 15:03 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-11 13:24 Index and accented characters +misc problems Gilles Pérez-Lambert
2002-06-11 20:37 ` Hans Hagen
2002-06-12 8:44 ` Daniel Flipo
2002-06-12 13:00 ` Gilles Pérez-Lambert
2002-06-14 15:27 ` Hans Hagen
2002-06-15 10:39 ` Daniel Flipo
2002-06-17 15:03 ` Gilles Pérez-Lambert
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).