Description: When using the Ctrl key to select a distant string and add ruby, extra characters are added. Steps to Reproduce: 1.Open the sample file in Writer 2.Use the Ctrl key to select multiple distant kanji characters 3.Select Menu [Format]-[Asian Phonetic Guide] 4.Input to "Ruby text" and push "Apply" button Actual Results: The second and subsequent strings with ruby annotation are added after the first string. Expected Results: Ruby is placed in the correct position of the text. Reproducible: Always User Profile Reset: No Additional Info: Version: 25.8.3.2 (X86_64) Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e CPU threads: 12; OS: Linux 6.1; UI render: default; VCL: gtk3 Locale: ja-JP (ja_JP.UTF-8); UI: en-US Calc: threaded I couldn't reproduce it below: Version: 24.8.7.2 (X86_64) / LibreOffice Community Build ID: e07d0a63a46349d29051da79b1fde8160bab2a89 CPU threads: 12; OS: Linux 6.1; UI render: default; VCL: gtk3 Locale: ja-JP (ja_JP.UTF-8); UI: ja-JP Calc: threaded According to Sabr0's comment, this was caused by the following commit change: https://git.libreoffice.org/core/+/3d9b8701cb1751e4139ffa24f72bb836eb877fd1 https://ask.libreoffice.org/t/topic/129480/3
Created attachment 204379 [details] This is a sample file. It shows the state before putting Ruby, the correct state, and the actual state.
@jonathan, Could you please check this issue?
Writer should behave better in this case, so I'm marking this bug new. Writer's Asian Phonetic Guide assumes the selection will always be contiguous. This makes it possible to edit the base text from within the dialog, but it's not clear how to allow that with non-contiguous selections (adding selection mode). More design work is needed.
Related question in the ask site: https://ask.libreoffice.org/t/topic/129480
Jonathan Clark committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/1e275b2e0f07249a88d760b5a9c63a9589737d3e tdf#169791 sw: Fix trampled ruby base text with adding selection It will be available in 26.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Jonathan Clark committed a patch related to this issue. It has been pushed to "libreoffice-25-8": https://git.libreoffice.org/core/commit/dbde91402ed01ae7b81ce0da48aaa6fe4dc58dfe tdf#169791 sw: Fix trampled ruby base text with adding selection It will be available in 25.8.5. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Jonathan Clark committed a patch related to this issue. It has been pushed to "libreoffice-26-2": https://git.libreoffice.org/core/commit/1cf5e10ad9575262f04cd163afb07766ddbb7da0 tdf#169791 sw: Fix trampled ruby base text with adding selection It will be available in 26.2.0.0.beta2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.