groff
[Top][All Lists]
Advanced

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

RE: [Groff] Cyrillic support for devps


From: Ted Harding
Subject: RE: [Groff] Cyrillic support for devps
Date: Mon, 29 Sep 2003 10:53:31 +0100 (BST)

On 29-Sep-03 Michail Vidiassov wrote:
> Dear All (and Ruslan Ermilov in particular),
> 
> are there examples of cyrillic support for devps?
> Generation tools (encoding and map files) are preferred, but
> an example of manually installed font will do.
> 
> BTW, Ghostscript will now come with fonts, containing cyrillic
> glyphs (unencoded). See http://ghostscript.com/article/44.html
> for details. Thus it may be  a good idea to include cyrillic support
> in the stock groff distribution.

It is not difficult to do it "manually", though some setup is required.

First, install a Cyrillic PostScript font of your choice. (Or more than
one).

Next, you may have provision for direct entry of Cyrillic by a keyboard
mapping (which I don't use and cannot advise about). If not, you could
adopt the following, or some variant of it, which sets up an ASCII
transliteration scheme for referring to Cyrillic characters.

If you do this, you will need to find out what Cyrillic character
corresponds to which numeric position in the font. If necessary, you
can simply use groff to make a table, and see what you get.

I defined a pair of macros

  .Cyr

  ./Cyr

The first switches the current font to a chosen cyrillic font, and also
uses the .char request to define a transliteration for every Cyrillic
character. This includes redefining ASCII characters such as "b", "v"
etc. which transcribe the Cyrillic characters which have the same sound.

Then you just enter Cyrillic text using ASCII characters in a natural way.
For instance, you could set in Cyrillic the names of certain historic
figures by entering

  .Cyr
  \[Kh]ru\[shch]\[e:]v, \[Yu]ri\[i:] Gagarin, ...
  ./Cyr

The second macro, ./Cyr, simply undoes everything that /Cyr set up,
using the .rchar request to undo the .char effects.

I attach a file which gives the full details of these macros as I have
them set up. The fonts referred to are fonts I once picked up from the
web, and I cannot remember where ... in any case, the scheme can be
adapted to any other font you choose to install. NB that the scheme
is encoding-dependent: this one uses KOI8.

Also, probably you cannot use this simply as a drop-in macro: you will
probably need to modify some things.

I hope this helps,
Ted.


--------------------------------------------------------------------
E-Mail: (Ted Harding) <address@hidden>
Fax-to-email: +44 (0)870 167 1972
Date: 29-Sep-03                                       Time: 10:53:31
------------------------------ XFMail ------------------------------

Attachment: cyr
Description: cyr


reply via email to

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