提交 d69d5cea 编写于 作者: B Behdad Esfahbod

[Indic] Well, at least finding syllables works now :)

Still not much there.
上级 253a57fb
...@@ -60,7 +60,8 @@ matra_group = M N? H?; ...@@ -60,7 +60,8 @@ matra_group = M N? H?;
syllable_tail = SM? (VD VD?)?; syllable_tail = SM? (VD VD?)?;
action matched_syllable { action matched_syllable {
//fprintf (stderr, "Syll %d\n", p); matched_syllable (c, last, p);
last = p;
} }
consonant_syllable = (c.N? (z.H|H.z?))* c.N? A? (H.z? | matra_group*)? syllable_tail %(matched_syllable); consonant_syllable = (c.N? (z.H|H.z?))* c.N? A? (H.z? | matra_group*)? syllable_tail %(matched_syllable);
...@@ -96,6 +97,7 @@ find_syllables (hb_ot_shape_context_t *c) ...@@ -96,6 +97,7 @@ find_syllables (hb_ot_shape_context_t *c)
p = 0; p = 0;
pe = eof = c->buffer->len; pe = eof = c->buffer->len;
unsigned int last = 0;
%%{ %%{
write exec; write exec;
}%% }%%
......
...@@ -293,12 +293,19 @@ _hb_ot_shape_complex_collect_features_indic (hb_ot_shape_planner_t *planner, con ...@@ -293,12 +293,19 @@ _hb_ot_shape_complex_collect_features_indic (hb_ot_shape_planner_t *planner, con
} }
static void
matched_syllable (hb_ot_shape_context_t *c,
unsigned int start,
unsigned int end)
{
//fprintf (stderr, "%d %d\n", start, end);
}
#include "hb-ot-shape-complex-indic-machine.hh" #include "hb-ot-shape-complex-indic-machine.hh"
void void
_hb_ot_shape_complex_setup_masks_indic (hb_ot_shape_context_t *c) _hb_ot_shape_complex_setup_masks_indic (hb_ot_shape_context_t *c)
{ {
unsigned int count = c->buffer->len; unsigned int count = c->buffer->len;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册