Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
be8b9f5f
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看板
提交
be8b9f5f
编写于
7月 19, 2012
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Indic] Start refactoring different matra positions per script
上级
deeb540a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
24 addition
and
16 deletion
+24
-16
src/hb-ot-shape-complex-indic-private.hh
src/hb-ot-shape-complex-indic-private.hh
+22
-14
src/hb-ot-shape-complex-indic.cc
src/hb-ot-shape-complex-indic.cc
+2
-2
未找到文件。
src/hb-ot-shape-complex-indic-private.hh
浏览文件 @
be8b9f5f
...
...
@@ -69,15 +69,23 @@ enum indic_position_t {
POS_RA_TO_BECOME_REPH
,
POS_PRE_M
,
POS_PRE_C
,
POS_BASE_C
,
POS_AFTER_MAIN
,
POS_ABOVE_C
,
POS_BEFORE_SUB
,
POS_BELOW_C
,
POS_ABOVE_M
,
POS_BELOW_M
,
POS_AFTER_SUB
,
POS_BEFORE_POST
,
POS_POST_C
,
POS_POST_M
,
POS_AFTER_POST
,
POS_FINAL_C
,
POS_SMVD
POS_SMVD
,
POS_END
};
/* Categories used in IndicSyllabicCategory.txt from UCD. */
...
...
@@ -111,9 +119,9 @@ enum indic_matra_category_t {
INDIC_MATRA_CATEGORY_NOT_APPLICABLE
=
POS_BASE_C
,
INDIC_MATRA_CATEGORY_LEFT
=
POS_PRE_M
,
INDIC_MATRA_CATEGORY_TOP
=
POS_
ABOVE_M
,
INDIC_MATRA_CATEGORY_BOTTOM
=
POS_BE
LOW_M
,
INDIC_MATRA_CATEGORY_RIGHT
=
POS_
POST_M
,
INDIC_MATRA_CATEGORY_TOP
=
POS_
BEFORE_POST
,
INDIC_MATRA_CATEGORY_BOTTOM
=
POS_BE
FORE_POST
,
INDIC_MATRA_CATEGORY_RIGHT
=
POS_
AFTER_POST
,
/* We don't really care much about these since we decompose them
* in the generic pre-shaping layer. They will only be used if
...
...
@@ -124,13 +132,13 @@ enum indic_matra_category_t {
* TODO: There are some split matras without Unicode decompositions.
* We have to figure out what to do with them.
*/
INDIC_MATRA_CATEGORY_BOTTOM_AND_RIGHT
=
POS_
POST_M
,
INDIC_MATRA_CATEGORY_LEFT_AND_RIGHT
=
POS_
POST_M
,
INDIC_MATRA_CATEGORY_TOP_AND_BOTTOM
=
POS_BE
LOW_M
,
INDIC_MATRA_CATEGORY_TOP_AND_BOTTOM_AND_RIGHT
=
POS_
POST_M
,
INDIC_MATRA_CATEGORY_TOP_AND_LEFT
=
POS_
ABOVE_M
,
INDIC_MATRA_CATEGORY_TOP_AND_LEFT_AND_RIGHT
=
POS_
POST_M
,
INDIC_MATRA_CATEGORY_TOP_AND_RIGHT
=
POS_
POST_M
,
INDIC_MATRA_CATEGORY_BOTTOM_AND_RIGHT
=
POS_
AFTER_POST
,
INDIC_MATRA_CATEGORY_LEFT_AND_RIGHT
=
POS_
AFTER_POST
,
INDIC_MATRA_CATEGORY_TOP_AND_BOTTOM
=
POS_BE
FORE_POST
,
INDIC_MATRA_CATEGORY_TOP_AND_BOTTOM_AND_RIGHT
=
POS_
AFTER_POST
,
INDIC_MATRA_CATEGORY_TOP_AND_LEFT
=
POS_
BEFORE_POST
,
INDIC_MATRA_CATEGORY_TOP_AND_LEFT_AND_RIGHT
=
POS_
AFTER_POST
,
INDIC_MATRA_CATEGORY_TOP_AND_RIGHT
=
POS_
AFTER_POST
,
INDIC_MATRA_CATEGORY_INVISIBLE
=
INDIC_MATRA_CATEGORY_NOT_APPLICABLE
,
INDIC_MATRA_CATEGORY_OVERSTRUCK
=
INDIC_MATRA_CATEGORY_NOT_APPLICABLE
,
...
...
src/hb-ot-shape-complex-indic.cc
浏览文件 @
be8b9f5f
...
...
@@ -846,7 +846,7 @@ final_reordering_syllable (hb_buffer_t *buffer,
new_reph_pos
=
base
;
/* XXX Skip potential pre-base reordering Ra. */
while
(
new_reph_pos
<
end
&&
!
(
FLAG
(
info
[
new_reph_pos
+
1
].
indic_position
())
&
(
FLAG
(
POS_BELOW_C
)
|
FLAG
(
POS_POST_C
)
|
FLAG
(
POS_
POST_M
)
|
FLAG
(
POS_SMVD
))))
!
(
FLAG
(
info
[
new_reph_pos
+
1
].
indic_position
())
&
(
FLAG
(
POS_BELOW_C
)
|
FLAG
(
POS_POST_C
)
|
FLAG
(
POS_
AFTER_POST
)
|
FLAG
(
POS_SMVD
))))
new_reph_pos
++
;
if
(
new_reph_pos
<
end
)
goto
reph_move
;
...
...
@@ -862,7 +862,7 @@ final_reordering_syllable (hb_buffer_t *buffer,
{
new_reph_pos
=
base
;
while
(
new_reph_pos
<
end
&&
!
(
FLAG
(
info
[
new_reph_pos
+
1
].
indic_position
())
&
(
FLAG
(
POS_POST_C
)
|
FLAG
(
POS_
POST_M
)
|
FLAG
(
POS_SMVD
))))
!
(
FLAG
(
info
[
new_reph_pos
+
1
].
indic_position
())
&
(
FLAG
(
POS_POST_C
)
|
FLAG
(
POS_
AFTER_POST
)
|
FLAG
(
POS_SMVD
))))
new_reph_pos
++
;
if
(
new_reph_pos
<
end
)
goto
reph_move
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录