Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
9f9bd9bf
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看板
提交
9f9bd9bf
编写于
5月 23, 2014
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[indic] Rename avagraha cluster to symbol cluster
In anticipation of adding more characters to that class of clusters.
上级
a498565c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
14 deletion
+14
-14
src/hb-ot-shape-complex-indic-machine.rl
src/hb-ot-shape-complex-indic-machine.rl
+5
-5
src/hb-ot-shape-complex-indic-private.hh
src/hb-ot-shape-complex-indic-private.hh
+2
-2
src/hb-ot-shape-complex-indic.cc
src/hb-ot-shape-complex-indic.cc
+7
-7
未找到文件。
src/hb-ot-shape-complex-indic-machine.rl
浏览文件 @
9f9bd9bf
...
...
@@ -56,7 +56,7 @@ Coeng = 14;
Repha = 15;
Ra = 16;
CM = 17;
Avag
= 18;
Symbol
= 18;
CM2 = 31;
c = (C | Ra); # is_consonant
...
...
@@ -67,10 +67,10 @@ reph = (Ra H | Repha); # possible reph
cn = c.ZWJ?.n?;
forced_rakar = ZWJ H ZWJ Ra;
avagraha = Avag
.N?;
symbol = Symbol
.N?;
matra_group = z{0,3}.M.N?.(H | forced_rakar)?;
syllable_tail2 = (SM.SM?.ZWNJ?)? A{0,3}? VD{0,2};
syllable_tail = (Coeng (cn|V))?
avagraha
? syllable_tail2;
syllable_tail = (Coeng (cn|V))?
symbol
? syllable_tail2;
place_holder = NBSP | DOTTEDCIRCLE;
halant_group = (z?.h.(ZWJ.N?)?);
final_halant_group = halant_group | h.ZWNJ;
...
...
@@ -81,7 +81,7 @@ halant_or_matra_group = (final_halant_group | (h.ZWJ)? matra_group{0,4});
consonant_syllable = Repha? (cn.halant_group){0,4} cn medial_group halant_or_matra_group syllable_tail;
vowel_syllable = reph? V.n? (ZWJ | (halant_group.cn){0,4} medial_group halant_or_matra_group syllable_tail);
standalone_cluster = reph? place_holder.n? (halant_group.cn){0,4} medial_group halant_or_matra_group syllable_tail;
avagraha_cluster = avagraha
syllable_tail2;
symbol_cluster = symbol
syllable_tail2;
broken_cluster = reph? n? (halant_group.cn){0,4} medial_group halant_or_matra_group syllable_tail;
other = any;
...
...
@@ -89,7 +89,7 @@ main := |*
consonant_syllable => { found_syllable (consonant_syllable); };
vowel_syllable => { found_syllable (vowel_syllable); };
standalone_cluster => { found_syllable (standalone_cluster); };
avagraha_cluster => { found_syllable (avagraha
_cluster); };
symbol_cluster => { found_syllable (symbol
_cluster); };
broken_cluster => { found_syllable (broken_cluster); };
other => { found_syllable (non_indic_cluster); };
*|;
...
...
src/hb-ot-shape-complex-indic-private.hh
浏览文件 @
9f9bd9bf
...
...
@@ -60,7 +60,7 @@ enum indic_category_t {
OT_Repha
=
15
,
/* Atomically-encoded logical or visual repha. */
OT_Ra
=
16
,
OT_CM
=
17
,
/* Consonant-Medial. */
OT_
Avag
=
18
,
/* Avagraha
. */
OT_
Symbol
=
18
,
/* Avagraha, etc that take marks (SM,A,VD)
. */
OT_CM2
=
31
/* Consonant-Medial, second slot. */
};
...
...
@@ -95,7 +95,7 @@ enum indic_position_t {
enum
indic_syllabic_category_t
{
INDIC_SYLLABIC_CATEGORY_OTHER
=
OT_X
,
INDIC_SYLLABIC_CATEGORY_AVAGRAHA
=
OT_
Avag
,
INDIC_SYLLABIC_CATEGORY_AVAGRAHA
=
OT_
Symbol
,
INDIC_SYLLABIC_CATEGORY_BINDU
=
OT_SM
,
INDIC_SYLLABIC_CATEGORY_CONSONANT
=
OT_C
,
INDIC_SYLLABIC_CATEGORY_CONSONANT_DEAD
=
OT_C
,
...
...
src/hb-ot-shape-complex-indic.cc
浏览文件 @
9f9bd9bf
...
...
@@ -271,7 +271,7 @@ set_indic_properties (hb_glyph_info_t &info)
{
pos
=
matra_position
(
u
,
pos
);
}
else
if
((
FLAG
(
cat
)
&
(
FLAG
(
OT_SM
)
|
FLAG
(
OT_VD
)
|
FLAG
(
OT_A
)
|
FLAG
(
OT_
Avag
))))
else
if
((
FLAG
(
cat
)
&
(
FLAG
(
OT_SM
)
|
FLAG
(
OT_VD
)
|
FLAG
(
OT_A
)
|
FLAG
(
OT_
Symbol
))))
{
pos
=
POS_SMVD
;
}
...
...
@@ -639,7 +639,7 @@ enum syllable_type_t {
consonant_syllable
,
vowel_syllable
,
standalone_cluster
,
avagraha
_cluster
,
symbol
_cluster
,
broken_cluster
,
non_indic_cluster
,
};
...
...
@@ -1207,10 +1207,10 @@ initial_reordering_broken_cluster (const hb_ot_shape_plan_t *plan,
}
static
void
initial_reordering_
avagraha
_cluster
(
const
hb_ot_shape_plan_t
*
plan
HB_UNUSED
,
hb_face_t
*
face
HB_UNUSED
,
hb_buffer_t
*
buffer
HB_UNUSED
,
unsigned
int
start
HB_UNUSED
,
unsigned
int
end
HB_UNUSED
)
initial_reordering_
symbol
_cluster
(
const
hb_ot_shape_plan_t
*
plan
HB_UNUSED
,
hb_face_t
*
face
HB_UNUSED
,
hb_buffer_t
*
buffer
HB_UNUSED
,
unsigned
int
start
HB_UNUSED
,
unsigned
int
end
HB_UNUSED
)
{
/* Nothing to do right now. If we ever switch to using the output
* buffer in the reordering process, we'd need to next_glyph() here. */
...
...
@@ -1238,7 +1238,7 @@ initial_reordering_syllable (const hb_ot_shape_plan_t *plan,
case
consonant_syllable
:
initial_reordering_consonant_syllable
(
plan
,
face
,
buffer
,
start
,
end
);
return
;
case
vowel_syllable
:
initial_reordering_vowel_syllable
(
plan
,
face
,
buffer
,
start
,
end
);
return
;
case
standalone_cluster
:
initial_reordering_standalone_cluster
(
plan
,
face
,
buffer
,
start
,
end
);
return
;
case
avagraha_cluster
:
initial_reordering_avagraha_cluster
(
plan
,
face
,
buffer
,
start
,
end
);
return
;
case
symbol_cluster
:
initial_reordering_symbol_cluster
(
plan
,
face
,
buffer
,
start
,
end
);
return
;
case
broken_cluster
:
initial_reordering_broken_cluster
(
plan
,
face
,
buffer
,
start
,
end
);
return
;
case
non_indic_cluster
:
initial_reordering_non_indic_cluster
(
plan
,
face
,
buffer
,
start
,
end
);
return
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录