ruby-stemmer 0.9.3-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. data/MIT-LICENSE +21 -0
  2. data/README.rdoc +113 -0
  3. data/Rakefile +70 -0
  4. data/TODO +0 -0
  5. data/VERSION +1 -0
  6. data/ext/lingua/extconf.rb +40 -0
  7. data/ext/lingua/stemmer.c +115 -0
  8. data/lib/lingua/1.8/stemmer_native.so +0 -0
  9. data/lib/lingua/1.9/stemmer_native.so +0 -0
  10. data/lib/lingua/stemmer.rb +60 -0
  11. data/libstemmer_c/MANIFEST +72 -0
  12. data/libstemmer_c/Makefile +9 -0
  13. data/libstemmer_c/Makefile.windows +15 -0
  14. data/libstemmer_c/README +125 -0
  15. data/libstemmer_c/examples/stemwords.c +209 -0
  16. data/libstemmer_c/include/libstemmer.h +79 -0
  17. data/libstemmer_c/libstemmer/libstemmer.c +93 -0
  18. data/libstemmer_c/libstemmer/libstemmer_utf8.c +93 -0
  19. data/libstemmer_c/libstemmer/modules.h +195 -0
  20. data/libstemmer_c/libstemmer/modules.txt +51 -0
  21. data/libstemmer_c/libstemmer/modules_utf8.h +123 -0
  22. data/libstemmer_c/libstemmer/modules_utf8.txt +50 -0
  23. data/libstemmer_c/mkinc.mak +86 -0
  24. data/libstemmer_c/mkinc_utf8.mak +54 -0
  25. data/libstemmer_c/runtime/api.c +66 -0
  26. data/libstemmer_c/runtime/api.h +26 -0
  27. data/libstemmer_c/runtime/header.h +58 -0
  28. data/libstemmer_c/runtime/utilities.c +478 -0
  29. data/libstemmer_c/src_c/stem_ISO_8859_1_danish.c +337 -0
  30. data/libstemmer_c/src_c/stem_ISO_8859_1_danish.h +16 -0
  31. data/libstemmer_c/src_c/stem_ISO_8859_1_dutch.c +624 -0
  32. data/libstemmer_c/src_c/stem_ISO_8859_1_dutch.h +16 -0
  33. data/libstemmer_c/src_c/stem_ISO_8859_1_english.c +1117 -0
  34. data/libstemmer_c/src_c/stem_ISO_8859_1_english.h +16 -0
  35. data/libstemmer_c/src_c/stem_ISO_8859_1_finnish.c +762 -0
  36. data/libstemmer_c/src_c/stem_ISO_8859_1_finnish.h +16 -0
  37. data/libstemmer_c/src_c/stem_ISO_8859_1_french.c +1246 -0
  38. data/libstemmer_c/src_c/stem_ISO_8859_1_french.h +16 -0
  39. data/libstemmer_c/src_c/stem_ISO_8859_1_german.c +503 -0
  40. data/libstemmer_c/src_c/stem_ISO_8859_1_german.h +16 -0
  41. data/libstemmer_c/src_c/stem_ISO_8859_1_hungarian.c +1230 -0
  42. data/libstemmer_c/src_c/stem_ISO_8859_1_hungarian.h +16 -0
  43. data/libstemmer_c/src_c/stem_ISO_8859_1_italian.c +1065 -0
  44. data/libstemmer_c/src_c/stem_ISO_8859_1_italian.h +16 -0
  45. data/libstemmer_c/src_c/stem_ISO_8859_1_latin.c +443 -0
  46. data/libstemmer_c/src_c/stem_ISO_8859_1_latin.h +16 -0
  47. data/libstemmer_c/src_c/stem_ISO_8859_1_norwegian.c +297 -0
  48. data/libstemmer_c/src_c/stem_ISO_8859_1_norwegian.h +16 -0
  49. data/libstemmer_c/src_c/stem_ISO_8859_1_porter.c +749 -0
  50. data/libstemmer_c/src_c/stem_ISO_8859_1_porter.h +16 -0
  51. data/libstemmer_c/src_c/stem_ISO_8859_1_portuguese.c +1017 -0
  52. data/libstemmer_c/src_c/stem_ISO_8859_1_portuguese.h +16 -0
  53. data/libstemmer_c/src_c/stem_ISO_8859_1_spanish.c +1093 -0
  54. data/libstemmer_c/src_c/stem_ISO_8859_1_spanish.h +16 -0
  55. data/libstemmer_c/src_c/stem_ISO_8859_1_swedish.c +307 -0
  56. data/libstemmer_c/src_c/stem_ISO_8859_1_swedish.h +16 -0
  57. data/libstemmer_c/src_c/stem_ISO_8859_2_romanian.c +998 -0
  58. data/libstemmer_c/src_c/stem_ISO_8859_2_romanian.h +16 -0
  59. data/libstemmer_c/src_c/stem_KOI8_R_russian.c +700 -0
  60. data/libstemmer_c/src_c/stem_KOI8_R_russian.h +16 -0
  61. data/libstemmer_c/src_c/stem_UTF_8_danish.c +339 -0
  62. data/libstemmer_c/src_c/stem_UTF_8_danish.h +16 -0
  63. data/libstemmer_c/src_c/stem_UTF_8_dutch.c +634 -0
  64. data/libstemmer_c/src_c/stem_UTF_8_dutch.h +16 -0
  65. data/libstemmer_c/src_c/stem_UTF_8_english.c +1125 -0
  66. data/libstemmer_c/src_c/stem_UTF_8_english.h +16 -0
  67. data/libstemmer_c/src_c/stem_UTF_8_finnish.c +768 -0
  68. data/libstemmer_c/src_c/stem_UTF_8_finnish.h +16 -0
  69. data/libstemmer_c/src_c/stem_UTF_8_french.c +1256 -0
  70. data/libstemmer_c/src_c/stem_UTF_8_french.h +16 -0
  71. data/libstemmer_c/src_c/stem_UTF_8_german.c +509 -0
  72. data/libstemmer_c/src_c/stem_UTF_8_german.h +16 -0
  73. data/libstemmer_c/src_c/stem_UTF_8_hungarian.c +1234 -0
  74. data/libstemmer_c/src_c/stem_UTF_8_hungarian.h +16 -0
  75. data/libstemmer_c/src_c/stem_UTF_8_italian.c +1073 -0
  76. data/libstemmer_c/src_c/stem_UTF_8_italian.h +16 -0
  77. data/libstemmer_c/src_c/stem_UTF_8_latin.c +443 -0
  78. data/libstemmer_c/src_c/stem_UTF_8_latin.h +16 -0
  79. data/libstemmer_c/src_c/stem_UTF_8_norwegian.c +299 -0
  80. data/libstemmer_c/src_c/stem_UTF_8_norwegian.h +16 -0
  81. data/libstemmer_c/src_c/stem_UTF_8_porter.c +755 -0
  82. data/libstemmer_c/src_c/stem_UTF_8_porter.h +16 -0
  83. data/libstemmer_c/src_c/stem_UTF_8_portuguese.c +1023 -0
  84. data/libstemmer_c/src_c/stem_UTF_8_portuguese.h +16 -0
  85. data/libstemmer_c/src_c/stem_UTF_8_romanian.c +1004 -0
  86. data/libstemmer_c/src_c/stem_UTF_8_romanian.h +16 -0
  87. data/libstemmer_c/src_c/stem_UTF_8_russian.c +694 -0
  88. data/libstemmer_c/src_c/stem_UTF_8_russian.h +16 -0
  89. data/libstemmer_c/src_c/stem_UTF_8_spanish.c +1097 -0
  90. data/libstemmer_c/src_c/stem_UTF_8_spanish.h +16 -0
  91. data/libstemmer_c/src_c/stem_UTF_8_swedish.c +309 -0
  92. data/libstemmer_c/src_c/stem_UTF_8_swedish.h +16 -0
  93. data/libstemmer_c/src_c/stem_UTF_8_turkish.c +2205 -0
  94. data/libstemmer_c/src_c/stem_UTF_8_turkish.h +16 -0
  95. data/test/helper.rb +3 -0
  96. data/test/lingua/test_stemmer.rb +99 -0
  97. metadata +162 -0
@@ -0,0 +1,337 @@
1
+
2
+ /* This file was generated automatically by the Snowball to ANSI C compiler */
3
+
4
+ #include "../runtime/header.h"
5
+
6
+ #ifdef __cplusplus
7
+ extern "C" {
8
+ #endif
9
+ extern int danish_ISO_8859_1_stem(struct SN_env * z);
10
+ #ifdef __cplusplus
11
+ }
12
+ #endif
13
+ static int r_undouble(struct SN_env * z);
14
+ static int r_other_suffix(struct SN_env * z);
15
+ static int r_consonant_pair(struct SN_env * z);
16
+ static int r_main_suffix(struct SN_env * z);
17
+ static int r_mark_regions(struct SN_env * z);
18
+ #ifdef __cplusplus
19
+ extern "C" {
20
+ #endif
21
+
22
+
23
+ extern struct SN_env * danish_ISO_8859_1_create_env(void);
24
+ extern void danish_ISO_8859_1_close_env(struct SN_env * z);
25
+
26
+
27
+ #ifdef __cplusplus
28
+ }
29
+ #endif
30
+ static const symbol s_0_0[3] = { 'h', 'e', 'd' };
31
+ static const symbol s_0_1[5] = { 'e', 't', 'h', 'e', 'd' };
32
+ static const symbol s_0_2[4] = { 'e', 'r', 'e', 'd' };
33
+ static const symbol s_0_3[1] = { 'e' };
34
+ static const symbol s_0_4[5] = { 'e', 'r', 'e', 'd', 'e' };
35
+ static const symbol s_0_5[4] = { 'e', 'n', 'd', 'e' };
36
+ static const symbol s_0_6[6] = { 'e', 'r', 'e', 'n', 'd', 'e' };
37
+ static const symbol s_0_7[3] = { 'e', 'n', 'e' };
38
+ static const symbol s_0_8[4] = { 'e', 'r', 'n', 'e' };
39
+ static const symbol s_0_9[3] = { 'e', 'r', 'e' };
40
+ static const symbol s_0_10[2] = { 'e', 'n' };
41
+ static const symbol s_0_11[5] = { 'h', 'e', 'd', 'e', 'n' };
42
+ static const symbol s_0_12[4] = { 'e', 'r', 'e', 'n' };
43
+ static const symbol s_0_13[2] = { 'e', 'r' };
44
+ static const symbol s_0_14[5] = { 'h', 'e', 'd', 'e', 'r' };
45
+ static const symbol s_0_15[4] = { 'e', 'r', 'e', 'r' };
46
+ static const symbol s_0_16[1] = { 's' };
47
+ static const symbol s_0_17[4] = { 'h', 'e', 'd', 's' };
48
+ static const symbol s_0_18[2] = { 'e', 's' };
49
+ static const symbol s_0_19[5] = { 'e', 'n', 'd', 'e', 's' };
50
+ static const symbol s_0_20[7] = { 'e', 'r', 'e', 'n', 'd', 'e', 's' };
51
+ static const symbol s_0_21[4] = { 'e', 'n', 'e', 's' };
52
+ static const symbol s_0_22[5] = { 'e', 'r', 'n', 'e', 's' };
53
+ static const symbol s_0_23[4] = { 'e', 'r', 'e', 's' };
54
+ static const symbol s_0_24[3] = { 'e', 'n', 's' };
55
+ static const symbol s_0_25[6] = { 'h', 'e', 'd', 'e', 'n', 's' };
56
+ static const symbol s_0_26[5] = { 'e', 'r', 'e', 'n', 's' };
57
+ static const symbol s_0_27[3] = { 'e', 'r', 's' };
58
+ static const symbol s_0_28[3] = { 'e', 't', 's' };
59
+ static const symbol s_0_29[5] = { 'e', 'r', 'e', 't', 's' };
60
+ static const symbol s_0_30[2] = { 'e', 't' };
61
+ static const symbol s_0_31[4] = { 'e', 'r', 'e', 't' };
62
+
63
+ static const struct among a_0[32] =
64
+ {
65
+ /* 0 */ { 3, s_0_0, -1, 1, 0},
66
+ /* 1 */ { 5, s_0_1, 0, 1, 0},
67
+ /* 2 */ { 4, s_0_2, -1, 1, 0},
68
+ /* 3 */ { 1, s_0_3, -1, 1, 0},
69
+ /* 4 */ { 5, s_0_4, 3, 1, 0},
70
+ /* 5 */ { 4, s_0_5, 3, 1, 0},
71
+ /* 6 */ { 6, s_0_6, 5, 1, 0},
72
+ /* 7 */ { 3, s_0_7, 3, 1, 0},
73
+ /* 8 */ { 4, s_0_8, 3, 1, 0},
74
+ /* 9 */ { 3, s_0_9, 3, 1, 0},
75
+ /* 10 */ { 2, s_0_10, -1, 1, 0},
76
+ /* 11 */ { 5, s_0_11, 10, 1, 0},
77
+ /* 12 */ { 4, s_0_12, 10, 1, 0},
78
+ /* 13 */ { 2, s_0_13, -1, 1, 0},
79
+ /* 14 */ { 5, s_0_14, 13, 1, 0},
80
+ /* 15 */ { 4, s_0_15, 13, 1, 0},
81
+ /* 16 */ { 1, s_0_16, -1, 2, 0},
82
+ /* 17 */ { 4, s_0_17, 16, 1, 0},
83
+ /* 18 */ { 2, s_0_18, 16, 1, 0},
84
+ /* 19 */ { 5, s_0_19, 18, 1, 0},
85
+ /* 20 */ { 7, s_0_20, 19, 1, 0},
86
+ /* 21 */ { 4, s_0_21, 18, 1, 0},
87
+ /* 22 */ { 5, s_0_22, 18, 1, 0},
88
+ /* 23 */ { 4, s_0_23, 18, 1, 0},
89
+ /* 24 */ { 3, s_0_24, 16, 1, 0},
90
+ /* 25 */ { 6, s_0_25, 24, 1, 0},
91
+ /* 26 */ { 5, s_0_26, 24, 1, 0},
92
+ /* 27 */ { 3, s_0_27, 16, 1, 0},
93
+ /* 28 */ { 3, s_0_28, 16, 1, 0},
94
+ /* 29 */ { 5, s_0_29, 28, 1, 0},
95
+ /* 30 */ { 2, s_0_30, -1, 1, 0},
96
+ /* 31 */ { 4, s_0_31, 30, 1, 0}
97
+ };
98
+
99
+ static const symbol s_1_0[2] = { 'g', 'd' };
100
+ static const symbol s_1_1[2] = { 'd', 't' };
101
+ static const symbol s_1_2[2] = { 'g', 't' };
102
+ static const symbol s_1_3[2] = { 'k', 't' };
103
+
104
+ static const struct among a_1[4] =
105
+ {
106
+ /* 0 */ { 2, s_1_0, -1, -1, 0},
107
+ /* 1 */ { 2, s_1_1, -1, -1, 0},
108
+ /* 2 */ { 2, s_1_2, -1, -1, 0},
109
+ /* 3 */ { 2, s_1_3, -1, -1, 0}
110
+ };
111
+
112
+ static const symbol s_2_0[2] = { 'i', 'g' };
113
+ static const symbol s_2_1[3] = { 'l', 'i', 'g' };
114
+ static const symbol s_2_2[4] = { 'e', 'l', 'i', 'g' };
115
+ static const symbol s_2_3[3] = { 'e', 'l', 's' };
116
+ static const symbol s_2_4[4] = { 'l', 0xF8, 's', 't' };
117
+
118
+ static const struct among a_2[5] =
119
+ {
120
+ /* 0 */ { 2, s_2_0, -1, 1, 0},
121
+ /* 1 */ { 3, s_2_1, 0, 1, 0},
122
+ /* 2 */ { 4, s_2_2, 1, 1, 0},
123
+ /* 3 */ { 3, s_2_3, -1, 1, 0},
124
+ /* 4 */ { 4, s_2_4, -1, 2, 0}
125
+ };
126
+
127
+ static const unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 128 };
128
+
129
+ static const unsigned char g_s_ending[] = { 239, 254, 42, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16 };
130
+
131
+ static const symbol s_0[] = { 's', 't' };
132
+ static const symbol s_1[] = { 'i', 'g' };
133
+ static const symbol s_2[] = { 'l', 0xF8, 's' };
134
+
135
+ static int r_mark_regions(struct SN_env * z) {
136
+ z->I[0] = z->l;
137
+ { int c_test = z->c; /* test, line 33 */
138
+ { int ret = z->c + 3;
139
+ if (0 > ret || ret > z->l) return 0;
140
+ z->c = ret; /* hop, line 33 */
141
+ }
142
+ z->I[1] = z->c; /* setmark x, line 33 */
143
+ z->c = c_test;
144
+ }
145
+ if (out_grouping(z, g_v, 97, 248, 1) < 0) return 0; /* goto */ /* grouping v, line 34 */
146
+ { /* gopast */ /* non v, line 34 */
147
+ int ret = in_grouping(z, g_v, 97, 248, 1);
148
+ if (ret < 0) return 0;
149
+ z->c += ret;
150
+ }
151
+ z->I[0] = z->c; /* setmark p1, line 34 */
152
+ /* try, line 35 */
153
+ if (!(z->I[0] < z->I[1])) goto lab0;
154
+ z->I[0] = z->I[1];
155
+ lab0:
156
+ return 1;
157
+ }
158
+
159
+ static int r_main_suffix(struct SN_env * z) {
160
+ int among_var;
161
+ { int mlimit; /* setlimit, line 41 */
162
+ int m1 = z->l - z->c; (void)m1;
163
+ if (z->c < z->I[0]) return 0;
164
+ z->c = z->I[0]; /* tomark, line 41 */
165
+ mlimit = z->lb; z->lb = z->c;
166
+ z->c = z->l - m1;
167
+ z->ket = z->c; /* [, line 41 */
168
+ if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1851440 >> (z->p[z->c - 1] & 0x1f)) & 1)) { z->lb = mlimit; return 0; }
169
+ among_var = find_among_b(z, a_0, 32); /* substring, line 41 */
170
+ if (!(among_var)) { z->lb = mlimit; return 0; }
171
+ z->bra = z->c; /* ], line 41 */
172
+ z->lb = mlimit;
173
+ }
174
+ switch(among_var) {
175
+ case 0: return 0;
176
+ case 1:
177
+ { int ret = slice_del(z); /* delete, line 48 */
178
+ if (ret < 0) return ret;
179
+ }
180
+ break;
181
+ case 2:
182
+ if (in_grouping_b(z, g_s_ending, 97, 229, 0)) return 0;
183
+ { int ret = slice_del(z); /* delete, line 50 */
184
+ if (ret < 0) return ret;
185
+ }
186
+ break;
187
+ }
188
+ return 1;
189
+ }
190
+
191
+ static int r_consonant_pair(struct SN_env * z) {
192
+ { int m_test = z->l - z->c; /* test, line 55 */
193
+ { int mlimit; /* setlimit, line 56 */
194
+ int m1 = z->l - z->c; (void)m1;
195
+ if (z->c < z->I[0]) return 0;
196
+ z->c = z->I[0]; /* tomark, line 56 */
197
+ mlimit = z->lb; z->lb = z->c;
198
+ z->c = z->l - m1;
199
+ z->ket = z->c; /* [, line 56 */
200
+ if (z->c - 1 <= z->lb || (z->p[z->c - 1] != 100 && z->p[z->c - 1] != 116)) { z->lb = mlimit; return 0; }
201
+ if (!(find_among_b(z, a_1, 4))) { z->lb = mlimit; return 0; } /* substring, line 56 */
202
+ z->bra = z->c; /* ], line 56 */
203
+ z->lb = mlimit;
204
+ }
205
+ z->c = z->l - m_test;
206
+ }
207
+ if (z->c <= z->lb) return 0;
208
+ z->c--; /* next, line 62 */
209
+ z->bra = z->c; /* ], line 62 */
210
+ { int ret = slice_del(z); /* delete, line 62 */
211
+ if (ret < 0) return ret;
212
+ }
213
+ return 1;
214
+ }
215
+
216
+ static int r_other_suffix(struct SN_env * z) {
217
+ int among_var;
218
+ { int m1 = z->l - z->c; (void)m1; /* do, line 66 */
219
+ z->ket = z->c; /* [, line 66 */
220
+ if (!(eq_s_b(z, 2, s_0))) goto lab0;
221
+ z->bra = z->c; /* ], line 66 */
222
+ if (!(eq_s_b(z, 2, s_1))) goto lab0;
223
+ { int ret = slice_del(z); /* delete, line 66 */
224
+ if (ret < 0) return ret;
225
+ }
226
+ lab0:
227
+ z->c = z->l - m1;
228
+ }
229
+ { int mlimit; /* setlimit, line 67 */
230
+ int m2 = z->l - z->c; (void)m2;
231
+ if (z->c < z->I[0]) return 0;
232
+ z->c = z->I[0]; /* tomark, line 67 */
233
+ mlimit = z->lb; z->lb = z->c;
234
+ z->c = z->l - m2;
235
+ z->ket = z->c; /* [, line 67 */
236
+ if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1572992 >> (z->p[z->c - 1] & 0x1f)) & 1)) { z->lb = mlimit; return 0; }
237
+ among_var = find_among_b(z, a_2, 5); /* substring, line 67 */
238
+ if (!(among_var)) { z->lb = mlimit; return 0; }
239
+ z->bra = z->c; /* ], line 67 */
240
+ z->lb = mlimit;
241
+ }
242
+ switch(among_var) {
243
+ case 0: return 0;
244
+ case 1:
245
+ { int ret = slice_del(z); /* delete, line 70 */
246
+ if (ret < 0) return ret;
247
+ }
248
+ { int m3 = z->l - z->c; (void)m3; /* do, line 70 */
249
+ { int ret = r_consonant_pair(z);
250
+ if (ret == 0) goto lab1; /* call consonant_pair, line 70 */
251
+ if (ret < 0) return ret;
252
+ }
253
+ lab1:
254
+ z->c = z->l - m3;
255
+ }
256
+ break;
257
+ case 2:
258
+ { int ret = slice_from_s(z, 3, s_2); /* <-, line 72 */
259
+ if (ret < 0) return ret;
260
+ }
261
+ break;
262
+ }
263
+ return 1;
264
+ }
265
+
266
+ static int r_undouble(struct SN_env * z) {
267
+ { int mlimit; /* setlimit, line 76 */
268
+ int m1 = z->l - z->c; (void)m1;
269
+ if (z->c < z->I[0]) return 0;
270
+ z->c = z->I[0]; /* tomark, line 76 */
271
+ mlimit = z->lb; z->lb = z->c;
272
+ z->c = z->l - m1;
273
+ z->ket = z->c; /* [, line 76 */
274
+ if (out_grouping_b(z, g_v, 97, 248, 0)) { z->lb = mlimit; return 0; }
275
+ z->bra = z->c; /* ], line 76 */
276
+ z->S[0] = slice_to(z, z->S[0]); /* -> ch, line 76 */
277
+ if (z->S[0] == 0) return -1; /* -> ch, line 76 */
278
+ z->lb = mlimit;
279
+ }
280
+ if (!(eq_v_b(z, z->S[0]))) return 0; /* name ch, line 77 */
281
+ { int ret = slice_del(z); /* delete, line 78 */
282
+ if (ret < 0) return ret;
283
+ }
284
+ return 1;
285
+ }
286
+
287
+ extern int danish_ISO_8859_1_stem(struct SN_env * z) {
288
+ { int c1 = z->c; /* do, line 84 */
289
+ { int ret = r_mark_regions(z);
290
+ if (ret == 0) goto lab0; /* call mark_regions, line 84 */
291
+ if (ret < 0) return ret;
292
+ }
293
+ lab0:
294
+ z->c = c1;
295
+ }
296
+ z->lb = z->c; z->c = z->l; /* backwards, line 85 */
297
+
298
+ { int m2 = z->l - z->c; (void)m2; /* do, line 86 */
299
+ { int ret = r_main_suffix(z);
300
+ if (ret == 0) goto lab1; /* call main_suffix, line 86 */
301
+ if (ret < 0) return ret;
302
+ }
303
+ lab1:
304
+ z->c = z->l - m2;
305
+ }
306
+ { int m3 = z->l - z->c; (void)m3; /* do, line 87 */
307
+ { int ret = r_consonant_pair(z);
308
+ if (ret == 0) goto lab2; /* call consonant_pair, line 87 */
309
+ if (ret < 0) return ret;
310
+ }
311
+ lab2:
312
+ z->c = z->l - m3;
313
+ }
314
+ { int m4 = z->l - z->c; (void)m4; /* do, line 88 */
315
+ { int ret = r_other_suffix(z);
316
+ if (ret == 0) goto lab3; /* call other_suffix, line 88 */
317
+ if (ret < 0) return ret;
318
+ }
319
+ lab3:
320
+ z->c = z->l - m4;
321
+ }
322
+ { int m5 = z->l - z->c; (void)m5; /* do, line 89 */
323
+ { int ret = r_undouble(z);
324
+ if (ret == 0) goto lab4; /* call undouble, line 89 */
325
+ if (ret < 0) return ret;
326
+ }
327
+ lab4:
328
+ z->c = z->l - m5;
329
+ }
330
+ z->c = z->lb;
331
+ return 1;
332
+ }
333
+
334
+ extern struct SN_env * danish_ISO_8859_1_create_env(void) { return SN_create_env(1, 2, 0); }
335
+
336
+ extern void danish_ISO_8859_1_close_env(struct SN_env * z) { SN_close_env(z, 1); }
337
+
@@ -0,0 +1,16 @@
1
+
2
+ /* This file was generated automatically by the Snowball to ANSI C compiler */
3
+
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+
8
+ extern struct SN_env * danish_ISO_8859_1_create_env(void);
9
+ extern void danish_ISO_8859_1_close_env(struct SN_env * z);
10
+
11
+ extern int danish_ISO_8859_1_stem(struct SN_env * z);
12
+
13
+ #ifdef __cplusplus
14
+ }
15
+ #endif
16
+
@@ -0,0 +1,624 @@
1
+
2
+ /* This file was generated automatically by the Snowball to ANSI C compiler */
3
+
4
+ #include "../runtime/header.h"
5
+
6
+ #ifdef __cplusplus
7
+ extern "C" {
8
+ #endif
9
+ extern int dutch_ISO_8859_1_stem(struct SN_env * z);
10
+ #ifdef __cplusplus
11
+ }
12
+ #endif
13
+ static int r_standard_suffix(struct SN_env * z);
14
+ static int r_undouble(struct SN_env * z);
15
+ static int r_R2(struct SN_env * z);
16
+ static int r_R1(struct SN_env * z);
17
+ static int r_mark_regions(struct SN_env * z);
18
+ static int r_en_ending(struct SN_env * z);
19
+ static int r_e_ending(struct SN_env * z);
20
+ static int r_postlude(struct SN_env * z);
21
+ static int r_prelude(struct SN_env * z);
22
+ #ifdef __cplusplus
23
+ extern "C" {
24
+ #endif
25
+
26
+
27
+ extern struct SN_env * dutch_ISO_8859_1_create_env(void);
28
+ extern void dutch_ISO_8859_1_close_env(struct SN_env * z);
29
+
30
+
31
+ #ifdef __cplusplus
32
+ }
33
+ #endif
34
+ static const symbol s_0_1[1] = { 0xE1 };
35
+ static const symbol s_0_2[1] = { 0xE4 };
36
+ static const symbol s_0_3[1] = { 0xE9 };
37
+ static const symbol s_0_4[1] = { 0xEB };
38
+ static const symbol s_0_5[1] = { 0xED };
39
+ static const symbol s_0_6[1] = { 0xEF };
40
+ static const symbol s_0_7[1] = { 0xF3 };
41
+ static const symbol s_0_8[1] = { 0xF6 };
42
+ static const symbol s_0_9[1] = { 0xFA };
43
+ static const symbol s_0_10[1] = { 0xFC };
44
+
45
+ static const struct among a_0[11] =
46
+ {
47
+ /* 0 */ { 0, 0, -1, 6, 0},
48
+ /* 1 */ { 1, s_0_1, 0, 1, 0},
49
+ /* 2 */ { 1, s_0_2, 0, 1, 0},
50
+ /* 3 */ { 1, s_0_3, 0, 2, 0},
51
+ /* 4 */ { 1, s_0_4, 0, 2, 0},
52
+ /* 5 */ { 1, s_0_5, 0, 3, 0},
53
+ /* 6 */ { 1, s_0_6, 0, 3, 0},
54
+ /* 7 */ { 1, s_0_7, 0, 4, 0},
55
+ /* 8 */ { 1, s_0_8, 0, 4, 0},
56
+ /* 9 */ { 1, s_0_9, 0, 5, 0},
57
+ /* 10 */ { 1, s_0_10, 0, 5, 0}
58
+ };
59
+
60
+ static const symbol s_1_1[1] = { 'I' };
61
+ static const symbol s_1_2[1] = { 'Y' };
62
+
63
+ static const struct among a_1[3] =
64
+ {
65
+ /* 0 */ { 0, 0, -1, 3, 0},
66
+ /* 1 */ { 1, s_1_1, 0, 2, 0},
67
+ /* 2 */ { 1, s_1_2, 0, 1, 0}
68
+ };
69
+
70
+ static const symbol s_2_0[2] = { 'd', 'd' };
71
+ static const symbol s_2_1[2] = { 'k', 'k' };
72
+ static const symbol s_2_2[2] = { 't', 't' };
73
+
74
+ static const struct among a_2[3] =
75
+ {
76
+ /* 0 */ { 2, s_2_0, -1, -1, 0},
77
+ /* 1 */ { 2, s_2_1, -1, -1, 0},
78
+ /* 2 */ { 2, s_2_2, -1, -1, 0}
79
+ };
80
+
81
+ static const symbol s_3_0[3] = { 'e', 'n', 'e' };
82
+ static const symbol s_3_1[2] = { 's', 'e' };
83
+ static const symbol s_3_2[2] = { 'e', 'n' };
84
+ static const symbol s_3_3[5] = { 'h', 'e', 'd', 'e', 'n' };
85
+ static const symbol s_3_4[1] = { 's' };
86
+
87
+ static const struct among a_3[5] =
88
+ {
89
+ /* 0 */ { 3, s_3_0, -1, 2, 0},
90
+ /* 1 */ { 2, s_3_1, -1, 3, 0},
91
+ /* 2 */ { 2, s_3_2, -1, 2, 0},
92
+ /* 3 */ { 5, s_3_3, 2, 1, 0},
93
+ /* 4 */ { 1, s_3_4, -1, 3, 0}
94
+ };
95
+
96
+ static const symbol s_4_0[3] = { 'e', 'n', 'd' };
97
+ static const symbol s_4_1[2] = { 'i', 'g' };
98
+ static const symbol s_4_2[3] = { 'i', 'n', 'g' };
99
+ static const symbol s_4_3[4] = { 'l', 'i', 'j', 'k' };
100
+ static const symbol s_4_4[4] = { 'b', 'a', 'a', 'r' };
101
+ static const symbol s_4_5[3] = { 'b', 'a', 'r' };
102
+
103
+ static const struct among a_4[6] =
104
+ {
105
+ /* 0 */ { 3, s_4_0, -1, 1, 0},
106
+ /* 1 */ { 2, s_4_1, -1, 2, 0},
107
+ /* 2 */ { 3, s_4_2, -1, 1, 0},
108
+ /* 3 */ { 4, s_4_3, -1, 3, 0},
109
+ /* 4 */ { 4, s_4_4, -1, 4, 0},
110
+ /* 5 */ { 3, s_4_5, -1, 5, 0}
111
+ };
112
+
113
+ static const symbol s_5_0[2] = { 'a', 'a' };
114
+ static const symbol s_5_1[2] = { 'e', 'e' };
115
+ static const symbol s_5_2[2] = { 'o', 'o' };
116
+ static const symbol s_5_3[2] = { 'u', 'u' };
117
+
118
+ static const struct among a_5[4] =
119
+ {
120
+ /* 0 */ { 2, s_5_0, -1, -1, 0},
121
+ /* 1 */ { 2, s_5_1, -1, -1, 0},
122
+ /* 2 */ { 2, s_5_2, -1, -1, 0},
123
+ /* 3 */ { 2, s_5_3, -1, -1, 0}
124
+ };
125
+
126
+ static const unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 };
127
+
128
+ static const unsigned char g_v_I[] = { 1, 0, 0, 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 };
129
+
130
+ static const unsigned char g_v_j[] = { 17, 67, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 };
131
+
132
+ static const symbol s_0[] = { 'a' };
133
+ static const symbol s_1[] = { 'e' };
134
+ static const symbol s_2[] = { 'i' };
135
+ static const symbol s_3[] = { 'o' };
136
+ static const symbol s_4[] = { 'u' };
137
+ static const symbol s_5[] = { 'y' };
138
+ static const symbol s_6[] = { 'Y' };
139
+ static const symbol s_7[] = { 'i' };
140
+ static const symbol s_8[] = { 'I' };
141
+ static const symbol s_9[] = { 'y' };
142
+ static const symbol s_10[] = { 'Y' };
143
+ static const symbol s_11[] = { 'y' };
144
+ static const symbol s_12[] = { 'i' };
145
+ static const symbol s_13[] = { 'e' };
146
+ static const symbol s_14[] = { 'g', 'e', 'm' };
147
+ static const symbol s_15[] = { 'h', 'e', 'i', 'd' };
148
+ static const symbol s_16[] = { 'h', 'e', 'i', 'd' };
149
+ static const symbol s_17[] = { 'c' };
150
+ static const symbol s_18[] = { 'e', 'n' };
151
+ static const symbol s_19[] = { 'i', 'g' };
152
+ static const symbol s_20[] = { 'e' };
153
+ static const symbol s_21[] = { 'e' };
154
+
155
+ static int r_prelude(struct SN_env * z) {
156
+ int among_var;
157
+ { int c_test = z->c; /* test, line 42 */
158
+ while(1) { /* repeat, line 42 */
159
+ int c1 = z->c;
160
+ z->bra = z->c; /* [, line 43 */
161
+ if (z->c >= z->l || z->p[z->c + 0] >> 5 != 7 || !((340306450 >> (z->p[z->c + 0] & 0x1f)) & 1)) among_var = 6; else
162
+ among_var = find_among(z, a_0, 11); /* substring, line 43 */
163
+ if (!(among_var)) goto lab0;
164
+ z->ket = z->c; /* ], line 43 */
165
+ switch(among_var) {
166
+ case 0: goto lab0;
167
+ case 1:
168
+ { int ret = slice_from_s(z, 1, s_0); /* <-, line 45 */
169
+ if (ret < 0) return ret;
170
+ }
171
+ break;
172
+ case 2:
173
+ { int ret = slice_from_s(z, 1, s_1); /* <-, line 47 */
174
+ if (ret < 0) return ret;
175
+ }
176
+ break;
177
+ case 3:
178
+ { int ret = slice_from_s(z, 1, s_2); /* <-, line 49 */
179
+ if (ret < 0) return ret;
180
+ }
181
+ break;
182
+ case 4:
183
+ { int ret = slice_from_s(z, 1, s_3); /* <-, line 51 */
184
+ if (ret < 0) return ret;
185
+ }
186
+ break;
187
+ case 5:
188
+ { int ret = slice_from_s(z, 1, s_4); /* <-, line 53 */
189
+ if (ret < 0) return ret;
190
+ }
191
+ break;
192
+ case 6:
193
+ if (z->c >= z->l) goto lab0;
194
+ z->c++; /* next, line 54 */
195
+ break;
196
+ }
197
+ continue;
198
+ lab0:
199
+ z->c = c1;
200
+ break;
201
+ }
202
+ z->c = c_test;
203
+ }
204
+ { int c_keep = z->c; /* try, line 57 */
205
+ z->bra = z->c; /* [, line 57 */
206
+ if (!(eq_s(z, 1, s_5))) { z->c = c_keep; goto lab1; }
207
+ z->ket = z->c; /* ], line 57 */
208
+ { int ret = slice_from_s(z, 1, s_6); /* <-, line 57 */
209
+ if (ret < 0) return ret;
210
+ }
211
+ lab1:
212
+ ;
213
+ }
214
+ while(1) { /* repeat, line 58 */
215
+ int c2 = z->c;
216
+ while(1) { /* goto, line 58 */
217
+ int c3 = z->c;
218
+ if (in_grouping(z, g_v, 97, 232, 0)) goto lab3;
219
+ z->bra = z->c; /* [, line 59 */
220
+ { int c4 = z->c; /* or, line 59 */
221
+ if (!(eq_s(z, 1, s_7))) goto lab5;
222
+ z->ket = z->c; /* ], line 59 */
223
+ if (in_grouping(z, g_v, 97, 232, 0)) goto lab5;
224
+ { int ret = slice_from_s(z, 1, s_8); /* <-, line 59 */
225
+ if (ret < 0) return ret;
226
+ }
227
+ goto lab4;
228
+ lab5:
229
+ z->c = c4;
230
+ if (!(eq_s(z, 1, s_9))) goto lab3;
231
+ z->ket = z->c; /* ], line 60 */
232
+ { int ret = slice_from_s(z, 1, s_10); /* <-, line 60 */
233
+ if (ret < 0) return ret;
234
+ }
235
+ }
236
+ lab4:
237
+ z->c = c3;
238
+ break;
239
+ lab3:
240
+ z->c = c3;
241
+ if (z->c >= z->l) goto lab2;
242
+ z->c++; /* goto, line 58 */
243
+ }
244
+ continue;
245
+ lab2:
246
+ z->c = c2;
247
+ break;
248
+ }
249
+ return 1;
250
+ }
251
+
252
+ static int r_mark_regions(struct SN_env * z) {
253
+ z->I[0] = z->l;
254
+ z->I[1] = z->l;
255
+ { /* gopast */ /* grouping v, line 69 */
256
+ int ret = out_grouping(z, g_v, 97, 232, 1);
257
+ if (ret < 0) return 0;
258
+ z->c += ret;
259
+ }
260
+ { /* gopast */ /* non v, line 69 */
261
+ int ret = in_grouping(z, g_v, 97, 232, 1);
262
+ if (ret < 0) return 0;
263
+ z->c += ret;
264
+ }
265
+ z->I[0] = z->c; /* setmark p1, line 69 */
266
+ /* try, line 70 */
267
+ if (!(z->I[0] < 3)) goto lab0;
268
+ z->I[0] = 3;
269
+ lab0:
270
+ { /* gopast */ /* grouping v, line 71 */
271
+ int ret = out_grouping(z, g_v, 97, 232, 1);
272
+ if (ret < 0) return 0;
273
+ z->c += ret;
274
+ }
275
+ { /* gopast */ /* non v, line 71 */
276
+ int ret = in_grouping(z, g_v, 97, 232, 1);
277
+ if (ret < 0) return 0;
278
+ z->c += ret;
279
+ }
280
+ z->I[1] = z->c; /* setmark p2, line 71 */
281
+ return 1;
282
+ }
283
+
284
+ static int r_postlude(struct SN_env * z) {
285
+ int among_var;
286
+ while(1) { /* repeat, line 75 */
287
+ int c1 = z->c;
288
+ z->bra = z->c; /* [, line 77 */
289
+ if (z->c >= z->l || (z->p[z->c + 0] != 73 && z->p[z->c + 0] != 89)) among_var = 3; else
290
+ among_var = find_among(z, a_1, 3); /* substring, line 77 */
291
+ if (!(among_var)) goto lab0;
292
+ z->ket = z->c; /* ], line 77 */
293
+ switch(among_var) {
294
+ case 0: goto lab0;
295
+ case 1:
296
+ { int ret = slice_from_s(z, 1, s_11); /* <-, line 78 */
297
+ if (ret < 0) return ret;
298
+ }
299
+ break;
300
+ case 2:
301
+ { int ret = slice_from_s(z, 1, s_12); /* <-, line 79 */
302
+ if (ret < 0) return ret;
303
+ }
304
+ break;
305
+ case 3:
306
+ if (z->c >= z->l) goto lab0;
307
+ z->c++; /* next, line 80 */
308
+ break;
309
+ }
310
+ continue;
311
+ lab0:
312
+ z->c = c1;
313
+ break;
314
+ }
315
+ return 1;
316
+ }
317
+
318
+ static int r_R1(struct SN_env * z) {
319
+ if (!(z->I[0] <= z->c)) return 0;
320
+ return 1;
321
+ }
322
+
323
+ static int r_R2(struct SN_env * z) {
324
+ if (!(z->I[1] <= z->c)) return 0;
325
+ return 1;
326
+ }
327
+
328
+ static int r_undouble(struct SN_env * z) {
329
+ { int m_test = z->l - z->c; /* test, line 91 */
330
+ if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1050640 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
331
+ if (!(find_among_b(z, a_2, 3))) return 0; /* among, line 91 */
332
+ z->c = z->l - m_test;
333
+ }
334
+ z->ket = z->c; /* [, line 91 */
335
+ if (z->c <= z->lb) return 0;
336
+ z->c--; /* next, line 91 */
337
+ z->bra = z->c; /* ], line 91 */
338
+ { int ret = slice_del(z); /* delete, line 91 */
339
+ if (ret < 0) return ret;
340
+ }
341
+ return 1;
342
+ }
343
+
344
+ static int r_e_ending(struct SN_env * z) {
345
+ z->B[0] = 0; /* unset e_found, line 95 */
346
+ z->ket = z->c; /* [, line 96 */
347
+ if (!(eq_s_b(z, 1, s_13))) return 0;
348
+ z->bra = z->c; /* ], line 96 */
349
+ { int ret = r_R1(z);
350
+ if (ret == 0) return 0; /* call R1, line 96 */
351
+ if (ret < 0) return ret;
352
+ }
353
+ { int m_test = z->l - z->c; /* test, line 96 */
354
+ if (out_grouping_b(z, g_v, 97, 232, 0)) return 0;
355
+ z->c = z->l - m_test;
356
+ }
357
+ { int ret = slice_del(z); /* delete, line 96 */
358
+ if (ret < 0) return ret;
359
+ }
360
+ z->B[0] = 1; /* set e_found, line 97 */
361
+ { int ret = r_undouble(z);
362
+ if (ret == 0) return 0; /* call undouble, line 98 */
363
+ if (ret < 0) return ret;
364
+ }
365
+ return 1;
366
+ }
367
+
368
+ static int r_en_ending(struct SN_env * z) {
369
+ { int ret = r_R1(z);
370
+ if (ret == 0) return 0; /* call R1, line 102 */
371
+ if (ret < 0) return ret;
372
+ }
373
+ { int m1 = z->l - z->c; (void)m1; /* and, line 102 */
374
+ if (out_grouping_b(z, g_v, 97, 232, 0)) return 0;
375
+ z->c = z->l - m1;
376
+ { int m2 = z->l - z->c; (void)m2; /* not, line 102 */
377
+ if (!(eq_s_b(z, 3, s_14))) goto lab0;
378
+ return 0;
379
+ lab0:
380
+ z->c = z->l - m2;
381
+ }
382
+ }
383
+ { int ret = slice_del(z); /* delete, line 102 */
384
+ if (ret < 0) return ret;
385
+ }
386
+ { int ret = r_undouble(z);
387
+ if (ret == 0) return 0; /* call undouble, line 103 */
388
+ if (ret < 0) return ret;
389
+ }
390
+ return 1;
391
+ }
392
+
393
+ static int r_standard_suffix(struct SN_env * z) {
394
+ int among_var;
395
+ { int m1 = z->l - z->c; (void)m1; /* do, line 107 */
396
+ z->ket = z->c; /* [, line 108 */
397
+ if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((540704 >> (z->p[z->c - 1] & 0x1f)) & 1)) goto lab0;
398
+ among_var = find_among_b(z, a_3, 5); /* substring, line 108 */
399
+ if (!(among_var)) goto lab0;
400
+ z->bra = z->c; /* ], line 108 */
401
+ switch(among_var) {
402
+ case 0: goto lab0;
403
+ case 1:
404
+ { int ret = r_R1(z);
405
+ if (ret == 0) goto lab0; /* call R1, line 110 */
406
+ if (ret < 0) return ret;
407
+ }
408
+ { int ret = slice_from_s(z, 4, s_15); /* <-, line 110 */
409
+ if (ret < 0) return ret;
410
+ }
411
+ break;
412
+ case 2:
413
+ { int ret = r_en_ending(z);
414
+ if (ret == 0) goto lab0; /* call en_ending, line 113 */
415
+ if (ret < 0) return ret;
416
+ }
417
+ break;
418
+ case 3:
419
+ { int ret = r_R1(z);
420
+ if (ret == 0) goto lab0; /* call R1, line 116 */
421
+ if (ret < 0) return ret;
422
+ }
423
+ if (out_grouping_b(z, g_v_j, 97, 232, 0)) goto lab0;
424
+ { int ret = slice_del(z); /* delete, line 116 */
425
+ if (ret < 0) return ret;
426
+ }
427
+ break;
428
+ }
429
+ lab0:
430
+ z->c = z->l - m1;
431
+ }
432
+ { int m2 = z->l - z->c; (void)m2; /* do, line 120 */
433
+ { int ret = r_e_ending(z);
434
+ if (ret == 0) goto lab1; /* call e_ending, line 120 */
435
+ if (ret < 0) return ret;
436
+ }
437
+ lab1:
438
+ z->c = z->l - m2;
439
+ }
440
+ { int m3 = z->l - z->c; (void)m3; /* do, line 122 */
441
+ z->ket = z->c; /* [, line 122 */
442
+ if (!(eq_s_b(z, 4, s_16))) goto lab2;
443
+ z->bra = z->c; /* ], line 122 */
444
+ { int ret = r_R2(z);
445
+ if (ret == 0) goto lab2; /* call R2, line 122 */
446
+ if (ret < 0) return ret;
447
+ }
448
+ { int m4 = z->l - z->c; (void)m4; /* not, line 122 */
449
+ if (!(eq_s_b(z, 1, s_17))) goto lab3;
450
+ goto lab2;
451
+ lab3:
452
+ z->c = z->l - m4;
453
+ }
454
+ { int ret = slice_del(z); /* delete, line 122 */
455
+ if (ret < 0) return ret;
456
+ }
457
+ z->ket = z->c; /* [, line 123 */
458
+ if (!(eq_s_b(z, 2, s_18))) goto lab2;
459
+ z->bra = z->c; /* ], line 123 */
460
+ { int ret = r_en_ending(z);
461
+ if (ret == 0) goto lab2; /* call en_ending, line 123 */
462
+ if (ret < 0) return ret;
463
+ }
464
+ lab2:
465
+ z->c = z->l - m3;
466
+ }
467
+ { int m5 = z->l - z->c; (void)m5; /* do, line 126 */
468
+ z->ket = z->c; /* [, line 127 */
469
+ if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((264336 >> (z->p[z->c - 1] & 0x1f)) & 1)) goto lab4;
470
+ among_var = find_among_b(z, a_4, 6); /* substring, line 127 */
471
+ if (!(among_var)) goto lab4;
472
+ z->bra = z->c; /* ], line 127 */
473
+ switch(among_var) {
474
+ case 0: goto lab4;
475
+ case 1:
476
+ { int ret = r_R2(z);
477
+ if (ret == 0) goto lab4; /* call R2, line 129 */
478
+ if (ret < 0) return ret;
479
+ }
480
+ { int ret = slice_del(z); /* delete, line 129 */
481
+ if (ret < 0) return ret;
482
+ }
483
+ { int m6 = z->l - z->c; (void)m6; /* or, line 130 */
484
+ z->ket = z->c; /* [, line 130 */
485
+ if (!(eq_s_b(z, 2, s_19))) goto lab6;
486
+ z->bra = z->c; /* ], line 130 */
487
+ { int ret = r_R2(z);
488
+ if (ret == 0) goto lab6; /* call R2, line 130 */
489
+ if (ret < 0) return ret;
490
+ }
491
+ { int m7 = z->l - z->c; (void)m7; /* not, line 130 */
492
+ if (!(eq_s_b(z, 1, s_20))) goto lab7;
493
+ goto lab6;
494
+ lab7:
495
+ z->c = z->l - m7;
496
+ }
497
+ { int ret = slice_del(z); /* delete, line 130 */
498
+ if (ret < 0) return ret;
499
+ }
500
+ goto lab5;
501
+ lab6:
502
+ z->c = z->l - m6;
503
+ { int ret = r_undouble(z);
504
+ if (ret == 0) goto lab4; /* call undouble, line 130 */
505
+ if (ret < 0) return ret;
506
+ }
507
+ }
508
+ lab5:
509
+ break;
510
+ case 2:
511
+ { int ret = r_R2(z);
512
+ if (ret == 0) goto lab4; /* call R2, line 133 */
513
+ if (ret < 0) return ret;
514
+ }
515
+ { int m8 = z->l - z->c; (void)m8; /* not, line 133 */
516
+ if (!(eq_s_b(z, 1, s_21))) goto lab8;
517
+ goto lab4;
518
+ lab8:
519
+ z->c = z->l - m8;
520
+ }
521
+ { int ret = slice_del(z); /* delete, line 133 */
522
+ if (ret < 0) return ret;
523
+ }
524
+ break;
525
+ case 3:
526
+ { int ret = r_R2(z);
527
+ if (ret == 0) goto lab4; /* call R2, line 136 */
528
+ if (ret < 0) return ret;
529
+ }
530
+ { int ret = slice_del(z); /* delete, line 136 */
531
+ if (ret < 0) return ret;
532
+ }
533
+ { int ret = r_e_ending(z);
534
+ if (ret == 0) goto lab4; /* call e_ending, line 136 */
535
+ if (ret < 0) return ret;
536
+ }
537
+ break;
538
+ case 4:
539
+ { int ret = r_R2(z);
540
+ if (ret == 0) goto lab4; /* call R2, line 139 */
541
+ if (ret < 0) return ret;
542
+ }
543
+ { int ret = slice_del(z); /* delete, line 139 */
544
+ if (ret < 0) return ret;
545
+ }
546
+ break;
547
+ case 5:
548
+ { int ret = r_R2(z);
549
+ if (ret == 0) goto lab4; /* call R2, line 142 */
550
+ if (ret < 0) return ret;
551
+ }
552
+ if (!(z->B[0])) goto lab4; /* Boolean test e_found, line 142 */
553
+ { int ret = slice_del(z); /* delete, line 142 */
554
+ if (ret < 0) return ret;
555
+ }
556
+ break;
557
+ }
558
+ lab4:
559
+ z->c = z->l - m5;
560
+ }
561
+ { int m9 = z->l - z->c; (void)m9; /* do, line 146 */
562
+ if (out_grouping_b(z, g_v_I, 73, 232, 0)) goto lab9;
563
+ { int m_test = z->l - z->c; /* test, line 148 */
564
+ if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((2129954 >> (z->p[z->c - 1] & 0x1f)) & 1)) goto lab9;
565
+ if (!(find_among_b(z, a_5, 4))) goto lab9; /* among, line 149 */
566
+ if (out_grouping_b(z, g_v, 97, 232, 0)) goto lab9;
567
+ z->c = z->l - m_test;
568
+ }
569
+ z->ket = z->c; /* [, line 152 */
570
+ if (z->c <= z->lb) goto lab9;
571
+ z->c--; /* next, line 152 */
572
+ z->bra = z->c; /* ], line 152 */
573
+ { int ret = slice_del(z); /* delete, line 152 */
574
+ if (ret < 0) return ret;
575
+ }
576
+ lab9:
577
+ z->c = z->l - m9;
578
+ }
579
+ return 1;
580
+ }
581
+
582
+ extern int dutch_ISO_8859_1_stem(struct SN_env * z) {
583
+ { int c1 = z->c; /* do, line 159 */
584
+ { int ret = r_prelude(z);
585
+ if (ret == 0) goto lab0; /* call prelude, line 159 */
586
+ if (ret < 0) return ret;
587
+ }
588
+ lab0:
589
+ z->c = c1;
590
+ }
591
+ { int c2 = z->c; /* do, line 160 */
592
+ { int ret = r_mark_regions(z);
593
+ if (ret == 0) goto lab1; /* call mark_regions, line 160 */
594
+ if (ret < 0) return ret;
595
+ }
596
+ lab1:
597
+ z->c = c2;
598
+ }
599
+ z->lb = z->c; z->c = z->l; /* backwards, line 161 */
600
+
601
+ { int m3 = z->l - z->c; (void)m3; /* do, line 162 */
602
+ { int ret = r_standard_suffix(z);
603
+ if (ret == 0) goto lab2; /* call standard_suffix, line 162 */
604
+ if (ret < 0) return ret;
605
+ }
606
+ lab2:
607
+ z->c = z->l - m3;
608
+ }
609
+ z->c = z->lb;
610
+ { int c4 = z->c; /* do, line 163 */
611
+ { int ret = r_postlude(z);
612
+ if (ret == 0) goto lab3; /* call postlude, line 163 */
613
+ if (ret < 0) return ret;
614
+ }
615
+ lab3:
616
+ z->c = c4;
617
+ }
618
+ return 1;
619
+ }
620
+
621
+ extern struct SN_env * dutch_ISO_8859_1_create_env(void) { return SN_create_env(0, 2, 1); }
622
+
623
+ extern void dutch_ISO_8859_1_close_env(struct SN_env * z) { SN_close_env(z, 0); }
624
+