Hello, On Mon, Jun 27, 2005 at 11:14:42AM +0200, Hans Hagen wrote:
noreply@sarovar.org wrote:
Patches item #375, was opened at 2005-06-25 03:42 You can respond by visiting: http://sarovar.org/tracker/?func=detail&atid=495&aid=375&group_id=106
why not take this opportunity to add a few more converters:
how about
Regarding uppercase/lowercase: the primitives of the patch converts to uppercase hex (uchex). Do you prefer having pairs of commands for generating hex output: \pdfescapeuchex, \pdfescapelchex \pdffiledumpuchex, \pdffiledumplchex Another possibility are keyword options: \pdfescapehex lc {...} \pdfescapehex uc {...} Variants: * short or long keywords: "lc" vs. "lowercase" * both "lc" and "uc" or one is the default, e.g. uppercase, then just one option is needed for lowercase output.
\pdflchex <number> => [0-f][0-f]... (even number of chars) \pdfuchex <number> => [0-F][0-F]...
* What happens with negative numbers? * same behaviour as \romannumeral * error message, invalid number * What happens with zero? * nothing, same as \romannumeral * 0 * 00 * The perhaps often used case 0-15 is converted to 00-0f with two digits?
\pdflcchar
=> a-z \pdfucchar => A-Z
That means "\pdflcchar 1" expands to "a" and "\pdfucchar 26" to "Z"?
The limitation to numbers from 1 to 26 is not clear to me.
A \pdflcchar
as well as an expandable upper/lowercase (taco and i have this on the agenda anyway)
a) Do you mean an \uppercase and \lowercase that take a
token list and convert the characters in there?
b) Easier to implement should be an uppercase/lowercase command
that takes a <general text>, expands it, makes a string and
applies uppercase/lowercase conversion.
*) Conversion according to \uccode/\lccode?
Or C-locale or something else?
Yours sincerely
Heiko