Ocenite etot tekst:


  Date: 30 Jun 97
  From: Dima Barsky (d.barsky@ee.surrey.ac.uk)

     Problema  staraya,  no  chistogo  resheniya ya eshche ni u kogo ne
videl. Moe tozhe ne ideal, no vse-taki...

     Izlagayu recept. Spisok ingredientov:

1. GNUshnaya programma enscript versii 1.5 s lyubogo GNU ftp-servera,
   naprimer, ftp://src.doc.ic.ac.uk/gnu/enscript-1.5.0.tar.gz

2. Postscript fonty cmtt12 i cmctt12. YA ih posylayu uzhe v pravil'nom
   formate, a izgotovit' ih mozhno vot tak:

    a) beresh' cmtt12.pfb i cmctt12.pfb s lyubogo CTAN servera, naprimer
       ftp://ftp.dante.de/pub/tex/fonts/cm/ps-type1/paradissa/cmctt12.pfb
                                i
       ftp://ftp.dante.de/pub/tex/fonts/cm/ps-type1/bakoma/cmtt12.pfb

    b)  konvertiruesh' pfb v pfa programmoj pfb2pfa, kotoraya vhodit v
        lyuboj prilichnyj TeX-distribution. V teTeX ona tochno est'.

    c) Izvlekaesh' font metrics iz pfa fajlov s pomoshch'yu getafm (iz togo
       zhe teTeXa) i ghostscripta:

        getafm cmtt12  | cat cmtt12.pfa  - | gs -q -DNODISPLAY - >cmtt12.afm
        getafm cmctt12 | cat cmctt12.pfa - | gs -q -DNODISPLAY - >cmctt12.afm

3. Ma-alen'kaya programma-perekodirovshchik rusprint (ishodnyj tekst prilagaetsya).
   rusprint.tgz
   Zanimaetsya tem, chto otslezhivaet perehod s latinskih bukv v russkie
   i nazad, i vstavlyaet sootvetstvuyushchie pereklyucheniya fontov v fajl dlya
   enscript'a, zaodno sdvigaya russkie bukvy v nizhnyuyu polovinu tablicy.

Podgotovitel'nye uprazhneniya:

mkdir ~/.enscript
cp cmtt12.pfa cmtt12.afm cmctt12.pfa cmctt12.afm ~/.enscript
cd ~/.enscript
mkafmmap *.afm         (esli net programmy mkafmmap - togda prosto:
                        echo cmtt12 cmctt12 >~/.enscript/font.map


Ne zabud' skompilirovat' rusprint.c i polozhit' kuda-nibud' v PATH.

Pechataem tak:

rusprint < koi.txt | enscript -e -X ps --download-font=cmtt12 --download-font=cmctt12 | lpr

Vrode by vse.. Predlozheniya, zamechaniya, zhaloby?

Dima Barskij. d.barsky@ee.surrey.ac.uk

Last-modified: Wed, 24 Jun 1998 10:56:19 GMT
Ocenite etot tekst: