Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
486a20c1
Commit
486a20c1
authored
Dec 09, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Dec 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Add Myanmar script.
parent
6b5dca5b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
1 deletion
+35
-1
shape.c
dlls/usp10/shape.c
+8
-0
usp10.c
dlls/usp10/tests/usp10.c
+10
-0
usp10.c
dlls/usp10/usp10.c
+14
-1
usp10_internal.h
dlls/usp10/usp10_internal.h
+3
-0
No files found.
dlls/usp10/shape.c
View file @
486a20c1
...
@@ -452,6 +452,12 @@ static OPENTYPE_FEATURE_RECORD devanagari_features[] =
...
@@ -452,6 +452,12 @@ static OPENTYPE_FEATURE_RECORD devanagari_features[] =
{
MS_MAKE_TAG
(
'c'
,
'a'
,
'l'
,
't'
),
1
},
{
MS_MAKE_TAG
(
'c'
,
'a'
,
'l'
,
't'
),
1
},
};
};
static
OPENTYPE_FEATURE_RECORD
myanmar_features
[]
=
{
{
MS_MAKE_TAG
(
'l'
,
'i'
,
'g'
,
'a'
),
1
},
{
MS_MAKE_TAG
(
'c'
,
'l'
,
'i'
,
'g'
),
1
},
};
static
const
char
*
required_bengali_features
[]
=
static
const
char
*
required_bengali_features
[]
=
{
{
"nukt"
,
"nukt"
,
...
@@ -598,6 +604,8 @@ static const ScriptShapeData ShapingData[] =
...
@@ -598,6 +604,8 @@ static const ScriptShapeData ShapingData[] =
{{
standard_features
,
2
},
NULL
,
""
,
""
,
NULL
,
NULL
},
{{
standard_features
,
2
},
NULL
,
""
,
""
,
NULL
,
NULL
},
{{
latin_features
,
2
},
NULL
,
"latn"
,
""
,
NULL
,
NULL
},
{{
latin_features
,
2
},
NULL
,
"latn"
,
""
,
NULL
,
NULL
},
{{
standard_features
,
2
},
NULL
,
""
,
""
,
NULL
,
NULL
},
{{
standard_features
,
2
},
NULL
,
""
,
""
,
NULL
,
NULL
},
{{
myanmar_features
,
2
},
NULL
,
"mymr"
,
""
,
NULL
,
NULL
},
{{
myanmar_features
,
2
},
NULL
,
"mymr"
,
""
,
NULL
,
NULL
},
};
};
static
INT
GSUB_is_glyph_covered
(
LPCVOID
table
,
UINT
glyph
)
static
INT
GSUB_is_glyph_covered
(
LPCVOID
table
,
UINT
glyph
)
...
...
dlls/usp10/tests/usp10.c
View file @
486a20c1
...
@@ -147,6 +147,7 @@ static inline void _test_items_ok(LPCWSTR string, DWORD cchString,
...
@@ -147,6 +147,7 @@ static inline void _test_items_ok(LPCWSTR string, DWORD cchString,
#define telu_tag MS_MAKE_TAG('t','e','l','u')
#define telu_tag MS_MAKE_TAG('t','e','l','u')
#define knda_tag MS_MAKE_TAG('k','n','d','a')
#define knda_tag MS_MAKE_TAG('k','n','d','a')
#define mlym_tag MS_MAKE_TAG('m','l','y','m')
#define mlym_tag MS_MAKE_TAG('m','l','y','m')
#define mymr_tag MS_MAKE_TAG('m','y','m','r')
static
void
test_ScriptItemize
(
void
)
static
void
test_ScriptItemize
(
void
)
{
{
...
@@ -296,6 +297,11 @@ static void test_ScriptItemize( void )
...
@@ -296,6 +297,11 @@ static void test_ScriptItemize( void )
static
const
itemTest
t231
[
3
]
=
{{{
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
,
0
,
0
,
FALSE
},{{
0
,
0
,
0
,
0
,
0
},
3
,
0
,
0
,
0
,
0
,
FALSE
},{{
0
,
0
,
0
,
0
,
0
},
6
,
0
,
0
,
0
,
-
1
,
FALSE
}};
static
const
itemTest
t231
[
3
]
=
{{{
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
,
0
,
0
,
FALSE
},{{
0
,
0
,
0
,
0
,
0
},
3
,
0
,
0
,
0
,
0
,
FALSE
},{{
0
,
0
,
0
,
0
,
0
},
6
,
0
,
0
,
0
,
-
1
,
FALSE
}};
static
const
itemTest
t232
[
3
]
=
{{{
0
,
0
,
0
,
0
,
0
},
0
,
0
,
1
,
2
,
0
,
FALSE
},{{
0
,
0
,
0
,
0
,
0
},
3
,
0
,
1
,
2
,
0
,
FALSE
},{{
0
,
0
,
0
,
0
,
0
},
6
,
0
,
0
,
0
,
-
1
,
FALSE
}};
static
const
itemTest
t232
[
3
]
=
{{{
0
,
0
,
0
,
0
,
0
},
0
,
0
,
1
,
2
,
0
,
FALSE
},{{
0
,
0
,
0
,
0
,
0
},
3
,
0
,
1
,
2
,
0
,
FALSE
},{{
0
,
0
,
0
,
0
,
0
},
6
,
0
,
0
,
0
,
-
1
,
FALSE
}};
/* Myanmar */
static
const
WCHAR
test24
[]
=
{
0x1019
,
0x103c
,
0x1014
,
0x103a
,
0x1019
,
0x102c
,
0x1021
,
0x1000
,
0x1039
,
0x1001
,
0x101b
,
0x102c
};
static
const
itemTest
t241
[
2
]
=
{{{
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
,
0
,
mymr_tag
,
FALSE
},{{
0
,
0
,
0
,
0
,
0
},
12
,
0
,
0
,
0
,
-
1
,
FALSE
}};
static
const
itemTest
t242
[
2
]
=
{{{
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
,
2
,
mymr_tag
,
TRUE
,{
-
1
,
1
,
1
,
1
,
-
1
}},{{
0
,
0
,
0
,
0
,
0
},
12
,
0
,
0
,
0
,
-
1
,
FALSE
}};
SCRIPT_ITEM
items
[
15
];
SCRIPT_ITEM
items
[
15
];
SCRIPT_CONTROL
Control
;
SCRIPT_CONTROL
Control
;
...
@@ -353,6 +359,7 @@ static void test_ScriptItemize( void )
...
@@ -353,6 +359,7 @@ static void test_ScriptItemize( void )
test_items_ok
(
test21
,
5
,
NULL
,
NULL
,
1
,
t211
,
FALSE
,
0
);
test_items_ok
(
test21
,
5
,
NULL
,
NULL
,
1
,
t211
,
FALSE
,
0
);
test_items_ok
(
test22
,
6
,
NULL
,
NULL
,
2
,
t221
,
FALSE
,
0
);
test_items_ok
(
test22
,
6
,
NULL
,
NULL
,
2
,
t221
,
FALSE
,
0
);
test_items_ok
(
test23
,
6
,
NULL
,
NULL
,
2
,
t231
,
FALSE
,
0
);
test_items_ok
(
test23
,
6
,
NULL
,
NULL
,
2
,
t231
,
FALSE
,
0
);
test_items_ok
(
test24
,
12
,
NULL
,
NULL
,
1
,
t241
,
FALSE
,
0
);
State
.
uBidiLevel
=
0
;
State
.
uBidiLevel
=
0
;
test_items_ok
(
test1
,
4
,
&
Control
,
&
State
,
1
,
t11
,
FALSE
,
0
);
test_items_ok
(
test1
,
4
,
&
Control
,
&
State
,
1
,
t11
,
FALSE
,
0
);
...
@@ -383,6 +390,7 @@ static void test_ScriptItemize( void )
...
@@ -383,6 +390,7 @@ static void test_ScriptItemize( void )
test_items_ok
(
test21
,
5
,
&
Control
,
&
State
,
1
,
t211
,
FALSE
,
0
);
test_items_ok
(
test21
,
5
,
&
Control
,
&
State
,
1
,
t211
,
FALSE
,
0
);
test_items_ok
(
test22
,
6
,
&
Control
,
&
State
,
2
,
t221
,
FALSE
,
0
);
test_items_ok
(
test22
,
6
,
&
Control
,
&
State
,
2
,
t221
,
FALSE
,
0
);
test_items_ok
(
test23
,
6
,
&
Control
,
&
State
,
2
,
t231
,
FALSE
,
0
);
test_items_ok
(
test23
,
6
,
&
Control
,
&
State
,
2
,
t231
,
FALSE
,
0
);
test_items_ok
(
test24
,
12
,
&
Control
,
&
State
,
1
,
t241
,
FALSE
,
0
);
State
.
uBidiLevel
=
1
;
State
.
uBidiLevel
=
1
;
test_items_ok
(
test1
,
4
,
&
Control
,
&
State
,
1
,
t12
,
FALSE
,
0
);
test_items_ok
(
test1
,
4
,
&
Control
,
&
State
,
1
,
t12
,
FALSE
,
0
);
...
@@ -413,6 +421,7 @@ static void test_ScriptItemize( void )
...
@@ -413,6 +421,7 @@ static void test_ScriptItemize( void )
test_items_ok
(
test21
,
5
,
&
Control
,
&
State
,
1
,
t211
,
FALSE
,
0
);
test_items_ok
(
test21
,
5
,
&
Control
,
&
State
,
1
,
t211
,
FALSE
,
0
);
test_items_ok
(
test22
,
6
,
&
Control
,
&
State
,
2
,
t222
,
FALSE
,
1
);
test_items_ok
(
test22
,
6
,
&
Control
,
&
State
,
2
,
t222
,
FALSE
,
1
);
test_items_ok
(
test23
,
6
,
&
Control
,
&
State
,
2
,
t232
,
FALSE
,
0
);
test_items_ok
(
test23
,
6
,
&
Control
,
&
State
,
2
,
t232
,
FALSE
,
0
);
test_items_ok
(
test24
,
12
,
&
Control
,
&
State
,
1
,
t242
,
FALSE
,
0
);
State
.
uBidiLevel
=
1
;
State
.
uBidiLevel
=
1
;
Control
.
fMergeNeutralItems
=
TRUE
;
Control
.
fMergeNeutralItems
=
TRUE
;
...
@@ -444,6 +453,7 @@ static void test_ScriptItemize( void )
...
@@ -444,6 +453,7 @@ static void test_ScriptItemize( void )
test_items_ok
(
test21
,
5
,
&
Control
,
&
State
,
1
,
t211
,
FALSE
,
0
);
test_items_ok
(
test21
,
5
,
&
Control
,
&
State
,
1
,
t211
,
FALSE
,
0
);
test_items_ok
(
test22
,
6
,
&
Control
,
&
State
,
1
,
t223
,
FALSE
,
2
);
test_items_ok
(
test22
,
6
,
&
Control
,
&
State
,
1
,
t223
,
FALSE
,
2
);
test_items_ok
(
test23
,
6
,
&
Control
,
&
State
,
2
,
t232
,
FALSE
,
0
);
test_items_ok
(
test23
,
6
,
&
Control
,
&
State
,
2
,
t232
,
FALSE
,
0
);
test_items_ok
(
test24
,
12
,
&
Control
,
&
State
,
1
,
t242
,
FALSE
,
0
);
}
}
static
inline
void
_test_shape_ok
(
int
valid
,
HDC
hdc
,
LPCWSTR
string
,
static
inline
void
_test_shape_ok
(
int
valid
,
HDC
hdc
,
LPCWSTR
string
,
...
...
dlls/usp10/usp10.c
View file @
486a20c1
...
@@ -107,6 +107,8 @@ static const scriptRange scriptRanges[] = {
...
@@ -107,6 +107,8 @@ static const scriptRange scriptRanges[] = {
{
Script_Lao
,
0xe80
,
0xeff
,
Script_Lao_Numeric
,
0
},
{
Script_Lao
,
0xe80
,
0xeff
,
Script_Lao_Numeric
,
0
},
/* Tibetan: U+0F00–U+0FFF */
/* Tibetan: U+0F00–U+0FFF */
{
Script_Tibetan
,
0xf00
,
0xfff
,
0
,
0
},
{
Script_Tibetan
,
0xf00
,
0xfff
,
0
,
0
},
/* Myanmar: U+1000–U+109F */
{
Script_Myanmar
,
0x1000
,
0x109f
,
Script_Myanmar_Numeric
,
0
},
/* Georgian: U+10A0–U+10FF */
/* Georgian: U+10A0–U+10FF */
{
Script_Georgian
,
0x10a0
,
0x10ff
,
0
,
0
},
{
Script_Georgian
,
0x10a0
,
0x10ff
,
0
,
0
},
/* Vedic Extensions: U+1CD0-U+1CFF */
/* Vedic Extensions: U+1CD0-U+1CFF */
...
@@ -165,6 +167,8 @@ static const scriptRange scriptRanges[] = {
...
@@ -165,6 +167,8 @@ static const scriptRange scriptRanges[] = {
{
Script_Phags_pa
,
0xa840
,
0xa87f
,
0
,
0
},
{
Script_Phags_pa
,
0xa840
,
0xa87f
,
0
,
0
},
/* Devanagari Extended: U+A8E0-U+A8FF */
/* Devanagari Extended: U+A8E0-U+A8FF */
{
Script_Devanagari
,
0xa8e0
,
0xa8ff
,
Script_Devanagari_Numeric
,
0
},
{
Script_Devanagari
,
0xa8e0
,
0xa8ff
,
Script_Devanagari_Numeric
,
0
},
/* Myanmar Extended-A: U+AA60–U+AA7F */
{
Script_Myanmar
,
0xaa60
,
0xaa7f
,
Script_Myanmar_Numeric
,
0
},
/* Latin Ligatures: U+FB00–U+FB06 */
/* Latin Ligatures: U+FB00–U+FB06 */
{
Script_Latin
,
0xfb00
,
0xfb06
,
0
,
0
},
{
Script_Latin
,
0xfb00
,
0xfb06
,
0
,
0
},
/* Armenian ligatures U+FB13..U+FB17 */
/* Armenian ligatures U+FB13..U+FB17 */
...
@@ -377,6 +381,14 @@ static const scriptData scriptInformation[] = {
...
@@ -377,6 +381,14 @@ static const scriptData scriptInformation[] = {
{
LANG_ENGLISH
,
1
,
0
,
0
,
0
,
ANSI_CHARSET
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
,
0
},
{
LANG_ENGLISH
,
1
,
0
,
0
,
0
,
ANSI_CHARSET
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
,
0
},
0x00000000
,
0x00000000
,
{
0
}},
{
0
}},
{{
Script_Myanmar
,
0
,
0
,
0
,
0
,
0
,
0
,
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
{
0x55
,
0
,
1
,
1
,
1
,
DEFAULT_CHARSET
,
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
},
MS_MAKE_TAG
(
'm'
,
'y'
,
'm'
,
'r'
),
{
0
}},
{{
Script_Myanmar_Numeric
,
0
,
0
,
0
,
0
,
0
,
0
,
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
{
0x55
,
1
,
1
,
0
,
0
,
DEFAULT_CHARSET
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
},
MS_MAKE_TAG
(
'm'
,
'y'
,
'm'
,
'r'
),
{
0
}},
};
};
static
const
SCRIPT_PROPERTIES
*
script_props
[]
=
static
const
SCRIPT_PROPERTIES
*
script_props
[]
=
...
@@ -403,7 +415,8 @@ static const SCRIPT_PROPERTIES *script_props[] =
...
@@ -403,7 +415,8 @@ static const SCRIPT_PROPERTIES *script_props[] =
&
scriptInformation
[
38
].
props
,
&
scriptInformation
[
39
].
props
,
&
scriptInformation
[
38
].
props
,
&
scriptInformation
[
39
].
props
,
&
scriptInformation
[
40
].
props
,
&
scriptInformation
[
41
].
props
,
&
scriptInformation
[
40
].
props
,
&
scriptInformation
[
41
].
props
,
&
scriptInformation
[
42
].
props
,
&
scriptInformation
[
43
].
props
,
&
scriptInformation
[
42
].
props
,
&
scriptInformation
[
43
].
props
,
&
scriptInformation
[
44
].
props
,
&
scriptInformation
[
45
].
props
&
scriptInformation
[
44
].
props
,
&
scriptInformation
[
45
].
props
,
&
scriptInformation
[
46
].
props
,
&
scriptInformation
[
47
].
props
};
};
typedef
struct
{
typedef
struct
{
...
...
dlls/usp10/usp10_internal.h
View file @
486a20c1
...
@@ -75,6 +75,9 @@
...
@@ -75,6 +75,9 @@
#define Script_Diacritical 44
#define Script_Diacritical 44
#define Script_Punctuation2 45
#define Script_Punctuation2 45
#define Script_Numeric2 46
#define Script_Numeric2 46
/* Unicode Chapter 11 continued */
#define Script_Myanmar 47
#define Script_Myanmar_Numeric 48
#define GLYPH_BLOCK_SHIFT 8
#define GLYPH_BLOCK_SHIFT 8
#define GLYPH_BLOCK_SIZE (1UL << GLYPH_BLOCK_SHIFT)
#define GLYPH_BLOCK_SIZE (1UL << GLYPH_BLOCK_SHIFT)
...
...
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