aboutsummaryrefslogtreecommitdiff
path: root/src/arabic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/arabic.h')
-rw-r--r--src/arabic.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/arabic.h b/src/arabic.h
index 2c435faa5c..5129b5a56a 100644
--- a/src/arabic.h
+++ b/src/arabic.h
@@ -1,7 +1,13 @@
#ifndef NEOVIM_ARABIC_H
#define NEOVIM_ARABIC_H
-int arabic_char(int c);
+/// Whether c belongs to the range of Arabic characters that might be shaped.
+static inline int arabic_char(int c)
+{
+ // return c >= a_HAMZA && c <= a_MINI_ALEF;
+ return c >= 0x0621 && c <= 0x0670;
+}
+
int arabic_shape(int c, int *ccp, int *c1p, int prev_c, int prev_c1,
int next_c);
int arabic_combine(int one, int two);