Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
aeb5950e
Commit
aeb5950e
authored
Nov 05, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Support eight more script ranges.
parent
25ffa3d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
114 additions
and
10 deletions
+114
-10
analyzer.c
dlls/dwrite/analyzer.c
+38
-2
analyzer.c
dlls/dwrite/tests/analyzer.c
+76
-8
No files found.
dlls/dwrite/analyzer.c
View file @
aeb5950e
...
...
@@ -30,7 +30,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(dwrite);
enum
scriptcode
{
Script_Arabic
=
0
,
Script_Armenian
=
1
,
Script_Balinese
=
2
,
Script_Bengali
=
3
,
Script_Buginese
=
6
,
Script_Canadian
=
8
,
Script_Cherokee
=
11
,
Script_Controls
=
12
,
...
...
@@ -47,16 +49,22 @@ enum scriptcode {
Script_Kannada
=
32
,
Script_Khmer
=
36
,
Script_Lao
=
37
,
Script_Latin
=
38
,
Script_Latin
=
38
,
Script_Lepcha
=
39
,
Script_Limbu
=
40
,
Script_Malayalam
=
44
,
Script_Mongolian
=
45
,
Script_Myanmar
=
46
,
Script_New_TaiLue
=
47
,
Script_NKo
=
48
,
Script_Ogham
=
49
,
Script_OlChiki
=
50
,
Script_Oriya
=
53
,
Script_Runic
=
58
,
Script_Sinhala
=
61
,
Script_Sundanese
=
62
,
Script_Syriac
=
64
,
Script_TaiLe
=
67
,
Script_Tamil
=
68
,
Script_Telugu
=
69
,
Script_Thaana
=
70
,
...
...
@@ -167,7 +175,35 @@ static const struct script_range script_ranges[] = {
/* Khmer: U+1780–U+17FF */
{
Script_Khmer
,
0x1780
,
0x17ff
},
/* Mongolian: U+1800–U+18AF */
{
Script_Mongolian
,
0x1800
,
0x18af
},
{
Script_Mongolian
,
0x1800
,
0x18af
},
/* Limbu: U+1900–U+194F */
{
Script_Limbu
,
0x1900
,
0x194f
},
/* Tai Le: U+1950–U+197F */
{
Script_TaiLe
,
0x1950
,
0x197f
},
/* New Tai Lue: U+1980–U+19DF */
{
Script_New_TaiLue
,
0x1980
,
0x19df
},
/* Khmer Symbols: U+19E0–U+19FF */
{
Script_Khmer
,
0x19e0
,
0x19ff
},
/* Buginese: U+1A00–U+1A1F */
{
Script_Buginese
,
0x1a00
,
0x1a1f
},
/* Tai Tham: U+1A20–U+1AAF */
{
Script_Symbol
,
0x1a20
,
0x1aaf
},
/* Balinese: U+1B00–U+1B7F */
{
Script_Balinese
,
0x1b00
,
0x1b7f
},
/* Sundanese: U+1B80–U+1BBF */
{
Script_Sundanese
,
0x1b80
,
0x1bbf
},
/* Batak: U+1BC0–U+1BFF */
{
Script_Symbol
,
0x1bc0
,
0x1bff
},
/* Lepcha: U+1C00–U+1C4F */
{
Script_Lepcha
,
0x1c00
,
0x1c4f
},
/* Ol Chiki: U+1C50–U+1C7F */
{
Script_OlChiki
,
0x1c50
,
0x1c7f
},
/* Sundanese Supplement: U+1CC0–U+1CCF */
{
Script_Symbol
,
0x1cc0
,
0x1ccf
},
/* Vedic Extensions: U+1CD0-U+1CFF */
{
Script_Devanagari
,
0x1cd0
,
0x1cff
},
/* Phonetic Extensions: U+1D00–U+1DBF */
{
Script_Latin
,
0x1d00
,
0x1dbf
},
/* unsupported range */
{
Script_Unknown
}
};
...
...
dlls/dwrite/tests/analyzer.c
View file @
aeb5950e
...
...
@@ -399,7 +399,9 @@ struct sa_test {
enum
scriptcode
{
Script_Arabic
=
0
,
Script_Armenian
=
1
,
Script_Balinese
=
2
,
Script_Bengali
=
3
,
Script_Buginese
=
6
,
Script_Canadian
=
8
,
Script_Cherokee
=
11
,
Script_Controls
=
12
,
...
...
@@ -416,22 +418,28 @@ enum scriptcode {
Script_Kannada
=
32
,
Script_Khmer
=
36
,
Script_Lao
=
37
,
Script_Latin
=
38
,
Script_Latin
=
38
,
Script_Lepcha
=
39
,
Script_Limbu
=
40
,
Script_Malayalam
=
44
,
Script_Mongolian
=
45
,
Script_Myanmar
=
46
,
Script_New_TaiLue
=
47
,
Script_NKo
=
48
,
Script_Ogham
=
49
,
Script_OlChiki
=
50
,
Script_Oriya
=
53
,
Script_Runic
=
58
,
Script_Sinhala
=
61
,
Script_Sundanese
=
62
,
Script_Syriac
=
64
,
Script_TaiLe
=
67
,
Script_Tamil
=
68
,
Script_Telugu
=
69
,
Script_Thaana
=
70
,
Script_Thai
=
71
,
Script_Tibetan
=
72
,
Script_
Symbol
=
77
Script_
Undefined
=
77
};
static
struct
sa_test
sa_tests
[]
=
{
...
...
@@ -446,16 +454,16 @@ static struct sa_test sa_tests[] = {
},
{
{
' '
,
' '
,
' '
,
' '
,
'!'
,
'$'
,
'['
,
'^'
,
'{'
,
'~'
,
0
},
1
,
{
{
0
,
10
,
{
Script_
Symbol
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
{
{
0
,
10
,
{
Script_
Undefined
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
{
{
' '
,
' '
,
' '
,
'1'
,
'2'
,
' '
,
0
},
1
,
{
{
0
,
6
,
{
Script_
Symbol
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
{
{
0
,
6
,
{
Script_
Undefined
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
{
/* digits only */
{
'1'
,
'2'
,
0
},
1
,
{
{
0
,
2
,
{
Script_
Symbol
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
{
{
0
,
2
,
{
Script_
Undefined
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
{
/* Arabic */
...
...
@@ -526,7 +534,7 @@ static struct sa_test sa_tests[] = {
{
/* Combining Diacritical Marks */
{
0x300
,
0x320
,
0x340
,
0x345
,
0x350
,
0x36f
,
0
},
1
,
{
{
0
,
6
,
{
Script_
Symbol
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
{
{
0
,
6
,
{
Script_
Undefined
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
{
/* Greek and Coptic */
...
...
@@ -694,14 +702,74 @@ static struct sa_test sa_tests[] = {
},
{
/* Khmer */
{
0x1781
,
0x17c1
,
0x1798
,
0x179a
,
0x1797
,
0x17b6
,
0x179f
,
0x17b6
,
0
},
1
,
{
{
0
,
8
,
{
Script_Khmer
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
{
0x1781
,
0x17c1
,
0x1798
,
0x179a
,
0x1797
,
0x17b6
,
0x179f
,
0x17b6
,
0
x19e0
,
0
},
1
,
{
{
0
,
9
,
{
Script_Khmer
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
{
/* Mongolian */
{
0x182e
,
0x1823
,
0x1829
,
0x182d
,
0x1823
,
0x182f
,
0x0020
,
0x182a
,
0x1822
,
0x1834
,
0x1822
,
0x182d
,
0x180c
,
0
},
1
,
{
{
0
,
13
,
{
Script_Mongolian
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
{
/* Limbu */
{
0x1900
,
0x1910
,
0x1920
,
0x1930
,
0
},
1
,
{
{
0
,
4
,
{
Script_Limbu
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
{
/* Tai Le */
{
0x1956
,
0x196d
,
0x1970
,
0x1956
,
0x196c
,
0x1973
,
0x1951
,
0x1968
,
0x1952
,
0x1970
,
0
},
1
,
{
{
0
,
10
,
{
Script_TaiLe
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
{
/* New Tai Lue */
{
0x1992
,
0x19c4
,
0
},
1
,
{
{
0
,
2
,
{
Script_New_TaiLue
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
{
/* Buginese */
{
0x1a00
,
0x1a10
,
0
},
1
,
{
{
0
,
2
,
{
Script_Buginese
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
{
/* Tai Tham */
{
0x1a20
,
0x1a40
,
0x1a50
,
0
},
1
,
{
{
0
,
3
,
{
Script_Undefined
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
{
/* Balinese */
{
0x1b00
,
0x1b05
,
0x1b20
,
0
},
1
,
{
{
0
,
3
,
{
Script_Balinese
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
{
/* Sundanese */
{
0x1b80
,
0x1b85
,
0x1ba0
,
0
},
1
,
{
{
0
,
3
,
{
Script_Sundanese
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
{
/* Batak */
{
0x1bc0
,
0x1be5
,
0x1bfc
,
0
},
1
,
{
{
0
,
3
,
{
Script_Undefined
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
{
/* Lepcha */
{
0x1c00
,
0x1c20
,
0x1c40
,
0
},
1
,
{
{
0
,
3
,
{
Script_Lepcha
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
{
/* Ol Chiki */
{
0x1c50
,
0x1c5a
,
0x1c77
,
0
},
1
,
{
{
0
,
3
,
{
Script_OlChiki
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
{
/* Sundanese Supplement */
{
0x1cc0
,
0x1cc5
,
0x1cc8
,
0
},
1
,
{
{
0
,
3
,
{
Script_Undefined
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
{
/* Phonetic Extensions */
{
0x1d00
,
0x1d40
,
0x1d70
,
0
},
1
,
{
{
0
,
3
,
{
Script_Latin
,
DWRITE_SCRIPT_SHAPES_DEFAULT
}
}}
},
/* keep this as end marker */
{
{
0
}
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment