Created attachment 54354 [details] ODT included surrogate pair. Probably the letter of the surrogate pair is counted in two characters. I attach ODT file.
Maybe I am the only one, who does not get it, but could you explain it a bit more what is wrong...
Created attachment 56004 [details] explanation drawing please refer to explanation drawing.
I explain it with java as an example. if treat letter of the surrogate pair, any letter is type of 'char'. In contrast , any letter of the surrogate pair have to treat type of 'int'. if count number of letters of string of characters, former is String.length(), the latter is String.codePointCount(beginIndex, endIndex). http://d.hatena.ne.jp/t_gaisho/20101112/p1 However, that sure to use java.text.BreakIterator when closely count about the latter. http://d.hatena.ne.jp/t_gaisho/20101124/p1
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
LibO 3.5.0 RC-2 isn't improved, too.
Dear bug submitter! Due to the fact, that there are a lot of NEEDINFO bugs with no answer within the last six months, we close all of these bugs. To keep this message short, more infos are available @ https://wiki.documentfoundation.org/QA/NeedinfoClosure#Statement Thanks for understanding and hopefully updating your bug, so that everything is prepared for developers to fix your problem. Yours! Florian
Confirmed with master in Windows.
Never confirmed by QA - moving to UNCONFIRMED.
I reproduced. LibO: 4.3.4 , 4.4.0 rc1 OS: Debian wheezy
Created attachment 111342 [details] Surrogate Pair test file This file setting. 1. Menu Format - Paragraph 2. Click "Alignment" tab 3. Select Justified - Jistified
reproduce step 1. Install Japanse Fonts Debian or Ubuntu $ sudo aptitude install fonts-ipaexfont-gothic Win or Mac Download and install file. http://ipafont.ipa.go.jp/index.html#en 2. start LibreOffice 3. Open attachment 111342 [details] file Surrogate pair characters count as width of 2 characters.
Created attachment 111343 [details] Screenshot of test file
Reference: http://www.unicode.org/versions/Unicode6.2.0/ch02.pdf
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (5.0.4 or later) https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT: - Update the version field - Reply via email (please reply directly on the bug tracker) - Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for your help! -- The LibreOffice QA Team This NEW Message was generated on: 2016-01-17
Mark Hung committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=dcef76b34aa1dca8389b3c068dc3d82a11d2c382 tdf#43740 Count CJK characters to distribute spaces. It will be available in 5.3.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Mark Hung committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=bd041161f3dc65a36245ce271007dce003529a9c tdf#43740 Do not use UniscribeLayout for CJK Ideograph Variations. It will be available in 5.3.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Mark Hung committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=6130ff73347b5e633babf9555ee1417462cc11ef tdf#43740 Don't add space after ininvisible characters. It will be available in 5.3.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Mark Hung committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=53778372a269da7c51958a7e234df4d41027fb77 tdf#43740 SimpleWinLayout::LayoutText only advance position for actual glyphs. It will be available in 5.3.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.