Module ucdn
+Lua bindings to ucdn.
++ +
-
+
- Source on Github +
Info:
+-
+
- Copyright: 2016 +
- License: MIT +
- Author: Deepak Jois <deepak.jois@gmail.com> +
Functions
+get_unicode_version () | +Return version of the Unicode database. | +
get_bidi_class (code) | +Get bidirectional class of a codepoint. | +
paired_bracket (code) | +Get paired bracket for a codepoint. | +
paired_bracket_type (code) | +Get paired bracket type for a codepoint. | +
Bidi_Class property
+UCDN_BIDI_CLASS_L | +Left_To_Right | +
UCDN_BIDI_CLASS_LRE | +Left_To_Right_Embedding | +
UCDN_BIDI_CLASS_LRO | +Left_To_Right_Override | +
UCDN_BIDI_CLASS_R | +Right_To_Left | +
UCDN_BIDI_CLASS_AL | +Arabic_Letter | +
UCDN_BIDI_CLASS_RLE | +Right_To_Left_Embedding | +
UCDN_BIDI_CLASS_RLO | +Right_To_Left_Override | +
UCDN_BIDI_CLASS_PDF | +Pop_Directional_Format | +
UCDN_BIDI_CLASS_EN | +European_Number | +
UCDN_BIDI_CLASS_ES | +European_Separator | +
UCDN_BIDI_CLASS_ET | +European_Terminator | +
UCDN_BIDI_CLASS_AN | +Arabic_Number | +
UCDN_BIDI_CLASS_CS | +Common_Separator | +
UCDN_BIDI_CLASS_NSM | +Nonspacing_Mark | +
UCDN_BIDI_CLASS_BN | +Boundary_Neutral | +
UCDN_BIDI_CLASS_B | +Paragraph_Separator | +
UCDN_BIDI_CLASS_S | +Segment_Separator | +
UCDN_BIDI_CLASS_WS | +White_Space | +
UCDN_BIDI_CLASS_ON | +Other_Neutral | +
UCDN_BIDI_CLASS_LRI | +Left_To_Right_Isolate | +
UCDN_BIDI_CLASS_RLI | +Right_To_Left_Isolate | +
UCDN_BIDI_CLASS_FSI | +First_Strong_Isolate | +
UCDN_BIDI_CLASS_PDI | +Pop_Directional_Isolate | +
Bidi_Paired_Bracket_Type property
+UCDN_BIDI_PAIRED_BRACKET_TYPE_OPEN | +Open | +
UCDN_BIDI_PAIRED_BRACKET_TYPE_CLOSE | +Close | +
UCDN_BIDI_PAIRED_BRACKET_TYPE_NONE | +None | +
+
+ + +
Functions
+ +-
+
- + + get_unicode_version () + +
-
+ Return version of the Unicode database.
+
+
+
+
Returns:
+-
+
+ version string, e.g.
8.0.0
+
+ - + + get_bidi_class (code) + +
-
+ Get bidirectional class of a codepoint.
+
+
+
Parameters:
+-
+
- code + Unicode codepoint + +
Returns:
+-
+
+ value according to ucdn.UCDNBIDICLASS_* and as defined in UAX#44.
+
+ - + + paired_bracket (code) + +
-
+ Get paired bracket for a codepoint.
+
+
+
Parameters:
+-
+
- code + Unicode codepoint + +
Returns:
+-
+
+ paired bracket codepoint or the original codepoint if no paired bracket character exists
+
+ - + + paired_bracket_type (code) + +
-
+ Get paired bracket type for a codepoint.
+
+
+
Parameters:
+-
+
- code + Unicode codepoint + +
Returns:
+-
+
+ value according to ucdn.UCDNBIDIPAIREDBRACKETTYPE_* and as defined in UAX#9.
+
+
Bidi_Class property
+ +
+ Enumerated constants representing Bidi_Class values.
+
+ -
+
- + + UCDN_BIDI_CLASS_L + +
- + Left_To_Right + + + + + + + + +
- + + UCDN_BIDI_CLASS_LRE + +
- + Left_To_Right_Embedding + + + + + + + + +
- + + UCDN_BIDI_CLASS_LRO + +
- + Left_To_Right_Override + + + + + + + + +
- + + UCDN_BIDI_CLASS_R + +
- + Right_To_Left + + + + + + + + +
- + + UCDN_BIDI_CLASS_AL + +
- + Arabic_Letter + + + + + + + + +
- + + UCDN_BIDI_CLASS_RLE + +
- + Right_To_Left_Embedding + + + + + + + + +
- + + UCDN_BIDI_CLASS_RLO + +
- + Right_To_Left_Override + + + + + + + + +
- + + UCDN_BIDI_CLASS_PDF + +
- + Pop_Directional_Format + + + + + + + + +
- + + UCDN_BIDI_CLASS_EN + +
- + European_Number + + + + + + + + +
- + + UCDN_BIDI_CLASS_ES + +
- + European_Separator + + + + + + + + +
- + + UCDN_BIDI_CLASS_ET + +
- + European_Terminator + + + + + + + + +
- + + UCDN_BIDI_CLASS_AN + +
- + Arabic_Number + + + + + + + + +
- + + UCDN_BIDI_CLASS_CS + +
- + Common_Separator + + + + + + + + +
- + + UCDN_BIDI_CLASS_NSM + +
- + Nonspacing_Mark + + + + + + + + +
- + + UCDN_BIDI_CLASS_BN + +
- + Boundary_Neutral + + + + + + + + +
- + + UCDN_BIDI_CLASS_B + +
- + Paragraph_Separator + + + + + + + + +
- + + UCDN_BIDI_CLASS_S + +
- + Segment_Separator + + + + + + + + +
- + + UCDN_BIDI_CLASS_WS + +
- + White_Space + + + + + + + + +
- + + UCDN_BIDI_CLASS_ON + +
- + Other_Neutral + + + + + + + + +
- + + UCDN_BIDI_CLASS_LRI + +
- + Left_To_Right_Isolate + + + + + + + + +
- + + UCDN_BIDI_CLASS_RLI + +
- + Right_To_Left_Isolate + + + + + + + + +
- + + UCDN_BIDI_CLASS_FSI + +
- + First_Strong_Isolate + + + + + + + + +
- + + UCDN_BIDI_CLASS_PDI + +
- + Pop_Directional_Isolate + + + + + + + + +
Bidi_Paired_Bracket_Type property
+ +
+ Enumerated constants representing Bidi_Paired_Bracket_Type values.
+
+
+
+
+