On Wednesday 08 January 2003 13:15, Mikael Persson wrote:
Hi,
I added som changes in lang-ger.tex some week ago. As I mentioned I forgot one headtext in lang-ger.tex.
\setupheadtext [\s!sv] [\v!inhoud=Inneh\aring l] should have one more l, that is: \setupheadtext [\s!sv] [\v!inhoud=Inneh\aring ll]
I also read in lang-ger.tex that there are some \definesortkey's for the norwegian language. I don't know why they are commented out (obsolete?). I tried to uncomment them and make a register that contains these additional letters (\aa,\ae,\o) but they still end up before A in the index.
If they are correct for the norwegian language, then the swedish counterparts should look like this:
%% SWEDISH % % These three letters (in this order) are the % last in the swedish alphabet (and hence should % come after z in the latin alphabet). % I'm not sure about the syntax for % \definesortkey so I left some of it open ... % % \startlanguagespecifics[\s!sv] % % \definesortkey {\aring}{z}{b}{\aring} % \definesortkey {\Aring}{z}{b}{\Aring} % \definesortkey {\aumlaut}{z}{c}{\aumlaut} % \definesortkey {\Aumlaut}{z}{c}{\Aumlaut} % \definesortkey {\oumlaut}{z}{d}{\oumlaut} % \definesortkey {\Oumlaut}{z}{d}{\Oumlaut} % % \stoplanguagespecifics
I also saw this with activecharacters... The swedish counterpart should here be:
% \startencoding[texnansi] % \startlanguagespecifics[\s!sv]% % \defineactivecharacter å {\aring{}} % \defineactivecharacter Å {\Aring{}} % \defineactivecharacter ä {\aumlaut{}} % \defineactivecharacter Ä {\Aumlaut{}} % \defineactivecharacter ö {\oumlaut{}} % \defineactivecharacter Ö {\Oumlaut{}} % \stoplanguagespecifics % \stopencoding
At last, some questions:
1) How should I do to get Å,Ä,Ö last in the index?
For what purpose do you seek a new sort order? If for an index then Xindy has some superior tools for accomplishing this. But how to use Xindy in a Context run? I used the sort macro package from the TeXsis macros. The particular file is called index.tex. There are some name conflicts between this package and Context so I modified some names in the macro package, e.g., index becomes indexx. Then one can embed the commands in your pdfetex or Context file, run Context, run a couple of programs from the Xindy suite (one to convert from makeindex format and then Xindy itself) and rerun Context to produce the index in the proper place. If Context can be made to do this with equal or greater facility then there is no problem. But if not, Xindy was designed specifically to handle indexes with various alphabets; indeed the tutorial deals with accented words and the Hungarian "Ny" which is sorted as a separate letter. All the situations you describe above are easily handled. HTH -- John Culleton Able Indexers and Typesetters Rowse Reviews Culleton Editorial Services http://wexfordpress.com