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
e5d33f08
Commit
e5d33f08
authored
Nov 15, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Nov 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Devanagari danda and double danda are used for all Indic scripts.
parent
6c3398d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
usp10.c
dlls/usp10/usp10.c
+14
-0
No files found.
dlls/usp10/usp10.c
View file @
e5d33f08
...
...
@@ -772,6 +772,11 @@ HRESULT WINAPI ScriptApplyDigitSubstitution(const SCRIPT_DIGITSUBSTITUTE *sds,
}
}
static
inline
BOOL
is_indic
(
WORD
script
)
{
return
(
script
>=
Script_Devanagari
&&
script
<=
Script_Malayalam_Numeric
);
}
/***********************************************************************
* ScriptItemizeOpenType (USP10.@)
*
...
...
@@ -808,6 +813,7 @@ HRESULT WINAPI ScriptItemizeOpenType(const WCHAR *pwcInChars, int cInChars, int
WORD
*
scripts
=
NULL
;
WORD
baselevel
=
0
;
BOOL
new_run
;
WORD
last_indic
=
-
1
;
TRACE
(
"%s,%d,%d,%p,%p,%p,%p
\n
"
,
debugstr_wn
(
pwcInChars
,
cInChars
),
cInChars
,
cMaxItems
,
psControl
,
psState
,
pItems
,
pcItems
);
...
...
@@ -820,7 +826,15 @@ HRESULT WINAPI ScriptItemizeOpenType(const WCHAR *pwcInChars, int cInChars, int
return
E_OUTOFMEMORY
;
for
(
i
=
0
;
i
<
cInChars
;
i
++
)
{
scripts
[
i
]
=
get_char_script
(
pwcInChars
[
i
]);
/* Devanagari danda (U+0964) and double danda (U+0965) are used for
all Indic scripts */
if
((
pwcInChars
[
i
]
==
0x964
||
pwcInChars
[
i
]
==
0x965
)
&&
last_indic
>
0
)
scripts
[
i
]
=
last_indic
;
else
if
(
is_indic
(
scripts
[
i
]))
last_indic
=
scripts
[
i
];
}
if
(
psState
&&
psControl
)
{
...
...
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