Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #3820

Re: Documentation for utf8decode and ushow (nee unicodeshow)

From Anthk <anthk@disroot.org>
Newsgroups comp.lang.postscript
Subject Re: Documentation for utf8decode and ushow (nee unicodeshow)
Date 2022-12-13 20:51 +0000
Organization A noiseless patient Spider
Message-ID <slrntphpdo.1sg8.anthk@openbsd.home.local> (permalink)
References <6224af22$1@news.ausics.net>

Show all headers | View raw


On 2022-03-06, David Newall <davidn@davidnewall.com> 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"?

Back to comp.lang.postscript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Documentation for utf8decode and ushow (nee unicodeshow) David Newall <davidn@davidnewall.com> - 2022-03-06 23:54 +1100
  Re: Documentation for utf8decode and ushow (nee unicodeshow) luser droog <luser.droog@gmail.com> - 2022-03-10 22:26 -0800
  Re: Documentation for utf8decode and ushow (nee unicodeshow) Anthk <anthk@disroot.org> - 2022-12-13 20:51 +0000
    Re: Documentation for utf8decode and ushow (nee unicodeshow) David Newall <davidn@davidnewall.com> - 2022-12-29 17:49 +1100
  Re: Documentation for utf8decode and ushow (nee unicodeshow) rlhamil@smart.net (Richard L. Hamilton) - 2022-12-29 11:46 +0000

csiph-web