10.07.2015 Views

Download - Multivac!

Download - Multivac!

Download - Multivac!

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

glyphcheck=replace: silent approach which creates the most appropriate text output(see below);> glyphcheck=error: safest approach; an exception will be thrown to alert the user of theproblem. However, the output document will no longer be usable because of the exception.The detailed behavior of glyphcheck depends on the type of encoding, and is described inTable 4.9.Table 4.9 Glyph checking details for various encodingsglyphcheckunicode8-bitencodingsUnicodeCMapsotherCMaps glyphid builtinnoneinvalid Unicodevalue isreplacedwith 0unknown code orUnicode value is replacedwith 0unknownUnicode valueis replacedwith 0invalid codesequencetriggers anexceptioninvalid glyphid is replacedwith 0replacesophisticated glyph replacement asdetailed in the section belowsame as none same as none same as none invalid code is replacedwith 0 orreplacementcharerrorThe API function will throw an exception if an error occurs. A detailed error message can be queried withPDF_get_errmsg( ) even if the function does not return a -1 (in PHP:0) error code.Glyph replacement. If glyphcheck=replace, unavailable glyphs will recursively be replacedas follows:> Select a similar glyph according to the Unicode value from PDFlib’s internal replacementtable. The following (incomplete) list contains some of these glyph mappings.If the first character in the list is unavailable in a font, it will automatically be replacedwith the second:U+00A0 (NO-BREAK SPACE) U+0020 (SPACE)U+00AD (SOFT HYPHEN)U+002D (HYPHEN-MINUS)U+2010 (HYPHEN) U+002D (HYPHEN-MINUS)U+03BC (GREEK SMALL LETTER MU) U+00C5 (MICRO SIGN)U+212B (ANGSTROM SIGN) U+00B5 (LATIN CAPITAL LETTER A WITH RING ABOVE Å)U+220F (N-ARY PRODUCT)U+03A0 (GREEK CAPITAL LETTER PI)U+2126 (OHM SIGN) U+03A9 (GREEK CAPITAL LETTER OMEGA)In addition to the internal table, the fullwidth characters U+FF01 to U+FF5E will be replacedwith the corresponding ISO 8859-1 characters (i.e. U+0021 to U+007E) if thefullwidth variants are not available in the font.> Decompose Unicode ligatures into their constituent glyphs (e.g. replace U+FB00with U+0066 U+0066)> Select glyphs with the same Unicode semantics according to their glyph name. Inparticular, all glyph name suffixes separated with a period will be removed if the correspondingglyph is not available (e.g. replace A.swash with A; replace g.alt with g).If no replacement was found, the character specified in the replacementchar option willbe used. If the corresponding glyph itself is not available in the font, U+00A0 (NO-BREAK SPACE) and U+0020 (SPACE) will be tried; If these are still unavailable, U+0000(missing glyph symbol) will be used.92 Chapter 4: Unicode and Legacy Encodings

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!