[pdftex] Question about \pdfincludechars

Gregory Heytings ghe at sdf.org
Sun Aug 21 12:56:18 CEST 2016


>
> Thank you very much, this works... almost!  The only remaining problem 
> is that for some reason I do not understand it does not include 
> character at position 0, in spite of the fact that \count10 starts at 
> 0...  Is this a bug?
>
> For example, if I do \includefont{cmr10} I have chars 1-127 included, if 
> I do \includefont{cmr10} and \char"00 somewhere else I have chars 0-127 
> included (as it should).
>

Indeed, the TeXbook specifies that "Conversion to uppercase means that a 
character is replaced by its \uccode value, unless the \uccode value is 
zero (when no change is made). Conversion to lowercase is similar, using 
the \lccode."  So this solution:

\lccode`\!=<character position>\lowercase{\pdfincludechars\f{!}}

cannot work for character 0.

I also tried:

\catcode`\^^@=11\pdfincludechars\f{^^@}
\catcode`\^^00=11\pdfincludechars\f{^^00}
\catcode`\^^@=11\pdfincludechars\f{`^^@}
\catcode`\^^00=11\pdfincludechars\f{`^^00}
\catcode`\^^@=11\let\z=`^^@\pdfincludechars\f{\z}
\catcode`\^^00=11\let\z=`^^00\pdfincludechars\f{\z}
\catcode`\^^@=11\let\z=`^^@\def\picf{\pdfincludechars\f}\expandafter\picf\expandafter{\z}
\catcode`\^^00=11\let\z=`^^00\def\picf{\pdfincludechars\f}\expandafter\picf\expandafter{\z}
\catcode`\^^@=11\let\z=`^^@\def\picf{\pdfincludechars\f}\expandafter\expandafter\expandafter\picf\expandafter{\z}
\catcode`\^^00=11\let\z=`^^00\def\picf{\pdfincludechars\f}\expandafter\expandafter\expandafter\picf\expandafter{\z}
\catcode`\^^@=11\setbox10=\hbox{^^@}\immediate\pdfxform10
\catcode`\^^00=11\setbox10=\hbox{^^00}\immediate\pdfxform10

but none of them works.  So... how should I ask pdfTeX to include 
character 0 of a given font?

Gregory


More information about the pdftex mailing list