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
6c3398d9
Commit
6c3398d9
authored
Nov 14, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Nov 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Pay attention to script changes for bidi run itemization.
parent
145102c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
usp10.c
dlls/usp10/usp10.c
+4
-1
No files found.
dlls/usp10/usp10.c
View file @
6c3398d9
...
...
@@ -859,7 +859,10 @@ HRESULT WINAPI ScriptItemizeOpenType(const WCHAR *pwcInChars, int cInChars, int
for
(
i
=
0
;
i
<
cInChars
;
i
++
)
{
if
((
levels
[
i
]
==
0
||
(
odd
(
psState
->
uBidiLevel
)
&&
levels
[
i
]
==
psState
->
uBidiLevel
+
1
))
&&
inNumber
&&
strchrW
(
math_punc
,
pwcInChars
[
i
]))
{
scripts
[
i
]
=
Script_Numeric
;
levels
[
i
]
=
2
;
}
else
if
((
levels
[
i
]
==
0
||
(
odd
(
psState
->
uBidiLevel
)
&&
levels
[
i
]
==
psState
->
uBidiLevel
+
1
))
&&
scripts
[
i
]
==
Script_Numeric
)
{
levels
[
i
]
=
2
;
...
...
@@ -982,7 +985,7 @@ HRESULT WINAPI ScriptItemizeOpenType(const WCHAR *pwcInChars, int cInChars, int
new_run
=
TRUE
;
}
/* changes in script */
else
if
((
!
levels
)
&&
(((
pwcInChars
[
cnt
]
!=
Numeric_space
)
&&
(
New_Script
!=
-
1
)
&&
(
New_Script
!=
pItems
[
index
].
a
.
eScript
))
||
(
New_Script
==
Script_Control
)
))
else
if
((
(
pwcInChars
[
cnt
]
!=
Numeric_space
)
&&
(
New_Script
!=
-
1
)
&&
(
New_Script
!=
pItems
[
index
].
a
.
eScript
))
||
(
New_Script
==
Script_Control
))
{
TRACE
(
"Script break(%i/%i)
\n
"
,
pItems
[
index
].
a
.
eScript
,
New_Script
);
new_run
=
TRUE
;
...
...
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