projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68af14d
)
Treat HAMZA ABOVE similar to SHADD for sorting purposes
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 10 Aug 2017 00:23:28 +0000
(17:23 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 10 Aug 2017 00:23:28 +0000
(17:23 -0700)
Part of https://github.com/behdad/harfbuzz/issues/509
src/hb-unicode-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-unicode-private.hh
b/src/hb-unicode-private.hh
index
aa86a72
..
34513e1
100644
(file)
--- a/
src/hb-unicode-private.hh
+++ b/
src/hb-unicode-private.hh
@@
-105,6
+105,10
@@
HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS_SIMPLE
inline unsigned int
modified_combining_class (hb_codepoint_t unicode)
{
+ /* XXX This hack belongs to the Arabic shaper:
+ * Put HAMZA ABOVE in the same class as SHADDA. */
+ if (unlikely (unicode == 0x0654u)) unicode = 0x0651u;
+
/* XXX This hack belongs to the Myanmar shaper. */
if (unlikely (unicode == 0x1037u)) unicode = 0x103Au;