| <<<Back 1 day (to 2017/08/31) | 20170901 |
fityfiritty | hello | 00:55.25 |
ghostbot | Welcome to #ghostscript, the channel for Ghostscript and MuPDF. If you have a question, please ask it, don't ask to ask it. Do be prepared to wait for a reply as devs will check the logs and reply when they come on line. | 00:55.25 |
fityfiritty | i would like to use utf-8 both as input and output when generating pdf from postscript, but i haven't found anything on this in the documentation. could someone please point me at the right direction? | 00:58.25 |
kens | fityfiritty (for the logs) PostScript doesn't support UTF-8 and neither does PDF (except for text strings in PDF, whch are not the page content). You can build an Encoding which will mimic UTF-8 using CIDFonts and CMaps, but its non-trivial and would require you to spend several weeks or months doing so. You will alos need to build a custom CMap for each CIDFont you want to use. | 07:15.04 |
tor8 | kens: strictly speaking, there are some UTF-8 CMaps already available, but only for the CJK languages | 09:11.43 |
kens | Yeah but they'd need to be crafted for each font | 09:12.04 |
| Or at least, each Oredering | 09:12.16 |
| I'm willing to bet he doesn't know much about fonts or he wouldn't be asking | 09:12.37 |
tor8 | that's sort of what I mean, there are pre-made ones for the standard orderings (CNS, GB, JIS, KS) | 09:12.39 |
| UniCNS-UTF8-H maps UTF-8 to Adobe-CNS1 | 09:13.08 |
kens | I expect he thinks he can use TrueType fonts with PostScript, and UTF-8, which he can't | 09:13.26 |
tor8 | now, that's also very true, and why I said "strictly speaking" :) | 09:13.42 |
deekej | hello folks :) is the ghostpdl/Resource/CMap/UniHojo-UCS2-H still needed for anything? | 13:14.19 |
| I've noticed that it is now deprecated according to Adobe's CMap git repository | 13:14.42 |
| so I just wanted to let you know :) | 13:15.02 |
chrisl | In theory, it'll be needed for any Postscript that uses it | 13:15.26 |
deekej | chrisl: ok | 13:16.25 |
chrisl | The trouble with deprecating something like that is that it doesn't magically all the existing files out there that use it disappear | 13:16.59 |
deekej | I realize that :) I was dealing with the same issue with the URW fonts and fontconfig :) | 13:18.12 |
| I just wanted to make sure you at least know about it :) | 13:18.25 |
chrisl | deekej: What I can't tell you is how likely it is that it *is* used by existing Postscript (maybe PDF?). I've no feel for that, I'm afraid | 13:18.34 |
deekej | chrisl: me neither, I do not work with any files that require the CMap files :) | 13:19.11 |
| it's hard to make such a decision for people on the other side of the world :) | 13:19.33 |
chrisl | I bet you have a few, though.... quite widely used in PDF these days | 13:19.43 |
deekej | ah, ok, I learn something new everyday ^_^ | 13:20.18 |
chrisl | Let's be honest, it's only 82k, it's not going to break the storage banks keeping it | 13:20.42 |
deekej | that one file itself should not, but I most likely will have to keep other deprecated files in Fedora because of it as well (packaging... *sigh*) | 13:23.06 |
tor8 | deekej: chrisl: mupdf doesn't use the Hojo files at all | 13:24.15 |
chrisl | Yeh, I'm not sure they've ever been needed for PDF | 13:24.44 |
deekej | (we will have a subpackage in Fedora for deprecated CMap files, which is not installed by default, but will be installed as a requirement by ghostscript) | 13:24.59 |
| since I saw only 1 deprecated file there, that's why I asked if it is still needed or not :) | 13:25.37 |
| (it's a nice-to-have thing, nothing serious) | 13:25.55 |
chrisl | I sort of feel their uses in the real world are probably insignificant, but I'm not confident enough to recommend dropping the file | 13:27.13 |
deekej | chrisl: that's not a problem :) I will set Fedora package for ghostscript in a way that it can drop the Requirement once (if) you decide to drop in the future :) | 13:29.42 |
| for now I have the justification to keep it there :) | 13:30.03 |
| Forward 1 day (to 2017/09/02)>>> | |