[tex-hyphen] hyphenation patterns for URLs

Werner LEMBERG wl at gnu.org
Tue Oct 14 22:07:04 CEST 2008


> By the way, what about a new language with hyphenation patterns for
> URLs and file names?

We need a zero-width, invisible hyphenation character in the font, and
glyphs which look like `.' and `-' but have different character codes,
say, `|' and `_', respectively, so that they can be used within the
patterns (and both characters must be activated in the translation
file for `patgen').  Similarly, we need glyphs for `0' to `9' with
different character codes.  Then the following hyphenation patterns

  a1|  ...  z1|  <0>1|  ...  <9>1|  ...
  a1_  ...  z1_  <0>1_  ...  <9>1_  ...
  /1a  ...  /1b  /1<0>  ...  /1<9>  ...

(where <x> is the character code for glyph `x') together with a
virtual font for the character code mapping should do the trick.


    Werner


More information about the tex-hyphen mailing list