Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
92ba9905
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看板
提交
92ba9905
编写于
7月 31, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[indic] Allow double-halant in old-spec Devanagari
Fixes
https://github.com/harfbuzz/harfbuzz/issues/1071
上级
fe099a84
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
6 deletion
+14
-6
src/hb-ot-shape-complex-indic.cc
src/hb-ot-shape-complex-indic.cc
+12
-6
test/shaping/data/in-house/fonts/b722a7d09e60421f3efbc706ad348ab47b88567b.ttf
...-house/fonts/b722a7d09e60421f3efbc706ad348ab47b88567b.ttf
+0
-0
test/shaping/data/in-house/tests/indic-old-spec.tests
test/shaping/data/in-house/tests/indic-old-spec.tests
+2
-0
未找到文件。
src/hb-ot-shape-complex-indic.cc
浏览文件 @
92ba9905
...
@@ -667,10 +667,10 @@ initial_reordering_consonant_syllable (const hb_ot_shape_plan_t *plan,
...
@@ -667,10 +667,10 @@ initial_reordering_consonant_syllable (const hb_ot_shape_plan_t *plan,
* last consonant.
* last consonant.
*
*
* Reports suggest that in some scripts Uniscribe does this only if there
* Reports suggest that in some scripts Uniscribe does this only if there
* is *not* a Halant after last consonant already
(eg. Kannada), while it
* is *not* a Halant after last consonant already
. We know that is the
*
does it unconditionally in other scripts (eg. Malayalam, Bengali). We
*
case for Kannada, while it reorders unconditionally in other scripts,
*
don't currently know about other scripts, so we whitelist Malayalam and
*
eg. Malayalam, Bengali, and Devanagari. We don't currently know about
*
Bengali for now
.
*
other scripts, so we whitelist Malayalam, Bengali, and Devanagari
.
*
*
* Kannada test case:
* Kannada test case:
* U+0C9A,U+0CCD,U+0C9A,U+0CCD
* U+0C9A,U+0CCD,U+0C9A,U+0CCD
...
@@ -681,15 +681,21 @@ initial_reordering_consonant_syllable (const hb_ot_shape_plan_t *plan,
...
@@ -681,15 +681,21 @@ initial_reordering_consonant_syllable (const hb_ot_shape_plan_t *plan,
* U+0D38,U+0D4D,U+0D31,U+0D4D,U+0D31,U+0D4D
* U+0D38,U+0D4D,U+0D31,U+0D4D,U+0D31,U+0D4D
* With lohit-ttf-20121122/Lohit-Malayalam.ttf
* With lohit-ttf-20121122/Lohit-Malayalam.ttf
*
*
* Bengali test case
* Bengali test case
:
* U+0998,U+09CD,U+09AF,U+09CD
* U+0998,U+09CD,U+09AF,U+09CD
* With Windows XP vrinda.ttf
* With Windows XP vrinda.ttf
* https://github.com/harfbuzz/harfbuzz/issues/1073
* https://github.com/harfbuzz/harfbuzz/issues/1073
*
* Devanagari test case:
* U+091F,U+094D,U+0930,U+094D
* With chandas.ttf
* https://github.com/harfbuzz/harfbuzz/issues/1071
*/
*/
if
(
indic_plan
->
is_old_spec
)
if
(
indic_plan
->
is_old_spec
)
{
{
bool
disallow_double_halants
=
buffer
->
props
.
script
!=
HB_SCRIPT_MALAYALAM
&&
bool
disallow_double_halants
=
buffer
->
props
.
script
!=
HB_SCRIPT_MALAYALAM
&&
buffer
->
props
.
script
!=
HB_SCRIPT_BENGALI
;
buffer
->
props
.
script
!=
HB_SCRIPT_BENGALI
&&
buffer
->
props
.
script
!=
HB_SCRIPT_DEVANAGARI
;
for
(
unsigned
int
i
=
base
+
1
;
i
<
end
;
i
++
)
for
(
unsigned
int
i
=
base
+
1
;
i
<
end
;
i
++
)
if
(
info
[
i
].
indic_category
()
==
OT_H
)
if
(
info
[
i
].
indic_category
()
==
OT_H
)
{
{
...
...
test/shaping/data/in-house/fonts/b722a7d09e60421f3efbc706ad348ab47b88567b.ttf
0 → 100644
浏览文件 @
92ba9905
文件已添加
test/shaping/data/in-house/tests/indic-old-spec.tests
浏览文件 @
92ba9905
../fonts/57a9d9f83020155cbb1d2be1f43d82388cbecc88.ttf::U+0C9A,U+0CCD,U+0C9A,U+0CCD:[U0C9A_U0CCD.haln=0+1066|U0C9A_0CCD.blwf=0+0]
../fonts/57a9d9f83020155cbb1d2be1f43d82388cbecc88.ttf::U+0C9A,U+0CCD,U+0C9A,U+0CCD:[U0C9A_U0CCD.haln=0+1066|U0C9A_0CCD.blwf=0+0]
../fonts/270b89df543a7e48e206a2d830c0e10e5265c630.ttf::U+0D38,U+0D4D,U+0D31,U+0D4D,U+0D31,U+0D4D:[glyph201=0+1183|U0D4D=0+0]
../fonts/270b89df543a7e48e206a2d830c0e10e5265c630.ttf::U+0D38,U+0D4D,U+0D31,U+0D4D,U+0D31,U+0D4D:[glyph201=0+1183|U0D4D=0+0]
../fonts/b722a7d09e60421f3efbc706ad348ab47b88567b.ttf::U+091F,U+094D,U+0930,U+094D,U+0020:[Tra=0+550|virAma=0@-73,-110+0|space=4+500]
../fonts/b722a7d09e60421f3efbc706ad348ab47b88567b.ttf::U+091F,U+094D,U+0930,U+0942:[Tra=0+550|UT=0@42,-150+0]
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录