Bug 138526 - Directional single quotation marks are not rotated in vertical text
Summary: Directional single quotation marks are not rotated in vertical text
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-11-07 16:09 PST by Myles C. Maxfield
Modified: 2014-12-05 21:13 PST (History)
9 users (show)

See Also:


Attachments
Patch (3.71 KB, patch)
2014-11-07 16:10 PST, Myles C. Maxfield
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2014-11-07 16:09:39 PST
Directional single quotation marks are not rotated in vertical text
Comment 1 Myles C. Maxfield 2014-11-07 16:10:56 PST
Created attachment 241217 [details]
Patch
Comment 2 Myles C. Maxfield 2014-11-07 16:11:50 PST
<rdar://problem/14393598>
Comment 3 Darin Adler 2014-11-08 13:39:31 PST
Comment on attachment 241217 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=241217&action=review

> Source/WebCore/platform/graphics/FontGlyphs.cpp:149
> +    if (character == 0x02016 || character == 0x02020 || character == 0x02021 || character == 0x2030 || character == 0x02031)
>          return true;

Strange that we write 0x2030 and not 0x02030 here given the rest of the surrounding code.

This entire function has a coding style that is not great. A whole long data table written out as separate function calls, with no rationale given for the choices of the values or even a summary at the top. Did this come from some table in some specification? Does ICU have a function for this, and if so, why aren’t we using that?
Comment 4 Myles C. Maxfield 2014-11-09 08:05:44 PST
Comment on attachment 241217 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=241217&action=review

>> Source/WebCore/platform/graphics/FontGlyphs.cpp:149
>>          return true;
> 
> Strange that we write 0x2030 and not 0x02030 here given the rest of the surrounding code.
> 
> This entire function has a coding style that is not great. A whole long data table written out as separate function calls, with no rationale given for the choices of the values or even a summary at the top. Did this come from some table in some specification? Does ICU have a function for this, and if so, why aren’t we using that?

Yes: http://www.unicode.org/reports/tr50/tr50-6.Orientation.txt

The numbers in this function originally came from a giant switch statement; I'm guessing the leading 0s existed to make the case statements right-aligned.

I looked for an ICU function, but couldn't find one. I emailed Kida-san last week to ask if he knows of one.
Comment 5 WebKit Commit Bot 2014-12-05 21:13:41 PST
Comment on attachment 241217 [details]
Patch

Clearing flags on attachment: 241217

Committed r176903: <http://trac.webkit.org/changeset/176903>
Comment 6 WebKit Commit Bot 2014-12-05 21:13:47 PST
All reviewed patches have been landed.  Closing bug.