Skip to content

Commit

Permalink
Port decompositions from Indic to USE shaper
Browse files Browse the repository at this point in the history
Part of harfbuzz#382
  • Loading branch information
behdad committed Dec 28, 2016
1 parent e678b53 commit f6ba63b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/hb-ot-shape-complex-indic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1732,29 +1732,13 @@ decompose_indic (const hb_ot_shape_normalize_context_t *c,
case 0x17C4u : *a = 0x17C1u; *b= 0x17C4u; return true;
case 0x17C5u : *a = 0x17C1u; *b= 0x17C5u; return true;

/* Limbu */
case 0x1925u : *a = 0x1920u; *b= 0x1923u; return true;
case 0x1926u : *a = 0x1920u; *b= 0x1924u; return true;

/* Balinese */
case 0x1B3Cu : *a = 0x1B42u; *b= 0x1B3Cu; return true;

#if 0
/* Gujarati */
/* This one has no decomposition in Unicode, but needs no decomposition either. */
/* case 0x0AC9u : return false; */

/* Oriya */
case 0x0B57u : *a = no decomp, -> RIGHT; return true;

/* Lepcha */
case 0x1C29u : *a = no decomp, -> LEFT; return true;

/* Javanese */
case 0xA9C0u : *a = no decomp, -> RIGHT; return true;

/* Sharada */
case 0x111BFu : *a = no decomp, -> ABOVE; return true;
#endif
}

Expand Down
22 changes: 22 additions & 0 deletions src/hb-ot-shape-complex-use.cc
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,28 @@ decompose_use (const hb_ot_shape_normalize_context_t *c,
*/
case 0x1112Eu : *a = 0x11127u; *b= 0x11131u; return true;
case 0x1112Fu : *a = 0x11127u; *b= 0x11132u; return true;

/*
* Decompose split matras that don't have Unicode decompositions.
*/

/* Limbu */
case 0x1925u : *a = 0x1920u; *b= 0x1923u; return true;
case 0x1926u : *a = 0x1920u; *b= 0x1924u; return true;

/* Balinese */
case 0x1B3Cu : *a = 0x1B42u; *b= 0x1B3Cu; return true;

#if 0
/* Lepcha */
case 0x1C29u : *a = no decomp, -> LEFT; return true;

/* Javanese */
case 0xA9C0u : *a = no decomp, -> RIGHT; return true;

/* Sharada */
case 0x111BFu : *a = no decomp, -> ABOVE; return true;
#endif
}

return (bool) c->unicode->decompose (ab, a, b);
Expand Down

0 comments on commit f6ba63b

Please sign in to comment.