xles / hyphenator

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

class="urlhyphenate" #188

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
My scenario is where you have text within a hyphenated block of text that 
should be handled like a url or email address. For example a block of text 
containing the string "Content-Type: application/json". Inserting hyphens in 
this string is incorrect, instead it would be useful to indicate that this 
"string" should be hyphenated as a url (perhaps by wrapping with span, thus: 
<span class="urlhyphenate">Content-Type: application/json</span>).

Original issue reported on code.google.com by mathiasn...@gmail.com on 11 Jul 2013 at 6:40

GoogleCodeExporter commented 9 years ago
Did some tests on this. It's not easy to implement, though.

Best way will be a config to define a 'hyphen-method' (e.g. word, url, none) 
and a 'hyphen-char' for a specific class.

Original comment by mathiasn...@gmail.com on 16 Jul 2013 at 7:31

GoogleCodeExporter commented 9 years ago
fixed in r1228

Still needs documentation

Original comment by mathiasn...@gmail.com on 14 Mar 2014 at 7:43

GoogleCodeExporter commented 9 years ago

Original comment by mathiasn...@gmail.com on 17 Oct 2014 at 8:00