[XeTeX] Re: [MacTeX] XeTeX

Ross Moore ross at ics.mq.edu.au
Tue Apr 13 15:08:32 CEST 2004


Hi Bruno,

On 13/04/2004, at 4:31 PM, Bruno Voisin wrote:

> Le 13 avr. 04, à 02:37, Ross Moore a écrit :
>
>> This could be related to why I'm having trouble with the CM-test.tex
>> example; but if so, it must mean that XeTeX has some paths hard-coded
>> into it, where it looks for the OTF fonts. That's surely a bad thing.
>
> Installing XeTeX adds in /Library/teTeX/share/texmf/web2c/texmf.cnf 
> the lines:
>
> % OpenType fonts
> OTFFONTS = .;$TEXMF/fonts/otf//

Yes. But if you trace an xetex job using

    xetex -kpathsea-debug=-1  testfile.tex

then there is no place where OTFFONTS is used,
nor are any .otf font files read.

So either the metric information is pre-compiled into  xetex
or  xetex.xfmt, or  xetex doesn't actually use kpathsea to find
these files --- hence a path must be compiled-in somewhere...


  ... or xetex doesn't use those font files at all.

This latter conclusion is consistent with the .otf files being
used only by  xdv2pdf .  This app has paths compiled-in
   (use  strings `which xdv2pdf` to see this)
as well as the OTFFONTS variable name. But there's no tracing
option, to see which resources it actually finds.


>> Now that you have a working xelatex as well as xetex, would
>> you please do the short test that I gave in a previous message:
>>
>> [glenlivet:] rossmoor% more mtest
>> \mathchardef\tmp\mathcode`\(
>> \show\tmp
>> \bye
>>
>> Check the result of processing this with:
>>   tex,  pdftex,  etex,  pdfetex  and  xetex .
>
> I ran the test from within TeXShop.

> With XeTeX:
>
>> This is XeTeXk, Version 3.14159-2.1-0.3 (Web2C 7.5.2)
>>  %&-line parsing enabled.
>> entering extended mode
>> (./mtest.tex
>> ! Bad mathchar (67108904).
>> l.1 \mathchardef\tmp\mathcode`\(
>>
>> ?
>> > \tmp=\mathchar"0.
>> l.2 \show\tmp
>>
>> ?
>>  )
>> No pages of output.
>> Transcript written on mtest.log.
>
> so I get the same error as you do.

Great. That confirms it's not just my installation that has problems.
Next try the following:

\count255="4028
\showthe\count255
\mathcode`\(="4028
\count255=\mathcode`\(
\showthe\count255
\bye


TeX should give:

[glenlivet:~/Sources/XeTeX/XeTeX samples] rossmoor% tex mtest
This is TeX, Version 3.14159 (Web2C 7.3.7x)
(./mtest
 > 16424.
l.2 \showthe\count255

?
 > 16424.
l.5 \showthe\count255

?
  )
No pages of output.
Transcript written on mtest.log.


   whereas XeTeX gives:

This is XeTeXk, Version 3.14159-2.1-0.3 (Web2C 7.5.2)
  %&-line parsing enabled.
entering extended mode
(./mtest
 > 16424.
l.2 \showthe\count255

?
 > 67108904.
l.5 \showthe\count255

?
  )
No pages of output.
Transcript written on mtest.log.


The left-parenthesis character is at  ascii 40,
hence at code-point 40 (decimal) in Unicode.
Note that:
    16424 = 40 + 2^{14}
67108904 = 40 + 2^{26}

So it looks to me that the lower (at least 8) bits
are correct, but not the upper ones.

Using other characters (e.g. - , = and . ) give similar
results; viz.
   using  \mathcode`\.="013A  ( = 314 = 58 + 2^8 )
   xetex produces:     65594  = 58 + 2^16

Thus it seems that \mathcode values are either being
read incorrectly, or are not being set correctly.
This is something internal to the compiled binary,
and cannot be influenced at the macro/user level.

Since it's just one bit that's wrong (but not always
the same bit!) then hopefully it's easily fixed.


Cheers

	Ross


>
> Cheers,
>
> Bruno
> _______________________________________________
> MacTeX mailing list
> http://tug.org/mailman/listinfo/mactex
>
>
------------------------------------------------------------------------
Ross Moore                                         ross at maths.mq.edu.au
Mathematics Department                             office: E7A-419
Macquarie University                               tel: +61 +2 9850 8955
Sydney, Australia                                  fax: +61 +2 9850 8114
------------------------------------------------------------------------

_______________________________________________
MacTeX mailing list
http://tug.org/mailman/listinfo/mactex



More information about the XeTeX mailing list