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
0f795650
Commit
0f795650
authored
Jun 08, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Strip dangling joiners for Sinhala.
parent
428d3b02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
shape.c
dlls/usp10/shape.c
+10
-1
No files found.
dlls/usp10/shape.c
View file @
0f795650
...
...
@@ -2036,6 +2036,7 @@ static const VowelComponents Sinhala_vowels[] = {
static
void
ContextualShape_Sinhala
(
HDC
hdc
,
ScriptCache
*
psc
,
SCRIPT_ANALYSIS
*
psa
,
WCHAR
*
pwcChars
,
INT
cChars
,
WORD
*
pwOutGlyphs
,
INT
*
pcGlyphs
,
INT
cMaxGlyphs
,
WORD
*
pwLogClust
)
{
int
cCount
=
cChars
;
int
i
;
WCHAR
*
input
;
if
(
*
pcGlyphs
!=
cChars
)
...
...
@@ -2057,7 +2058,15 @@ static void ContextualShape_Sinhala(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *
Indic_ReorderCharacters
(
input
,
cCount
,
sinhala_lex
,
Reorder_Like_Sinhala
);
TRACE
(
"reordered string %s
\n
"
,
debugstr_wn
(
input
,
cCount
));
/* Step 3: Get glyphs */
/* Step 3: Strip dangling joiners */
for
(
i
=
0
;
i
<
cCount
;
i
++
)
{
if
((
input
[
i
]
==
0x200D
||
input
[
i
]
==
0x200C
)
&&
(
i
==
0
||
input
[
i
-
1
]
==
0x0020
||
i
==
cCount
-
1
||
input
[
i
+
1
]
==
0x0020
))
input
[
i
]
=
0x0020
;
}
/* Step 4: Get glyphs */
GetGlyphIndicesW
(
hdc
,
input
,
cCount
,
pwOutGlyphs
,
0
);
*
pcGlyphs
=
cCount
;
...
...
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