xles / hyphenator

Automatically exported from code.google.com/p/hyphenator
GNU General Public License v3.0
0 stars 0 forks source link

Changing the hyphening character makes the library not work correctly. #140

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Add such a line to the workingexample.html:
Hyphenator.config({hyphenchar:'|'});
...before using run() function
The character can be anything, even a dash.
2. Run workingexample.html in your browser.

You'll see that all the words are sliced with a char of your choice, no matter 
what is their location in the line.
Live example:
http://kremuwa.netii.net/hyphen/WorkingExample.html

The version of Hyphenator is 3.3.0.
Operating sytem: Windows 7
Browser: Mozilla Firefox 4, Google Chrome 11

Original issue reported on code.google.com by krem...@gmail.com on 13 May 2011 at 10:11

GoogleCodeExporter commented 9 years ago
This is not a bug and intended behaviour.

Hyphenator.js inserts hyphenchar at every possible break-point, since there is 
no way to know where the line ends.
By default the soft hyphen (­) is used which only becomes visible (as a 
hyphen) when the word is broken over two lines.

The hyphenchar option is mainly used for debugging purposes.

Original comment by mathiasn...@gmail.com on 13 May 2011 at 11:35

GoogleCodeExporter commented 9 years ago
I see. Thank you for your answer.

Original comment by krem...@gmail.com on 13 May 2011 at 1:15

GoogleCodeExporter commented 9 years ago
Issue 191 has been merged into this issue.

Original comment by mathiasn...@gmail.com on 26 Aug 2013 at 1:30