[NTG-pdftex] [ pdftex-Patches-371 ] Expandable \pdfstrcmp, \pdfescape*, added \pdf(de)escapehex

noreply at sarovar.org noreply at sarovar.org
Tue Jun 21 08:52:34 CEST 2005

Patches item #371, was opened at 2005-06-20 17:11
You can respond by visiting: 

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Heiko Oberdiek (oberdiek)
Assigned to: Nobody (None)
Summary: Expandable \pdfstrcmp, \pdfescape*, added \pdf(de)escapehex

Initial Comment:

the result of last weekend is a patch that
makes \pdfstrcmp (based on Harmut's work)
and the \pdfescape* commands expandable.
Thus \pdflastescaped* are not needed
 I could remove the dependency
on a limited buffer by copying the destination
strings directly in the string pool above the
source string.
  Also the patch adds the fixes of bug 369.

Fourth I add \pdfescapehex and \pdfunescapehex
that implements encoding and decoding for
hexadecimal strings:
* Strings can also be given as hex strings in
  angle brackets.
* Safe method to store and read string data to
  auxiliary files without worrying about catcodes,
  unmachted curly braces, ...
* Help in handling UTF-8/Unicode or other hex coding

Patch is applied by
  patch <EscapeDivers.patch
in directory

The Makefile needs modifying. After the lines
the line
is inserted. This should be done two times for
pdftex and pdfetex.

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>


>Comment By: Heiko Oberdiek (oberdiek)
Date: 2005-06-21 08:52

Logged In: YES 


the first patch missed the changes in pdftex.defines.
Now the patch is reorganized:

Patched files:
  * utils.c
      main part of the fix, especially function
  * pdftoepdf.cc, epdf.h, ptexlib.h
      because of changed signature of
  * pdftex.defines adds new/deletes old entries
    of utils.c
  * pdfstrcmp.ch is added.
  * pdftex.mk, ../pdfetexdir/pdfetex.mk:
    addition of pdfstrcmp.ch

Now the patch must be applied in scr/texk/web2c:
  patch -p0 <EscapeDivers.patch
With the following commands I could compile pdf(e)tex:
  unzip pdftex-1.30.0-rc1.zip
  cd pdftex-1.30.0-rc1/src/texk/web2c
  patch -p0 <../../../../EscapeDivers.patch
  cd -   

Sorry for the inconvenience
  Heiko <oberdiek at uni-freiburg.de>


You can respond by visiting: 

More information about the ntg-pdftex mailing list