jassub 1.7.13 → 1.7.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/package.json +4 -2
  2. package/dist/js/jassub-worker-modern.js +0 -128
  3. package/dist/js/jassub-worker-modern.wasm +0 -0
  4. package/dist/js/jassub-worker.js +0 -128
  5. package/dist/js/jassub-worker.wasm +0 -0
  6. package/dist/js/jassub-worker.wasm.js +0 -84
  7. package/dist/js/jassub.js +0 -832
  8. package/dist/libraries/bin/brotli.js +0 -1
  9. package/dist/libraries/include/ass/ass.h +0 -812
  10. package/dist/libraries/include/ass/ass_types.h +0 -292
  11. package/dist/libraries/include/brotli/decode.h +0 -344
  12. package/dist/libraries/include/brotli/encode.h +0 -448
  13. package/dist/libraries/include/brotli/port.h +0 -288
  14. package/dist/libraries/include/brotli/types.h +0 -83
  15. package/dist/libraries/include/expat.h +0 -1064
  16. package/dist/libraries/include/expat_config.h +0 -115
  17. package/dist/libraries/include/expat_external.h +0 -165
  18. package/dist/libraries/include/fontconfig/fcfreetype.h +0 -59
  19. package/dist/libraries/include/fontconfig/fcprivate.h +0 -134
  20. package/dist/libraries/include/fontconfig/fontconfig.h +0 -1154
  21. package/dist/libraries/include/freetype2/freetype/config/ftconfig.h +0 -63
  22. package/dist/libraries/include/freetype2/freetype/config/ftheader.h +0 -824
  23. package/dist/libraries/include/freetype2/freetype/config/ftmodule.h +0 -20
  24. package/dist/libraries/include/freetype2/freetype/config/ftoption.h +0 -1011
  25. package/dist/libraries/include/freetype2/freetype/config/ftstdlib.h +0 -175
  26. package/dist/libraries/include/freetype2/freetype/config/integer-types.h +0 -245
  27. package/dist/libraries/include/freetype2/freetype/config/mac-support.h +0 -49
  28. package/dist/libraries/include/freetype2/freetype/config/public-macros.h +0 -120
  29. package/dist/libraries/include/freetype2/freetype/freetype.h +0 -4833
  30. package/dist/libraries/include/freetype2/freetype/ftadvanc.h +0 -188
  31. package/dist/libraries/include/freetype2/freetype/ftbbox.h +0 -101
  32. package/dist/libraries/include/freetype2/freetype/ftbdf.h +0 -212
  33. package/dist/libraries/include/freetype2/freetype/ftbitmap.h +0 -329
  34. package/dist/libraries/include/freetype2/freetype/ftbzip2.h +0 -102
  35. package/dist/libraries/include/freetype2/freetype/ftcache.h +0 -1087
  36. package/dist/libraries/include/freetype2/freetype/ftchapters.h +0 -147
  37. package/dist/libraries/include/freetype2/freetype/ftcid.h +0 -167
  38. package/dist/libraries/include/freetype2/freetype/ftcolor.h +0 -1609
  39. package/dist/libraries/include/freetype2/freetype/ftdriver.h +0 -1193
  40. package/dist/libraries/include/freetype2/freetype/fterrdef.h +0 -279
  41. package/dist/libraries/include/freetype2/freetype/fterrors.h +0 -296
  42. package/dist/libraries/include/freetype2/freetype/ftfntfmt.h +0 -93
  43. package/dist/libraries/include/freetype2/freetype/ftgasp.h +0 -143
  44. package/dist/libraries/include/freetype2/freetype/ftglyph.h +0 -664
  45. package/dist/libraries/include/freetype2/freetype/ftgxval.h +0 -354
  46. package/dist/libraries/include/freetype2/freetype/ftgzip.h +0 -151
  47. package/dist/libraries/include/freetype2/freetype/ftimage.h +0 -1276
  48. package/dist/libraries/include/freetype2/freetype/ftincrem.h +0 -348
  49. package/dist/libraries/include/freetype2/freetype/ftlcdfil.h +0 -323
  50. package/dist/libraries/include/freetype2/freetype/ftlist.h +0 -296
  51. package/dist/libraries/include/freetype2/freetype/ftlogging.h +0 -184
  52. package/dist/libraries/include/freetype2/freetype/ftlzw.h +0 -100
  53. package/dist/libraries/include/freetype2/freetype/ftmac.h +0 -289
  54. package/dist/libraries/include/freetype2/freetype/ftmm.h +0 -752
  55. package/dist/libraries/include/freetype2/freetype/ftmodapi.h +0 -806
  56. package/dist/libraries/include/freetype2/freetype/ftmoderr.h +0 -204
  57. package/dist/libraries/include/freetype2/freetype/ftotval.h +0 -206
  58. package/dist/libraries/include/freetype2/freetype/ftoutln.h +0 -586
  59. package/dist/libraries/include/freetype2/freetype/ftparams.h +0 -203
  60. package/dist/libraries/include/freetype2/freetype/ftpfr.h +0 -179
  61. package/dist/libraries/include/freetype2/freetype/ftrender.h +0 -244
  62. package/dist/libraries/include/freetype2/freetype/ftsizes.h +0 -159
  63. package/dist/libraries/include/freetype2/freetype/ftsnames.h +0 -272
  64. package/dist/libraries/include/freetype2/freetype/ftstroke.h +0 -773
  65. package/dist/libraries/include/freetype2/freetype/ftsynth.h +0 -83
  66. package/dist/libraries/include/freetype2/freetype/ftsystem.h +0 -352
  67. package/dist/libraries/include/freetype2/freetype/fttrigon.h +0 -350
  68. package/dist/libraries/include/freetype2/freetype/fttypes.h +0 -615
  69. package/dist/libraries/include/freetype2/freetype/ftwinfnt.h +0 -276
  70. package/dist/libraries/include/freetype2/freetype/t1tables.h +0 -773
  71. package/dist/libraries/include/freetype2/freetype/ttnameid.h +0 -1235
  72. package/dist/libraries/include/freetype2/freetype/tttables.h +0 -855
  73. package/dist/libraries/include/freetype2/freetype/tttags.h +0 -123
  74. package/dist/libraries/include/freetype2/ft2build.h +0 -42
  75. package/dist/libraries/include/fribidi/fribidi-arabic.h +0 -81
  76. package/dist/libraries/include/fribidi/fribidi-begindecls.h +0 -3
  77. package/dist/libraries/include/fribidi/fribidi-bidi-types-list.h +0 -96
  78. package/dist/libraries/include/fribidi/fribidi-bidi-types.h +0 -405
  79. package/dist/libraries/include/fribidi/fribidi-bidi.h +0 -142
  80. package/dist/libraries/include/fribidi/fribidi-brackets.h +0 -89
  81. package/dist/libraries/include/fribidi/fribidi-char-sets-list.h +0 -54
  82. package/dist/libraries/include/fribidi/fribidi-char-sets.h +0 -106
  83. package/dist/libraries/include/fribidi/fribidi-common.h +0 -158
  84. package/dist/libraries/include/fribidi/fribidi-config.h +0 -23
  85. package/dist/libraries/include/fribidi/fribidi-deprecated.h +0 -175
  86. package/dist/libraries/include/fribidi/fribidi-enddecls.h +0 -3
  87. package/dist/libraries/include/fribidi/fribidi-flags.h +0 -72
  88. package/dist/libraries/include/fribidi/fribidi-joining-types-list.h +0 -44
  89. package/dist/libraries/include/fribidi/fribidi-joining-types.h +0 -249
  90. package/dist/libraries/include/fribidi/fribidi-joining.h +0 -74
  91. package/dist/libraries/include/fribidi/fribidi-mirroring.h +0 -86
  92. package/dist/libraries/include/fribidi/fribidi-shape.h +0 -71
  93. package/dist/libraries/include/fribidi/fribidi-types.h +0 -79
  94. package/dist/libraries/include/fribidi/fribidi-unicode-version.h +0 -10
  95. package/dist/libraries/include/fribidi/fribidi-unicode.h +0 -105
  96. package/dist/libraries/include/fribidi/fribidi.h +0 -129
  97. package/dist/libraries/include/harfbuzz/hb-aat-layout.h +0 -795
  98. package/dist/libraries/include/harfbuzz/hb-aat.h +0 -38
  99. package/dist/libraries/include/harfbuzz/hb-blob.h +0 -160
  100. package/dist/libraries/include/harfbuzz/hb-buffer.h +0 -799
  101. package/dist/libraries/include/harfbuzz/hb-common.h +0 -902
  102. package/dist/libraries/include/harfbuzz/hb-cplusplus.hh +0 -221
  103. package/dist/libraries/include/harfbuzz/hb-deprecated.h +0 -251
  104. package/dist/libraries/include/harfbuzz/hb-draw.h +0 -325
  105. package/dist/libraries/include/harfbuzz/hb-face.h +0 -181
  106. package/dist/libraries/include/harfbuzz/hb-font.h +0 -1108
  107. package/dist/libraries/include/harfbuzz/hb-ft.h +0 -145
  108. package/dist/libraries/include/harfbuzz/hb-map.h +0 -124
  109. package/dist/libraries/include/harfbuzz/hb-ot-color.h +0 -146
  110. package/dist/libraries/include/harfbuzz/hb-ot-deprecated.h +0 -141
  111. package/dist/libraries/include/harfbuzz/hb-ot-font.h +0 -45
  112. package/dist/libraries/include/harfbuzz/hb-ot-layout.h +0 -503
  113. package/dist/libraries/include/harfbuzz/hb-ot-math.h +0 -333
  114. package/dist/libraries/include/harfbuzz/hb-ot-meta.h +0 -72
  115. package/dist/libraries/include/harfbuzz/hb-ot-metrics.h +0 -129
  116. package/dist/libraries/include/harfbuzz/hb-ot-name.h +0 -158
  117. package/dist/libraries/include/harfbuzz/hb-ot-shape.h +0 -53
  118. package/dist/libraries/include/harfbuzz/hb-ot-var.h +0 -191
  119. package/dist/libraries/include/harfbuzz/hb-ot.h +0 -49
  120. package/dist/libraries/include/harfbuzz/hb-set.h +0 -200
  121. package/dist/libraries/include/harfbuzz/hb-shape-plan.h +0 -122
  122. package/dist/libraries/include/harfbuzz/hb-shape.h +0 -62
  123. package/dist/libraries/include/harfbuzz/hb-style.h +0 -81
  124. package/dist/libraries/include/harfbuzz/hb-subset-repacker.h +0 -81
  125. package/dist/libraries/include/harfbuzz/hb-subset.h +0 -234
  126. package/dist/libraries/include/harfbuzz/hb-unicode.h +0 -643
  127. package/dist/libraries/include/harfbuzz/hb-version.h +0 -95
  128. package/dist/libraries/include/harfbuzz/hb.h +0 -50
  129. package/dist/libraries/lib/cmake/expat-2.4.7/expat-config-version.cmake +0 -70
  130. package/dist/libraries/lib/cmake/expat-2.4.7/expat-config.cmake +0 -99
  131. package/dist/libraries/lib/cmake/expat-2.4.7/expat-noconfig.cmake +0 -19
  132. package/dist/libraries/lib/cmake/expat-2.4.7/expat.cmake +0 -99
  133. package/dist/libraries/lib/libass.a +0 -0
  134. package/dist/libraries/lib/libass.la +0 -41
  135. package/dist/libraries/lib/libbrotlicommon.a +0 -0
  136. package/dist/libraries/lib/libbrotlidec.a +0 -0
  137. package/dist/libraries/lib/libbrotlienc.a +0 -0
  138. package/dist/libraries/lib/libexpat.a +0 -0
  139. package/dist/libraries/lib/libfontconfig.a +0 -0
  140. package/dist/libraries/lib/libfontconfig.la +0 -41
  141. package/dist/libraries/lib/libfreetype.a +0 -0
  142. package/dist/libraries/lib/libfreetype.la +0 -41
  143. package/dist/libraries/lib/libfribidi.a +0 -0
  144. package/dist/libraries/lib/libfribidi.la +0 -41
  145. package/dist/libraries/lib/libharfbuzz-subset.a +0 -0
  146. package/dist/libraries/lib/libharfbuzz-subset.la +0 -41
  147. package/dist/libraries/lib/libharfbuzz.a +0 -0
  148. package/dist/libraries/lib/libharfbuzz.la +0 -41
  149. package/dist/libraries/lib/pkgconfig/expat.pc +0 -11
  150. package/dist/libraries/lib/pkgconfig/fontconfig.pc +0 -18
  151. package/dist/libraries/lib/pkgconfig/freetype2.pc +0 -14
  152. package/dist/libraries/lib/pkgconfig/fribidi.pc +0 -13
  153. package/dist/libraries/lib/pkgconfig/harfbuzz-subset.pc +0 -12
  154. package/dist/libraries/lib/pkgconfig/harfbuzz.pc +0 -13
  155. package/dist/libraries/lib/pkgconfig/libass.pc +0 -13
  156. package/dist/libraries/lib/pkgconfig/libbrotlicommon.pc +0 -11
  157. package/dist/libraries/lib/pkgconfig/libbrotlidec.pc +0 -12
  158. package/dist/libraries/lib/pkgconfig/libbrotlienc.pc +0 -12
  159. package/dist/libraries/share/aclocal/freetype2.m4 +0 -194
  160. package/dist/libraries/share/doc/expat/AUTHORS +0 -10
  161. package/dist/libraries/share/doc/expat/changelog +0 -1161
  162. package/dist/license/all +0 -951
  163. package/dist/license/all.tmp +0 -307
  164. package/dist/license/brotli +0 -12
  165. package/dist/license/expat +0 -71
  166. package/dist/license/fontconfig +0 -46
  167. package/dist/license/freetype +0 -92
  168. package/dist/license/fribidi +0 -15
  169. package/dist/license/harfbuzz +0 -32
  170. package/dist/license/jassub +0 -0
  171. package/dist/license/libass +0 -28
@@ -1,249 +0,0 @@
1
- /* FriBidi
2
- * fribidi-joining-types.h - character joining types
3
- *
4
- * Author:
5
- * Behdad Esfahbod, 2001, 2002, 2004
6
- *
7
- * Copyright (C) 2004 Sharif FarsiWeb, Inc.
8
- * Copyright (C) 2001,2002 Behdad Esfahbod
9
- *
10
- * This library is free software; you can redistribute it and/or
11
- * modify it under the terms of the GNU Lesser General Public
12
- * License as published by the Free Software Foundation; either
13
- * version 2.1 of the License, or (at your option) any later version.
14
- *
15
- * This library is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
- * Lesser General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU Lesser General Public License
21
- * along with this library, in a file named COPYING; if not, write to the
22
- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23
- * Boston, MA 02110-1301, USA
24
- *
25
- * For licensing issues, contact <fribidi.license@gmail.com>.
26
- */
27
- #ifndef _FRIBIDI_JOINING_TYPES_H
28
- #define _FRIBIDI_JOINING_TYPES_H
29
-
30
- #include "fribidi-common.h"
31
-
32
- #include "fribidi-types.h"
33
-
34
- #include "fribidi-begindecls.h"
35
-
36
- /*
37
- * Define bit masks that joining types are based on, each mask has
38
- * only one bit set.
39
- */
40
-
41
- #define FRIBIDI_MASK_JOINS_RIGHT 0x01 /* May join to right */
42
- #define FRIBIDI_MASK_JOINS_LEFT 0x02 /* May join to right */
43
- #define FRIBIDI_MASK_ARAB_SHAPES 0x04 /* May Arabic shape */
44
- #define FRIBIDI_MASK_TRANSPARENT 0x08 /* Is transparent */
45
- #define FRIBIDI_MASK_IGNORED 0x10 /* Is ignored */
46
- #define FRIBIDI_MASK_LIGATURED 0x20 /* Is ligatured */
47
-
48
- /*
49
- * Define values for FriBidiJoiningType
50
- */
51
-
52
- /* nUn-joining */
53
- #define FRIBIDI_JOINING_TYPE_U_VAL ( 0 )
54
-
55
- /* Right-joining */
56
- #define FRIBIDI_JOINING_TYPE_R_VAL \
57
- ( FRIBIDI_MASK_JOINS_RIGHT | FRIBIDI_MASK_ARAB_SHAPES )
58
-
59
- /* Dual-joining */
60
- #define FRIBIDI_JOINING_TYPE_D_VAL \
61
- ( FRIBIDI_MASK_JOINS_RIGHT | FRIBIDI_MASK_JOINS_LEFT \
62
- | FRIBIDI_MASK_ARAB_SHAPES )
63
-
64
- /* join-Causing */
65
- #define FRIBIDI_JOINING_TYPE_C_VAL \
66
- ( FRIBIDI_MASK_JOINS_RIGHT | FRIBIDI_MASK_JOINS_LEFT )
67
-
68
- /* Left-joining */
69
- #define FRIBIDI_JOINING_TYPE_L_VAL \
70
- ( FRIBIDI_MASK_JOINS_LEFT | FRIBIDI_MASK_ARAB_SHAPES )
71
-
72
- /* Transparent */
73
- #define FRIBIDI_JOINING_TYPE_T_VAL \
74
- ( FRIBIDI_MASK_TRANSPARENT | FRIBIDI_MASK_ARAB_SHAPES )
75
-
76
- /* iGnored */
77
- #define FRIBIDI_JOINING_TYPE_G_VAL ( FRIBIDI_MASK_IGNORED )
78
-
79
-
80
- enum _FriBidiJoiningTypeEnum
81
- {
82
- # define _FRIBIDI_ADD_TYPE(TYPE,SYMBOL) \
83
- FRIBIDI_JOINING_TYPE_##TYPE = FRIBIDI_JOINING_TYPE_##TYPE##_VAL,
84
- # include "fribidi-joining-types-list.h"
85
- # undef _FRIBIDI_ADD_TYPE
86
- _FRIBIDI_JOINING_TYPE_JUNK /* Don't use this */
87
- };
88
-
89
- #ifdef __FRIBIDI_DOC
90
- typedef enum _FriBidiJoiningTypeEnum FriBidiJoiningType;
91
- #else /* !__FRIBIDI_DOC */
92
- typedef uint8_t FriBidiJoiningType;
93
- #endif /* !__FRIBIDI_DOC */
94
-
95
- /* FriBidiArabicProp is essentially the same type as FriBidiJoiningType, but
96
- * not limited to the few values returned by fribidi_get_joining_type. */
97
- typedef uint8_t FriBidiArabicProp;
98
-
99
- /*
100
- * The equivalent of JoiningType values for ArabicProp
101
- */
102
-
103
- /* Primary Arabic Joining Classes (Table 8-2) */
104
-
105
- /* nUn-joining */
106
- #define FRIBIDI_IS_JOINING_TYPE_U(p) \
107
- ( 0 == ( (p) & \
108
- ( FRIBIDI_MASK_TRANSPARENT | FRIBIDI_MASK_IGNORED \
109
- | FRIBIDI_MASK_JOINS_RIGHT | FRIBIDI_MASK_JOINS_LEFT ) ) )
110
-
111
- /* Right-joining */
112
- #define FRIBIDI_IS_JOINING_TYPE_R(p) \
113
- ( FRIBIDI_MASK_JOINS_RIGHT == ( (p) & \
114
- ( FRIBIDI_MASK_TRANSPARENT | FRIBIDI_MASK_IGNORED \
115
- | FRIBIDI_MASK_JOINS_RIGHT | FRIBIDI_MASK_JOINS_LEFT ) ) )
116
-
117
- /* Dual-joining */
118
- #define FRIBIDI_IS_JOINING_TYPE_D(p) \
119
- ( ( FRIBIDI_MASK_JOINS_RIGHT | FRIBIDI_MASK_JOINS_LEFT \
120
- | FRIBIDI_MASK_ARAB_SHAPES ) == ( (p) & \
121
- ( FRIBIDI_MASK_TRANSPARENT | FRIBIDI_MASK_IGNORED \
122
- | FRIBIDI_MASK_JOINS_RIGHT | FRIBIDI_MASK_JOINS_LEFT \
123
- | FRIBIDI_MASK_ARAB_SHAPES ) ) )
124
-
125
- /* join-Causing */
126
- #define FRIBIDI_IS_JOINING_TYPE_C(p) \
127
- ( ( FRIBIDI_MASK_JOINS_RIGHT | FRIBIDI_MASK_JOINS_LEFT ) == ( (p) & \
128
- ( FRIBIDI_MASK_TRANSPARENT | FRIBIDI_MASK_IGNORED \
129
- | FRIBIDI_MASK_JOINS_RIGHT | FRIBIDI_MASK_JOINS_LEFT \
130
- | FRIBIDI_MASK_ARAB_SHAPES ) ) )
131
-
132
- /* Left-joining */
133
- #define FRIBIDI_IS_JOINING_TYPE_L(p) \
134
- ( FRIBIDI_MASK_JOINS_LEFT == ( (p) & \
135
- ( FRIBIDI_MASK_TRANSPARENT | FRIBIDI_MASK_IGNORED \
136
- | FRIBIDI_MASK_JOINS_RIGHT | FRIBIDI_MASK_JOINS_LEFT ) ) )
137
-
138
- /* Transparent */
139
- #define FRIBIDI_IS_JOINING_TYPE_T(p) \
140
- ( FRIBIDI_MASK_TRANSPARENT == ( (p) & \
141
- ( FRIBIDI_MASK_TRANSPARENT | FRIBIDI_MASK_IGNORED ) ) )
142
-
143
- /* iGnored */
144
- #define FRIBIDI_IS_JOINING_TYPE_G(p) \
145
- ( FRIBIDI_MASK_IGNORED == ( (p) & \
146
- ( FRIBIDI_MASK_TRANSPARENT | FRIBIDI_MASK_IGNORED ) ) )
147
-
148
- /* and for Derived Arabic Joining Classes (Table 8-3) */
149
-
150
- /* Right join-Causing */
151
- #define FRIBIDI_IS_JOINING_TYPE_RC(p) \
152
- ( FRIBIDI_MASK_JOINS_RIGHT == ( (p) & \
153
- ( FRIBIDI_MASK_TRANSPARENT | FRIBIDI_MASK_IGNORED \
154
- | FRIBIDI_MASK_JOINS_RIGHT ) ) )
155
-
156
- /* Left join-Causing */
157
- #define FRIBIDI_IS_JOINING_TYPE_LC(p) \
158
- ( FRIBIDI_MASK_JOINS_LEFT == ( (p) & \
159
- ( FRIBIDI_MASK_TRANSPARENT | FRIBIDI_MASK_IGNORED \
160
- | FRIBIDI_MASK_JOINS_LEFT ) ) )
161
-
162
-
163
- /*
164
- * Defining macros for needed queries, It is fully dependent on the
165
- * implementation of FriBidiJoiningType.
166
- */
167
-
168
- /* Joins to right: R, D, C? */
169
- #define FRIBIDI_JOINS_RIGHT(p) ((p) & FRIBIDI_MASK_JOINS_RIGHT)
170
-
171
- /* Joins to left: L, D, C? */
172
- #define FRIBIDI_JOINS_LEFT(p) ((p) & FRIBIDI_MASK_JOINS_LEFT)
173
-
174
- /* May shape: R, D, L, T? */
175
- #define FRIBIDI_ARAB_SHAPES(p) ((p) & FRIBIDI_MASK_ARAB_SHAPES)
176
-
177
- /* Is skipped in joining: T, G? */
178
- #define FRIBIDI_IS_JOIN_SKIPPED(p) \
179
- ((p) & (FRIBIDI_MASK_TRANSPARENT | FRIBIDI_MASK_IGNORED))
180
-
181
- /* Is base that will be shaped: R, D, L? */
182
- #define FRIBIDI_IS_JOIN_BASE_SHAPES(p) \
183
- ( FRIBIDI_MASK_ARAB_SHAPES == ( (p) & \
184
- ( FRIBIDI_MASK_TRANSPARENT | FRIBIDI_MASK_IGNORED \
185
- | FRIBIDI_MASK_ARAB_SHAPES ) ) )
186
-
187
- #define FRIBIDI_JOINS_PRECEDING_MASK(level) \
188
- (FRIBIDI_LEVEL_IS_RTL (level) ? FRIBIDI_MASK_JOINS_RIGHT \
189
- : FRIBIDI_MASK_JOINS_LEFT)
190
-
191
- #define FRIBIDI_JOINS_FOLLOWING_MASK(level) \
192
- (FRIBIDI_LEVEL_IS_RTL (level) ? FRIBIDI_MASK_JOINS_LEFT \
193
- : FRIBIDI_MASK_JOINS_RIGHT)
194
-
195
- #define FRIBIDI_JOIN_SHAPE(p) \
196
- ((p) & ( FRIBIDI_MASK_JOINS_RIGHT | FRIBIDI_MASK_JOINS_LEFT ))
197
-
198
- /* Functions finally */
199
-
200
-
201
- /* fribidi_get_joining_type - get character joining type
202
- *
203
- * This function returns the joining type of a character as defined in Table
204
- * 8-2 Primary Arabic Joining Classes of the Unicode standard available at
205
- * http://www.unicode.org/versions/Unicode4.0.0/ch08.pdf#G7462, using data
206
- * provided in file ArabicShaping.txt and UnicodeData.txt of the Unicode
207
- * Character Database available at
208
- * http://www.unicode.org/Public/UNIDATA/ArabicShaping.txt and
209
- * http://www.unicode.org/Public/UNIDATA/UnicodeData.txt.
210
- *
211
- * There are a few macros defined in fribidi-joining-types.h for querying a
212
- * joining type.
213
- */
214
- FRIBIDI_ENTRY FriBidiJoiningType
215
- fribidi_get_joining_type (
216
- FriBidiChar ch /* input character */
217
- ) FRIBIDI_GNUC_CONST;
218
-
219
- /* fribidi_get_joining_types - get joining types for an string of characters
220
- *
221
- * This function finds the joining types of an string of characters. See
222
- * fribidi_get_joining_type for more information about the joining types
223
- * returned by this function.
224
- */
225
- FRIBIDI_ENTRY void fribidi_get_joining_types (
226
- const FriBidiChar *str, /* input string */
227
- const FriBidiStrIndex len, /* input string length */
228
- FriBidiJoiningType *jtypes /* output joining types */
229
- );
230
-
231
- /* fribidi_get_joining_type_name - get joining type name
232
- *
233
- * This function returns the joining type name of a joining type. The
234
- * returned string is a static string and should not be freed.
235
- *
236
- * The type names are the same as ones defined in Table 8-2 Primary Arabic
237
- * Joining Classes of the Unicode standard available at
238
- * http://www.unicode.org/versions/Unicode4.0.0/ch08.pdf#G7462.
239
- */
240
- FRIBIDI_ENTRY const char *fribidi_get_joining_type_name (
241
- FriBidiJoiningType j /* input joining type */
242
- ) FRIBIDI_GNUC_CONST;
243
-
244
- #include "fribidi-enddecls.h"
245
-
246
- #endif /* !_FRIBIDI_JOINING_TYPES_H */
247
- /* Editor directions:
248
- * vim:textwidth=78:tabstop=8:shiftwidth=2:autoindent:cindent
249
- */
@@ -1,74 +0,0 @@
1
- /* FriBidi
2
- * fribidi-joining.h - Arabic joining algorithm
3
- *
4
- * Authors:
5
- * Behdad Esfahbod, 2004
6
- *
7
- * Copyright (C) 2004 Sharif FarsiWeb, Inc
8
- * Copyright (C) 2004 Behdad Esfahbod
9
- *
10
- * This library is free software; you can redistribute it and/or
11
- * modify it under the terms of the GNU Lesser General Public
12
- * License as published by the Free Software Foundation; either
13
- * version 2.1 of the License, or (at your option) any later version.
14
- *
15
- * This library is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
- * Lesser General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU Lesser General Public License
21
- * along with this library, in a file named COPYING; if not, write to the
22
- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23
- * Boston, MA 02110-1301, USA
24
- *
25
- * For licensing issues, contact <fribidi.license@gmail.com>.
26
- */
27
- #ifndef _FRIBIDI_JOINING_H
28
- #define _FRIBIDI_JOINING_H
29
-
30
- #include "fribidi-common.h"
31
-
32
- #include "fribidi-types.h"
33
- #include "fribidi-bidi-types.h"
34
- #include "fribidi-joining-types.h"
35
-
36
- #include "fribidi-begindecls.h"
37
-
38
- /* fribidi_join_arabic - do Arabic joining
39
- *
40
- * This function does the Arabic joining algorithm. Means, given Arabic
41
- * joining types of the characters in ar_props (don't worry,
42
- * FriBidiJoiningType can be casted to FriBidiArabicProp automagically), this
43
- * function modifies this properties to grasp the effect of neighboring
44
- * characters. You probably need this information later to do Arabic shaping.
45
- *
46
- * This function implements rules R1 to R7 inclusive (all rules) of the Arabic
47
- * Cursive Joining algorithm of the Unicode standard as available at
48
- * http://www.unicode.org/versions/Unicode4.0.0/ch08.pdf#G7462. It also
49
- * interacts correctly with the bidirection algorithm as defined in Section
50
- * 3.5 Shaping of the Unicode Bidirectional Algorithm available at
51
- * http://www.unicode.org/reports/tr9/#Shaping.
52
- *
53
- * There are a few macros defined in fribidi-joining-types.h for querying the
54
- * Arabic properties computed by this function.
55
- */
56
- FRIBIDI_ENTRY void fribidi_join_arabic (
57
- const FriBidiCharType *bidi_types, /* input list of bidi types as
58
- returned by
59
- fribidi_get_bidi_types() */
60
- const FriBidiStrIndex len, /* input string length */
61
- const FriBidiLevel *embedding_levels, /* input list of embedding
62
- levels, as returned by
63
- fribidi_get_par_embedding_levels */
64
- FriBidiArabicProp *ar_props /* Arabic properties to analyze, initialized by
65
- joining types, as returned by
66
- fribidi_get_joining_types */
67
- );
68
-
69
- #include "fribidi-enddecls.h"
70
-
71
- #endif /* !_FRIBIDI_JOINING_H */
72
- /* Editor directions:
73
- * vim:textwidth=78:tabstop=8:shiftwidth=2:autoindent:cindent
74
- */
@@ -1,86 +0,0 @@
1
- /* fribidi-mirroring.h - get mirrored character
2
- *
3
- * Copyright (C) 2004 Sharif FarsiWeb, Inc
4
- * Copyright (C) 2001, 2002, 2004 Behdad Esfahbod
5
- * Copyright (C) 1999, 2000, 2017 Dov Grobgeld
6
- *
7
- * This file is part of GNU FriBidi.
8
- *
9
- * GNU FriBidi is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU Lesser General Public License
11
- * as published by the Free Software Foundation; either version 2.1
12
- * of the License, or (at your option) any later version.
13
- *
14
- * GNU FriBidi is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- * GNU Lesser General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU Lesser General Public License
20
- * along with GNU FriBidi; if not, write to the Free Software
21
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22
- *
23
- * For licensing issues, contact <fribidi.license@gmail.com> or write to
24
- * Sharif FarsiWeb, Inc., PO Box 13445-389, Tehran, Iran.
25
- *
26
- * Author(s):
27
- * Behdad Esfahbod, 2001, 2002, 2004
28
- * Dov Grobgeld, 1999, 2000
29
- */
30
- #ifndef _FRIBIDI_MIRRORING_H
31
- #define _FRIBIDI_MIRRORING_H
32
-
33
- #include "fribidi-common.h"
34
-
35
- #include "fribidi-types.h"
36
- #include "fribidi-bidi-types.h"
37
-
38
- #include "fribidi-begindecls.h"
39
-
40
- /* fribidi_get_mirror_char - get mirrored character
41
- *
42
- * This function finds the mirrored equivalent of a character as defined in
43
- * the file BidiMirroring.txt of the Unicode Character Database available at
44
- * http://www.unicode.org/Public/UNIDATA/BidiMirroring.txt.
45
- *
46
- * If the input character is a declared as a mirroring character in the
47
- * Unicode standard and has a mirrored equivalent. The matching mirrored
48
- * character is put in the output, otherwise the input character itself is
49
- * put.
50
- *
51
- * Returns: if the character has a mirroring equivalent or not.
52
- */
53
- FRIBIDI_ENTRY fribidi_boolean fribidi_get_mirror_char (
54
- FriBidiChar ch, /* input character */
55
- FriBidiChar *mirrored_ch /* output mirrored character */
56
- );
57
-
58
- /* fribidi_shape_mirroring - do mirroring shaping
59
- *
60
- * This functions replaces mirroring characters on right-to-left embeddings in
61
- * string with their mirrored equivalent as returned by
62
- * fribidi_get_mirror_char().
63
- *
64
- * This function implements rule L4 of the Unicode Bidirectional Algorithm
65
- * available at http://www.unicode.org/reports/tr9/#L4.
66
- */
67
- FRIBIDI_ENTRY void fribidi_shape_mirroring (
68
- const FriBidiLevel *embedding_levels, /* input list of embedding
69
- levels, as returned by
70
- fribidi_get_par_embedding_levels */
71
- const FriBidiStrIndex len, /* input string length */
72
- FriBidiChar *str /* string to shape */
73
- );
74
-
75
- #include "fribidi-enddecls.h"
76
-
77
- #endif /* !_FRIBIDI_MIRRORING_H */
78
- /* Editor directions:
79
- * Local Variables:
80
- * mode: c
81
- * c-basic-offset: 2
82
- * indent-tabs-mode: t
83
- * tab-width: 8
84
- * End:
85
- * vim: textwidth=78: autoindent: cindent: shiftwidth=2: tabstop=8:
86
- */
@@ -1,71 +0,0 @@
1
- /* FriBidi
2
- * fribidi-shape.h - shaping
3
- *
4
- * Author:
5
- * Behdad Esfahbod, 2004, 2005
6
- *
7
- * Copyright (C) 2004 Sharif FarsiWeb, Inc
8
- * Copyright (C) 2004, 2005 Behdad Esfahbod
9
- *
10
- * This library is free software; you can redistribute it and/or
11
- * modify it under the terms of the GNU Lesser General Public
12
- * License as published by the Free Software Foundation; either
13
- * version 2.1 of the License, or (at your option) any later version.
14
- *
15
- * This library is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
- * Lesser General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU Lesser General Public License
21
- * along with this library, in a file named COPYING; if not, write to the
22
- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23
- * Boston, MA 02110-1301, USA
24
- *
25
- * For licensing issues, contact <fribidi.license@gmail.com>.
26
- */
27
- #ifndef _FRIBIDI_SHAPE_H
28
- #define _FRIBIDI_SHAPE_H
29
-
30
- #include "fribidi-types.h"
31
- #include "fribidi-flags.h"
32
- #include "fribidi-bidi-types.h"
33
- #include "fribidi-joining-types.h"
34
-
35
- #include "fribidi-begindecls.h"
36
-
37
-
38
- /* fribidi_shape - do bidi-aware shaping
39
- *
40
- * This function does all shaping work that depends on the resolved embedding
41
- * levels of the characters. Currently it does mirroring and Arabic shaping,
42
- * but the list may grow in the future. This function is a wrapper around
43
- * fribidi_shape_mirroring and fribidi_shape_arabic.
44
- *
45
- * The flags parameter specifies which shapings are applied. The only flags
46
- * affecting the functionality of this function are those beginning with
47
- * FRIBIDI_FLAG_SHAPE_. Of these, only FRIBIDI_FLAG_SHAPE_MIRRORING is on
48
- * in FRIBIDI_FLAGS_DEFAULT. For details of the Arabic-specific flags see
49
- * fribidi_shape_arabic. If ar_props is NULL, no Arabic shaping is performed.
50
- *
51
- * Feel free to do your own shaping before or after calling this function,
52
- * but you should take care of embedding levels yourself then.
53
- */
54
- FRIBIDI_ENTRY void fribidi_shape (
55
- FriBidiFlags flags, /* shaping flags */
56
- const FriBidiLevel *embedding_levels, /* input list of embedding
57
- levels, as returned by
58
- fribidi_get_par_embedding_levels */
59
- const FriBidiStrIndex len, /* input string length */
60
- FriBidiArabicProp *ar_props, /* input/output Arabic properties as
61
- * computed by fribidi_join_arabic */
62
- FriBidiChar *str /* string to shape */
63
- );
64
-
65
-
66
- #include "fribidi-enddecls.h"
67
-
68
- #endif /* !_FRIBIDI_SHAPE_H */
69
- /* Editor directions:
70
- * vim:textwidth=78:tabstop=8:shiftwidth=2:autoindent:cindent
71
- */
@@ -1,79 +0,0 @@
1
- /* FriBidi
2
- * fribidi-types.h - define data types for the rest of the library
3
- *
4
- * Author:
5
- * Behdad Esfahbod, 2001, 2002, 2004
6
- *
7
- * Copyright (C) 2004 Sharif FarsiWeb, Inc.
8
- * Copyright (C) 2001,2002 Behdad Esfahbod
9
- *
10
- * This library is free software; you can redistribute it and/or
11
- * modify it under the terms of the GNU Lesser General Public
12
- * License as published by the Free Software Foundation; either
13
- * version 2.1 of the License, or (at your option) any later version.
14
- *
15
- * This library is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
- * Lesser General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU Lesser General Public License
21
- * along with this library, in a file named COPYING; if not, write to the
22
- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23
- * Boston, MA 02110-1301, USA
24
- *
25
- * For licensing issues, contact <fribidi.license@gmail.com>.
26
- */
27
- #ifndef _FRIBIDI_TYPES_H
28
- #define _FRIBIDI_TYPES_H
29
-
30
- #include "fribidi-common.h"
31
-
32
- #include "fribidi-begindecls.h"
33
-
34
-
35
- # if defined (_SVR4) || defined (SVR4) || defined (__OpenBSD__) || \
36
- defined (_sgi) || defined (__sun) || defined (sun) || \
37
- defined (__digital__) || defined (__HP_cc)
38
- # include <inttypes.h>
39
- # elif defined (_AIX)
40
- # include <sys/inttypes.h>
41
- # else
42
- # include <stdint.h>
43
- # endif
44
-
45
- typedef int fribidi_boolean;
46
-
47
- typedef uint32_t FriBidiChar;
48
- typedef int FriBidiStrIndex;
49
-
50
- /* The MSB is used to indicate an opening bracket */
51
- typedef FriBidiChar FriBidiBracketType;
52
-
53
- /* Use FRIBIDI_NO_BRACKET for assigning to a non-bracket */
54
- #define FRIBIDI_NO_BRACKET 0
55
-
56
- /* A few macros for working with bits */
57
-
58
- #define FRIBIDI_TEST_BITS(x, mask) (((x) & (mask)) ? 1 : 0)
59
-
60
- #define FRIBIDI_INCLUDE_BITS(x, mask) ((x) | (mask))
61
-
62
- #define FRIBIDI_EXCLUDE_BITS(x, mask) ((x) & ~(mask))
63
-
64
- #define FRIBIDI_SET_BITS(x, mask) ((x) |= (mask))
65
-
66
- #define FRIBIDI_UNSET_BITS(x, mask) ((x) &= ~(mask))
67
-
68
- #define FRIBIDI_ADJUST_BITS(x, mask, cond) \
69
- ((x) = ((x) & ~(mask)) | ((cond) ? (mask) : 0))
70
-
71
- #define FRIBIDI_ADJUST_AND_TEST_BITS(x, mask, cond) \
72
- FRIBIDI_TEST_BITS(FRIBIDI_ADJUST_BITS((x), (mask), (cond)), (mask))
73
-
74
- #include "fribidi-enddecls.h"
75
-
76
- #endif /* !_FRIBIDI_TYPES_H */
77
- /* Editor directions:
78
- * vim:textwidth=78:tabstop=8:shiftwidth=2:autoindent:cindent
79
- */
@@ -1,10 +0,0 @@
1
- /* fribidi-unicode-version.h
2
- * generated by gen-unicode-version (GNU FriBidi 1.0.11)
3
- * from the file ReadMe.txt */
4
-
5
- #define FRIBIDI_UNICODE_VERSION "14.0.0"
6
- #define FRIBIDI_UNICODE_MAJOR_VERSION 14
7
- #define FRIBIDI_UNICODE_MINOR_VERSION 0
8
- #define FRIBIDI_UNICODE_MICRO_VERSION 0
9
-
10
- /* End of generated fribidi-unicode-version.h */
@@ -1,105 +0,0 @@
1
- /* FriBidi
2
- * fribidi-unicode.h - general Unicode definitions
3
- *
4
- * Author:
5
- * Behdad Esfahbod, 2001, 2002, 2004
6
- *
7
- * Copyright (C) 2004 Sharif FarsiWeb, Inc
8
- * Copyright (C) 2001,2002 Behdad Esfahbod
9
- *
10
- * This library is free software; you can redistribute it and/or
11
- * modify it under the terms of the GNU Lesser General Public
12
- * License as published by the Free Software Foundation; either
13
- * version 2.1 of the License, or (at your option) any later version.
14
- *
15
- * This library is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
- * Lesser General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU Lesser General Public License
21
- * along with this library, in a file named COPYING; if not, write to the
22
- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23
- * Boston, MA 02110-1301, USA
24
- *
25
- * For licensing issues, contact <fribidi.license@gmail.com>.
26
- */
27
- #ifndef _FRIBIDI_UNICODE_H
28
- #define _FRIBIDI_UNICODE_H
29
-
30
- #include "fribidi-common.h"
31
-
32
- #include "fribidi-types.h"
33
-
34
- #include "fribidi-begindecls.h"
35
-
36
- /* We do not support surrogates yet */
37
- #define FRIBIDI_UNICODE_CHARS (sizeof(FriBidiChar) >= 4 ? 0x110000 : 0xFFFE)
38
-
39
- /* Unicode version - FRIBIDI_UNICODE_VERSION */
40
- #ifdef DONT_HAVE_FRIBIDI_UNICODE_VERSION_H
41
- # define FRIBIDI_UNICODE_VERSION "unknown"
42
- #else /* !DONT_HAVE_FRIBIDI_UNICODE_VERSION_H */
43
- # include "fribidi-unicode-version.h"
44
- #endif /* !DONT_HAVE_FRIBIDI_UNICODE_VERSION_H */
45
-
46
- /* An string containing the version the Unicode standard implemented,
47
- * in the form of "x.y.z", or "unknown". */
48
- FRIBIDI_ENTRY FRIBIDI_EXTERN const char *fribidi_unicode_version;
49
-
50
-
51
- /* Unicode Bidirectional Algorithm definitions: */
52
-
53
- /* Number of types defined in the bidi algorithm */
54
- #define FRIBIDI_BIDI_NUM_TYPES 19
55
-
56
- /* The maximum embedding level value assigned by explicit marks */
57
- #define FRIBIDI_BIDI_MAX_EXPLICIT_LEVEL 125
58
-
59
- /* The maximum *number* of different resolved embedding levels: 0-126 */
60
- #define FRIBIDI_BIDI_MAX_RESOLVED_LEVELS 127
61
-
62
- /* The maximum *number* of nested brackets: 0-63 */
63
- #define FRIBIDI_BIDI_MAX_NESTED_BRACKET_PAIRS 63
64
-
65
- /* A few Unicode characters: */
66
-
67
- /* Bidirectional marks */
68
- #define FRIBIDI_CHAR_LRM 0x200E
69
- #define FRIBIDI_CHAR_RLM 0x200F
70
- #define FRIBIDI_CHAR_LRE 0x202A
71
- #define FRIBIDI_CHAR_RLE 0x202B
72
- #define FRIBIDI_CHAR_PDF 0x202C
73
- #define FRIBIDI_CHAR_LRO 0x202D
74
- #define FRIBIDI_CHAR_RLO 0x202E
75
- #define FRIBIDI_CHAR_LRI 0x2066
76
- #define FRIBIDI_CHAR_RLI 0x2067
77
- #define FRIBIDI_CHAR_FSI 0x2068
78
- #define FRIBIDI_CHAR_PDI 0x2069
79
-
80
- /* Line and Paragraph Separators */
81
- #define FRIBIDI_CHAR_LS 0x2028
82
- #define FRIBIDI_CHAR_PS 0x2029
83
-
84
- /* Arabic Joining marks */
85
- #define FRIBIDI_CHAR_ZWNJ 0x200C
86
- #define FRIBIDI_CHAR_ZWJ 0x200D
87
-
88
- /* Hebrew and Arabic */
89
- #define FRIBIDI_CHAR_HEBREW_ALEF 0x05D0
90
- #define FRIBIDI_CHAR_ARABIC_ALEF 0x0627
91
- #define FRIBIDI_CHAR_ARABIC_ZERO 0x0660
92
- #define FRIBIDI_CHAR_PERSIAN_ZERO 0x06F0
93
-
94
- /* Misc */
95
- #define FRIBIDI_CHAR_ZWNBSP 0xFEFF
96
-
97
- /* Char we place for a deleted slot, to delete later */
98
- #define FRIBIDI_CHAR_FILL FRIBIDI_CHAR_ZWNBSP
99
-
100
- #include "fribidi-enddecls.h"
101
-
102
- #endif /* !_FRIBIDI_UNICODE_H */
103
- /* Editor directions:
104
- * vim:textwidth=78:tabstop=8:shiftwidth=2:autoindent:cindent
105
- */