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 : [EMAIL PROTECTED]
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
==========================================================================

Reply via email to