Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
8c42f032
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看板
提交
8c42f032
编写于
3月 08, 2019
作者:
D
David Corbett
提交者:
Behdad Esfahbod
3月 11, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove obsolete overrides from Indic/USE scripts
上级
b38bab86
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
28 deletion
+8
-28
src/gen-indic-table.py
src/gen-indic-table.py
+0
-4
src/gen-use-table.py
src/gen-use-table.py
+7
-23
src/hb-ot-shape-complex-use-table.cc
src/hb-ot-shape-complex-use-table.cc
+1
-1
未找到文件。
src/gen-indic-table.py
浏览文件 @
8c42f032
...
...
@@ -79,10 +79,6 @@ data = combined
del
combined
num
=
len
(
data
)
for
u
in
[
0x17CD
,
0x17CE
,
0x17CF
,
0x17D0
,
0x17D3
]:
if
data
[
u
][
0
]
==
'Other'
:
data
[
u
][
0
]
=
"Vowel_Dependent"
# Move the outliers NO-BREAK SPACE and DOTTED CIRCLE out
singles
=
{}
for
u
in
ALLOWED_SINGLES
:
...
...
src/gen-use-table.py
浏览文件 @
8c42f032
...
...
@@ -48,7 +48,6 @@ defaults = ('Other', 'Not_Applicable', 'Cn', 'No_Block')
# TODO Characters that are not in Unicode Indic files, but used in USE
data
[
0
][
0x034F
]
=
defaults
[
0
]
data
[
0
][
0x2060
]
=
defaults
[
0
]
data
[
0
][
0x20F0
]
=
defaults
[
0
]
# TODO https://github.com/roozbehp/unicode-data/issues/9
data
[
0
][
0x11C44
]
=
'Consonant_Placeholder'
data
[
0
][
0x11C45
]
=
'Consonant_Placeholder'
...
...
@@ -317,12 +316,11 @@ def map_to_use(data):
# Resolve Indic_Syllabic_Category
# TODO: These don't have UISC assigned in Unicode 8.0, but have UIPC
if
U
==
0x17DD
:
UISC
=
Vowel_Dependent
# TODO: These don't have UISC assigned in Unicode 12.0, but have UIPC
if
0x1CE2
<=
U
<=
0x1CE8
:
UISC
=
Cantillation_Mark
# Tibetan:
# TODO: These don't have UISC assigned in Unicode 1
1
.0, but have UIPC
# TODO: These don't have UISC assigned in Unicode 1
2
.0, but have UIPC
if
0x0F18
<=
U
<=
0x0F19
or
0x0F3E
<=
U
<=
0x0F3F
:
UISC
=
Vowel_Dependent
if
0x0F86
<=
U
<=
0x0F87
:
UISC
=
Tone_Mark
# Overrides to allow NFC order matching syllable
...
...
@@ -347,13 +345,7 @@ def map_to_use(data):
if
U
==
0x1CED
:
UISC
=
Tone_Mark
# TODO: https://github.com/harfbuzz/harfbuzz/issues/525
if
U
==
0x1A7F
:
UISC
=
Consonant_Final
;
UIPC
=
Bottom
# TODO: https://github.com/harfbuzz/harfbuzz/pull/609
if
U
==
0x20F0
:
UISC
=
Cantillation_Mark
;
UIPC
=
Top
# TODO: https://github.com/harfbuzz/harfbuzz/pull/626
if
U
==
0xA8B4
:
UISC
=
Consonant_Medial
if
U
==
0x1A7F
:
UISC
=
Consonant_Final
# TODO: https://github.com/harfbuzz/harfbuzz/issues/1105
if
U
==
0x11134
:
UISC
=
Gemination_Mark
...
...
@@ -367,26 +359,18 @@ def map_to_use(data):
# Resolve Indic_Positional_Category
# TODO: Not in Unicode 8.0 yet, but in spec.
if
U
==
0x1B6C
:
UIPC
=
Bottom
# TODO: These should die, but have UIPC in Unicode 8.0
# TODO: These should die, but have UIPC in Unicode 12.0
if
U
in
[
0x953
,
0x954
]:
UIPC
=
Not_Applicable
# TODO: In USE's override list but not in Unicode 1
1
.0
# TODO: In USE's override list but not in Unicode 1
2
.0
if
U
==
0x103C
:
UIPC
=
Left
# TODO: These are not in USE's override list that we have, nor are they in Unicode 1
1
.0
# TODO: These are not in USE's override list that we have, nor are they in Unicode 1
2
.0
if
0xA926
<=
U
<=
0xA92A
:
UIPC
=
Top
if
U
==
0x111CA
:
UIPC
=
Bottom
if
U
==
0x11300
:
UIPC
=
Top
# TODO: https://github.com/harfbuzz/harfbuzz/pull/1037
if
U
==
0x11302
:
UIPC
=
Top
if
U
==
0x1133C
:
UIPC
=
Bottom
if
U
==
0x1171E
:
UIPC
=
Left
# Correct?!
if
U
==
0x1171E
:
UIPC
=
Left
if
0x1CF8
<=
U
<=
0x1CF9
:
UIPC
=
Top
# https://github.com/roozbehp/unicode-data/issues/8
if
U
==
0x0A51
:
UIPC
=
Bottom
assert
(
UIPC
in
[
Not_Applicable
,
Visual_Order_Left
]
or
USE
in
use_positions
),
"%s %s %s %s %s"
%
(
hex
(
U
),
UIPC
,
USE
,
UISC
,
UGC
)
...
...
src/hb-ot-shape-complex-use-table.cc
浏览文件 @
8c42f032
...
...
@@ -261,7 +261,7 @@ static const USE_TABLE_ELEMENT_TYPE use_table[] = {
/* 17A0 */
B
,
B
,
B
,
B
,
B
,
B
,
B
,
B
,
B
,
B
,
B
,
B
,
B
,
B
,
B
,
B
,
/* 17B0 */
B
,
B
,
B
,
B
,
O
,
O
,
VPst
,
VAbv
,
VAbv
,
VAbv
,
VAbv
,
VBlw
,
VBlw
,
VBlw
,
VPst
,
VPst
,
/* 17C0 */
VPst
,
VPre
,
VPre
,
VPre
,
VPst
,
VPst
,
VMAbv
,
VMPst
,
VPst
,
VMAbv
,
VMAbv
,
FM
,
FAbv
,
CMAbv
,
FM
,
FM
,
/* 17D0 */
FM
,
VAbv
,
H
,
FM
,
O
,
O
,
O
,
O
,
O
,
O
,
O
,
O
,
B
,
VAbv
,
O
,
O
,
/* 17D0 */
FM
,
VAbv
,
H
,
FM
,
O
,
O
,
O
,
O
,
O
,
O
,
O
,
O
,
B
,
FM
,
O
,
O
,
/* 17E0 */
B
,
B
,
B
,
B
,
B
,
B
,
B
,
B
,
B
,
B
,
O
,
O
,
O
,
O
,
O
,
O
,
#define use_offset_0x1900u 1936
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录