On 2022-03-06, David Newall <
[email protected]> wrote:
Hello All,
I've almost finished my UTF-8 decode and Unicode show work. Significant changes are:
1. unicodeshow is now ushow. The names all got a bit long.
2. The decoder has been rewritten based on code by Thompson and Pike in
Plan 9. They wrote an incredibly clever test for overlong sequences.
3. Documentation. Yes, really! https://davidnewall.com/software/utf8show/PostScript%20UTF8%20Extension%20Reference.pdf
Have I left anything out?
Regards,
David
I coudn't get your examples running in GhostScript:
## code
openbsd$ gs utf8test.ps
GPL Ghostscript 9.56.1 (2022-04-04)
Copyright (C) 2022 Artifex Software, Inc. All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Error: /stackunderflow in --def--
Operand stack:
Map
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1990 1 3 %oparray_pop 1989 1 3 %oparray_pop 1977 1
3 %oparray_pop 1833 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:761/1123(ro)(G)-- --dict:0/20(G)-- --dict:75/200(L)--
Current allocation mode is local
Current file position is 561
## eof
Any tips on using it, for instance, with an example how to
integrate your code as a "library"?
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)