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
6f3f505f
Commit
6f3f505f
authored
May 06, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Generate a table for BiDi character mirroring.
parent
388779e3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
Makefile.in
dlls/usp10/Makefile.in
+1
-0
mirror.c
dlls/usp10/mirror.c
+0
-0
cpmap.pl
libs/wine/cpmap.pl
+35
-0
No files found.
dlls/usp10/Makefile.in
View file @
6f3f505f
...
...
@@ -8,6 +8,7 @@ IMPORTS = gdi32 kernel32
C_SRCS
=
\
bidi.c
\
mirror.c
\
usp10.c
@MAKE_DLL_RULES@
dlls/usp10/mirror.c
0 → 100644
View file @
6f3f505f
This diff is collapsed.
Click to expand it.
libs/wine/cpmap.pl
View file @
6f3f505f
...
...
@@ -935,6 +935,40 @@ sub get_lb_ranges()
################################################################
# dump the BiDi mirroring table
sub
dump_mirroring
($)
{
my
$filename
=
shift
;
my
@mirror_table
=
();
my
$INPUT
=
open_data_file
"$UNIDATA/BidiMirroring.txt"
;
while
(
<
$INPUT
>
)
{
next
if
/^\#/
;
# skip comments
next
if
/^$/
;
# skip empty lines
next
if
/\x1a/
;
# skip ^Z
if
(
/^\s*([0-9a-fA-F]+)\s*;\s*([0-9a-fA-F]+)/
)
{
$mirror_table
[
hex
$1
]
=
hex
$2
;
next
;
}
die
"malformed line $_"
;
}
close
$INPUT
;
open
OUTPUT
,
">$filename.new"
or
die
"Cannot create $filename"
;
print
"Building $filename\n"
;
print
OUTPUT
"/* Unicode BiDi mirroring */\n"
;
print
OUTPUT
"/* generated from $UNIDATA/BidiMirroring.txt */\n"
;
print
OUTPUT
"/* DO NOT EDIT!! */\n\n"
;
print
OUTPUT
"#include \"wine/unicode.h\"\n\n"
;
DUMP_CASE_TABLE
(
"wine_mirror_map"
,
@mirror_table
);
close
OUTPUT
;
save_file
(
$filename
);
}
################################################################
# dump the case mapping tables
sub
DUMP_CASE_MAPPINGS
($)
{
...
...
@@ -1435,6 +1469,7 @@ DUMP_CASE_MAPPINGS( "casemap.c" );
DUMP_SORTKEYS
(
"collation.c"
,
READ_SORTKEYS_FILE
()
);
DUMP_COMPOSE_TABLES
(
"compose.c"
);
DUMP_CTYPE_TABLES
(
"wctype.c"
);
dump_mirroring
(
"../../dlls/usp10/mirror.c"
);
foreach
my
$file
(
@allfiles
)
{
HANDLE_FILE
(
@
{
$file
}
);
}
...
...
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