Re: [XeTeX] are the intercharclasses mentioned in interchar.pdf correct?

2017-03-27 Thread David Carlisle
On 27 March 2017 at 19:37, jfbu  wrote:
> ..

ah, I don't think I'd noticed xetex was using _quite_ so many digits
in its version number:-)
as you say the test is a bit suspect but it works in the one case it
needs to work so D guess it's OK!

David


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] are the intercharclasses mentioned in interchar.pdf correct?

2017-03-27 Thread jfbu

Le 27 mars 2017 à 18:36, David Carlisle  a écrit :

> For newer xetex the package needs to be updated for the larger range,
> the test used in teh latex format
> 
> is
> 
> \ifdim\the\XeTeXversion\XeTeXrevision\p@>0.3\p@
>  \chardef\e@alloc@intercharclass@top=4095
> \else
>  \chardef\e@alloc@intercharclass@top=255
> \fi

hi David,

I don't know the details here but
as

*\message{\number\dimexpr0.1pt}
65530
*\message{\number\dimexpr0.2pt}
65531
*\message{\number\dimexpr0.3pt}
65531
*\message{\number\dimexpr0.4pt}
65532
*\message{\number\dimexpr0.5pt}
65533
*\message{\number\dimexpr0.6pt}
65533
*\message{\number\dimexpr0.7pt}
65534
*\message{\number\dimexpr0.8pt}
65535
*\message{\number\dimexpr0.9pt}
65535

it looks a bit of luck that it jumps at 0.4.

Just in case people need to distinguish 0.8 from 0.9
or 0.5 from 0.6 if that is actually relevant
to XeTeX and want to copy this method ;-)

Jean-François





--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] are the intercharclasses mentioned in interchar.pdf correct?

2017-03-27 Thread Mike "Pomax" Kamermans

On 3/27/2017 9:36 AM, David Carlisle wrote:

\ifdim\the\XeTeXversion\XeTeXrevision\p@>0.3\p@
   \chardef\e@alloc@intercharclass@top=4095
\else
   \chardef\e@alloc@intercharclass@top=255
\fi


nice, cheers

- Mike



--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] are the intercharclasses mentioned in interchar.pdf correct?

2017-03-27 Thread David Carlisle
On 27 March 2017 at 17:18, Mike "Pomax" Kamermans
 wrote:
> Are the predefined classes from
> http://mirror.utexas.edu/ctan/macros/xetex/latex/interchar/interchar.pdf
> still correct? are classes 255 (for boundary) and 256 (for unused) still the
> right ones, are those now 4095 and 4096? (based on some answers I've run
> into on stackoverflow)
>
>
> - Mike "Pomax" Kamermtna

For newer xetex the package needs to be updated for the larger range,
the test used in teh latex format

is

\ifdim\the\XeTeXversion\XeTeXrevision\p@>0.3\p@
  \chardef\e@alloc@intercharclass@top=4095
\else
  \chardef\e@alloc@intercharclass@top=255
\fi



with \e@alloc@intercharclass@top being the maximum value allocated by
\newXeTeXintercharclass

David


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex