[Gnome-print] Latin-1 postscript-to-unicode
- From: Aaron Lehmann <aaronl vitelus com>
- To: gnome-print helixcode com
- cc: chema celorio com
- Subject: [Gnome-print] Latin-1 postscript-to-unicode
- Date: Tue, 20 Jun 2000 08:12:05 +0000 (GMT)
Hi,
I found some of the gnome-print code useful in fixing a major bug in
AbiWord. I had to make some additions to the gnome_font_type1_std_enc
table (gnome-font.c) to make it work in AbiWord with accented/Latin-1
characters (note: AbiWord doesn't use gnome-print. I just borrowed some
code from gnome-print). Above the table there is a comment saying that
the table needs the addition of more glyphs of nonstandard encodings,
like the entries I have added. I don't know whether gnome-print
currentlt needs these additions or not, but I thought it would be best to
share all the improvements I made with the gnome-print team. I'm not
expecting you put these changes in to the tree or even pay any attention
to them, I just was thinking that they might be useful to gnome-print
someday.
Note that there are a few characters missing, as I was unable to find the
equivilents for a few. If anyone finds the entries that I am missing
(marked with HELP comments), please e-mail me so I can put these in
AbiWord too.
Here you go:
____________________________________________________________________________
/* The following were added by Aaron Lehmann.
My references are
ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-1.TXT and a random AFM
file. */
{ 0x00DD, "Yacute" },
{ 0x00DB, "Ucircumflex" },
{ 0x00D9, "Ugrave" },
/* HELP: What is "Zcaron"? */
{ 0x00FF, "Ydieresis" },
{ 0x00B3, "threesuperior" },
{ 0x00DA, "Uacute" },
{ 0x00B2, "twosuperior" },
{ 0x00DC, "Udieresis" },
{ 0x00B7, "middot" },
{ 0x00B9, "onesuperior" },
{ 0x00E1, "aacute" },
{ 0x00E0, "agrave" },
{ 0x00E2, "acircumflex" },
{ 0x00DF, "Scaron" },
{ 0x00D5, "Otilde" },
{ 0x00AD, "sfthyphen" },
{ 0x00E3, "atilde" },
{ 0x00E5, "aring" },
{ 0x00E4, "adieresis" },
{ 0x00D2, "Ograve" },
{ 0x00D4, "Ocurcumflex" },
{ 0x00D6, "Odieresis" },
{ 0x00D1, "Ntilde" },
{ 0x00EB, "edieresis" },
{ 0x00E9, "eacute" },
{ 0x00E8, "egrave" },
{ 0x00CE, "Icircumflex" },
{ 0x00EA, "ecircumflex" },
{ 0x00CC, "Igrave" },
{ 0x00CD, "Iacute" },
{ 0x00CF, "Idiersis" },
{ 0x00B0, "degree" },
{ 0x00CA, "Ecircumflex" },
{ 0x002D, "minus" },
{ 0x00D7, "multiply" },
{ 0x00F7, "divide" },
{ 0x00C8, "Egrave" },
/* HELP: What is "trademark"? */
{ 0x00D3, "Oacute" },
{ 0x00FE, "thorn" },
{ 0x00F0, "eth" },
{ 0x00C9, "Eacute" },
{ 0x00E7, "ccedilla" },
{ 0x00EF, "idieresis" },
{ 0x00ED, "iacute" },
{ 0x00EC, "igrave" },
{ 0x00B1, "plusminus" },
{ 0x00BD, "onehalf" },
{ 0x00BC, "onequarter" },
{ 0x00BE, "threequarters" },
{ 0x00EE, "icircumflex" },
{ 0x00CB, "Edieresis" },
{ 0x00F1, "ntilde" },
{ 0x00C5, "Aring" },
{ 0x00F6, "odieresis" },
{ 0x00F3, "oacute" },
{ 0x00F2, "ograve" },
{ 0x00F4, "ocircumflex" },
{ 0x00F5, "otilde" },
/* HELP: What is "scaron"? */
{ 0x00FC, "udieresis" },
{ 0x00FA, "uacute" },
{ 0x00F9, "ugrave" },
{ 0x00FB, "ucircumflex" },
{ 0x00FD, "yacute" },
/* HELP: What is "zcaron"? */
{ 0x00FF, "ydieresis" },
{ 0x00A9, "copyright" },
{ 0x00AE, "registered" },
{ 0x00C3, "Atilde" },
{ 0x00A0, "nbspace" },
{ 0x00C7, "Ccedilla" },
{ 0x00C2, "Acircumflex" },
{ 0x00C0, "Agrave" },
{ 0x00AC, "logicalnot" },
{ 0x00C1, "Aacute" },
{ 0x00D0, "Eth" },
{ 0x00A6, "brokenbar" },
{ 0x00DE, "Thorn" },
{ 0x00C4, "Adieresis" }
/* HELP: What is "mu"? */
____________________________________________________________________________
Thanks,
Aaron Lehmann
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]