[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-10851-g50815da

commit-queue at webkit.org commit-queue at webkit.org
Wed Dec 22 18:23:02 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit d1f901a99f2bbb0d6c243fb7838ec3ed3af5913b
Author: commit-queue at webkit.org <commit-queue at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Fri Dec 10 10:36:49 2010 +0000

    2010-12-10  Koan-Sin Tan  <koansin.tan at gmail.com>
    
            Reviewed by Dan Bernstein.
    
            Bopomofo should be part of CJK Ideographs in WebCore/platform/graphics/Font.cpp
            https://bugs.webkit.org/show_bug.cgi?id=50668
    
            No new tests. Note that, as said in the bug report discussion,
            I did have a test case for the bug. However, to show the test
            case you need some "broken" Microsoft copyrighted fonts, such
            as DFKai-SB.
    
            * platform/graphics/Font.cpp:
            (WebCore::Font::isCJKIdeograph):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73706 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 3cd5044..b155891 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,18 @@
+2010-12-10  Koan-Sin Tan  <koansin.tan at gmail.com>
+
+        Reviewed by Dan Bernstein.
+
+        Bopomofo should be part of CJK Ideographs in WebCore/platform/graphics/Font.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=50668
+
+        No new tests. Note that, as said in the bug report discussion,
+        I did have a test case for the bug. However, to show the test 
+        case you need some "broken" Microsoft copyrighted fonts, such
+        as DFKai-SB.
+
+        * platform/graphics/Font.cpp:
+        (WebCore::Font::isCJKIdeograph):
+
 2010-12-10  Carlos Garcia Campos  <cgarcia at igalia.com>
 
         Reviewed by Martin Robinson.
diff --git a/WebCore/platform/graphics/Font.cpp b/WebCore/platform/graphics/Font.cpp
index 6bbf3d7..f123fcb 100644
--- a/WebCore/platform/graphics/Font.cpp
+++ b/WebCore/platform/graphics/Font.cpp
@@ -338,6 +338,13 @@ Font::CodePath Font::codePath(const TextRun& run) const
 
 bool Font::isCJKIdeograph(UChar32 c)
 {
+    // 0x2C7 Caron, Mandarin Chinese 3rd Tone
+    // 0x2CA Modifier Letter Acute Accent, Mandarin Chinese 2nd Tone
+    // 0x2CB Modifier Letter Grave Access, Mandarin Chinese 4th Tone 
+    // 0x2D9 Dot Above, Mandarin Chinese 5th Tone 
+    if ((c == 0x2C7) || (c == 0x2CA) || (c == 0x2CB) || (c == 0x2D9))
+        return true;
+
     // The basic CJK Unified Ideographs block.
     if (c >= 0x4E00 && c <= 0x9FFF)
         return true;
@@ -361,7 +368,15 @@ bool Font::isCJKIdeograph(UChar32 c)
     // CJK Symbols and Punctuation.
     if (c >= 0x3000 && c <= 0x303F)
         return true;
+   
+    // Bopomofo
+    if (c >= 0x3100 && c <= 0x312F)
+        return true;
     
+    // Bopomofo Extended
+    if (c >= 0x31A0 && c <= 0x31BF)
+        return true;
+ 
     // CJK Strokes.
     if (c >= 0x31C0 && c <= 0x31EF)
         return true;

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list