[XeTeX] Discretionary line-breaks in Tamil

Zdenek Wagner zdenek.wagner at gmail.com
Sun Sep 29 22:39:02 CEST 2019


Hi,

The TeXbook in Appendix H (pages 454–455, paperback edition) says that the
character must be between 0 and 255 and must exist in the font. 255 is, of
course, for non-unicode implementatin of TeX. (That's why
\hyphenchar\the\font=-1 inhibits hyphenation. ) It also says:

The control sequence \- is equivalent to \discretionary(\char h}{}{} where
h is the \hyphenchar of the current font, provided that h lies between 0
and 255. Otherwise \- is equivalent to \discretionary{}{}{}.

Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz


ne 29. 9. 2019 v 21:03 odesílatel Suki Venkat <suki.venkat at gmail.com>
napsal:

> Hi,
>
> I went hacking at in the load-hyph-ta.tex file (adding the yellow bits):
>
>     % Set \lccode for ZWSP, ZWNJ and ZWJ.
>     \lccode"200B="200B
>     \lccode"200C="200C
>     \lccode"200D="200D
>     \input hyph-ta.texmktexfmt xelatex
>
> Then went on to hack the hyph-ta.tex file and did "mktexfmt xelatex"
> to produce nice results using XeLaTeX.
> It turned out the uni200B was not defined in the font, although uni200C
> and uni200D were defined.
> Then managed define uni200B in fontforge and it does seem to produce the
> same result even if the uni200B (ZWSP or DLB) is defined in the font or not.
>
> Suki
>
>
>
>
> On Sun, 29 Sep, 2019, 3:56 PM Yannis Haralambous, <yannis1962 at gmail.com>
> wrote:
>
>> that discretionary. Better solution would be to redefine \hyphenchar
>> of the font as an invisible character with a sero width. I am not sure
>>
>>
>> Beware that the glyph *must exist in the font*, you cannot just use an
>> arbitrary
>> unoccupied glyph position in the font. If the position does not exist,
>> there will be
>> no hyphenation at all in your document. For example, the command
>>
>> \hyphenchar\font=-1
>>
>> (asking for the glyph at position -1, which does not exit)
>>
>> is a very good way for stopping hyphenation.
>>
>> So you must find a font that has an invisible zero-width glyph, or open
>> the font
>> and add that glyph.
>>
>>
>> [image: IMT Atlantique] <http://www.imt-atlantique.fr>
>> *Yannis HARALAMBOUS*
>> Professor
>> Computer Science Department
>> UMR CNRS 6285 Lab-STICC
>> [image: Site web IMT Atlantique]
>> <http://perso.telecom-bretagne.eu/yannisharalambous/>[image: Twitter IMT
>> Atlantique] <https://twitter.com/y_haralambous>[image: LinkedIn IMT
>> Atlantique]
>> <https://www.linkedin.com/in/yannis-haralambous-5529073?trk=hp-identity-name>
>> Technopôle Brest-Iroise CS 83818
>> 29238 Brest Cedex 3, France
>> Une école de l'IMT <http://www.imt.fr>
>>
>>
>>
>> *The history of linguistics is largely a history of misreadings, of
>> failed communication between authors and readers, exacerbated by the
>> illusion that communication has successfully occurred.*     (John E.
>> Joseph)
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/xetex/attachments/20190929/511d90a8/attachment.html>


More information about the XeTeX mailing list