diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2021-10-25 11:24:26 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2021-10-25 13:27:02 +0100 |
commit | b4e8434defb8e05ea05bb130b92217290efd2fba (patch) | |
tree | 2226c326146d252cffd5f325c7d9127680d761a6 /toolbin | |
parent | 2594c15201e796759f095d70ba747d0e56e5c318 (diff) | |
download | ghostpdl-b4e8434defb8e05ea05bb130b92217290efd2fba.tar.gz |
pdfwrite - regenerate gs_c_pdf_glyph_type array after Encoding changes
Commit 4d91c6ad3e76e19f36d23a50dce253fbbc7d0560 manually altered the
'known encoding' to add a number of missing strings. However this did
not update an array which pdfwrite depends upon leading to incorrect
ToUnicode entries being emitted.
This commit regenerates the files gscedata.c, gscedata.h, gdevpdtv.c
and gdevpdtv.h using the program toolbin/encs2c.ps which is the correct
method for updating these files (from the stored encodings).
In addition commit 87eed438b0cffba111371c25e1d169163f310465 updated
the encs2c.ps program by adding some information to the comments
regarding using the program, specifically to include gs_css_e.ps.
This commit also updates the program still further to emit the current
boilerplate for the copyright comments, stop writing the old CVS ID
and adds a sterner warning to the comments in the .c and .h files about
using the program to regenerate these files rather than manually
modifying them.
Diffstat (limited to 'toolbin')
-rw-r--r-- | toolbin/encs2c.ps | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/toolbin/encs2c.ps b/toolbin/encs2c.ps index 773b8a809..72a27de7d 100644 --- a/toolbin/encs2c.ps +++ b/toolbin/encs2c.ps @@ -20,6 +20,11 @@ % for reference. It reads in the known Encodings and pseudo-Encodings % (see the definition of /encfiles below) and generates C files that % represent them in a compact format described in src/gscencs.c. +% +% If this file does need to be run again (and it has been in December 2020) you +% should generate all 4 files (gscedata.[c,h] and gdevpdtv.[c,h] by running this +% program 4 times, once for each output file. +% % The generated files are named gscedata.[ch] and are included in the % source distribution in the src directory. The canonical invocation is % gs -dNOSAFER -Ilib -dNODISPLAY -q -SO=gscedata.h toolbin/encs2c.ps > src/gscedata.h @@ -324,20 +329,24 @@ estrs readonly pop dup 1 eq { exit } if exch 1 add exch -1 bitshift } loop pop def + + % Write the initial boilerplate. (/* Copyright (C) 2001-2021 Artifex Software, Inc.) = ( All Rights Reserved.) = -( ) = +() = ( This software is provided AS-IS with no warranty, either express or) = ( implied.) = () = -( This software is distributed under license and may not be copied, modified) = -( or distributed except as expressly authorized under the terms of that) = -( license. Refer to licensing information at http://www.artifex.com/) = -( or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,) = -( Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.) = +( This software is distributed under license and may not be copied,) = +( modified or distributed except as expressly authorized under the terms) = +( of the license contained in the file LICENSE in this distribution.) = +() = +( Refer to licensing information at http://www.artifex.com or contact) = +( Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,) = +( CA 94945, U.S.A., +1(415)492-9861, for further information.) = + (*/) = -(/* $) print (Id: ) print O print ( $) print ( */) = (/*) = ( * This file contains substantial parts of toolbin/encs2c.ps,) = ( * which generated the remainder of the file mechanically from) = @@ -348,6 +357,9 @@ encfiles { ( * This source file is maintained manually under source code control,) = ( * however its content should be regenerated by using encs2c.ps) = ( * if changes are required.) = +( * You should not manually alter this file! If you regenerate it using) = +( * encs2c.ps you must regenerate all 4 files; base/gscedata.[c|h]) = +( * and devices/vector/gdevpdtv.[c|h]) = ( */) = () = |