Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
9541c9da
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
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看板
提交
9541c9da
编写于
6月 24, 2018
作者:
P
punchcutter
提交者:
Behdad Esfahbod
6月 30, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rebase and update USE overrides for Bhaiksuki Gap Fillers and Grantha Anusvara
上级
7b8dfac5
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
1 deletion
+7
-1
src/gen-use-table.py
src/gen-use-table.py
+7
-1
未找到文件。
src/gen-use-table.py
浏览文件 @
9541c9da
...
@@ -47,6 +47,9 @@ defaults = ('Other', 'Not_Applicable', 'Cn', 'No_Block')
...
@@ -47,6 +47,9 @@ defaults = ('Other', 'Not_Applicable', 'Cn', 'No_Block')
data
[
0
][
0x034F
]
=
defaults
[
0
]
data
[
0
][
0x034F
]
=
defaults
[
0
]
data
[
0
][
0x2060
]
=
defaults
[
0
]
data
[
0
][
0x2060
]
=
defaults
[
0
]
data
[
0
][
0x20F0
]
=
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'
for
u
in
range
(
0xFE00
,
0xFE0F
+
1
):
for
u
in
range
(
0xFE00
,
0xFE0F
+
1
):
data
[
0
][
u
]
=
defaults
[
0
]
data
[
0
][
u
]
=
defaults
[
0
]
...
@@ -165,7 +168,7 @@ def is_BASE(U, UISC, UGC):
...
@@ -165,7 +168,7 @@ def is_BASE(U, UISC, UGC):
def
is_BASE_IND
(
U
,
UISC
,
UGC
):
def
is_BASE_IND
(
U
,
UISC
,
UGC
):
#SPEC-DRAFT return (UISC in [Consonant_Dead, Modifying_Letter] or UGC == Po)
#SPEC-DRAFT return (UISC in [Consonant_Dead, Modifying_Letter] or UGC == Po)
return
(
UISC
in
[
Consonant_Dead
,
Modifying_Letter
]
or
return
(
UISC
in
[
Consonant_Dead
,
Modifying_Letter
]
or
(
UGC
==
Po
and
not
U
in
[
0x104B
,
0x104E
,
0x2022
,
0x11A3F
,
0x11A45
])
or
(
UGC
==
Po
and
not
U
in
[
0x104B
,
0x104E
,
0x2022
,
0x11A3F
,
0x11A45
,
0x11C44
,
0x11C45
])
or
False
# SPEC-DRAFT-OUTDATED! U == 0x002D
False
# SPEC-DRAFT-OUTDATED! U == 0x002D
)
)
def
is_BASE_NUM
(
U
,
UISC
,
UGC
):
def
is_BASE_NUM
(
U
,
UISC
,
UGC
):
...
@@ -344,6 +347,9 @@ def map_to_use(data):
...
@@ -344,6 +347,9 @@ def map_to_use(data):
if
0xA926
<=
U
<=
0xA92A
:
UIPC
=
Top
if
0xA926
<=
U
<=
0xA92A
:
UIPC
=
Top
if
U
==
0x111CA
:
UIPC
=
Bottom
if
U
==
0x111CA
:
UIPC
=
Bottom
if
U
==
0x11300
:
UIPC
=
Top
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
# Correct?!
if
0x1CF2
<=
U
<=
0x1CF3
:
UIPC
=
Right
if
0x1CF2
<=
U
<=
0x1CF3
:
UIPC
=
Right
if
0x1CF8
<=
U
<=
0x1CF9
:
UIPC
=
Top
if
0x1CF8
<=
U
<=
0x1CF9
:
UIPC
=
Top
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录