projects
/
apps
/
core
/
preloaded
/
video-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee58f3b
)
[Indic] Handle initial Ra+Halant in scripts that support Reph
author
Behdad Esfahbod
<behdad@behdad.org>
Sun, 31 Jul 2011 00:14:44 +0000
(20:14 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Sun, 31 Jul 2011 00:14:44 +0000
(20:14 -0400)
Brings test-shape-complex failures down from 104 to 92. Way to go!
src/hb-ot-shape-complex-indic.cc
patch
|
blob
|
history
diff --git
a/src/hb-ot-shape-complex-indic.cc
b/src/hb-ot-shape-complex-indic.cc
index
f054a07
..
d51b508
100644
(file)
--- a/
src/hb-ot-shape-complex-indic.cc
+++ b/
src/hb-ot-shape-complex-indic.cc
@@
-496,6
+496,16
@@
found_consonant_syllable (const hb_ot_map_t *map, hb_buffer_t *buffer, hb_mask_t
info[i].indic_position() = POS_PRE;
info[base].indic_position() = POS_BASE;
+
+ /* Handle beginning Ra */
+ if (start + 2 <= end &&
+ info[start].indic_category() == OT_Ra &&
+ info[start + 1].indic_category() == OT_H)
+ {
+ info[start].indic_position() = POS_POST;
+ info[start].mask = mask_array[RPHF];
+ }
+
/* Attach ZWJ, ZWNJ, nukta, and halant to previous char to move with them. */
for (i = start + 1; i < end; i++)
if ((FLAG (info[i].indic_category()) &