OGONKIFY(1)
π OGONKIFY(1) π
okay bestie, sit down, hydrate, because today we're talking about ogonkify β that's the command, section 1 of the General Commands Manual, and it's literally your international-support-for-PostScript bestie. no cap.
β¨ NAME β¨
ogonkify β international support for PostScript π«Ά
πΈ SYNOPSIS πΈ
ogonkify [-p procset] [-e encoding] [-r Old=New] [-a] [-c] [-h] [-t]
[-A] [-C] [-H] [-T] [-AT] [-CT] [-ATH] [-CTH] [-E] [-N] [-M] [-mp] [-SO]
[-AX] [-F] [-RS] [--] file ...
π DESCRIPTION π
ogonkify does various munging of PostScript files related to printing in different languages. its main use is to filter the output of Netscape, Mosaic and other programs so you can print in languages that don't use the standard Western-European encoding (ISO 8859-1). it's giving translator energy, it's giving printer whisperer π₯
π SUMMARY USAGE π
Installation instructions are provided in the file INSTALL. assuming the installation has been correctly completed, save the PostScript output of Netscape or Mosaic to a file, say output.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 -AT option to -CT in order to use a high quality Courier font from IBM (at the price of slower printing). lowkey worth it, highkey slow π’
An alternative way to print from Netscape is to set the printing command in the printing dialog box to:
ogonkify -AT -N | lpr
For more details, see the USAGE section below. π
π OPTIONS π
-pβ Includes the specified procset in the output file.-eβ 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). like a whole lil encoding buffet fr fr π-rβ Use the font New in place of Old. Will lead to ugly or unreadable output when the metrics mismatch. π careful bestie.-aβ Do the right font remappings for usingCourier-Ogonkiin place ofCourier(the a stands for Adobe Courier). This avoids downloading any fonts to the printer. π-cβ Do the right font remappings for using IBM Courier in place of Adobe Courier.-tβ Do the right font remappings for usingTimes-Roman-Ogonkiin place ofTimes-Roman.-hβ Do the right font remappings for usingHelvetica-Ogonkiin place ofHelvetica.-Aβ Like-abut also downloads theCourier-Ogonkifonts.-Cβ Like-c, but also downloads the IBM Courier fonts.-Hβ Like-h, but also downloads theHelvetica-xxx-Ogonkifonts.-Tβ Like-t, but also downloads theTimes-xxx-Ogonkifonts.-CTβ Equivalent to-C -T.-CTHβ Equivalent to-C -T -H.-Eβ Add the Euro currency sign to all standard fonts (use with-e L9). πΆ-Nβ Do Netscape processing.-Mβ Do Mosaic processing.-mpβ Do mp processing. Will not work with the-Aoption (use-Cinstead). π read that again bestie.-SOβ Do StarOffice processing.-AXβ Do ApplixWare processing.-Fβ Do XFig processing.-RSβ Recode standard fonts. This is likely to work with applications that leave fonts inAdobeStandardEncoding, typically applications that do not even support printing even of characters.--β End options. π
π¦ USAGE π¦
Let us assume that you want to print a WWW page encoded in ISO Latin-2. Netscape stubbornly insists on printing it as ISO Latin-1. by using the File->Print command, have Netscape send the output to a file, say alamakota.ps. (iconic filename ngl, Polish girlies know π«Ά)
As ogonkify is configured for ISO Latin-2 by default, passing it the PostScript generated by Netscape will correct the encoding of the fonts. It is enough to do:
% ogonkify -N <alamakota.ps | lpr
However, most printers do not have fonts with the needed characters installed; synthesized fonts will be downloaded and used instead of Courier 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
or eventually
% 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
π BUGS π
Characters with an ogonek should be constructed differently (for instance, the ogonek used with an a should be differently shaped than the one used with an e.) π the ogonek is not a one-size-fits-all situation, apparently.
It would be better to patch the programs we have the sources to than to post-process the produced PostScript.
The program is written in Perl. πͺ (yes, that Perl. no further comment, and yet: also a note.)
β NOTES β
In order to view the output PostScript with Ghostscript, you might need to run gs with the flag -dNOPLATFONTS, and ghostview with the flag -arguments -dNOPLATFONTS.
Netscape, IBM, Adobe, PostScript, StarOffice, ApplixWare and possibly others are registered trademarks. (β’ energy, we must respect it π )
πΈ THANKS πΈ
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 Baginski provided the support for ApplixWare.
Markku Rossi wrote genscript and provided many useful encoding vectors with the distribution.
Throughout writing the Postscript code, I used the ghostscript interpreter, by Peter Deutsch.
Larry Wall wrote perl, the syntax and semantics of which are a never ending source of puzzlement. π realest thing ever written in a manpage, honestly.
π AUTHOR π
Juliusz Chroboczek <jec@dcs.ed.ac.uk>, with help from loads of people. π«Ά
and that's the whole page bestie!! this one was written by McKornik Jr., dated 14 May 1999, and it lives in OGONKIFY(1) β go forth and print in whatever encoding your heart desires πβ¨ππ¦
π¦ where this page comes from
- alpine 3.24: a2ps-doc 4.15.7-r0 Β· GPL-3.0-or-later
- arch rolling: a2ps 4.15.8-1 Β· GPL-3.0-or-later
- debian bookworm: a2ps 1:4.14-8
- debian trixie: a2ps 1:4.15.6-1+b1
- fedora 43: a2ps 4.15.7-2.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND GPL-3.0-or-later WITH Bison-exception-2.2 AND LGPL-2.0-or-later
- fedora 43: a2ps 4.15.8-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND GPL-3.0-or-later WITH Bison-exception-2.2 AND LGPL-2.0-or-later
- fedora 44: a2ps 4.15.8-3.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND GPL-3.0-or-later WITH Bison-exception-2.2 AND LGPL-2.0-or-later
- nixos 26.05: a2ps 4.15.7
- nixpkgs unstable: a2ps 4.15.8
- ubuntu jammy: a2ps 1:4.14-7
- ubuntu noble: a2ps 1:4.15.5-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms