Menu

#13 hyphenation for longer words

Future
closed
5
2018-02-04
2012-05-01
No

Allow hyphenation of words, longer than 64 characters.

Discussion

  • Khaled Hosny

    Khaled Hosny - 2012-07-31

    Could you provide some test files?

     
  • Khaled Hosny

    Khaled Hosny - 2012-07-31
    • assigned_to: jfkew --> khaledhosny
     
  • Mojca Miklavec

    Mojca Miklavec - 2012-07-31

    Test for Amharic

     
  • Khaled Hosny

    Khaled Hosny - 2012-08-04

    I think the text should set `\XeTeXlinebreaklocale "am"` to enable line breaking at Ethiopic word space sign (why polyglossia is not setting that?), but even then I don't get any hyphenation at all, so I think there is some thing wrong in the test.

     
  • Mojca Miklavec

    Mojca Miklavec - 2012-08-04

    No hyphenation at all? Your language.dat contains the following, right?

    ethiopic loadhyph-mul-ethi.tex
    =amharic
    =geez

    XeTeXlinebreaklocale could help if there is support for that language built in (I actually didn't check that). But in case that you could find a way to break longer words than 64 characters, that would still be great.

     
  • Khaled Hosny

    Khaled Hosny - 2012-08-05

    `\XeTeXlinebreaklocale` definitely improves line breaking (the locale passed to it does not seem to matter, it seems merely activating it enabled breaking at the Ethiopic space symbol).

    If I replace the space symbol with regular space, I get hyphenation, so it seems even with `\XeTeXlinebreaklocale` XeTeX is still trying to hyphenate the whole paragraph at once which makes no sense IMO. Increasing the hyphenation limit just works around this, but it does not scale (unless the limit is removed altogether).

    I tried a naïve attempt to increase the limit, but it is hard coded all over the place (the literal value, no macro or anything), so I’ve to hunt it down.

     
  • Jonathan Kew

    Jonathan Kew - 2018-02-04
    • status: open --> closed
    • Group: --> Future
     
  • Jonathan Kew

    Jonathan Kew - 2018-02-04

    This was implemented in the form of a new integer parameter \XeTeXhyphenatablelength (default value is 63, for backward compatibility; maximum is 4095). This has been available since version 0.99996 (in TeX Live 2016).

     

Log in to post a comment.