> x-scaling the em-dash which is often two wide<br><br>I don't think the m-dash is "often too wide": it is defined by the length of "m" in the particular font. I think you wanted to say that you don't like the size of an m-dash and want an in-between-n-and-m-dash (now that's something for hyphenation :-)). I'm not sure if this is good typographical practice, though.<br>
<br>Rembrandt<br><br><br><div class="gmail_quote">On Tue, Oct 6, 2009 at 7:14 AM, Vadim Radionov <span dir="ltr"><<a href="mailto:vadim.radionov@gmail.com">vadim.radionov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank you, Jonathan,<br>
<br>
That was my obvious typo -- i mixed up these two token lists. This<br>
way it works<br>
fine!<br>
<br>
Yours,<br>
<br>
Vadim<br>
<br>
PS. Another problem I've tried to solve with \XeTeXinterchartoks is<br>
x-scaling the em-dash which is often two wide (and copyright sometimes<br>
prohibits changing the font itself). So I can put<br>
<br>
\newXeTeXintercharclass\cyrdash<br>
\XeTeXcharclass `\—\cyrdash<br>
\XeTeXinterchartoks 0 \cyrdash = {\nobreak\hskip.125em\scalebox{.75}[1]}<br>
\XeTeXinterchartoks \cyrdash 0 = {\hskip.125em}<br>
<br>
leaving no spaces around the dash. But unfortunately this does not<br>
work in the very beinning of the paragraph.<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Tue, Oct 6, 2009 at 3:47 PM, Jonathan Kew <<a href="mailto:jfkthame@googlemail.com">jfkthame@googlemail.com</a>> wrote:<br>
> On 6 Oct 2009, at 00:11, Vadim Radionov wrote:<br>
><br>
>> Dear all,<br>
>><br>
>> I'm missing this important detail in the manuals: what is the natural<br>
>> way to get words with hyphen hyphenated in other places than that<br>
>> hyphen?<br>
>><br>
>> I tried<br>
>><br>
>> \XeTeXinterchartokenstate 1<br>
>><br>
>> \XeTeXcharclass `\- 150<br>
>> \XeTeXinterchartoks 150 0 = {\nobreak\hskip0pt}<br>
>> \XeTeXinterchartoks 0 150 = {\hskip0pt}<br>
>><br>
>> and it works almost well -- except for, surprisingly, allowing a break<br>
>> *before* the hyphen.<br>
><br>
> That's not surprising: before the hyphen (class transition from 0->150), you<br>
> have an \hskip. After it (150->0), you have \nobreak\hskip, so you won't get<br>
> a break there -- though you might get one anyway because of the<br>
> discretionary node that's automatically inserted after the hyphen.<br>
><br>
> I think you want<br>
><br>
>> \XeTeXinterchartoks 0 150 = {\nobreak\hskip0pt}<br>
><br>
> to ensure that the \hskip before the hyphen is never taken as a possible<br>
> breakpoint.<br>
><br>
> (BTW, it would be better to use \newXeTeXintercharclass rather than picking<br>
> an arbitrary number...)<br>
><br>
> JK<br>
><br>
><br>
</div></div></blockquote></div><br>