[arabic-joining] Rename table

Fixes clash.
This commit is contained in:
Behdad Esfahbod committed 2026-03-02 01:53:22 -03:00
1 parent 6e778ea051
commit 3c5bcbb687
2 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -80,7 +80,7 @@ def print_joining_table(f):
value = "JOINING_TYPE_" + fields[2]
values[u] = value
code = packTab.Code ('_hb_arabic')
code = packTab.Code ('_hb_arabic_joining')
data = {u: JOINING_CODE[v] for u, v in values.items ()}
sol = packTab.pack_table (data, default=JOINING_CODE['JOINING_TYPE_X'], compression=9)
sol.genCode (code, 'joining_type', language='c', private=True)
@@ -92,7 +92,7 @@ def print_joining_table(f):
print ("static unsigned int")
print ("joining_type (hb_codepoint_t u)")
print ("{")
print (" return _hb_arabic_joining_type (u);")
print (" return _hb_arabic_joining_joining_type (u);")
print ("}")
print ()
+5 -5
View File
@@ -20,7 +20,7 @@
#include <stdint.h>
static const uint8_t _hb_arabic_u8[737]=
static const uint8_t _hb_arabic_joining_u8[737]=
{
0, 16, 2, 0, 0, 0, 3, 0, 4, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -71,19 +71,19 @@ static const uint8_t _hb_arabic_u8[737]=
119,
};
static inline uint8_t _hb_arabic_b4 (const uint8_t* a, unsigned i)
static inline uint8_t _hb_arabic_joining_b4 (const uint8_t* a, unsigned i)
{
return (a[i>>1]>>((i&1)<<2))&15;
}
static inline uint8_t _hb_arabic_joining_type (unsigned u)
static inline uint8_t _hb_arabic_joining_joining_type (unsigned u)
{
return u<125260u ? (uint8_t)(_hb_arabic_b4(_hb_arabic_u8+441u,((_hb_arabic_u8[209u+_hb_arabic_u8[123u+((_hb_arabic_b4(_hb_arabic_u8,((((((u)>>3))>>3))>>3)))<<3)+((((((u)>>3))>>3))&7)]+((((u)>>3))&7)])<<3)+((u)&7))) : 7;
return u<125260u ? (uint8_t)(_hb_arabic_joining_b4(_hb_arabic_joining_u8+441u,((_hb_arabic_joining_u8[209u+_hb_arabic_joining_u8[123u+((_hb_arabic_joining_b4(_hb_arabic_joining_u8,((((((u)>>3))>>3))>>3)))<<3)+((((((u)>>3))>>3))&7)]+((((u)>>3))&7)])<<3)+((u)&7))) : 7;
}
static unsigned int
joining_type (hb_codepoint_t u)
{
return _hb_arabic_joining_type (u);
return _hb_arabic_joining_joining_type (u);
}