From ab62bee35b271f4bf7c73a2cdb7539c20e68b70b Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sat, 29 Oct 2016 14:21:27 +0800 Subject: Update UCDN database to Unicode 9.0.0. --- include/mupdf/fitz/ucdn.h | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'include') 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. * @@ -344,6 +354,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 -- cgit v1.2.3