daps icon indicating copy to clipboard operation
daps copied to clipboard

HTML: Hyphenation of Product Names [sf#190]

Open tomschr opened this issue 9 years ago • 3 comments

Reported by taroth21 on 2013-10-25 13:49 UTC Seems the hyphenation of product names does not work as expected in HTML: I just stumbled across the following hyphenation for "OpenStack" in the HTML output: "OpenS-tack". Is it possible to pass hyphenation patterns for product names?

tomschr avatar Mar 03 '15 15:03 tomschr

Commented by tom_schr on 2013-10-25 15:26 I fear, this is a Firefox bug.

See also Ticket[#33]. We could use special "markers" to help the hyphenation algorithm.

Here is a list of these marker which we could try (all hexadecimal values):

  • U+00AD SOFT HYPHEN
  • U+200B ZERO WIDTH SPACE
  • U+2011 NON-BREAKING HYPHEN
  • U+2027 HYPHENATION POINT
  • U+2060 WORD JOINER
  • U+FEFF ZERO WIDTH NO-BREAK SPACE

Use the following notation to include the above character in your XML:

&#xUNICODE;

For additional information, maybe the article about Unicode Line Breaking Algorithm contains some useful information. Especially Table 1 contains a list of breaking codes.

The Wikipedia article contains detailed information about the line breaking algorithm (German only): https://de.wikipedia.org/wiki/Unicode-Zeilenumbruch-Algorithmus

tomschr avatar Mar 03 '15 15:03 tomschr

Updated by tom_schr on 2013-12-03 09:09

  • labels: --> doc

tomschr avatar Mar 03 '15 15:03 tomschr

Commented by tom_schr on 2013-12-03 09:12 If we know all the details, the information herein could lead to a informative section about how to influence linebreak: how to avoid and how to break.

tomschr avatar Mar 03 '15 15:03 tomschr

Does not look like this is an issue any longer. Closing as WONTFIX

fsundermeyer avatar Nov 06 '23 12:11 fsundermeyer