Issue 74766 - Drop Caps does not work correctly with specific character 一 (ichi, u+4E00)
Summary: Drop Caps does not work correctly with specific character 一 (ichi, u+4E00)
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 2.1
Hardware: All All
: P3 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2007-02-22 10:01 UTC by naoyuki
Modified: 2017-05-20 11:15 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Screenshot: Drop Caps don't work (5.84 KB, image/jpeg)
2007-02-25 09:07 UTC, matuaki
no flags Details
Screenshot: Drop Caps work (6.62 KB, image/jpeg)
2007-02-25 09:08 UTC, matuaki
no flags Details
Screenshot: Drop Caps don't work(Large image) (38.71 KB, image/jpeg)
2007-02-25 09:23 UTC, matuaki
no flags Details
Screenshot: Drop Caps work(Large image) (38.15 KB, image/jpeg)
2007-02-25 09:24 UTC, matuaki
no flags Details
Document showing problem (10.00 KB, application/vnd.oasis.opendocument.text)
2009-07-24 10:16 UTC, michael.ruess
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description naoyuki 2007-02-22 10:01:43 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)
Comment 1 stefan.baltzer 2007-02-23 15:52:43 UTC
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.
Comment 2 matuaki 2007-02-25 09:07:28 UTC
Created attachment 43339 [details]
Screenshot: Drop Caps don't work
Comment 3 matuaki 2007-02-25 09:08:09 UTC
Created attachment 43340 [details]
Screenshot: Drop Caps work
Comment 4 matuaki 2007-02-25 09:23:53 UTC
Created attachment 43341 [details]
Screenshot: Drop Caps don't work(Large image)
Comment 5 matuaki 2007-02-25 09:24:29 UTC
Created attachment 43342 [details]
Screenshot: Drop Caps work(Large image)
Comment 6 matuaki 2007-02-25 09:50:21 UTC
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. 
Comment 7 lohmaier 2007-03-07 11:37:14 UTC
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
Comment 8 Mathias_Bauer 2007-12-04 12:37:18 UTC
following release status meeting -> target 3.x
Comment 9 michael.ruess 2009-07-24 10:16:22 UTC
Created attachment 63712 [details]
Document showing problem
Comment 10 michael.ruess 2009-07-24 10:17:22 UTC
Wit the attached sample one can see, that "Drop caps" funcionality does not work
with certain Japanese character.
Comment 11 hdu@apache.org 2009-07-24 10:30:18 UTC
@od: WriterEngine does not even try to make these drop caps bigger, it just layouts them as normal text
Comment 12 hdu@apache.org 2009-07-24 10:43:08 UTC
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).
Comment 13 Marcus 2017-05-20 11:15:15 UTC
Reset assigne to the default "issues@openoffice.apache.org".