Open GoogleCodeExporter opened 9 years ago
Thanks for pointing to this.
When using the bookmarklet Hyphenator.js tries to hyphenate all content. When
it is used on a site with many different languages it therefor downloads all
available pattern languages.
On Wikipedia there is a list of language links (on the left side), each having
a different language. Thus Hyphenator.js loads all those pattern files and
tries to store them in local storage (for later reuse). This will
a) take too much time
b) probably summon a QuotaExceededError (at least in the trunk-version)
c) causing the described hang
While b) can be fixed by turning off the storage, a) and c) can't…
Hyphenator.js should check if elements with a different language have a special
text-lenght, worth downloading the patterns and hyphenating.
Original comment by mathiasn...@gmail.com
on 13 Mar 2014 at 7:40
it's not that easy (as always;-)
New idea:
- collect the elements to be hyphenated
- weight them in function of their children with the same language and their
text-length
- only treat elements with a user defined weight
Original comment by mathiasn...@gmail.com
on 14 Mar 2014 at 7:29
Original issue reported on code.google.com by
ssam...@gmail.com
on 3 Feb 2014 at 11:18