Bug 158005 - Character formatting border should be drawn around both Kanji and hiragana characters in Japanese text with furigana notation
Summary: Character formatting border should be drawn around both Kanji and hiragana ch...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.7.1 release
Hardware: All Linux (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Ruby
  Show dependency treegraph
 
Reported: 2023-10-31 11:21 UTC by Ben.Engbers@Be-Logical.nl
Modified: 2023-11-14 14:39 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
An illustration of the problem (8.14 KB, image/png)
2023-10-31 11:21 UTC, Ben.Engbers@Be-Logical.nl
Details
Example document (16.47 KB, application/vnd.oasis.opendocument.text)
2023-11-05 12:49 UTC, Ben.Engbers@Be-Logical.nl
Details
screenshot of difference between with and without rubies (LO 24.2alpha0+) (47.83 KB, image/png)
2023-11-14 14:17 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben.Engbers@Be-Logical.nl 2023-10-31 11:21:33 UTC
Created attachment 190552 [details]
An illustration of the problem

I am using LO 7.5.7.1 on Fedora

In Japanese, one can add hiragana kana to the Kanji (this is called furigana).

In the first line of the example (see attachment), I added furigana to some text.
In the second line, I drew a frame around the same text, without furigana.

The third line show the text with furigana and with a frame.

I don't think it's likely that many others will run into this error but maybe you guys are interested in this anyway.

Ben
Comment 1 Kira Tubo 2023-11-05 04:56:09 UTC
@Ben, Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided. (Please note that the attachment will be public, remove any sensitive information before attaching it. See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 2 Ben.Engbers@Be-Logical.nl 2023-11-05 12:49:32 UTC
Created attachment 190657 [details]
Example document

Based on the sample document, I assume that the Kanji are included in the frame but the furigana is outside the frame.
Comment 3 QA Administrators 2023-11-06 03:13:43 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2023-11-07 16:06:56 UTC
You did not explain what "not rendered well" means in this case. Maybe it means that you don't want the border to extend to the whitespace characters? In that case, select those tabs or spaces and Ctrl-M or Format - Clear Direct Formatting. Is that OK?
Comment 5 Ben.Engbers@Be-Logical.nl 2023-11-07 16:43:13 UTC
Furigana (used for Japanese) is a phonetic notation that accompanies traditional Japanese Kanji characters in the form of hiragana (kana) next to or above the original character.
In furigana, the Kanji, together with the hiragana characters, form a single entity. In a correct rendering, I expect the frame to be drawn around the Kanji as well as the hiragana. Kanji + hiragana + whitespace should all be included in a single frame.
Comment 6 Stéphane Guillou (stragu) 2023-11-14 14:17:00 UTC
Created attachment 190826 [details]
screenshot of difference between with and without rubies (LO 24.2alpha0+)

At least, reproducing the bug that character borders look very broken when applied on text with ruby characters.

See attached screenshot showing character vs paragraph borders on text with vs without ruby characters.

So, as I see it, two separate things here:

(1) clearly broken extension of borders over the whitespace. This should at least behave the same as in text without ruby characters: one single box that includes the whitespace. We can track this in a separate report.

(2) the focus of this report: an enhancement request to include the ruby characters inside the kanji's character border, possibly using a non-rectangular frame. Not sure this is possible without a fundamental change, as ruby characters have their own, separate character style. With the current way it is implemented, it's either kanji and harigana in two separate boxes (by editing the character style/formatting), or the whole paragraph in a single box (changing the paragraph style/formatting).

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 79f92d09ec52f0777fc03ff1d057a11b45e73f6d
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded