Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
f1d20d9b
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f1d20d9b
编写于
7月 02, 2019
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add ucd-table make target
上级
040b261d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
11 deletion
+20
-11
src/Makefile.am
src/Makefile.am
+15
-8
src/gen-ucd-table.py
src/gen-ucd-table.py
+5
-3
未找到文件。
src/Makefile.am
浏览文件 @
f1d20d9b
...
...
@@ -253,31 +253,38 @@ GENERATORS = \
$(NULL)
EXTRA_DIST
+=
$(GENERATORS)
unicode-tables
:
arabic-table indic-table tag-table use-table emoji-table
unicode-tables
:
\
arabic-table
\
emoji-table
\
indic-table
\
tag-table
\
ucd-table
\
use-table
\
emoji-table
\
$(NULL)
arabic-table
:
gen-arabic-table.py ArabicShaping.txt UnicodeData.txt Blocks.txt
$(AM_V_GEN)
$(builddir)
/
$^
>
$(srcdir)
/hb-ot-shape-complex-arabic-table.hh
\
||
(
$(RM)
$(srcdir)
/hb-ot-shape-complex-arabic-table.hh
;
false
)
emoji-table
:
gen-emoji-table.py emoji-data.txt
$(AM_V_GEN)
$(builddir)
/
$^
>
$(srcdir)
/hb-unicode-emoji-table.hh
\
||
(
$(RM)
$(srcdir)
/hb-unicode-emoji-table.hh
;
false
)
indic-table
:
gen-indic-table.py IndicSyllabicCategory.txt IndicPositionalCategory.txt Blocks.txt
$(AM_V_GEN)
$(builddir)
/
$^
>
$(srcdir)
/hb-ot-shape-complex-indic-table.cc
\
||
(
$(RM)
$(srcdir)
/hb-ot-shape-complex-indic-table.cc
;
false
)
tag-table
:
gen-tag-table.py languagetags language-subtag-registry
$(AM_V_GEN)
$(builddir)
/
$^
>
$(srcdir)
/hb-ot-tag-table.hh
\
||
(
$(RM)
$(srcdir)
/hb-ot-tag-table.hh
;
false
)
ucd-table
:
gen-ucd-table.py ucd.nounihan.grouped.zip hb-common.h
$(AM_V_GEN)
$(builddir)
/
$^
>
$(srcdir)
/hb-ucd-table.hh
\
||
(
$(RM)
$(srcdir)
/hb-ucd-table.hh
;
false
)
use-table
:
gen-use-table.py IndicSyllabicCategory.txt IndicPositionalCategory.txt UnicodeData.txt Blocks.txt
$(AM_V_GEN)
$(builddir)
/
$^
>
$(srcdir)
/hb-ot-shape-complex-use-table.cc
\
||
(
$(RM)
$(srcdir)
/hb-ot-shape-complex-use-table.cc
;
false
)
vowel-constraints
:
gen-vowel-constraints.py HBIndicVowelConstraints.txt Scripts.txt
$(AM_V_GEN)
$(builddir)
/
$^
>
$(srcdir)
/hb-ot-shape-complex-vowel-constraints.cc
\
||
(
$(RM)
$(srcdir)
/hb-ot-shape-complex-vowel-constraints.cc
;
false
)
emoji-table
:
gen-emoji-table.py emoji-data.txt
$(AM_V_GEN)
$(builddir)
/
$^
>
$(srcdir)
/hb-unicode-emoji-table.hh
\
||
(
$(RM)
$(srcdir)
/hb-unicode-emoji-table.hh
;
false
)
built-sources
:
$(BUILT_SOURCES)
...
...
src/gen-ucd-table.py
浏览文件 @
f1d20d9b
...
...
@@ -6,8 +6,8 @@ import io, os.path, sys, re
import
logging
logging
.
basicConfig
(
format
=
'%(levelname)s: %(message)s'
,
level
=
logging
.
INFO
)
if
len
(
sys
.
argv
)
!=
2
:
print
(
"usage: ./gen-ucd-table ucd.nounihan.grouped.xml"
,
file
=
sys
.
stderr
)
if
len
(
sys
.
argv
)
not
in
(
2
,
3
)
:
print
(
"usage: ./gen-ucd-table ucd.nounihan.grouped.xml
[/path/to/hb-common.h]
"
,
file
=
sys
.
stderr
)
sys
.
exit
(
1
)
# https://github.com/harfbuzz/packtab
...
...
@@ -18,6 +18,8 @@ logging.info('Loading UCDXML...')
ucdxml
=
packTab
.
ucdxml
.
load_ucdxml
(
sys
.
argv
[
1
])
ucd
=
packTab
.
ucdxml
.
ucdxml_get_repertoire
(
ucdxml
)
hb_common_h
=
'hb-common.h'
if
len
(
sys
.
argv
)
<
3
else
sys
.
argv
[
2
]
logging
.
info
(
'Preparing data tables...'
)
gc
=
[
u
[
'gc'
]
for
u
in
ucd
]
...
...
@@ -68,7 +70,7 @@ for i,v in enumerate(('Cc', 'Cf', 'Cn', 'Co', 'Cs', 'Ll', 'Lm', 'Lo', 'Lt', 'Lu'
sc_order
=
dict
()
sc_array
=
[]
sc_re
=
re
.
compile
(
r
"\b(HB_SCRIPT_[_A-Z]*).*HB_TAG [(]'(.)','(.)','(.)','(.)'[)]"
)
for
line
in
open
(
'hb-common.h'
):
for
line
in
open
(
hb_common_h
):
m
=
sc_re
.
search
(
line
)
if
not
m
:
continue
name
=
m
.
group
(
1
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录