MAN page from StartCom 5 a2ps-4.13b-57.2.SEL5_4.i386.rpm
Section: User Commands (1)
Updated: 14 May 1999Index
ogonkify - international support for PostScript
does various munging of PostScript files related to printing indifferent languages. Its main use is to filter the output ofNetscape, Mosaic and other programs in order to print in languagesthat don't use the standard Western-European encoding (ISO 8859-1).
Installation instructions are provided in the file INSTALL. Assumingthe installation has been correctly completed, save the PostScriptoutput of Netscape or Mosaic to a file, sayoutput.ps
.Then print it using
- % ogonkify -AT -N output.ps | lpr
- in the case of Netscape, or
- % ogonkify -AT -M output.ps | lpr
- in the case of Mosaic.
You may want to change the-AToption to-CTin order to use a high quality Courier font from IBM (at the price ofslower printing).
An alternative way to print from Netscape is to set the printingcommand in the printing dialog box to:
- ogonkify -AT -N | lpr
- For more details, see the USAGE section below.
- Includes the specified procset in the output file.
- Set the encoding of the output. Defaults toL2(ISO 8859-2, a.k.a. ISO Latin-2). Other possible values areL1(ISO 8859-1, a.k.a. ISO Latin-1),L3(ISO 8859-3, a.k.a. ISO Latin-3), L4(ISO 8859-4, a.k.a. ISO Latin-4),L5(ISO 8859-9, a.k.a. ISO Latin-5),L6(ISO 8859-10, a.k.a. ISO Latin-6),L7(ISO 8859-13, a.k.a. ISO Latin-7),L9(ISO 8859-15, a.k.a. ISO Latin-9),CP1250(Microsoft Code Page 1250, a.k.a. CeP),ibmpc(Original IBM-PC encoding),mac(Apple Macintosh encoding) andhp(HP Roman Encoding).
- Use the fontNewin place ofOld.Will lead to ugly or unreadable output when the metrics mismatch.
- Do the right font remappings for using Courier-Ogonki in place of Courier(the astands for Adobe Courier). This avoids downloading any fontsto the printer.
- Do the right font remappings for using IBM Courier in place of AdobeCourier.
- Do the right font remappings for using Times-Roman-Ogonki in place ofTimes-Roman.
- Do the right font remappings for using Helvetica-Ogonki in place ofHelvetica.
- Like-abut also downloads the Courier-Ogonki fonts.
- Like-c,but also downloads the IBM Courier fonts.
- Like-h,but also downloads the Helvetica-xxx-Ogonki fonts.
- Like-t,but also downloads the Times-xxx-Ogonki fonts.
- Equivalent to-C-T.
- Equivalent to-C-T -H.
- Add theEurocurrency sign to all standard fonts (use with-eL9).
- Do Netscape processing.
- Do Mosaic processing.
- Do mp processing. Will not work with the-Aoption (use-Cinstead).
- Do StarOfficeprocessing.
- Do ApplixWareprocessing.
- Recode standard fonts. This is likely to work with applications thatleave fonts inAdobeStandardEncoding,typically applications that do not even support printing even ofcharacters.
- End options.
Let us assume that you want to print a WWW page encoded inISO Latin-2. Netscape stubbornly insists on printing it asISO Latin-1. By using the File->Print command, have Netscape send theoutput to a file, say alamakota.ps.
Asogonkifyis configured for ISO Latin-2 by default, passing it the PostScriptgenerated by Netscape will correct the encoding of the fonts. It isenough to do:
- % ogonkify -N <alamakota.ps | lpr
However, most printers do not have fonts with the needed charactersinstalled; synthetized fonts will be downloaded and used instead ofCourier and Times-Roman with-AT,and a very good Courier font from IBM will be used with:-CT.The command will therefore typically be:
- % ogonkify -N -AT <alamakota.ps | lpr
- % ogonkify -N -CT <alamakota.ps | lpr
Typical usage with other programs is:
% ogonkify -M -AT <alamakota.ps | lpr% ogonkify -mp -AT <alamakota.ps | lpr% ogonkify -SO -AT <alamakota.ps | lpr% ogonkify -AX -ATH <alamakota.ps | lpr% ogonkify -XF -ATH <alamakota.ps | lpr
Characters with an `ogonek' should be constructed differently (forinstance, the `ogonek' used with an `a' should be differently shapedthan the one used with an `e'.)
It would be better to patch the programs we have the sources to thanto post-process the produced PostScript.
The program is written in Perl.
In order to view the output PostScript with Ghostscript, you mightneed to rungs
with the flag-dNOPLATFONTS
with the flag-arguments -dNOPLATFONTS
Netscape, IBM, Adobe, PostScript, StarOffice, ApplixWare and possiblyothers are registered trademarks.
Much of the composite character data have been provided by Primoz Peterlin, H. Turgut Uyar, Ricardas Cepas, Kristof Petrovay and Jan Prikryl.
Jacek Pliszka provided the support for StarOffice.Andrzej Baginskiprovided the support for ApplixWare.
Markku Rossi wrotegenscriptand provided many useful encoding vectors with the distribution.
Throughout writing the Postscript code, I used theghostscriptinterpreter, by Peter Deutsch.
Larry Wall wroteperl,the syntax and semantics of which are a never ending source ofpuzzlement.
Juliusz Chroboczek <jecAATTdcs.ed.ac.uk>, with help from loads of people.
- SUMMARY USAGE
This document was created byman2html,using the manual pages.