David Corbett | 7bffb5d | 2020-08-11 19:24:46 -0400 | [diff] [blame] | 1 | /* == Start of generated function == */ |
| 2 | /* |
| 3 | * The following function is generated by running: |
| 4 | * |
| 5 | * ./gen-arabic-joining-list.py ArabicShaping.txt Scripts.txt |
| 6 | * |
| 7 | * on files with these headers: |
| 8 | * |
David Corbett | f485b6a | 2023-09-16 09:49:29 -0400 | [diff] [blame] | 9 | * # ArabicShaping-15.1.0.txt |
| 10 | * # Date: 2023-01-05 |
| 11 | * # Scripts-15.1.0.txt |
| 12 | * # Date: 2023-07-28, 16:01:07 GMT |
David Corbett | 7bffb5d | 2020-08-11 19:24:46 -0400 | [diff] [blame] | 13 | */ |
| 14 | |
Behdad Esfahbod | 44be1e5 | 2022-06-03 02:54:33 -0600 | [diff] [blame] | 15 | #ifndef HB_OT_SHAPER_ARABIC_JOINING_LIST_HH |
| 16 | #define HB_OT_SHAPER_ARABIC_JOINING_LIST_HH |
David Corbett | 7bffb5d | 2020-08-11 19:24:46 -0400 | [diff] [blame] | 17 | |
| 18 | static bool |
| 19 | has_arabic_joining (hb_script_t script) |
| 20 | { |
| 21 | /* List of scripts that have data in arabic-table. */ |
| 22 | switch ((int) script) |
| 23 | { |
| 24 | case HB_SCRIPT_ADLAM: |
| 25 | case HB_SCRIPT_ARABIC: |
| 26 | case HB_SCRIPT_CHORASMIAN: |
| 27 | case HB_SCRIPT_HANIFI_ROHINGYA: |
David Corbett | 7bffb5d | 2020-08-11 19:24:46 -0400 | [diff] [blame] | 28 | case HB_SCRIPT_MANDAIC: |
| 29 | case HB_SCRIPT_MANICHAEAN: |
| 30 | case HB_SCRIPT_MONGOLIAN: |
| 31 | case HB_SCRIPT_NKO: |
David Corbett | f149335 | 2021-09-14 18:46:50 -0400 | [diff] [blame] | 32 | case HB_SCRIPT_OLD_UYGHUR: |
David Corbett | 7bffb5d | 2020-08-11 19:24:46 -0400 | [diff] [blame] | 33 | case HB_SCRIPT_PHAGS_PA: |
| 34 | case HB_SCRIPT_PSALTER_PAHLAVI: |
| 35 | case HB_SCRIPT_SOGDIAN: |
| 36 | case HB_SCRIPT_SYRIAC: |
| 37 | return true; |
| 38 | |
| 39 | default: |
| 40 | return false; |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | |
Behdad Esfahbod | 44be1e5 | 2022-06-03 02:54:33 -0600 | [diff] [blame] | 45 | #endif /* HB_OT_SHAPER_ARABIC_JOINING_LIST_HH */ |
David Corbett | 7bffb5d | 2020-08-11 19:24:46 -0400 | [diff] [blame] | 46 | |
| 47 | /* == End of generated function == */ |