groff
[Top][All Lists]
Advanced

[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: Thu, 02 Jul 2009 14:47:37 +0200 (CEST)

> Is there a way to make nroff process Russian documents correctly and
> with hyphenation?

Yes.

  . Select an 8-bit encoding you want to use for the Russian
    hyphenation.  Only characters in the ranges 0x20-0x7e and
    0xa0-0xfe can be used.  Convert your hyphenation patterns to this
    encoding; expanding all macros.  Use `hyphen.cs' as a template.

  . Set up a mapping from groff input characters (and implicitly vice
    versa) to this Russian encoding.  Use `latin2.tmac' as a template.

  . Write a language support file which defines a hyphenation
    language, activates the characters used for the hyphenation
    patterns, and loads them.  Use `cs.tmac' as a template.

That's it!  For, say, UTF-8 encoded Russian input files use groff's -k
option to use the new `preconv' preprocessor.


    Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]