[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Hyphenation with Russian
From: |
Werner LEMBERG |
Subject: |
Re: [Groff] Hyphenation with Russian |
Date: |
Fri, 03 Jul 2009 08:56:32 +0200 (CEST) |
> I have found all the files: koi8-r.tmac, ru.tmac and
> hyphen.ru (in the koi8-r encoding). The koi8-r.tmac file
> consists of lines like:
>
> .trin \[char186]\[u2568]
>
> and I believe it maps UTF-8 to KOI8-R, hence I cocluded the
> input file should be in the UTF-8 encoding.
This is not correct. groff has a fixed set of built-in entities like
\[aq] or \[em] -- this list won't be changed any more. All other
entities get algorithmic names of the form \[uXXXX] and some other
forms based on the Adobe Glyph List conventions; please look this up
in the groff info manual if you are interested. It has *no relation*
to the used input encoding except the fact that such glyph names in
its simplest form are using the Unicode character code as part of its
name.
> But alas! it didn't work, reporting errors like this:
>
> can't find special character `u2568'
>
> But these characters are mentioned in the koi8-r.tmac file,
> so I don't understand what happens...
Try with a koi8-r encoded input file! If that works (this is, you get
proper hyphenation), use groff's -k (or -K) option to provide proper
UTF-8 input file support, as mentioned already in my previous mail.
Werner