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

Still not much there.
This commit is contained in:
Behdad Esfahbod 2011-07-04 12:56:38 -04:00
parent 253a57fb5a
commit d69d5ceaa0
2 changed files with 11 additions and 2 deletions

View File

@ -60,7 +60,8 @@ matra_group = M N? H?;
syllable_tail = SM? (VD VD?)?;
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);
@ -96,6 +97,7 @@ find_syllables (hb_ot_shape_context_t *c)
p = 0;
pe = eof = c->buffer->len;
unsigned int last = 0;
%%{
write exec;
}%%

View File

@ -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"
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;