[XeTeX] Discretionary line-breaks in Tamil

Suki Venkat suki.venkat at gmail.com
Sun Sep 29 21:02:08 CEST 2019


I went hacking at in the load-hyph-ta.tex file (adding the yellow bits):

    % Set \lccode for ZWSP, ZWNJ and ZWJ.
    \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.


On Sun, 29 Sep, 2019, 3:56 PM Yannis Haralambous, <yannis1962 at gmail.com>

> 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>
> Professor
> Computer Science Department
> [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/20190930/d3c0c6f1/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xelatex-tamil-DLB.png
Type: image/png
Size: 159684 bytes
Desc: not available
URL: <https://tug.org/pipermail/xetex/attachments/20190930/d3c0c6f1/attachment-0001.png>

More information about the XeTeX mailing list