Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Vincent Wei
harfbuzz
Commits
80395f14
Unverified
Commit
80395f14
authored
7 years ago
by
Ebrahim Byagowi
Committed by
GitHub
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Make gen-* scripts LC_ALL=C compatible (#942)
parent
26e0cbd8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/gen-arabic-table.py
+2
-3
src/gen-arabic-table.py
src/gen-indic-table.py
+2
-2
src/gen-indic-table.py
src/gen-use-table.py
+2
-2
src/gen-use-table.py
with
6 additions
and
7 deletions
+6
-7
src/gen-arabic-table.py
View file @
80395f14
...
...
@@ -2,14 +2,13 @@
from
__future__
import
print_function
,
division
,
absolute_import
import
sys
import
os.path
import
io
,
os
.
path
,
sys
if
len
(
sys
.
argv
)
!=
4
:
print
(
"usage: ./gen-arabic-table.py ArabicShaping.txt UnicodeData.txt Blocks.txt"
,
file
=
sys
.
stderr
)
sys
.
exit
(
1
)
files
=
[
open
(
x
)
for
x
in
sys
.
argv
[
1
:]]
files
=
[
io
.
open
(
x
,
encoding
=
'utf-8'
)
for
x
in
sys
.
argv
[
1
:]]
headers
=
[[
files
[
0
].
readline
(),
files
[
0
].
readline
()],
[
files
[
2
].
readline
(),
files
[
2
].
readline
()]]
headers
.
append
([
"UnicodeData.txt does not have a header."
])
...
...
This diff is collapsed.
Click to expand it.
src/gen-indic-table.py
View file @
80395f14
...
...
@@ -2,7 +2,7 @@
from
__future__
import
print_function
,
division
,
absolute_import
import
sys
import
io
,
sys
if
len
(
sys
.
argv
)
!=
4
:
print
(
"usage: ./gen-indic-table.py IndicSyllabicCategory.txt IndicPositionalCategory.txt Blocks.txt"
,
file
=
sys
.
stderr
)
...
...
@@ -32,7 +32,7 @@ ALLOWED_BLOCKS = [
'Myanmar Extended-A'
,
]
files
=
[
open
(
x
)
for
x
in
sys
.
argv
[
1
:]]
files
=
[
io
.
open
(
x
,
encoding
=
'utf-8'
)
for
x
in
sys
.
argv
[
1
:]]
headers
=
[[
f
.
readline
()
for
i
in
range
(
2
)]
for
f
in
files
]
...
...
This diff is collapsed.
Click to expand it.
src/gen-use-table.py
View file @
80395f14
...
...
@@ -2,7 +2,7 @@
from
__future__
import
print_function
,
division
,
absolute_import
import
sys
import
io
,
sys
if
len
(
sys
.
argv
)
!=
5
:
print
(
"usage: ./gen-use-table.py IndicSyllabicCategory.txt IndicPositionalCategory.txt UnicodeData.txt Blocks.txt"
,
file
=
sys
.
stderr
)
...
...
@@ -10,7 +10,7 @@ if len (sys.argv) != 5:
BLACKLISTED_BLOCKS
=
[
"Thai"
,
"Lao"
,
"Tibetan"
]
files
=
[
open
(
x
)
for
x
in
sys
.
argv
[
1
:]]
files
=
[
io
.
open
(
x
,
encoding
=
'utf-8'
)
for
x
in
sys
.
argv
[
1
:]]
headers
=
[[
f
.
readline
()
for
i
in
range
(
2
)]
for
j
,
f
in
enumerate
(
files
)
if
j
!=
2
]
headers
.
append
([
"UnicodeData.txt does not have a header."
])
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help