Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
01a30a6a
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
1 年多 前同步成功
通知
0
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Harfbuzz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
01a30a6a
编写于
5月 06, 2016
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[indic] Remove data for scripts that don't go thorough this shaper
上级
7cd9269f
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
43 addition
and
590 deletion
+43
-590
src/gen-indic-table.py
src/gen-indic-table.py
+26
-3
src/hb-ot-shape-complex-indic-table.cc
src/hb-ot-shape-complex-indic-table.cc
+17
-587
未找到文件。
src/gen-indic-table.py
浏览文件 @
01a30a6a
...
...
@@ -6,7 +6,30 @@ if len (sys.argv) != 4:
print
>>
sys
.
stderr
,
"usage: ./gen-indic-table.py IndicSyllabicCategory.txt IndicPositionalCategory.txt Blocks.txt"
sys
.
exit
(
1
)
BLACKLISTED_BLOCKS
=
[
"Thai"
,
"Lao"
,
"Tibetan"
]
ALLOWED_SINGLES
=
[
0x00A0
,
0x25CC
]
ALLOWED_BLOCKS
=
[
'Basic Latin'
,
'Latin-1 Supplement'
,
'Devanagari'
,
'Bengali'
,
'Gurmukhi'
,
'Gujarati'
,
'Oriya'
,
'Tamil'
,
'Telugu'
,
'Kannada'
,
'Malayalam'
,
'Sinhala'
,
'Myanmar'
,
'Khmer'
,
'Vedic Extensions'
,
'General Punctuation'
,
'Superscripts and Subscripts'
,
'Devanagari Extended'
,
'Javanese'
,
'Myanmar Extended-B'
,
'Myanmar Extended-A'
,
]
files
=
[
file
(
x
)
for
x
in
sys
.
argv
[
1
:]]
...
...
@@ -50,7 +73,7 @@ for i,d in enumerate (data):
if
not
u
in
combined
:
combined
[
u
]
=
list
(
defaults
)
combined
[
u
][
i
]
=
v
combined
=
{
k
:
v
for
k
,
v
in
combined
.
items
()
if
v
[
2
]
not
in
BLACKLIST
ED_BLOCKS
}
combined
=
{
k
:
v
for
k
,
v
in
combined
.
items
()
if
k
in
ALLOWED_SINGLES
or
v
[
2
]
in
ALLOW
ED_BLOCKS
}
data
=
combined
del
combined
num
=
len
(
data
)
...
...
@@ -61,7 +84,7 @@ for u in [0x17CD, 0x17CE, 0x17CF, 0x17D0, 0x17D3]:
# Move the outliers NO-BREAK SPACE and DOTTED CIRCLE out
singles
=
{}
for
u
in
[
0x00A0
,
0x25CC
]
:
for
u
in
ALLOWED_SINGLES
:
singles
[
u
]
=
data
[
u
]
del
data
[
u
]
...
...
src/hb-ot-shape-complex-indic-table.cc
浏览文件 @
01a30a6a
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录