xles / hyphenator

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

Errors occur in CJK pages #177

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Because CJK languages need no hyphenation, we need not throw an error for them.

It is more reasonable to throw an error when encountering an element whose 
class contains "hyphenate" and its lang is not supported.

Original issue reported on code.google.com by jdh...@gmail.com on 1 Mar 2013 at 2:05

GoogleCodeExporter commented 9 years ago
Hi

Could you please explain this in more detail? I'm not sure if I understood what 
you want.

Why would someone include Hyphenator.js on a CJK webpage when he doesn't need 
hyphenation?

Original comment by mathiasn...@gmail.com on 4 Mar 2013 at 1:29

GoogleCodeExporter commented 9 years ago
For example, if I want to quote an English passage in a Chinese webpage (<html 
lang="zh">), I will enclose it with <blockquote lang="en">. However, Hyphenator 
complains that Chinese is unsupported and stop working. No word is hyphenated.

Although this can be solved with <body lang="zh"> and <html lang="en">, but it 
is misleading for a webpage mainly consisting of non-English.

Original comment by jdh...@gmail.com on 6 Mar 2013 at 11:11

GoogleCodeExporter commented 9 years ago
Thanks

Reproduced in http://hyphenator.googlecode.com/svn/trunk/testsuite/test101.html

Original comment by mathiasn...@gmail.com on 7 Mar 2013 at 12:24

GoogleCodeExporter commented 9 years ago
fixed in r 1153

Original comment by mathiasn...@gmail.com on 12 Apr 2013 at 6:41