in reply to HTML to PDF with Unicode
As it stands, it's really designed for for mapping Adobe glyphs to Unicode, but it's really just a two-column mapping. We know how to deal with them …
As has already been sagely suggested, I won't try to go for a general solution; just implement the glyphs you need now. The "Classic 35" LaserWriter fonts that you can pretty much guarantee are built into any PS engine (and ghostscript) these days are rather limiting.
I'm assuming that your PS application supports glyph names (ie /M glyphshow instead of/as well as (M) show). Many of the specialised characters don't have encoding numbers, so can't be mapped using traditional integer techniques.
--
$,="\n";foreach(split('',"\3\3\3c>\0>c\177cc\0~c~``\0cc\177cc"))
{$a++;$_=unpack('B8',$_);tr,01,\40#,;$b[$a%6].=$_};print@b,"\n"
|
|---|