groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Installing Russian Type-1 Fonts


From: Werner LEMBERG
Subject: Re: [Groff] Installing Russian Type-1 Fonts
Date: Fri, 19 Aug 2011 16:21:21 +0200 (CEST)

> I ran my file through preconv and the result contained
> algorithmically derived glyphs \[uXXXX] for Russian letters, which,
> by definition, are not part of the GGL.

Sorry for being sloppy.  \[uXXXX] is what groff expects for all glyphs
not part of the GGL.

> But what to do with hyphenation?  With 8-bit input encodings it was
> simple -- just have the hyphenation pattern and the hyphenation code
> definition files in the source encoding -- provied the source
> encoding characters fall into the allowed range -- but what to do
> with UTF-8?

I've posted a solution a few years ago to the groff list which is
still valid.  Attached you can find the necessary files:

  . ru.tmac: Call this macro file on groff's command line to activate
             Russian support.

  . koi8-r.tmac: Loaded by ru.tmac, this file sets up koi8-r input
                 encoding (which is used exclusively for hyphenation).

  . ruhyphal.tex: Loaded by ru.tmac.  Russian hyphenation patterns, in
                  koi8-r encoding, taken from TeXLive.

  . rutest.utf-8: A test input file.  Change the PS font `SFOR' to
                  whatever you use for Cyrillic.  After installing the
                  files at the appropriate places you should call
                  groff with

                    groff -k -mru -Tps rutest.utf-8 > rutest.ps

                  Of course,

                    groff -k -mru -Tutf8 rutest.utf-8 > rutest.txt

                  also works.


    Werner

Attachment: ru.tar.gz
Description: Binary data


reply via email to

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