Apache OpenOffice (AOO) Bugzilla – Issue 74766
Drop Caps does not work correctly with specific character 一 (ichi, u+4E00)
Last modified: 2017-05-20 11:15:15 UTC
How to reproduce: 1. Use Japanese IME/Font installed environment (ex: Japanese Windows or Japanese locale on Solaris/Linux) 2. start Writer 3. enter one paragraph 4. select Format->Paragraph->Drop Caps and click "Display drop caps" and OK 5. move cursor at the beginning of the paragraph 6. turn IME on 7. enter 'i', 'c', 'h', 'i', space and return (CJK character like horizontal bar will be entered) -> This character (U+4E00) is displayed with normal size but not capitalized (reported by matuaki-san - Japanese OO.o community)
SBA: Drop Caps have no effect in one-line paragraphs. The purpose of drop caps is "have a character or a word enlarged so that it has the height of at lease 2 lines in its paragraph". Therefore the minimum setting in the dialog is set to 2. When you try this with western text, "drop caps" have no effect in single-line paragraphs, either. I am a little confused when you write "not capitalized". Capitalisation is "abc" -> "ABC" (in western scripts), but drop caps is only about the size of the letter(s) at the beginnig of a paragraph. They shall not be exchanged by their "capitalisated peer". In your scenario, when you add text until the line breaks, the "ichi" ("One" as far as I remember :-) gains size. From my point of view, all works as expected. Set to "Worksforme". Please comment.
Created attachment 43339 [details] Screenshot: Drop Caps don't work
Created attachment 43340 [details] Screenshot: Drop Caps work
Created attachment 43341 [details] Screenshot: Drop Caps don't work(Large image)
Created attachment 43342 [details] Screenshot: Drop Caps work(Large image)
Thank you for the comment. But I think that it is a perhaps different problem. Please look at image1.jpg and image2.jpg Screenshot image1.jpg and image2.jpg are the same Drop Caps settings. Settings is [Paragraph]-[Drop Caps]-[Settings] Number of characters: 1 Lines: 3 When the first character of the paragraph is Japanese Kanji "ichi",Drop Caps don't work. When the first character of the paragraph is not Japanese Kanji "ichi",Drop Caps normally work. Sorry I'm not a good writer of English. But I want you to know the truth.
reopen, can confirm that it doesn't work with ichi (you don't need to install a japanese IME for this, using gtk's unicode input method (<ctrl>+<shift>+u, then "4e00" or using the charmap works as well to reproduce). The preview in Format|Paragraph shows OK (i.e. large character), but the real text is unchanged. Other characters work as expected. updated the summary to give focus on the fact that the bug can only be reproduced with one single character
following release status meeting -> target 3.x
Created attachment 63712 [details] Document showing problem
Wit the attached sample one can see, that "Drop caps" funcionality does not work with certain Japanese character.
@od: WriterEngine does not even try to make these drop caps bigger, it just layouts them as normal text
Also the drop-caps feature only uses the "ink size" of the involved glyphs. This results in interesting effects when the ink size and the logical size differ much. This can be easily seen when e.g. a period is used in drop-caps mode. The scaling+positioning of the drop caps should be determined by a combination of the ink size (GetTextBoundRect) the logical size (GetTextHeight and eventually GetTextWidth).
Reset assigne to the default "issues@openoffice.apache.org".