"Fossies" - the Fresh Open Source Software Archive

Member "qt-everywhere-src-6.3.1/qtwebengine/src/3rdparty/chromium/third_party/utf/patches/0001-adding-CJK-ideograph-to-isalpha.patch" (8 Jun 2022, 1000 Bytes) of package /linux/misc/qt-everywhere-src-6.3.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 From c7a56e4a83600719e7caf7c4eb7a825d27e198e3 Mon Sep 17 00:00:00 2001
    2 From: mcrouse <mcrouse@google.com>
    3 Date: Wed, 3 Mar 2021 17:57:52 -0800
    4 Subject: [PATCH] adding CJK ideograph to isalpha
    5 
    6 ---
    7  third_party/utf/src/runetype/isalpharune.c | 4 ++--
    8  1 file changed, 2 insertions(+), 2 deletions(-)
    9 
   10 diff --git a/third_party/utf/src/runetype/isalpharune.c b/third_party/utf/src/runetype/isalpharune.c
   11 index 901433d2e056..2be409b902cc 100644
   12 --- a/third_party/utf/src/runetype/isalpharune.c
   13 +++ b/third_party/utf/src/runetype/isalpharune.c
   14 @@ -48,8 +48,6 @@ static Rune singles[][1] = {
   15     { 0x2E2F },
   16     { 0x3400 },
   17     { 0x4DB5 },
   18 -   { 0x4E00 },
   19 -   { 0x9FD5 },
   20     { 0xA9CF },
   21     { 0xAA7A },
   22     { 0xAC00 },
   23 @@ -305,6 +303,8 @@ static Rune ranges[][2] = {
   24     { 0x3131, 0x318E },
   25     { 0x31A0, 0x31BA },
   26     { 0x31F0, 0x31FF },
   27 +    // Added manually to handle CJK ideographs, see crbug/1184370
   28 +   { 0x4E00, 0x9FD5 },
   29     { 0xA000, 0xA48C },
   30     { 0xA4D0, 0xA4FD },
   31     { 0xA500, 0xA60C },
   32 -- 
   33 2.30.1.766.gb4fecdf3b7-goog
   34