Open Bug 203016 Opened 17 years ago Updated 2 years ago
make line/word breaker lang-dependent
Spin off of bug 162949 and bug 164759 Currently, line-breaking is based on JIS X 4051, but some lang-specific tailoring may be necessary. The framework is already there and a draft patch was uploaded as attachment 96285 [details] [diff] [review]. In addition to that, the following places have to be modified as outlined in bug 162949 comment #17: http://lxr.mozilla.org/seamonkey/source/content/base/src/nsDocument.cpp#1037 http://lxr.mozilla.org/seamonkey/source/content/base/src/nsPlainTextSerializer.cpp#178 http://lxr.mozilla.org/seamonkey/source/editor/libeditor/text/nsInternetCiter.cpp#236 http://lxr.mozilla.org/seamonkey/source/editor/libeditor/text/nsWrapUtils.cpp#72 http://lxr.mozilla.org/seamonkey/source/editor/txtsvc/src/nsTextServicesDocument.cpp#4896 http://lxr.mozilla.org/seamonkey/source/extensions/spellcheck/src/nsSpellCheckUtils.cpp#191
Hey, would it be possible to document the code some in the process? nsTextFrame is pretty much unreadable, with very long loops, gotos, and almost no comments.... Just having an idea of what's going on could be nice...
You need to log in before you can comment on or make changes to this bug.