diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2020-12-11 10:55:29 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2020-12-15 10:26:28 +0000 |
commit | 87eed438b0cffba111371c25e1d169163f310465 (patch) | |
tree | 6cca58789bfb177e79b2d4525529ef4228b1888c /toolbin | |
parent | bcd9f9d0126d07dc6f93e47618baa6d23fcaf1c2 (diff) | |
download | ghostpdl-87eed438b0cffba111371c25e1d169163f310465.tar.gz |
Reintroduce and update cff std strings "encoding" PS file
and move it to "lib" since we don't actually use it in Postscript any more.
It's only used if we ever need to regenerate the C representation of "known
encodings".
Also, update to include missing strings.
Finally, fix the tool that relies on this "encoding" - .namestring is no
longer exposed as a Postscript operator, so define a local equivalent. And
update the example invocation in the comments
Diffstat (limited to 'toolbin')
-rw-r--r-- | toolbin/encs2c.ps | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/toolbin/encs2c.ps b/toolbin/encs2c.ps index f734b603d..6d8b050ca 100644 --- a/toolbin/encs2c.ps +++ b/toolbin/encs2c.ps @@ -22,8 +22,8 @@ % represent them in a compact format described in src/gscencs.c. % The generated files are named gscedata.[ch] and are included in the % source distribution in the src directory. The canonical invocation is -% gs -dNODISPLAY -q -SO=gscedata.h toolbin/encs2c.ps > src/gscedata.h -% gs -dNODISPLAY -q -SO=gscedata.c toolbin/encs2c.ps > src/gscedata.c +% gs -dNOSAFER -Ilib -dNODISPLAY -q -SO=gscedata.h toolbin/encs2c.ps > src/gscedata.h +% gs -dNOSAFER -Ilib -dNODISPLAY -q -SO=gscedata.c toolbin/encs2c.ps > src/gscedata.c % % NOTE: If the C representation of encodings changes, this file % (toolbin/encs2c.ps), src/gscencs.h, and src/gscencs.c must be kept @@ -33,8 +33,19 @@ % WinAnsiEncoding, StandardEncoding, MacExpertEncoding, SymbolEncoding % for pdfwrite device. % -% gs -dNODISPLAY -q -SO=gdevpdtv.h toolbin/encs2c.ps > src/gdevpdtv.h -% gs -dNODISPLAY -q -SO=gdevpdtv.c toolbin/encs2c.ps > src/gdevpdtv.c +% gs -dNOSAFER -Ilib -dNODISPLAY -q -SO=gdevpdtv.h toolbin/encs2c.ps > src/gdevpdtv.h +% gs -dNOSAFER -Ilib -dNODISPLAY -q -SO=gdevpdtv.c toolbin/encs2c.ps > src/gdevpdtv.c +% +% For "-Ilib" you need to point that at a valid "lib" directory from +% the ghostpdl tree - since gs_css_e.ps now lives there. + +% .namestring is longer available as an operator, define an +% equivalent here +/.namestring +{ + dup length string cvs +} bind def + % ================ Write header file ================ % |