[Libreoffice-bugs] [Bug 43740] if 'justified alignment' settings to text that contains code points character, don't aligned both ends.
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Jan 22 17:31:34 PST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=43740
--- Comment #4 from sanada <yujisana at gmail.com> 2012-01-22 17:31:34 PST ---
for JAPANESE:
-------------
javaを例にして説明します。
サロゲートペア文字を扱う場合、任意の文字はchar型であるのに対して、任意のサロゲートペア文字はint型で扱う必要があります。
文字列の文字数をカウントする場合、前者はString.length()、後者はString.codePointCount(beginIndex,endIndex)を使用する必要があります。
http://d.hatena.ne.jp/t_gaisho/20101112/p1
しかし、後者に関しては厳密にカウントする場合にはjava.text.BreakIteratorを利用することが確実です。
http://d.hatena.ne.jp/t_gaisho/20101124/p1
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Libreoffice-bugs
mailing list