Follow-up Comment #4, patch #1140 (project wesnoth):
I have removed is_cjk_char duplication according to your advice, added some
comments on those unicode ranges. new patch uploaded.
Adding a global CJK language flag will not affect CJK strings at all, just
let non-CJK wrap goes faster. Because if the language is CJK, all texts, no
matter translated or untranslated, will be tested in the way in my patch,
which is good; if the language is other than CJK, all texts will be tested in
the way that it's in svn now (or better probably remove the rules for handling
Japanese), which is also OK. Mixed CJK strings and English strings will just
be fine if the flag is set to CJK. If flag is set to non-CJK, all the CJK
word wrap rules will get ignored which speed up the wrap. But after your
testing on performance I guess it is not necessary to optimize that anyway.
(file #5523)
_______________________________________________________
Additional Item Attachment:
File name: linebreak-for-cjk-2.patch Size:6 KB
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1140>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs