DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2378
Version: 1.3.0


Some more info: Markus Kuhn wrote in:

http://mail.nl.linux.org/linux-utf8/2003-01/msg00071.html

"My proof-of-concept best-effort UTF-8 formatter for Postscript:
  http://www.cl.cam.ac.uk/~mgk25/ucs/utf2ps.c ".

This demo program works nicely. I tried it with our file test file
(misc/cp1252_utf-8.txt), and it produced a correct (AFAICT) PostScript
output file. The conversion to PDF with ghostscript (ps2pdf) produced a
correct PDF file.

My test is different than Markus Kuhn's advice in the source file, but it
works with our UTF-8 test file w/o additional software. I copied utf2ps.c
to the misc/ directory:

$ gcc -o utf2ps utf2ps.c
$ ./utf2ps < cp1252_utf-8.txt > cp1252_utf-8.ps
$ ps2pdf cp1252_utf-8.ps

I viewed both files with ghostview, evince, and acrobat reader, resp., and
all looked well.

Markus Kuhn's file is Public Domain. Using his approach would enable us to
render at least all CP-1252, ISO-8859-1, Mac Roman, and some more
characters.

Comments, anybody? Is it worth a try?


Link: http://www.fltk.org/str.php?L2378
Version: 1.3.0

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to