summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-10-29 14:21:27 +0800
committerTor Andersson <tor.andersson@artifex.com>2016-11-23 11:17:34 +0100
commitab62bee35b271f4bf7c73a2cdb7539c20e68b70b (patch)
treea4d1d2b2cfa26d9d1fe614e9496837bdc093f083 /include
parentaafb150c3bf2357a5e73c435923643f1b292c7a3 (diff)
downloadmupdf-ab62bee35b271f4bf7c73a2cdb7539c20e68b70b.tar.xz
Update UCDN database to Unicode 9.0.0.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/ucdn.h31
1 files changed, 30 insertions, 1 deletions
diff --git a/include/mupdf/fitz/ucdn.h b/include/mupdf/fitz/ucdn.h
index 6f12ecf1..b0377a7c 100644
--- a/include/mupdf/fitz/ucdn.h
+++ b/include/mupdf/fitz/ucdn.h
@@ -160,7 +160,13 @@ extern "C" {
#define UCDN_SCRIPT_MULTANI 129
#define UCDN_SCRIPT_OLD_HUNGARIAN 130
#define UCDN_SCRIPT_SIGNWRITING 131
-#define UCDN_LAST_SCRIPT 131
+#define UCDN_SCRIPT_ADLAM 132
+#define UCDN_SCRIPT_BHAIKSUKI 133
+#define UCDN_SCRIPT_MARCHEN 134
+#define UCDN_SCRIPT_NEWA 135
+#define UCDN_SCRIPT_OSAGE 136
+#define UCDN_SCRIPT_TANGUT 137
+#define UCDN_LAST_SCRIPT 137
#define UCDN_LINEBREAK_CLASS_OP 0
#define UCDN_LINEBREAK_CLASS_CL 1
@@ -258,6 +264,10 @@ extern "C" {
#define UCDN_BIDI_CLASS_FSI 21
#define UCDN_BIDI_CLASS_PDI 22
+#define UCDN_BIDI_PAIRED_BRACKET_TYPE_OPEN 0
+#define UCDN_BIDI_PAIRED_BRACKET_TYPE_CLOSE 1
+#define UCDN_BIDI_PAIRED_BRACKET_TYPE_NONE 2
+
/**
* Return version of the Unicode database.
*
@@ -345,6 +355,25 @@ int ucdn_get_mirrored(uint32_t code);
uint32_t ucdn_mirror(uint32_t code);
/**
+ * Get paired bracket for a codepoint.
+ *
+ * @param code Unicode codepoint
+ * @return paired bracket codepoint or the original codepoint if no
+ * paired bracket character exists
+ */
+uint32_t ucdn_paired_bracket(uint32_t code);
+
+/**
+ * Get paired bracket type for a codepoint.
+ *
+ * @param code Unicode codepoint
+ * @return value according to UCDN_BIDI_PAIRED_BRACKET_TYPE_* and as defined
+ * in UAX#9.
+ *
+ */
+int ucdn_paired_bracket_type(uint32_t code);
+
+/**
* Pairwise canonical decomposition of a codepoint. This includes
* Hangul Jamo decomposition (see chapter 3.12 of the Unicode core
* specification).