[XeTeX] add \hyphenateminwordsize

John Was john.was at ntlworld.com
Sat Sep 12 17:54:42 CEST 2015


Hello

I might be misunderstanding, but would \lefthyphenmin = 2 and 
\righthyphenmin = 3 not solve this?  I have \righthyphenmin set to 3 for all 
the language hyphenation patterns that I need to invoke, but there's no need 
for the left and right settings to be identical.

But as I say, I might not be understanding the problem!


John





-----Original Message----- 
From: Élie Roux
Sent: Saturday, September 12, 2015 4:13 PM
To: xetex at tug.org
Subject: [XeTeX] add \hyphenateminwordsize

Dear XeTeX developers,

In many languages, small words shouldn't be hyphenated, and this is not
always possible with \left/righthyphenmin. For instance, many languages
(Spanish for example) don't want to hyphenate words of 4 letters or
less, but still having \left/righthyphenmin = 2.

Example of the desired hyphenation: "come" (no hyphen), "co-mi-da".

If \left/righthyphenmin == 2, this will hyphen "co-me" (which is not the
desired behavior), and with \left/righthyphemin == 3, it will not hyphen
"comida".

Currently it doesn't seem possible to have the desired behaviour. The
request would be to add \hyphenateminwordsize, that would set the
minimal character length of a word to be hyphenated. In the example,
having \hyphenateminwordsize = 4 and \left/righthyphenmin = 2 would make
the right output.

LibreOffice has a similar option, and LuaTeX will certainly add it:

http://tracker.luatex.org/view.php?id=930

Apparently the patch is not very intrusive. What do you think about
adding it?

Thank you,
-- 
Elie


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



More information about the XeTeX mailing list