[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:
http://sarovar.org/tracker/?func=detail&atid=495&aid=371&group_id=106
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:
Hello,
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
anymore.
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
stuff.
Patch is applied by
patch <EscapeDivers.patch
in directory
src/texk/web2c/pdftexdir
The Makefile needs modifying. After the lines
$(srcdir)/pdftexdir/tex.pch
the line
$(srcdir)/pdftexdir/pdfstrcmp.ch
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
Message:
Logged In: YES
user_id=1276
Hello,
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
convertStringToPDFName().
* pdftoepdf.cc, epdf.h, ptexlib.h
because of changed signature of
convertStringToPDFString()
* 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 -
./Build
Sorry for the inconvenience
Heiko <oberdiek at uni-freiburg.de>
----------------------------------------------------------------------
You can respond by visiting:
http://sarovar.org/tracker/?func=detail&atid=495&aid=371&group_id=106
More information about the ntg-pdftex
mailing list