de.oddb 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (431) hide show
  1. data/Guide.txt +3 -0
  2. data/History.txt +5 -0
  3. data/LICENCE.txt +339 -0
  4. data/Manifest.txt +430 -0
  5. data/README +423 -0
  6. data/README.txt +25 -0
  7. data/Rakefile +28 -0
  8. data/bin/admin +71 -0
  9. data/bin/exportd +44 -0
  10. data/bin/oddbd +33 -0
  11. data/data/fulltext/data/dicts/french/fulltext.aff +1057 -0
  12. data/data/fulltext/data/dicts/french/fulltext.dict +91189 -0
  13. data/data/fulltext/data/dicts/french/fulltext.stop +135 -0
  14. data/data/fulltext/data/dicts/german/fulltext.aff +1233 -0
  15. data/data/fulltext/data/dicts/german/fulltext.dict +287574 -0
  16. data/data/fulltext/data/dicts/german/fulltext.stop +133 -0
  17. data/data/fulltext/data/german_compound/README +15 -0
  18. data/data/fulltext/data/german_compound/compound.pl +63 -0
  19. data/data/fulltext/data/german_compound/german.stop +20 -0
  20. data/data/fulltext/data/ispell-german-compound.tar.gz +0 -0
  21. data/data/fulltext/redist/dict_french/Makefile +12 -0
  22. data/data/fulltext/redist/dict_french/README.french +1 -0
  23. data/data/fulltext/redist/dict_french/dict_french.sql.in +7 -0
  24. data/data/fulltext/redist/dict_french/dict_snowball.c +56 -0
  25. data/data/fulltext/redist/dict_french/french_stem.c +1222 -0
  26. data/data/fulltext/redist/dict_french/french_stem.h +16 -0
  27. data/data/fulltext/redist/dict_french/subinclude.h +2 -0
  28. data/data/fulltext/redist/dict_german/Makefile +12 -0
  29. data/data/fulltext/redist/dict_german/README.german +1 -0
  30. data/data/fulltext/redist/dict_german/dict_german.sql.in +7 -0
  31. data/data/fulltext/redist/dict_german/dict_snowball.c +56 -0
  32. data/data/fulltext/redist/dict_german/german_stem.c +527 -0
  33. data/data/fulltext/redist/dict_german/german_stem.h +16 -0
  34. data/data/fulltext/redist/dict_german/subinclude.h +1 -0
  35. data/data/fulltext/redist/french_stem.c +1222 -0
  36. data/data/fulltext/redist/french_stem.h +16 -0
  37. data/data/fulltext/redist/german_stem.c +527 -0
  38. data/data/fulltext/redist/german_stem.h +16 -0
  39. data/jobs/export_chde_xls +20 -0
  40. data/jobs/export_csv +20 -0
  41. data/jobs/export_fachinfo_yaml +20 -0
  42. data/jobs/export_patinfo_yaml +20 -0
  43. data/jobs/export_yaml +20 -0
  44. data/jobs/import_dimdi +15 -0
  45. data/jobs/import_gkv +19 -0
  46. data/jobs/import_pharma24 +15 -0
  47. data/jobs/import_pharmnet +30 -0
  48. data/jobs/import_whocc +18 -0
  49. data/lib/fixes/singular.rb +9 -0
  50. data/lib/fixes/yaml.rb +13 -0
  51. data/lib/oddb.rb +13 -0
  52. data/lib/oddb/business/company.rb +18 -0
  53. data/lib/oddb/business/grant_download.rb +27 -0
  54. data/lib/oddb/business/invoice.rb +75 -0
  55. data/lib/oddb/config.rb +112 -0
  56. data/lib/oddb/currency.rb +6 -0
  57. data/lib/oddb/drugs.rb +16 -0
  58. data/lib/oddb/drugs/active_agent.rb +37 -0
  59. data/lib/oddb/drugs/atc.rb +53 -0
  60. data/lib/oddb/drugs/composition.rb +41 -0
  61. data/lib/oddb/drugs/ddd.rb +24 -0
  62. data/lib/oddb/drugs/dose.rb +107 -0
  63. data/lib/oddb/drugs/galenic_form.rb +21 -0
  64. data/lib/oddb/drugs/galenic_group.rb +17 -0
  65. data/lib/oddb/drugs/package.rb +111 -0
  66. data/lib/oddb/drugs/part.rb +55 -0
  67. data/lib/oddb/drugs/product.rb +25 -0
  68. data/lib/oddb/drugs/sequence.rb +68 -0
  69. data/lib/oddb/drugs/substance.rb +31 -0
  70. data/lib/oddb/drugs/substance_group.rb +13 -0
  71. data/lib/oddb/drugs/unit.rb +12 -0
  72. data/lib/oddb/export.rb +4 -0
  73. data/lib/oddb/export/csv.rb +94 -0
  74. data/lib/oddb/export/l10n_sessions.rb +30 -0
  75. data/lib/oddb/export/rss.rb +44 -0
  76. data/lib/oddb/export/server.rb +137 -0
  77. data/lib/oddb/export/xls.rb +127 -0
  78. data/lib/oddb/export/yaml.rb +212 -0
  79. data/lib/oddb/html/state/download.rb +13 -0
  80. data/lib/oddb/html/state/drugs/admin/package.rb +190 -0
  81. data/lib/oddb/html/state/drugs/admin/product.rb +56 -0
  82. data/lib/oddb/html/state/drugs/admin/sequence.rb +253 -0
  83. data/lib/oddb/html/state/drugs/ajax/explain_ddd_price.rb +19 -0
  84. data/lib/oddb/html/state/drugs/ajax/explain_price.rb +19 -0
  85. data/lib/oddb/html/state/drugs/ajax/global.rb +18 -0
  86. data/lib/oddb/html/state/drugs/ajax/package_infos.rb +19 -0
  87. data/lib/oddb/html/state/drugs/ajax/remote_infos.rb +19 -0
  88. data/lib/oddb/html/state/drugs/atc_browser.rb +39 -0
  89. data/lib/oddb/html/state/drugs/atc_guidelines.rb +21 -0
  90. data/lib/oddb/html/state/drugs/compare.rb +52 -0
  91. data/lib/oddb/html/state/drugs/download_export.rb +18 -0
  92. data/lib/oddb/html/state/drugs/downloads.rb +42 -0
  93. data/lib/oddb/html/state/drugs/fachinfo.rb +21 -0
  94. data/lib/oddb/html/state/drugs/feedback.rb +91 -0
  95. data/lib/oddb/html/state/drugs/global.rb +270 -0
  96. data/lib/oddb/html/state/drugs/init.rb +18 -0
  97. data/lib/oddb/html/state/drugs/login.rb +17 -0
  98. data/lib/oddb/html/state/drugs/package.rb +32 -0
  99. data/lib/oddb/html/state/drugs/patinfo.rb +21 -0
  100. data/lib/oddb/html/state/drugs/products.rb +51 -0
  101. data/lib/oddb/html/state/drugs/result.rb +125 -0
  102. data/lib/oddb/html/state/global.rb +206 -0
  103. data/lib/oddb/html/state/global_predefine.rb +17 -0
  104. data/lib/oddb/html/state/limit.rb +17 -0
  105. data/lib/oddb/html/state/login.rb +56 -0
  106. data/lib/oddb/html/state/paypal/checkout.rb +97 -0
  107. data/lib/oddb/html/state/paypal/collect.rb +19 -0
  108. data/lib/oddb/html/state/paypal/download.rb +61 -0
  109. data/lib/oddb/html/state/paypal/redirect.rb +18 -0
  110. data/lib/oddb/html/state/register_download.rb +24 -0
  111. data/lib/oddb/html/state/register_export.rb +38 -0
  112. data/lib/oddb/html/state/register_poweruser.rb +17 -0
  113. data/lib/oddb/html/state/viral/admin.rb +79 -0
  114. data/lib/oddb/html/state/viral/poweruser.rb +16 -0
  115. data/lib/oddb/html/util/annotated_list.rb +39 -0
  116. data/lib/oddb/html/util/know_it_all.rb +28 -0
  117. data/lib/oddb/html/util/known_user.rb +55 -0
  118. data/lib/oddb/html/util/lookandfeel.rb +698 -0
  119. data/lib/oddb/html/util/need_all_input.rb +29 -0
  120. data/lib/oddb/html/util/session.rb +84 -0
  121. data/lib/oddb/html/util/sort.rb +72 -0
  122. data/lib/oddb/html/util/unsaved_helper.rb +20 -0
  123. data/lib/oddb/html/util/validator.rb +59 -0
  124. data/lib/oddb/html/view/ajax/json.rb +22 -0
  125. data/lib/oddb/html/view/alpha_header.rb +28 -0
  126. data/lib/oddb/html/view/document.rb +117 -0
  127. data/lib/oddb/html/view/download.rb +33 -0
  128. data/lib/oddb/html/view/drugs/admin/package.rb +245 -0
  129. data/lib/oddb/html/view/drugs/admin/product.rb +104 -0
  130. data/lib/oddb/html/view/drugs/admin/sequence.rb +305 -0
  131. data/lib/oddb/html/view/drugs/ajax/explain_ddd_price.rb +87 -0
  132. data/lib/oddb/html/view/drugs/ajax/explain_price.rb +61 -0
  133. data/lib/oddb/html/view/drugs/ajax/package_infos.rb +105 -0
  134. data/lib/oddb/html/view/drugs/ajax/remote_infos.rb +44 -0
  135. data/lib/oddb/html/view/drugs/atc_browser.rb +68 -0
  136. data/lib/oddb/html/view/drugs/atc_guidelines.rb +94 -0
  137. data/lib/oddb/html/view/drugs/compare.rb +95 -0
  138. data/lib/oddb/html/view/drugs/download_export.rb +28 -0
  139. data/lib/oddb/html/view/drugs/downloads.rb +128 -0
  140. data/lib/oddb/html/view/drugs/fachinfo.rb +46 -0
  141. data/lib/oddb/html/view/drugs/feedback.rb +235 -0
  142. data/lib/oddb/html/view/drugs/init.rb +51 -0
  143. data/lib/oddb/html/view/drugs/legend.rb +24 -0
  144. data/lib/oddb/html/view/drugs/package.rb +403 -0
  145. data/lib/oddb/html/view/drugs/patinfo.rb +46 -0
  146. data/lib/oddb/html/view/drugs/products.rb +97 -0
  147. data/lib/oddb/html/view/drugs/result.rb +296 -0
  148. data/lib/oddb/html/view/drugs/search.rb +33 -0
  149. data/lib/oddb/html/view/drugs/template.rb +15 -0
  150. data/lib/oddb/html/view/foot.rb +52 -0
  151. data/lib/oddb/html/view/google.rb +23 -0
  152. data/lib/oddb/html/view/google_ads.rb +40 -0
  153. data/lib/oddb/html/view/head.rb +78 -0
  154. data/lib/oddb/html/view/limit.rb +109 -0
  155. data/lib/oddb/html/view/list.rb +59 -0
  156. data/lib/oddb/html/view/login.rb +38 -0
  157. data/lib/oddb/html/view/navigation.rb +67 -0
  158. data/lib/oddb/html/view/offset_header.rb +35 -0
  159. data/lib/oddb/html/view/paypal/collect.rb +95 -0
  160. data/lib/oddb/html/view/paypal/redirect.rb +51 -0
  161. data/lib/oddb/html/view/paypal/register_form.rb +149 -0
  162. data/lib/oddb/html/view/register_download.rb +29 -0
  163. data/lib/oddb/html/view/register_export.rb +29 -0
  164. data/lib/oddb/html/view/register_poweruser.rb +29 -0
  165. data/lib/oddb/html/view/rss/feedback.rb +64 -0
  166. data/lib/oddb/html/view/rss_preview.rb +61 -0
  167. data/lib/oddb/html/view/search.rb +104 -0
  168. data/lib/oddb/html/view/snapback.rb +24 -0
  169. data/lib/oddb/html/view/template.rb +56 -0
  170. data/lib/oddb/import/dimdi.rb +583 -0
  171. data/lib/oddb/import/excel.rb +45 -0
  172. data/lib/oddb/import/gkv.rb +463 -0
  173. data/lib/oddb/import/importer.rb +36 -0
  174. data/lib/oddb/import/pharma24.rb +211 -0
  175. data/lib/oddb/import/pharmnet.rb +1186 -0
  176. data/lib/oddb/import/rtf.rb +409 -0
  177. data/lib/oddb/import/whocc.rb +148 -0
  178. data/lib/oddb/import/xml.rb +15 -0
  179. data/lib/oddb/model.rb +179 -0
  180. data/lib/oddb/persistence.rb +22 -0
  181. data/lib/oddb/persistence/odba.rb +32 -0
  182. data/lib/oddb/persistence/odba/business/company.rb +13 -0
  183. data/lib/oddb/persistence/odba/business/grant_download.rb +14 -0
  184. data/lib/oddb/persistence/odba/business/invoice.rb +15 -0
  185. data/lib/oddb/persistence/odba/drugs/atc.rb +15 -0
  186. data/lib/oddb/persistence/odba/drugs/galenic_form.rb +18 -0
  187. data/lib/oddb/persistence/odba/drugs/galenic_group.rb +13 -0
  188. data/lib/oddb/persistence/odba/drugs/package.rb +25 -0
  189. data/lib/oddb/persistence/odba/drugs/product.rb +13 -0
  190. data/lib/oddb/persistence/odba/drugs/sequence.rb +21 -0
  191. data/lib/oddb/persistence/odba/drugs/substance.rb +21 -0
  192. data/lib/oddb/persistence/odba/drugs/substance_group.rb +13 -0
  193. data/lib/oddb/persistence/odba/drugs/unit.rb +13 -0
  194. data/lib/oddb/persistence/odba/export.rb +26 -0
  195. data/lib/oddb/persistence/odba/model.rb +68 -0
  196. data/lib/oddb/persistence/odba/text/document.rb +11 -0
  197. data/lib/oddb/persistence/odba/util/code.rb +11 -0
  198. data/lib/oddb/persistence/odba/util/m10l_document.rb +13 -0
  199. data/lib/oddb/persistence/og.rb +16 -0
  200. data/lib/oddb/persistence/og/drugs/composition.rb +14 -0
  201. data/lib/oddb/persistence/og/drugs/product.rb +14 -0
  202. data/lib/oddb/persistence/og/drugs/sequence.rb +15 -0
  203. data/lib/oddb/persistence/og/model.rb +25 -0
  204. data/lib/oddb/persistence/og/util/multilingual.rb +13 -0
  205. data/lib/oddb/redist/rtf_tools/reader.rb +139 -0
  206. data/lib/oddb/remote/business/company.rb +17 -0
  207. data/lib/oddb/remote/drugs/active_agent.rb +27 -0
  208. data/lib/oddb/remote/drugs/atc.rb +31 -0
  209. data/lib/oddb/remote/drugs/dose.rb +8 -0
  210. data/lib/oddb/remote/drugs/galenic_form.rb +24 -0
  211. data/lib/oddb/remote/drugs/package.rb +128 -0
  212. data/lib/oddb/remote/drugs/part.rb +30 -0
  213. data/lib/oddb/remote/drugs/substance.rb +20 -0
  214. data/lib/oddb/remote/drugs/unit.rb +20 -0
  215. data/lib/oddb/remote/object.rb +36 -0
  216. data/lib/oddb/text/chapter.rb +23 -0
  217. data/lib/oddb/text/document.rb +42 -0
  218. data/lib/oddb/text/format.rb +37 -0
  219. data/lib/oddb/text/paragraph.rb +53 -0
  220. data/lib/oddb/text/picture.rb +89 -0
  221. data/lib/oddb/text/table.rb +68 -0
  222. data/lib/oddb/util.rb +9 -0
  223. data/lib/oddb/util/annotated_list.rb +37 -0
  224. data/lib/oddb/util/code.rb +69 -0
  225. data/lib/oddb/util/comparison.rb +36 -0
  226. data/lib/oddb/util/download.rb +17 -0
  227. data/lib/oddb/util/exporter.rb +8 -0
  228. data/lib/oddb/util/feedback.rb +23 -0
  229. data/lib/oddb/util/ipn.rb +53 -0
  230. data/lib/oddb/util/job.rb +23 -0
  231. data/lib/oddb/util/logger.rb +20 -0
  232. data/lib/oddb/util/m10l_document.rb +41 -0
  233. data/lib/oddb/util/mail.rb +87 -0
  234. data/lib/oddb/util/money.rb +64 -0
  235. data/lib/oddb/util/multilingual.rb +70 -0
  236. data/lib/oddb/util/quanty.rb +3 -0
  237. data/lib/oddb/util/quanty/fact.rb +242 -0
  238. data/lib/oddb/util/quanty/main.rb +164 -0
  239. data/lib/oddb/util/quanty/parse.rb +872 -0
  240. data/lib/oddb/util/quanty/units.dump +0 -0
  241. data/lib/oddb/util/server.rb +150 -0
  242. data/lib/oddb/util/smtp_tls.rb +58 -0
  243. data/lib/oddb/util/updater.rb +161 -0
  244. data/lib/oddb/util/ydim.rb +110 -0
  245. data/lib/oddb/util/yus.rb +46 -0
  246. data/test/business/test_company.rb +29 -0
  247. data/test/business/test_grant_download.rb +29 -0
  248. data/test/drugs/test_active_agent.rb +53 -0
  249. data/test/drugs/test_atc.rb +54 -0
  250. data/test/drugs/test_composition.rb +88 -0
  251. data/test/drugs/test_ddd.rb +22 -0
  252. data/test/drugs/test_dose.rb +189 -0
  253. data/test/drugs/test_galenic_form.rb +41 -0
  254. data/test/drugs/test_package.rb +172 -0
  255. data/test/drugs/test_part.rb +32 -0
  256. data/test/drugs/test_product.rb +31 -0
  257. data/test/drugs/test_sequence.rb +140 -0
  258. data/test/drugs/test_substance.rb +51 -0
  259. data/test/drugs/test_substance_group.rb +27 -0
  260. data/test/export/test_rss.rb +86 -0
  261. data/test/export/test_server.rb +163 -0
  262. data/test/export/test_xls.rb +146 -0
  263. data/test/export/test_yaml.rb +120 -0
  264. data/test/import/data/csv/products.csv +11 -0
  265. data/test/import/data/html/dimdi_index.html +400 -0
  266. data/test/import/data/html/gkv/Befreiungsliste_Arzneimittel_Versicherte.gkvnet +508 -0
  267. data/test/import/data/html/pharma24/1337397.html +754 -0
  268. data/test/import/data/html/pharma24/842756.html +570 -0
  269. data/test/import/data/html/pharma24/ac-page-10.html +2999 -0
  270. data/test/import/data/html/pharma24/ac-page-11.html +2999 -0
  271. data/test/import/data/html/pharma24/ac-page-12.html +2999 -0
  272. data/test/import/data/html/pharma24/ac-page-13.html +2999 -0
  273. data/test/import/data/html/pharma24/ac-page-14.html +2999 -0
  274. data/test/import/data/html/pharma24/ac-page-15.html +3011 -0
  275. data/test/import/data/html/pharma24/ac-page-16.html +3050 -0
  276. data/test/import/data/html/pharma24/ac-page-17.html +3285 -0
  277. data/test/import/data/html/pharma24/ac-page-18.html +3109 -0
  278. data/test/import/data/html/pharma24/ac-page-19.html +3126 -0
  279. data/test/import/data/html/pharma24/ac-page-2.html +3005 -0
  280. data/test/import/data/html/pharma24/ac-page-20.html +3007 -0
  281. data/test/import/data/html/pharma24/ac-page-21.html +2999 -0
  282. data/test/import/data/html/pharma24/ac-page-22.html +2999 -0
  283. data/test/import/data/html/pharma24/ac-page-23.html +3055 -0
  284. data/test/import/data/html/pharma24/ac-page-24.html +2999 -0
  285. data/test/import/data/html/pharma24/ac-page-25.html +3004 -0
  286. data/test/import/data/html/pharma24/ac-page-26.html +2999 -0
  287. data/test/import/data/html/pharma24/ac-page-27.html +3167 -0
  288. data/test/import/data/html/pharma24/ac-page-28.html +3236 -0
  289. data/test/import/data/html/pharma24/ac-page-29.html +3110 -0
  290. data/test/import/data/html/pharma24/ac-page-3.html +2999 -0
  291. data/test/import/data/html/pharma24/ac-page-30.html +2999 -0
  292. data/test/import/data/html/pharma24/ac-page-31.html +2999 -0
  293. data/test/import/data/html/pharma24/ac-page-32.html +2999 -0
  294. data/test/import/data/html/pharma24/ac-page-33.html +3001 -0
  295. data/test/import/data/html/pharma24/ac-page-34.html +2999 -0
  296. data/test/import/data/html/pharma24/ac-page-35.html +2999 -0
  297. data/test/import/data/html/pharma24/ac-page-36.html +2999 -0
  298. data/test/import/data/html/pharma24/ac-page-37.html +2999 -0
  299. data/test/import/data/html/pharma24/ac-page-38.html +3003 -0
  300. data/test/import/data/html/pharma24/ac-page-39.html +2999 -0
  301. data/test/import/data/html/pharma24/ac-page-4.html +2999 -0
  302. data/test/import/data/html/pharma24/ac-page-40.html +2999 -0
  303. data/test/import/data/html/pharma24/ac-page-41.html +2999 -0
  304. data/test/import/data/html/pharma24/ac-page-42.html +2999 -0
  305. data/test/import/data/html/pharma24/ac-page-43.html +2999 -0
  306. data/test/import/data/html/pharma24/ac-page-44.html +2999 -0
  307. data/test/import/data/html/pharma24/ac-page-45.html +2999 -0
  308. data/test/import/data/html/pharma24/ac-page-46.html +2999 -0
  309. data/test/import/data/html/pharma24/ac-page-47.html +2999 -0
  310. data/test/import/data/html/pharma24/ac-page-48.html +2999 -0
  311. data/test/import/data/html/pharma24/ac-page-49.html +2999 -0
  312. data/test/import/data/html/pharma24/ac-page-5.html +3168 -0
  313. data/test/import/data/html/pharma24/ac-page-50.html +2999 -0
  314. data/test/import/data/html/pharma24/ac-page-51.html +2999 -0
  315. data/test/import/data/html/pharma24/ac-page-52.html +3003 -0
  316. data/test/import/data/html/pharma24/ac-page-53.html +2999 -0
  317. data/test/import/data/html/pharma24/ac-page-54.html +3095 -0
  318. data/test/import/data/html/pharma24/ac-page-55.html +3041 -0
  319. data/test/import/data/html/pharma24/ac-page-56.html +2999 -0
  320. data/test/import/data/html/pharma24/ac-page-57.html +3001 -0
  321. data/test/import/data/html/pharma24/ac-page-58.html +3001 -0
  322. data/test/import/data/html/pharma24/ac-page-59.html +2999 -0
  323. data/test/import/data/html/pharma24/ac-page-6.html +3072 -0
  324. data/test/import/data/html/pharma24/ac-page-60.html +3001 -0
  325. data/test/import/data/html/pharma24/ac-page-61.html +3005 -0
  326. data/test/import/data/html/pharma24/ac-page-62.html +2999 -0
  327. data/test/import/data/html/pharma24/ac-page-63.html +3007 -0
  328. data/test/import/data/html/pharma24/ac-page-64.html +3007 -0
  329. data/test/import/data/html/pharma24/ac-page-65.html +2999 -0
  330. data/test/import/data/html/pharma24/ac-page-66.html +3011 -0
  331. data/test/import/data/html/pharma24/ac-page-67.html +3026 -0
  332. data/test/import/data/html/pharma24/ac-page-68.html +2999 -0
  333. data/test/import/data/html/pharma24/ac-page-69.html +3010 -0
  334. data/test/import/data/html/pharma24/ac-page-7.html +2999 -0
  335. data/test/import/data/html/pharma24/ac-page-70.html +3192 -0
  336. data/test/import/data/html/pharma24/ac-page-71.html +3133 -0
  337. data/test/import/data/html/pharma24/ac-page-72.html +2999 -0
  338. data/test/import/data/html/pharma24/ac-page-73.html +3227 -0
  339. data/test/import/data/html/pharma24/ac-page-74.html +3241 -0
  340. data/test/import/data/html/pharma24/ac-page-75.html +3227 -0
  341. data/test/import/data/html/pharma24/ac-page-76.html +3244 -0
  342. data/test/import/data/html/pharma24/ac-page-77.html +1164 -0
  343. data/test/import/data/html/pharma24/ac-page-8.html +2999 -0
  344. data/test/import/data/html/pharma24/ac-page-9.html +2999 -0
  345. data/test/import/data/html/pharma24/ac.html +2999 -0
  346. data/test/import/data/html/pharmnet/display.html +662 -0
  347. data/test/import/data/html/pharmnet/display1.html +625 -0
  348. data/test/import/data/html/pharmnet/display2.html +625 -0
  349. data/test/import/data/html/pharmnet/display3.html +625 -0
  350. data/test/import/data/html/pharmnet/display_tramal.html +634 -0
  351. data/test/import/data/html/pharmnet/empty_result.html +395 -0
  352. data/test/import/data/html/pharmnet/gate.html +246 -0
  353. data/test/import/data/html/pharmnet/index.html +258 -0
  354. data/test/import/data/html/pharmnet/paged_result_1.html +401 -0
  355. data/test/import/data/html/pharmnet/paged_result_2.html +401 -0
  356. data/test/import/data/html/pharmnet/result.html +401 -0
  357. data/test/import/data/html/pharmnet/search.html +865 -0
  358. data/test/import/data/html/pharmnet/search_filtered.html +182 -0
  359. data/test/import/data/html/whocc/A.html +56 -0
  360. data/test/import/data/html/whocc/A03.html +48 -0
  361. data/test/import/data/html/whocc/A03AB.html +48 -0
  362. data/test/import/data/html/whocc/A06AA.html +47 -0
  363. data/test/import/data/html/whocc/C03.html +47 -0
  364. data/test/import/data/html/whocc/login.html +77 -0
  365. data/test/import/data/mail/csv.mail +81 -0
  366. data/test/import/data/rtf/pharmnet/aarane.pi.rtf +648 -0
  367. data/test/import/data/rtf/pharmnet/ace_hemmer_ratio.pi.rtf +324 -0
  368. data/test/import/data/rtf/pharmnet/ace_hemmer_ratio.rtf +4816 -0
  369. data/test/import/data/rtf/pharmnet/acemetacin.pi.rtf +388 -0
  370. data/test/import/data/rtf/pharmnet/acemit.pi.rtf +240 -0
  371. data/test/import/data/rtf/pharmnet/acerbon.pi.rtf +1257 -0
  372. data/test/import/data/rtf/pharmnet/acetylcystein.pi.rtf +323 -0
  373. data/test/import/data/rtf/pharmnet/aciclo.pi.rtf +287 -0
  374. data/test/import/data/rtf/pharmnet/aciclovir.pi.rtf +236 -0
  375. data/test/import/data/rtf/pharmnet/actrapid.pi.rtf +322 -0
  376. data/test/import/data/rtf/pharmnet/amlodipin.pi.rtf +452 -0
  377. data/test/import/data/rtf/pharmnet/amlodipin.rtf +473 -0
  378. data/test/import/data/rtf/pharmnet/aspirin.pi.rtf +313 -0
  379. data/test/import/data/rtf/pharmnet/aspirin.rtf +781 -0
  380. data/test/import/data/rtf/pharmnet/baymycard.pi.rtf +447 -0
  381. data/test/import/data/rtf/pharmnet/omeprazol.pi.rtf +510 -0
  382. data/test/import/data/rtf/pharmnet/omeprazol.rtf +9216 -0
  383. data/test/import/data/rtf/pharmnet/paroxetin.pi.rtf +678 -0
  384. data/test/import/data/rtf/pharmnet/selegilin.pi.rtf +312 -0
  385. data/test/import/data/rtf/pharmnet/selegilin.rtf +683 -0
  386. data/test/import/data/rtf/pharmnet/valium.pi.rtf +387 -0
  387. data/test/import/data/txt/gkv/gkv_p1.txt +17 -0
  388. data/test/import/data/xls/darform_010706.xls +0 -0
  389. data/test/import/data/xls/fb010706.xls +0 -0
  390. data/test/import/data/xls/liste_zuzahlungsbefreite_arzneimittel_suchfunktion.xls +0 -0
  391. data/test/import/data/xls/wirkkurz_010406.xls +0 -0
  392. data/test/import/data/xml/ATC_2006.xml +47 -0
  393. data/test/import/data/xml/ATC_2006_ddd.xml +35 -0
  394. data/test/import/test_dimdi.rb +323 -0
  395. data/test/import/test_excel.rb +31 -0
  396. data/test/import/test_gkv.rb +260 -0
  397. data/test/import/test_pharma24.rb +112 -0
  398. data/test/import/test_pharmnet.rb +980 -0
  399. data/test/import/test_rtf.rb +37 -0
  400. data/test/import/test_whocc.rb +314 -0
  401. data/test/remote/drugs/test_active_agent.rb +36 -0
  402. data/test/selenium/selenium-server.jar +0 -0
  403. data/test/selenium/test_atc_browser.rb +121 -0
  404. data/test/selenium/test_atc_guidelines.rb +95 -0
  405. data/test/selenium/test_collect.rb +137 -0
  406. data/test/selenium/test_compare.rb +294 -0
  407. data/test/selenium/test_fachinfo.rb +128 -0
  408. data/test/selenium/test_feedback.rb +192 -0
  409. data/test/selenium/test_init.rb +64 -0
  410. data/test/selenium/test_limit.rb +304 -0
  411. data/test/selenium/test_login.rb +67 -0
  412. data/test/selenium/test_package.rb +516 -0
  413. data/test/selenium/test_patinfo.rb +128 -0
  414. data/test/selenium/test_product.rb +80 -0
  415. data/test/selenium/test_products.rb +141 -0
  416. data/test/selenium/test_search.rb +933 -0
  417. data/test/selenium/test_sequence.rb +513 -0
  418. data/test/selenium/unit.rb +190 -0
  419. data/test/stub/http_server.rb +144 -0
  420. data/test/stub/model.rb +173 -0
  421. data/test/suite.rb +15 -0
  422. data/test/test_model.rb +83 -0
  423. data/test/util/test_code.rb +74 -0
  424. data/test/util/test_ipn.rb +117 -0
  425. data/test/util/test_mail.rb +85 -0
  426. data/test/util/test_multilingual.rb +97 -0
  427. data/test/util/test_server.rb +94 -0
  428. data/test/util/test_updater.rb +130 -0
  429. data/test/util/test_ydim.rb +115 -0
  430. data/test/util/test_yus.rb +79 -0
  431. metadata +568 -0
@@ -0,0 +1,133 @@
1
+ aber
2
+ als
3
+ am
4
+ an
5
+ auch
6
+ auf
7
+ aus
8
+ bei
9
+ bin
10
+ bis
11
+ bist
12
+ da
13
+ dadurch
14
+ daher
15
+ darum
16
+ das
17
+ daß
18
+ dass
19
+ dein
20
+ deine
21
+ dem
22
+ den
23
+ der
24
+ des
25
+ dessen
26
+ deshalb
27
+ die
28
+ dies
29
+ dieser
30
+ dieses
31
+ doch
32
+ dort
33
+ du
34
+ durch
35
+ ein
36
+ eine
37
+ einem
38
+ einen
39
+ einer
40
+ eines
41
+ er
42
+ es
43
+ euer
44
+ eure
45
+ für
46
+ hat
47
+ hatte
48
+ hatten
49
+ hattest
50
+ hattet
51
+ hier
52
+ hinter
53
+ ich
54
+ ihr
55
+ ihre
56
+ im
57
+ in
58
+ ist
59
+ ja
60
+ jede
61
+ jedem
62
+ jeden
63
+ jeder
64
+ jedes
65
+ jener
66
+ jenes
67
+ jetzt
68
+ kann
69
+ kannst
70
+ können
71
+ könnt
72
+ man
73
+ machen
74
+ mein
75
+ meine
76
+ mit
77
+ muß
78
+ mußt
79
+ musst
80
+ müssen
81
+ müßt
82
+ nach
83
+ nachdem
84
+ nein
85
+ nicht
86
+ nun
87
+ oder
88
+ seid
89
+ sein
90
+ seine
91
+ sich
92
+ sie
93
+ sind
94
+ soll
95
+ sollen
96
+ sollst
97
+ sollt
98
+ sonst
99
+ soweit
100
+ sowie
101
+ und
102
+ unser
103
+ unsere
104
+ unter
105
+ viel
106
+ viele
107
+ vom
108
+ von
109
+ vor
110
+ wann
111
+ warum
112
+ was
113
+ weiter
114
+ weitere
115
+ wenn
116
+ wer
117
+ werde
118
+ werden
119
+ werdet
120
+ weshalb
121
+ wie
122
+ wieder
123
+ wieso
124
+ wir
125
+ wird
126
+ wirst
127
+ wo
128
+ woher
129
+ wohin
130
+ zu
131
+ zum
132
+ zur
133
+ über
@@ -0,0 +1,15 @@
1
+ The german dictionaries from OpenOffice.org are missing the compound flags necessary for recognising words that can be compunds of other words.
2
+ German language depends heavily on compound words such as "Haust�r", which need to be lexized
3
+ as "'t�r':1 'haus':1 'haust�r':1" by tsearch in order to yield 'haust�r' when searching for 't�r'.
4
+
5
+ compound.pl adds the /z Flag to all words that can be contained in other words.
6
+ It searches the input dictionary word by word and checks if the given entry is part of another word
7
+ e.g. 't�r' will be found in 'haust�r', thus creating the entry t�r/z in the dictionary.
8
+
9
+ Usage:
10
+ compound.pl -i german.dic -o german.dict
11
+
12
+ where german.dic is the original dictionary File from OpenOffice.org and german.dict the compound-extended version.
13
+
14
+ The resulting file must then be processed by the tool in /my2ispell/ that originally handles the norwegian dictionaries only. You must adjust the Makefile to take the german dictionary + aff-File.
15
+
@@ -0,0 +1,63 @@
1
+ #!/usr/bin/perl -w
2
+
3
+ # Copyright (c) 2005 Frank Wittig
4
+ # Wei�huhn & Wei�huhn Berlin
5
+ # may be freely distributed and modified keeping the copyright intact
6
+
7
+ use strict;
8
+ use Getopt::Std;
9
+ use IO::File;
10
+
11
+ $ENV{'PATH'} = '/bin:/usr/bin';
12
+ delete $ENV{'ENV'};
13
+ delete $ENV{'BASH_ENV'};
14
+
15
+ # import options
16
+ my %opts;
17
+ getopts('i:o:',\%opts);
18
+
19
+ my $MINLEN = 3;
20
+ my $MAXLEN = 10;
21
+
22
+ # file holen
23
+ my $INFILE = $opts{'i'} || undef;
24
+ my $OUTFILE = $opts{'o'} || undef;
25
+ unless ($INFILE and $OUTFILE) {
26
+ print "provide option: -i <infile>\n" unless ($INFILE);
27
+ print "provide option: -o <outfile>\n" unless ($OUTFILE);
28
+ exit 1;
29
+ }
30
+
31
+ # open files
32
+ my $in = new IO::File;
33
+ my $out = new IO::File;
34
+ exit 1 unless $in->open("< $INFILE");
35
+ exit 1 unless $out->open("> $OUTFILE");
36
+
37
+ # read line of file in loop
38
+ while (my $line = <$in>) {
39
+ if (is_dupe($line)) {
40
+ $line =~ s/\s+$//;
41
+ # if no / - add one
42
+ $line = "${line}/" unless ($line =~ m/(\/)/);
43
+ print $out "${line}z\n";
44
+ }
45
+ else {
46
+ print $out $line;
47
+ }
48
+ }
49
+
50
+ # check, if line is a dupe
51
+ sub is_dupe {
52
+ my $string = shift;
53
+
54
+ # extract word
55
+ return undef unless ($string = ($string =~ m/^([a-z����]+)\/?.*/i)[0]);
56
+ # eject, if too short or long
57
+ return undef unless (length($string) >= $MINLEN and length($string) <= $MAXLEN);
58
+ # check number of lines
59
+ my $count = `fgrep -i $string $INFILE | wc -l`;
60
+ return 1 if ($count > 1);
61
+ return undef;
62
+ }
63
+
@@ -0,0 +1,20 @@
1
+ ab
2
+ als
3
+ an
4
+ auf
5
+ aus
6
+ das
7
+ dem
8
+ den
9
+ der
10
+ des
11
+ die
12
+ ein
13
+ f�r
14
+ in
15
+ im
16
+ mit
17
+ und
18
+ vor
19
+ weg
20
+ zum
@@ -0,0 +1,12 @@
1
+ subdir = contrib/dict_french
2
+ top_builddir = ../..
3
+ include $(top_builddir)/src/Makefile.global
4
+
5
+ MODULE_big = dict_french
6
+ OBJS = french_stem.o dict_snowball.o
7
+ DATA_built = dict_french.sql
8
+ DOCS = README.french
9
+ PG_CPPFLAGS = -I../tsearch2/snowball -I../tsearch2
10
+ SHLIB_LINK = ../tsearch2/libtsearch2.a
11
+
12
+ include $(top_srcdir)/contrib/contrib-global.mk
@@ -0,0 +1 @@
1
+ Autogenerated Snowball's wrapper for french
@@ -0,0 +1,7 @@
1
+ SET search_path = public;
2
+ BEGIN;
3
+ CREATE FUNCTION dinit_french(internal)
4
+ RETURNS internal
5
+ AS 'MODULE_PATHNAME'
6
+ language 'C';
7
+ END;
@@ -0,0 +1,56 @@
1
+ /*
2
+ * example of Snowball dictionary
3
+ * http://snowball.tartarus.org/
4
+ * Teodor Sigaev <teodor@sigaev.ru>
5
+ */
6
+ #include <stdlib.h>
7
+ #include <string.h>
8
+
9
+ #include "postgres.h"
10
+
11
+ #include "dict.h"
12
+ #include "common.h"
13
+ #include "snowball/header.h"
14
+ #include "subinclude.h"
15
+
16
+ typedef struct {
17
+ struct SN_env *z;
18
+ StopList stoplist;
19
+ int (*stem)(struct SN_env * z);
20
+ } DictSnowball;
21
+
22
+
23
+ PG_FUNCTION_INFO_V1(dinit_french);
24
+ Datum dinit_french(PG_FUNCTION_ARGS);
25
+
26
+ Datum
27
+ dinit_french(PG_FUNCTION_ARGS) {
28
+ DictSnowball *d = (DictSnowball*)malloc( sizeof(DictSnowball) );
29
+
30
+ if ( !d )
31
+ ereport(ERROR,
32
+ (errcode(ERRCODE_OUT_OF_MEMORY),
33
+ errmsg("out of memory")));
34
+ memset(d,0,sizeof(DictSnowball));
35
+ d->stoplist.wordop=lowerstr;
36
+
37
+ if ( !PG_ARGISNULL(0) && PG_GETARG_POINTER(0)!=NULL ) {
38
+ text *in = PG_GETARG_TEXT_P(0);
39
+ readstoplist(in, &(d->stoplist));
40
+ sortstoplist(&(d->stoplist));
41
+ PG_FREE_IF_COPY(in, 0);
42
+ }
43
+
44
+ d->z = french_create_env();
45
+ if (!d->z) {
46
+ freestoplist(&(d->stoplist));
47
+ ereport(ERROR,
48
+ (errcode(ERRCODE_OUT_OF_MEMORY),
49
+ errmsg("out of memory")));
50
+ }
51
+ d->stem=french_stem;
52
+
53
+ PG_RETURN_POINTER(d);
54
+ }
55
+
56
+
@@ -0,0 +1,1222 @@
1
+
2
+ /* This file was generated automatically by the Snowball to ANSI C compiler */
3
+
4
+ #include "header.h"
5
+
6
+ extern int french_stem(struct SN_env * z);
7
+ static int r_un_accent(struct SN_env * z);
8
+ static int r_un_double(struct SN_env * z);
9
+ static int r_residual_suffix(struct SN_env * z);
10
+ static int r_verb_suffix(struct SN_env * z);
11
+ static int r_i_verb_suffix(struct SN_env * z);
12
+ static int r_standard_suffix(struct SN_env * z);
13
+ static int r_R2(struct SN_env * z);
14
+ static int r_R1(struct SN_env * z);
15
+ static int r_RV(struct SN_env * z);
16
+ static int r_mark_regions(struct SN_env * z);
17
+ static int r_postlude(struct SN_env * z);
18
+ static int r_prelude(struct SN_env * z);
19
+
20
+ extern struct SN_env * french_create_env(void);
21
+ extern void french_close_env(struct SN_env * z);
22
+
23
+ static symbol s_0_1[1] = { 'I' };
24
+ static symbol s_0_2[1] = { 'U' };
25
+ static symbol s_0_3[1] = { 'Y' };
26
+
27
+ static struct among a_0[4] =
28
+ {
29
+ /* 0 */ { 0, 0, -1, 4, 0},
30
+ /* 1 */ { 1, s_0_1, 0, 1, 0},
31
+ /* 2 */ { 1, s_0_2, 0, 2, 0},
32
+ /* 3 */ { 1, s_0_3, 0, 3, 0}
33
+ };
34
+
35
+ static symbol s_1_0[3] = { 'i', 'q', 'U' };
36
+ static symbol s_1_1[3] = { 'a', 'b', 'l' };
37
+ static symbol s_1_2[3] = { 'I', 0xE8, 'r' };
38
+ static symbol s_1_3[3] = { 'i', 0xE8, 'r' };
39
+ static symbol s_1_4[3] = { 'e', 'u', 's' };
40
+ static symbol s_1_5[2] = { 'i', 'v' };
41
+
42
+ static struct among a_1[6] =
43
+ {
44
+ /* 0 */ { 3, s_1_0, -1, 3, 0},
45
+ /* 1 */ { 3, s_1_1, -1, 3, 0},
46
+ /* 2 */ { 3, s_1_2, -1, 4, 0},
47
+ /* 3 */ { 3, s_1_3, -1, 4, 0},
48
+ /* 4 */ { 3, s_1_4, -1, 2, 0},
49
+ /* 5 */ { 2, s_1_5, -1, 1, 0}
50
+ };
51
+
52
+ static symbol s_2_0[2] = { 'i', 'c' };
53
+ static symbol s_2_1[4] = { 'a', 'b', 'i', 'l' };
54
+ static symbol s_2_2[2] = { 'i', 'v' };
55
+
56
+ static struct among a_2[3] =
57
+ {
58
+ /* 0 */ { 2, s_2_0, -1, 2, 0},
59
+ /* 1 */ { 4, s_2_1, -1, 1, 0},
60
+ /* 2 */ { 2, s_2_2, -1, 3, 0}
61
+ };
62
+
63
+ static symbol s_3_0[4] = { 'i', 'q', 'U', 'e' };
64
+ static symbol s_3_1[6] = { 'a', 't', 'r', 'i', 'c', 'e' };
65
+ static symbol s_3_2[4] = { 'a', 'n', 'c', 'e' };
66
+ static symbol s_3_3[4] = { 'e', 'n', 'c', 'e' };
67
+ static symbol s_3_4[5] = { 'l', 'o', 'g', 'i', 'e' };
68
+ static symbol s_3_5[4] = { 'a', 'b', 'l', 'e' };
69
+ static symbol s_3_6[4] = { 'i', 's', 'm', 'e' };
70
+ static symbol s_3_7[4] = { 'e', 'u', 's', 'e' };
71
+ static symbol s_3_8[4] = { 'i', 's', 't', 'e' };
72
+ static symbol s_3_9[3] = { 'i', 'v', 'e' };
73
+ static symbol s_3_10[2] = { 'i', 'f' };
74
+ static symbol s_3_11[5] = { 'u', 's', 'i', 'o', 'n' };
75
+ static symbol s_3_12[5] = { 'a', 't', 'i', 'o', 'n' };
76
+ static symbol s_3_13[5] = { 'u', 't', 'i', 'o', 'n' };
77
+ static symbol s_3_14[5] = { 'a', 't', 'e', 'u', 'r' };
78
+ static symbol s_3_15[5] = { 'i', 'q', 'U', 'e', 's' };
79
+ static symbol s_3_16[7] = { 'a', 't', 'r', 'i', 'c', 'e', 's' };
80
+ static symbol s_3_17[5] = { 'a', 'n', 'c', 'e', 's' };
81
+ static symbol s_3_18[5] = { 'e', 'n', 'c', 'e', 's' };
82
+ static symbol s_3_19[6] = { 'l', 'o', 'g', 'i', 'e', 's' };
83
+ static symbol s_3_20[5] = { 'a', 'b', 'l', 'e', 's' };
84
+ static symbol s_3_21[5] = { 'i', 's', 'm', 'e', 's' };
85
+ static symbol s_3_22[5] = { 'e', 'u', 's', 'e', 's' };
86
+ static symbol s_3_23[5] = { 'i', 's', 't', 'e', 's' };
87
+ static symbol s_3_24[4] = { 'i', 'v', 'e', 's' };
88
+ static symbol s_3_25[3] = { 'i', 'f', 's' };
89
+ static symbol s_3_26[6] = { 'u', 's', 'i', 'o', 'n', 's' };
90
+ static symbol s_3_27[6] = { 'a', 't', 'i', 'o', 'n', 's' };
91
+ static symbol s_3_28[6] = { 'u', 't', 'i', 'o', 'n', 's' };
92
+ static symbol s_3_29[6] = { 'a', 't', 'e', 'u', 'r', 's' };
93
+ static symbol s_3_30[5] = { 'm', 'e', 'n', 't', 's' };
94
+ static symbol s_3_31[6] = { 'e', 'm', 'e', 'n', 't', 's' };
95
+ static symbol s_3_32[9] = { 'i', 's', 's', 'e', 'm', 'e', 'n', 't', 's' };
96
+ static symbol s_3_33[4] = { 'i', 't', 0xE9, 's' };
97
+ static symbol s_3_34[4] = { 'm', 'e', 'n', 't' };
98
+ static symbol s_3_35[5] = { 'e', 'm', 'e', 'n', 't' };
99
+ static symbol s_3_36[8] = { 'i', 's', 's', 'e', 'm', 'e', 'n', 't' };
100
+ static symbol s_3_37[6] = { 'a', 'm', 'm', 'e', 'n', 't' };
101
+ static symbol s_3_38[6] = { 'e', 'm', 'm', 'e', 'n', 't' };
102
+ static symbol s_3_39[3] = { 'a', 'u', 'x' };
103
+ static symbol s_3_40[4] = { 'e', 'a', 'u', 'x' };
104
+ static symbol s_3_41[3] = { 'e', 'u', 'x' };
105
+ static symbol s_3_42[3] = { 'i', 't', 0xE9 };
106
+
107
+ static struct among a_3[43] =
108
+ {
109
+ /* 0 */ { 4, s_3_0, -1, 1, 0},
110
+ /* 1 */ { 6, s_3_1, -1, 2, 0},
111
+ /* 2 */ { 4, s_3_2, -1, 1, 0},
112
+ /* 3 */ { 4, s_3_3, -1, 5, 0},
113
+ /* 4 */ { 5, s_3_4, -1, 3, 0},
114
+ /* 5 */ { 4, s_3_5, -1, 1, 0},
115
+ /* 6 */ { 4, s_3_6, -1, 1, 0},
116
+ /* 7 */ { 4, s_3_7, -1, 11, 0},
117
+ /* 8 */ { 4, s_3_8, -1, 1, 0},
118
+ /* 9 */ { 3, s_3_9, -1, 8, 0},
119
+ /* 10 */ { 2, s_3_10, -1, 8, 0},
120
+ /* 11 */ { 5, s_3_11, -1, 4, 0},
121
+ /* 12 */ { 5, s_3_12, -1, 2, 0},
122
+ /* 13 */ { 5, s_3_13, -1, 4, 0},
123
+ /* 14 */ { 5, s_3_14, -1, 2, 0},
124
+ /* 15 */ { 5, s_3_15, -1, 1, 0},
125
+ /* 16 */ { 7, s_3_16, -1, 2, 0},
126
+ /* 17 */ { 5, s_3_17, -1, 1, 0},
127
+ /* 18 */ { 5, s_3_18, -1, 5, 0},
128
+ /* 19 */ { 6, s_3_19, -1, 3, 0},
129
+ /* 20 */ { 5, s_3_20, -1, 1, 0},
130
+ /* 21 */ { 5, s_3_21, -1, 1, 0},
131
+ /* 22 */ { 5, s_3_22, -1, 11, 0},
132
+ /* 23 */ { 5, s_3_23, -1, 1, 0},
133
+ /* 24 */ { 4, s_3_24, -1, 8, 0},
134
+ /* 25 */ { 3, s_3_25, -1, 8, 0},
135
+ /* 26 */ { 6, s_3_26, -1, 4, 0},
136
+ /* 27 */ { 6, s_3_27, -1, 2, 0},
137
+ /* 28 */ { 6, s_3_28, -1, 4, 0},
138
+ /* 29 */ { 6, s_3_29, -1, 2, 0},
139
+ /* 30 */ { 5, s_3_30, -1, 15, 0},
140
+ /* 31 */ { 6, s_3_31, 30, 6, 0},
141
+ /* 32 */ { 9, s_3_32, 31, 12, 0},
142
+ /* 33 */ { 4, s_3_33, -1, 7, 0},
143
+ /* 34 */ { 4, s_3_34, -1, 15, 0},
144
+ /* 35 */ { 5, s_3_35, 34, 6, 0},
145
+ /* 36 */ { 8, s_3_36, 35, 12, 0},
146
+ /* 37 */ { 6, s_3_37, 34, 13, 0},
147
+ /* 38 */ { 6, s_3_38, 34, 14, 0},
148
+ /* 39 */ { 3, s_3_39, -1, 10, 0},
149
+ /* 40 */ { 4, s_3_40, 39, 9, 0},
150
+ /* 41 */ { 3, s_3_41, -1, 1, 0},
151
+ /* 42 */ { 3, s_3_42, -1, 7, 0}
152
+ };
153
+
154
+ static symbol s_4_0[3] = { 'i', 'r', 'a' };
155
+ static symbol s_4_1[2] = { 'i', 'e' };
156
+ static symbol s_4_2[4] = { 'i', 's', 's', 'e' };
157
+ static symbol s_4_3[7] = { 'i', 's', 's', 'a', 'n', 't', 'e' };
158
+ static symbol s_4_4[1] = { 'i' };
159
+ static symbol s_4_5[4] = { 'i', 'r', 'a', 'i' };
160
+ static symbol s_4_6[2] = { 'i', 'r' };
161
+ static symbol s_4_7[4] = { 'i', 'r', 'a', 's' };
162
+ static symbol s_4_8[3] = { 'i', 'e', 's' };
163
+ static symbol s_4_9[4] = { 0xEE, 'm', 'e', 's' };
164
+ static symbol s_4_10[5] = { 'i', 's', 's', 'e', 's' };
165
+ static symbol s_4_11[8] = { 'i', 's', 's', 'a', 'n', 't', 'e', 's' };
166
+ static symbol s_4_12[4] = { 0xEE, 't', 'e', 's' };
167
+ static symbol s_4_13[2] = { 'i', 's' };
168
+ static symbol s_4_14[5] = { 'i', 'r', 'a', 'i', 's' };
169
+ static symbol s_4_15[6] = { 'i', 's', 's', 'a', 'i', 's' };
170
+ static symbol s_4_16[6] = { 'i', 'r', 'i', 'o', 'n', 's' };
171
+ static symbol s_4_17[7] = { 'i', 's', 's', 'i', 'o', 'n', 's' };
172
+ static symbol s_4_18[5] = { 'i', 'r', 'o', 'n', 's' };
173
+ static symbol s_4_19[6] = { 'i', 's', 's', 'o', 'n', 's' };
174
+ static symbol s_4_20[7] = { 'i', 's', 's', 'a', 'n', 't', 's' };
175
+ static symbol s_4_21[2] = { 'i', 't' };
176
+ static symbol s_4_22[5] = { 'i', 'r', 'a', 'i', 't' };
177
+ static symbol s_4_23[6] = { 'i', 's', 's', 'a', 'i', 't' };
178
+ static symbol s_4_24[6] = { 'i', 's', 's', 'a', 'n', 't' };
179
+ static symbol s_4_25[7] = { 'i', 'r', 'a', 'I', 'e', 'n', 't' };
180
+ static symbol s_4_26[8] = { 'i', 's', 's', 'a', 'I', 'e', 'n', 't' };
181
+ static symbol s_4_27[5] = { 'i', 'r', 'e', 'n', 't' };
182
+ static symbol s_4_28[6] = { 'i', 's', 's', 'e', 'n', 't' };
183
+ static symbol s_4_29[5] = { 'i', 'r', 'o', 'n', 't' };
184
+ static symbol s_4_30[2] = { 0xEE, 't' };
185
+ static symbol s_4_31[5] = { 'i', 'r', 'i', 'e', 'z' };
186
+ static symbol s_4_32[6] = { 'i', 's', 's', 'i', 'e', 'z' };
187
+ static symbol s_4_33[4] = { 'i', 'r', 'e', 'z' };
188
+ static symbol s_4_34[5] = { 'i', 's', 's', 'e', 'z' };
189
+
190
+ static struct among a_4[35] =
191
+ {
192
+ /* 0 */ { 3, s_4_0, -1, 1, 0},
193
+ /* 1 */ { 2, s_4_1, -1, 1, 0},
194
+ /* 2 */ { 4, s_4_2, -1, 1, 0},
195
+ /* 3 */ { 7, s_4_3, -1, 1, 0},
196
+ /* 4 */ { 1, s_4_4, -1, 1, 0},
197
+ /* 5 */ { 4, s_4_5, 4, 1, 0},
198
+ /* 6 */ { 2, s_4_6, -1, 1, 0},
199
+ /* 7 */ { 4, s_4_7, -1, 1, 0},
200
+ /* 8 */ { 3, s_4_8, -1, 1, 0},
201
+ /* 9 */ { 4, s_4_9, -1, 1, 0},
202
+ /* 10 */ { 5, s_4_10, -1, 1, 0},
203
+ /* 11 */ { 8, s_4_11, -1, 1, 0},
204
+ /* 12 */ { 4, s_4_12, -1, 1, 0},
205
+ /* 13 */ { 2, s_4_13, -1, 1, 0},
206
+ /* 14 */ { 5, s_4_14, 13, 1, 0},
207
+ /* 15 */ { 6, s_4_15, 13, 1, 0},
208
+ /* 16 */ { 6, s_4_16, -1, 1, 0},
209
+ /* 17 */ { 7, s_4_17, -1, 1, 0},
210
+ /* 18 */ { 5, s_4_18, -1, 1, 0},
211
+ /* 19 */ { 6, s_4_19, -1, 1, 0},
212
+ /* 20 */ { 7, s_4_20, -1, 1, 0},
213
+ /* 21 */ { 2, s_4_21, -1, 1, 0},
214
+ /* 22 */ { 5, s_4_22, 21, 1, 0},
215
+ /* 23 */ { 6, s_4_23, 21, 1, 0},
216
+ /* 24 */ { 6, s_4_24, -1, 1, 0},
217
+ /* 25 */ { 7, s_4_25, -1, 1, 0},
218
+ /* 26 */ { 8, s_4_26, -1, 1, 0},
219
+ /* 27 */ { 5, s_4_27, -1, 1, 0},
220
+ /* 28 */ { 6, s_4_28, -1, 1, 0},
221
+ /* 29 */ { 5, s_4_29, -1, 1, 0},
222
+ /* 30 */ { 2, s_4_30, -1, 1, 0},
223
+ /* 31 */ { 5, s_4_31, -1, 1, 0},
224
+ /* 32 */ { 6, s_4_32, -1, 1, 0},
225
+ /* 33 */ { 4, s_4_33, -1, 1, 0},
226
+ /* 34 */ { 5, s_4_34, -1, 1, 0}
227
+ };
228
+
229
+ static symbol s_5_0[1] = { 'a' };
230
+ static symbol s_5_1[3] = { 'e', 'r', 'a' };
231
+ static symbol s_5_2[4] = { 'a', 's', 's', 'e' };
232
+ static symbol s_5_3[4] = { 'a', 'n', 't', 'e' };
233
+ static symbol s_5_4[2] = { 0xE9, 'e' };
234
+ static symbol s_5_5[2] = { 'a', 'i' };
235
+ static symbol s_5_6[4] = { 'e', 'r', 'a', 'i' };
236
+ static symbol s_5_7[2] = { 'e', 'r' };
237
+ static symbol s_5_8[2] = { 'a', 's' };
238
+ static symbol s_5_9[4] = { 'e', 'r', 'a', 's' };
239
+ static symbol s_5_10[4] = { 0xE2, 'm', 'e', 's' };
240
+ static symbol s_5_11[5] = { 'a', 's', 's', 'e', 's' };
241
+ static symbol s_5_12[5] = { 'a', 'n', 't', 'e', 's' };
242
+ static symbol s_5_13[4] = { 0xE2, 't', 'e', 's' };
243
+ static symbol s_5_14[3] = { 0xE9, 'e', 's' };
244
+ static symbol s_5_15[3] = { 'a', 'i', 's' };
245
+ static symbol s_5_16[5] = { 'e', 'r', 'a', 'i', 's' };
246
+ static symbol s_5_17[4] = { 'i', 'o', 'n', 's' };
247
+ static symbol s_5_18[6] = { 'e', 'r', 'i', 'o', 'n', 's' };
248
+ static symbol s_5_19[7] = { 'a', 's', 's', 'i', 'o', 'n', 's' };
249
+ static symbol s_5_20[5] = { 'e', 'r', 'o', 'n', 's' };
250
+ static symbol s_5_21[4] = { 'a', 'n', 't', 's' };
251
+ static symbol s_5_22[2] = { 0xE9, 's' };
252
+ static symbol s_5_23[3] = { 'a', 'i', 't' };
253
+ static symbol s_5_24[5] = { 'e', 'r', 'a', 'i', 't' };
254
+ static symbol s_5_25[3] = { 'a', 'n', 't' };
255
+ static symbol s_5_26[5] = { 'a', 'I', 'e', 'n', 't' };
256
+ static symbol s_5_27[7] = { 'e', 'r', 'a', 'I', 'e', 'n', 't' };
257
+ static symbol s_5_28[5] = { 0xE8, 'r', 'e', 'n', 't' };
258
+ static symbol s_5_29[6] = { 'a', 's', 's', 'e', 'n', 't' };
259
+ static symbol s_5_30[5] = { 'e', 'r', 'o', 'n', 't' };
260
+ static symbol s_5_31[2] = { 0xE2, 't' };
261
+ static symbol s_5_32[2] = { 'e', 'z' };
262
+ static symbol s_5_33[3] = { 'i', 'e', 'z' };
263
+ static symbol s_5_34[5] = { 'e', 'r', 'i', 'e', 'z' };
264
+ static symbol s_5_35[6] = { 'a', 's', 's', 'i', 'e', 'z' };
265
+ static symbol s_5_36[4] = { 'e', 'r', 'e', 'z' };
266
+ static symbol s_5_37[1] = { 0xE9 };
267
+
268
+ static struct among a_5[38] =
269
+ {
270
+ /* 0 */ { 1, s_5_0, -1, 3, 0},
271
+ /* 1 */ { 3, s_5_1, 0, 2, 0},
272
+ /* 2 */ { 4, s_5_2, -1, 3, 0},
273
+ /* 3 */ { 4, s_5_3, -1, 3, 0},
274
+ /* 4 */ { 2, s_5_4, -1, 2, 0},
275
+ /* 5 */ { 2, s_5_5, -1, 3, 0},
276
+ /* 6 */ { 4, s_5_6, 5, 2, 0},
277
+ /* 7 */ { 2, s_5_7, -1, 2, 0},
278
+ /* 8 */ { 2, s_5_8, -1, 3, 0},
279
+ /* 9 */ { 4, s_5_9, 8, 2, 0},
280
+ /* 10 */ { 4, s_5_10, -1, 3, 0},
281
+ /* 11 */ { 5, s_5_11, -1, 3, 0},
282
+ /* 12 */ { 5, s_5_12, -1, 3, 0},
283
+ /* 13 */ { 4, s_5_13, -1, 3, 0},
284
+ /* 14 */ { 3, s_5_14, -1, 2, 0},
285
+ /* 15 */ { 3, s_5_15, -1, 3, 0},
286
+ /* 16 */ { 5, s_5_16, 15, 2, 0},
287
+ /* 17 */ { 4, s_5_17, -1, 1, 0},
288
+ /* 18 */ { 6, s_5_18, 17, 2, 0},
289
+ /* 19 */ { 7, s_5_19, 17, 3, 0},
290
+ /* 20 */ { 5, s_5_20, -1, 2, 0},
291
+ /* 21 */ { 4, s_5_21, -1, 3, 0},
292
+ /* 22 */ { 2, s_5_22, -1, 2, 0},
293
+ /* 23 */ { 3, s_5_23, -1, 3, 0},
294
+ /* 24 */ { 5, s_5_24, 23, 2, 0},
295
+ /* 25 */ { 3, s_5_25, -1, 3, 0},
296
+ /* 26 */ { 5, s_5_26, -1, 3, 0},
297
+ /* 27 */ { 7, s_5_27, 26, 2, 0},
298
+ /* 28 */ { 5, s_5_28, -1, 2, 0},
299
+ /* 29 */ { 6, s_5_29, -1, 3, 0},
300
+ /* 30 */ { 5, s_5_30, -1, 2, 0},
301
+ /* 31 */ { 2, s_5_31, -1, 3, 0},
302
+ /* 32 */ { 2, s_5_32, -1, 2, 0},
303
+ /* 33 */ { 3, s_5_33, 32, 2, 0},
304
+ /* 34 */ { 5, s_5_34, 33, 2, 0},
305
+ /* 35 */ { 6, s_5_35, 33, 3, 0},
306
+ /* 36 */ { 4, s_5_36, 32, 2, 0},
307
+ /* 37 */ { 1, s_5_37, -1, 2, 0}
308
+ };
309
+
310
+ static symbol s_6_0[1] = { 'e' };
311
+ static symbol s_6_1[4] = { 'I', 0xE8, 'r', 'e' };
312
+ static symbol s_6_2[4] = { 'i', 0xE8, 'r', 'e' };
313
+ static symbol s_6_3[3] = { 'i', 'o', 'n' };
314
+ static symbol s_6_4[3] = { 'I', 'e', 'r' };
315
+ static symbol s_6_5[3] = { 'i', 'e', 'r' };
316
+ static symbol s_6_6[1] = { 0xEB };
317
+
318
+ static struct among a_6[7] =
319
+ {
320
+ /* 0 */ { 1, s_6_0, -1, 3, 0},
321
+ /* 1 */ { 4, s_6_1, 0, 2, 0},
322
+ /* 2 */ { 4, s_6_2, 0, 2, 0},
323
+ /* 3 */ { 3, s_6_3, -1, 1, 0},
324
+ /* 4 */ { 3, s_6_4, -1, 2, 0},
325
+ /* 5 */ { 3, s_6_5, -1, 2, 0},
326
+ /* 6 */ { 1, s_6_6, -1, 4, 0}
327
+ };
328
+
329
+ static symbol s_7_0[3] = { 'e', 'l', 'l' };
330
+ static symbol s_7_1[4] = { 'e', 'i', 'l', 'l' };
331
+ static symbol s_7_2[3] = { 'e', 'n', 'n' };
332
+ static symbol s_7_3[3] = { 'o', 'n', 'n' };
333
+ static symbol s_7_4[3] = { 'e', 't', 't' };
334
+
335
+ static struct among a_7[5] =
336
+ {
337
+ /* 0 */ { 3, s_7_0, -1, -1, 0},
338
+ /* 1 */ { 4, s_7_1, -1, -1, 0},
339
+ /* 2 */ { 3, s_7_2, -1, -1, 0},
340
+ /* 3 */ { 3, s_7_3, -1, -1, 0},
341
+ /* 4 */ { 3, s_7_4, -1, -1, 0}
342
+ };
343
+
344
+ static unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 130, 103, 8, 5 };
345
+
346
+ static unsigned char g_keep_with_s[] = { 1, 65, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 };
347
+
348
+ static symbol s_0[] = { 'u' };
349
+ static symbol s_1[] = { 'U' };
350
+ static symbol s_2[] = { 'i' };
351
+ static symbol s_3[] = { 'I' };
352
+ static symbol s_4[] = { 'y' };
353
+ static symbol s_5[] = { 'Y' };
354
+ static symbol s_6[] = { 'y' };
355
+ static symbol s_7[] = { 'Y' };
356
+ static symbol s_8[] = { 'q' };
357
+ static symbol s_9[] = { 'u' };
358
+ static symbol s_10[] = { 'U' };
359
+ static symbol s_11[] = { 'i' };
360
+ static symbol s_12[] = { 'u' };
361
+ static symbol s_13[] = { 'y' };
362
+ static symbol s_14[] = { 'i', 'c' };
363
+ static symbol s_15[] = { 'i', 'q', 'U' };
364
+ static symbol s_16[] = { 'l', 'o', 'g' };
365
+ static symbol s_17[] = { 'u' };
366
+ static symbol s_18[] = { 'e', 'n', 't' };
367
+ static symbol s_19[] = { 'a', 't' };
368
+ static symbol s_20[] = { 'e', 'u', 'x' };
369
+ static symbol s_21[] = { 'i' };
370
+ static symbol s_22[] = { 'a', 'b', 'l' };
371
+ static symbol s_23[] = { 'i', 'q', 'U' };
372
+ static symbol s_24[] = { 'a', 't' };
373
+ static symbol s_25[] = { 'i', 'c' };
374
+ static symbol s_26[] = { 'i', 'q', 'U' };
375
+ static symbol s_27[] = { 'e', 'a', 'u' };
376
+ static symbol s_28[] = { 'a', 'l' };
377
+ static symbol s_29[] = { 'e', 'u', 'x' };
378
+ static symbol s_30[] = { 'a', 'n', 't' };
379
+ static symbol s_31[] = { 'e', 'n', 't' };
380
+ static symbol s_32[] = { 'e' };
381
+ static symbol s_33[] = { 's' };
382
+ static symbol s_34[] = { 's' };
383
+ static symbol s_35[] = { 't' };
384
+ static symbol s_36[] = { 'i' };
385
+ static symbol s_37[] = { 'g', 'u' };
386
+ static symbol s_38[] = { 0xE9 };
387
+ static symbol s_39[] = { 0xE8 };
388
+ static symbol s_40[] = { 'e' };
389
+ static symbol s_41[] = { 'Y' };
390
+ static symbol s_42[] = { 'i' };
391
+ static symbol s_43[] = { 0xE7 };
392
+ static symbol s_44[] = { 'c' };
393
+
394
+ static int r_prelude(struct SN_env * z) {
395
+ while(1) { /* repeat, line 38 */
396
+ int c = z->c;
397
+ while(1) { /* goto, line 38 */
398
+ int c = z->c;
399
+ { int c = z->c; /* or, line 44 */
400
+ if (!(in_grouping(z, g_v, 97, 251))) goto lab3;
401
+ z->bra = z->c; /* [, line 40 */
402
+ { int c = z->c; /* or, line 40 */
403
+ if (!(eq_s(z, 1, s_0))) goto lab5;
404
+ z->ket = z->c; /* ], line 40 */
405
+ if (!(in_grouping(z, g_v, 97, 251))) goto lab5;
406
+ {
407
+ slice_from_s(z, 1, s_1); /* <-, line 40 */
408
+ }
409
+ goto lab4;
410
+ lab5:
411
+ z->c = c;
412
+ if (!(eq_s(z, 1, s_2))) goto lab6;
413
+ z->ket = z->c; /* ], line 41 */
414
+ if (!(in_grouping(z, g_v, 97, 251))) goto lab6;
415
+ {
416
+ slice_from_s(z, 1, s_3); /* <-, line 41 */
417
+ }
418
+ goto lab4;
419
+ lab6:
420
+ z->c = c;
421
+ if (!(eq_s(z, 1, s_4))) goto lab3;
422
+ z->ket = z->c; /* ], line 42 */
423
+ {
424
+ slice_from_s(z, 1, s_5); /* <-, line 42 */
425
+ }
426
+ }
427
+ lab4:
428
+ goto lab2;
429
+ lab3:
430
+ z->c = c;
431
+ z->bra = z->c; /* [, line 45 */
432
+ if (!(eq_s(z, 1, s_6))) goto lab7;
433
+ z->ket = z->c; /* ], line 45 */
434
+ if (!(in_grouping(z, g_v, 97, 251))) goto lab7;
435
+ {
436
+ slice_from_s(z, 1, s_7); /* <-, line 45 */
437
+ }
438
+ goto lab2;
439
+ lab7:
440
+ z->c = c;
441
+ if (!(eq_s(z, 1, s_8))) goto lab1;
442
+ z->bra = z->c; /* [, line 47 */
443
+ if (!(eq_s(z, 1, s_9))) goto lab1;
444
+ z->ket = z->c; /* ], line 47 */
445
+ {
446
+ slice_from_s(z, 1, s_10); /* <-, line 47 */
447
+ }
448
+ }
449
+ lab2:
450
+ z->c = c;
451
+ break;
452
+ lab1:
453
+ z->c = c;
454
+ if (z->c >= z->l) goto lab0;
455
+ z->c++; /* goto, line 38 */
456
+ }
457
+ continue;
458
+ lab0:
459
+ z->c = c;
460
+ break;
461
+ }
462
+ return 1;
463
+ }
464
+
465
+ static int r_mark_regions(struct SN_env * z) {
466
+ z->I[0] = z->l;
467
+ z->I[1] = z->l;
468
+ z->I[2] = z->l;
469
+ { int c = z->c; /* do, line 56 */
470
+ { int c = z->c; /* or, line 57 */
471
+ if (!(in_grouping(z, g_v, 97, 251))) goto lab2;
472
+ if (!(in_grouping(z, g_v, 97, 251))) goto lab2;
473
+ if (z->c >= z->l) goto lab2;
474
+ z->c++; /* next, line 57 */
475
+ goto lab1;
476
+ lab2:
477
+ z->c = c;
478
+ if (z->c >= z->l) goto lab0;
479
+ z->c++; /* next, line 57 */
480
+ while(1) { /* gopast, line 57 */
481
+ if (!(in_grouping(z, g_v, 97, 251))) goto lab3;
482
+ break;
483
+ lab3:
484
+ if (z->c >= z->l) goto lab0;
485
+ z->c++; /* gopast, line 57 */
486
+ }
487
+ }
488
+ lab1:
489
+ z->I[0] = z->c; /* setmark pV, line 58 */
490
+ lab0:
491
+ z->c = c;
492
+ }
493
+ { int c = z->c; /* do, line 60 */
494
+ while(1) { /* gopast, line 61 */
495
+ if (!(in_grouping(z, g_v, 97, 251))) goto lab5;
496
+ break;
497
+ lab5:
498
+ if (z->c >= z->l) goto lab4;
499
+ z->c++; /* gopast, line 61 */
500
+ }
501
+ while(1) { /* gopast, line 61 */
502
+ if (!(out_grouping(z, g_v, 97, 251))) goto lab6;
503
+ break;
504
+ lab6:
505
+ if (z->c >= z->l) goto lab4;
506
+ z->c++; /* gopast, line 61 */
507
+ }
508
+ z->I[1] = z->c; /* setmark p1, line 61 */
509
+ while(1) { /* gopast, line 62 */
510
+ if (!(in_grouping(z, g_v, 97, 251))) goto lab7;
511
+ break;
512
+ lab7:
513
+ if (z->c >= z->l) goto lab4;
514
+ z->c++; /* gopast, line 62 */
515
+ }
516
+ while(1) { /* gopast, line 62 */
517
+ if (!(out_grouping(z, g_v, 97, 251))) goto lab8;
518
+ break;
519
+ lab8:
520
+ if (z->c >= z->l) goto lab4;
521
+ z->c++; /* gopast, line 62 */
522
+ }
523
+ z->I[2] = z->c; /* setmark p2, line 62 */
524
+ lab4:
525
+ z->c = c;
526
+ }
527
+ return 1;
528
+ }
529
+
530
+ static int r_postlude(struct SN_env * z) {
531
+ int among_var;
532
+ while(1) { /* repeat, line 66 */
533
+ int c = z->c;
534
+ z->bra = z->c; /* [, line 68 */
535
+ among_var = find_among(z, a_0, 4); /* substring, line 68 */
536
+ if (!(among_var)) goto lab0;
537
+ z->ket = z->c; /* ], line 68 */
538
+ switch(among_var) {
539
+ case 0: goto lab0;
540
+ case 1:
541
+ {
542
+ slice_from_s(z, 1, s_11); /* <-, line 69 */
543
+ }
544
+ break;
545
+ case 2:
546
+ {
547
+ slice_from_s(z, 1, s_12); /* <-, line 70 */
548
+ }
549
+ break;
550
+ case 3:
551
+ {
552
+ slice_from_s(z, 1, s_13); /* <-, line 71 */
553
+ }
554
+ break;
555
+ case 4:
556
+ if (z->c >= z->l) goto lab0;
557
+ z->c++; /* next, line 72 */
558
+ break;
559
+ }
560
+ continue;
561
+ lab0:
562
+ z->c = c;
563
+ break;
564
+ }
565
+ return 1;
566
+ }
567
+
568
+ static int r_RV(struct SN_env * z) {
569
+ if (!(z->I[0] <= z->c)) return 0;
570
+ return 1;
571
+ }
572
+
573
+ static int r_R1(struct SN_env * z) {
574
+ if (!(z->I[1] <= z->c)) return 0;
575
+ return 1;
576
+ }
577
+
578
+ static int r_R2(struct SN_env * z) {
579
+ if (!(z->I[2] <= z->c)) return 0;
580
+ return 1;
581
+ }
582
+
583
+ static int r_standard_suffix(struct SN_env * z) {
584
+ int among_var;
585
+ z->ket = z->c; /* [, line 83 */
586
+ among_var = find_among_b(z, a_3, 43); /* substring, line 83 */
587
+ if (!(among_var)) return 0;
588
+ z->bra = z->c; /* ], line 83 */
589
+ switch(among_var) {
590
+ case 0: return 0;
591
+ case 1:
592
+ { int ret = r_R2(z);
593
+ if (ret == 0) return 0; /* call R2, line 87 */
594
+ if (ret < 0) return ret;
595
+ }
596
+ {
597
+ slice_del(z); /* delete, line 87 */
598
+ }
599
+ break;
600
+ case 2:
601
+ { int ret = r_R2(z);
602
+ if (ret == 0) return 0; /* call R2, line 90 */
603
+ if (ret < 0) return ret;
604
+ }
605
+ {
606
+ slice_del(z); /* delete, line 90 */
607
+ }
608
+ { int m = z->l - z->c; (void) m; /* try, line 91 */
609
+ z->ket = z->c; /* [, line 91 */
610
+ if (!(eq_s_b(z, 2, s_14))) { z->c = z->l - m; goto lab0; }
611
+ z->bra = z->c; /* ], line 91 */
612
+ { int m = z->l - z->c; (void) m; /* or, line 91 */
613
+ { int ret = r_R2(z);
614
+ if (ret == 0) goto lab2; /* call R2, line 91 */
615
+ if (ret < 0) return ret;
616
+ }
617
+ {
618
+ slice_del(z); /* delete, line 91 */
619
+ }
620
+ goto lab1;
621
+ lab2:
622
+ z->c = z->l - m;
623
+ {
624
+ slice_from_s(z, 3, s_15); /* <-, line 91 */
625
+ }
626
+ }
627
+ lab1:
628
+ lab0:
629
+ ;
630
+ }
631
+ break;
632
+ case 3:
633
+ { int ret = r_R2(z);
634
+ if (ret == 0) return 0; /* call R2, line 95 */
635
+ if (ret < 0) return ret;
636
+ }
637
+ {
638
+ slice_from_s(z, 3, s_16); /* <-, line 95 */
639
+ }
640
+ break;
641
+ case 4:
642
+ { int ret = r_R2(z);
643
+ if (ret == 0) return 0; /* call R2, line 98 */
644
+ if (ret < 0) return ret;
645
+ }
646
+ {
647
+ slice_from_s(z, 1, s_17); /* <-, line 98 */
648
+ }
649
+ break;
650
+ case 5:
651
+ { int ret = r_R2(z);
652
+ if (ret == 0) return 0; /* call R2, line 101 */
653
+ if (ret < 0) return ret;
654
+ }
655
+ {
656
+ slice_from_s(z, 3, s_18); /* <-, line 101 */
657
+ }
658
+ break;
659
+ case 6:
660
+ { int ret = r_RV(z);
661
+ if (ret == 0) return 0; /* call RV, line 105 */
662
+ if (ret < 0) return ret;
663
+ }
664
+ {
665
+ slice_del(z); /* delete, line 105 */
666
+ }
667
+ { int m = z->l - z->c; (void) m; /* try, line 106 */
668
+ z->ket = z->c; /* [, line 107 */
669
+ among_var = find_among_b(z, a_1, 6); /* substring, line 107 */
670
+ if (!(among_var)) { z->c = z->l - m; goto lab3; }
671
+ z->bra = z->c; /* ], line 107 */
672
+ switch(among_var) {
673
+ case 0: { z->c = z->l - m; goto lab3; }
674
+ case 1:
675
+ { int ret = r_R2(z);
676
+ if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 108 */
677
+ if (ret < 0) return ret;
678
+ }
679
+ {
680
+ slice_del(z); /* delete, line 108 */
681
+ }
682
+ z->ket = z->c; /* [, line 108 */
683
+ if (!(eq_s_b(z, 2, s_19))) { z->c = z->l - m; goto lab3; }
684
+ z->bra = z->c; /* ], line 108 */
685
+ { int ret = r_R2(z);
686
+ if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 108 */
687
+ if (ret < 0) return ret;
688
+ }
689
+ {
690
+ slice_del(z); /* delete, line 108 */
691
+ }
692
+ break;
693
+ case 2:
694
+ { int m = z->l - z->c; (void) m; /* or, line 109 */
695
+ { int ret = r_R2(z);
696
+ if (ret == 0) goto lab5; /* call R2, line 109 */
697
+ if (ret < 0) return ret;
698
+ }
699
+ {
700
+ slice_del(z); /* delete, line 109 */
701
+ }
702
+ goto lab4;
703
+ lab5:
704
+ z->c = z->l - m;
705
+ { int ret = r_R1(z);
706
+ if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R1, line 109 */
707
+ if (ret < 0) return ret;
708
+ }
709
+ {
710
+ slice_from_s(z, 3, s_20); /* <-, line 109 */
711
+ }
712
+ }
713
+ lab4:
714
+ break;
715
+ case 3:
716
+ { int ret = r_R2(z);
717
+ if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 111 */
718
+ if (ret < 0) return ret;
719
+ }
720
+ {
721
+ slice_del(z); /* delete, line 111 */
722
+ }
723
+ break;
724
+ case 4:
725
+ { int ret = r_RV(z);
726
+ if (ret == 0) { z->c = z->l - m; goto lab3; } /* call RV, line 113 */
727
+ if (ret < 0) return ret;
728
+ }
729
+ {
730
+ slice_from_s(z, 1, s_21); /* <-, line 113 */
731
+ }
732
+ break;
733
+ }
734
+ lab3:
735
+ ;
736
+ }
737
+ break;
738
+ case 7:
739
+ { int ret = r_R2(z);
740
+ if (ret == 0) return 0; /* call R2, line 120 */
741
+ if (ret < 0) return ret;
742
+ }
743
+ {
744
+ slice_del(z); /* delete, line 120 */
745
+ }
746
+ { int m = z->l - z->c; (void) m; /* try, line 121 */
747
+ z->ket = z->c; /* [, line 122 */
748
+ among_var = find_among_b(z, a_2, 3); /* substring, line 122 */
749
+ if (!(among_var)) { z->c = z->l - m; goto lab6; }
750
+ z->bra = z->c; /* ], line 122 */
751
+ switch(among_var) {
752
+ case 0: { z->c = z->l - m; goto lab6; }
753
+ case 1:
754
+ { int m = z->l - z->c; (void) m; /* or, line 123 */
755
+ { int ret = r_R2(z);
756
+ if (ret == 0) goto lab8; /* call R2, line 123 */
757
+ if (ret < 0) return ret;
758
+ }
759
+ {
760
+ slice_del(z); /* delete, line 123 */
761
+ }
762
+ goto lab7;
763
+ lab8:
764
+ z->c = z->l - m;
765
+ {
766
+ slice_from_s(z, 3, s_22); /* <-, line 123 */
767
+ }
768
+ }
769
+ lab7:
770
+ break;
771
+ case 2:
772
+ { int m = z->l - z->c; (void) m; /* or, line 124 */
773
+ { int ret = r_R2(z);
774
+ if (ret == 0) goto lab10; /* call R2, line 124 */
775
+ if (ret < 0) return ret;
776
+ }
777
+ {
778
+ slice_del(z); /* delete, line 124 */
779
+ }
780
+ goto lab9;
781
+ lab10:
782
+ z->c = z->l - m;
783
+ {
784
+ slice_from_s(z, 3, s_23); /* <-, line 124 */
785
+ }
786
+ }
787
+ lab9:
788
+ break;
789
+ case 3:
790
+ { int ret = r_R2(z);
791
+ if (ret == 0) { z->c = z->l - m; goto lab6; } /* call R2, line 125 */
792
+ if (ret < 0) return ret;
793
+ }
794
+ {
795
+ slice_del(z); /* delete, line 125 */
796
+ }
797
+ break;
798
+ }
799
+ lab6:
800
+ ;
801
+ }
802
+ break;
803
+ case 8:
804
+ { int ret = r_R2(z);
805
+ if (ret == 0) return 0; /* call R2, line 132 */
806
+ if (ret < 0) return ret;
807
+ }
808
+ {
809
+ slice_del(z); /* delete, line 132 */
810
+ }
811
+ { int m = z->l - z->c; (void) m; /* try, line 133 */
812
+ z->ket = z->c; /* [, line 133 */
813
+ if (!(eq_s_b(z, 2, s_24))) { z->c = z->l - m; goto lab11; }
814
+ z->bra = z->c; /* ], line 133 */
815
+ { int ret = r_R2(z);
816
+ if (ret == 0) { z->c = z->l - m; goto lab11; } /* call R2, line 133 */
817
+ if (ret < 0) return ret;
818
+ }
819
+ {
820
+ slice_del(z); /* delete, line 133 */
821
+ }
822
+ z->ket = z->c; /* [, line 133 */
823
+ if (!(eq_s_b(z, 2, s_25))) { z->c = z->l - m; goto lab11; }
824
+ z->bra = z->c; /* ], line 133 */
825
+ { int m = z->l - z->c; (void) m; /* or, line 133 */
826
+ { int ret = r_R2(z);
827
+ if (ret == 0) goto lab13; /* call R2, line 133 */
828
+ if (ret < 0) return ret;
829
+ }
830
+ {
831
+ slice_del(z); /* delete, line 133 */
832
+ }
833
+ goto lab12;
834
+ lab13:
835
+ z->c = z->l - m;
836
+ {
837
+ slice_from_s(z, 3, s_26); /* <-, line 133 */
838
+ }
839
+ }
840
+ lab12:
841
+ lab11:
842
+ ;
843
+ }
844
+ break;
845
+ case 9:
846
+ {
847
+ slice_from_s(z, 3, s_27); /* <-, line 135 */
848
+ }
849
+ break;
850
+ case 10:
851
+ { int ret = r_R1(z);
852
+ if (ret == 0) return 0; /* call R1, line 136 */
853
+ if (ret < 0) return ret;
854
+ }
855
+ {
856
+ slice_from_s(z, 2, s_28); /* <-, line 136 */
857
+ }
858
+ break;
859
+ case 11:
860
+ { int m = z->l - z->c; (void) m; /* or, line 138 */
861
+ { int ret = r_R2(z);
862
+ if (ret == 0) goto lab15; /* call R2, line 138 */
863
+ if (ret < 0) return ret;
864
+ }
865
+ {
866
+ slice_del(z); /* delete, line 138 */
867
+ }
868
+ goto lab14;
869
+ lab15:
870
+ z->c = z->l - m;
871
+ { int ret = r_R1(z);
872
+ if (ret == 0) return 0; /* call R1, line 138 */
873
+ if (ret < 0) return ret;
874
+ }
875
+ {
876
+ slice_from_s(z, 3, s_29); /* <-, line 138 */
877
+ }
878
+ }
879
+ lab14:
880
+ break;
881
+ case 12:
882
+ { int ret = r_R1(z);
883
+ if (ret == 0) return 0; /* call R1, line 141 */
884
+ if (ret < 0) return ret;
885
+ }
886
+ if (!(out_grouping_b(z, g_v, 97, 251))) return 0;
887
+ {
888
+ slice_del(z); /* delete, line 141 */
889
+ }
890
+ break;
891
+ case 13:
892
+ { int ret = r_RV(z);
893
+ if (ret == 0) return 0; /* call RV, line 146 */
894
+ if (ret < 0) return ret;
895
+ }
896
+ {
897
+ slice_from_s(z, 3, s_30); /* <-, line 146 */
898
+ }
899
+ return 0; /* fail, line 146 */
900
+ break;
901
+ case 14:
902
+ { int ret = r_RV(z);
903
+ if (ret == 0) return 0; /* call RV, line 147 */
904
+ if (ret < 0) return ret;
905
+ }
906
+ {
907
+ slice_from_s(z, 3, s_31); /* <-, line 147 */
908
+ }
909
+ return 0; /* fail, line 147 */
910
+ break;
911
+ case 15:
912
+ { int m_test = z->l - z->c; /* test, line 149 */
913
+ if (!(in_grouping_b(z, g_v, 97, 251))) return 0;
914
+ { int ret = r_RV(z);
915
+ if (ret == 0) return 0; /* call RV, line 149 */
916
+ if (ret < 0) return ret;
917
+ }
918
+ z->c = z->l - m_test;
919
+ }
920
+ {
921
+ slice_del(z); /* delete, line 149 */
922
+ }
923
+ return 0; /* fail, line 149 */
924
+ break;
925
+ }
926
+ return 1;
927
+ }
928
+
929
+ static int r_i_verb_suffix(struct SN_env * z) {
930
+ int among_var;
931
+ { int m3; /* setlimit, line 154 */
932
+ int m = z->l - z->c; (void) m;
933
+ if (z->c < z->I[0]) return 0;
934
+ z->c = z->I[0]; /* tomark, line 154 */
935
+ m3 = z->lb; z->lb = z->c;
936
+ z->c = z->l - m;
937
+ z->ket = z->c; /* [, line 155 */
938
+ among_var = find_among_b(z, a_4, 35); /* substring, line 155 */
939
+ if (!(among_var)) { z->lb = m3; return 0; }
940
+ z->bra = z->c; /* ], line 155 */
941
+ switch(among_var) {
942
+ case 0: { z->lb = m3; return 0; }
943
+ case 1:
944
+ if (!(out_grouping_b(z, g_v, 97, 251))) { z->lb = m3; return 0; }
945
+ {
946
+ slice_del(z); /* delete, line 161 */
947
+ }
948
+ break;
949
+ }
950
+ z->lb = m3;
951
+ }
952
+ return 1;
953
+ }
954
+
955
+ static int r_verb_suffix(struct SN_env * z) {
956
+ int among_var;
957
+ { int m3; /* setlimit, line 165 */
958
+ int m = z->l - z->c; (void) m;
959
+ if (z->c < z->I[0]) return 0;
960
+ z->c = z->I[0]; /* tomark, line 165 */
961
+ m3 = z->lb; z->lb = z->c;
962
+ z->c = z->l - m;
963
+ z->ket = z->c; /* [, line 166 */
964
+ among_var = find_among_b(z, a_5, 38); /* substring, line 166 */
965
+ if (!(among_var)) { z->lb = m3; return 0; }
966
+ z->bra = z->c; /* ], line 166 */
967
+ switch(among_var) {
968
+ case 0: { z->lb = m3; return 0; }
969
+ case 1:
970
+ { int ret = r_R2(z);
971
+ if (ret == 0) { z->lb = m3; return 0; } /* call R2, line 168 */
972
+ if (ret < 0) return ret;
973
+ }
974
+ {
975
+ slice_del(z); /* delete, line 168 */
976
+ }
977
+ break;
978
+ case 2:
979
+ {
980
+ slice_del(z); /* delete, line 176 */
981
+ }
982
+ break;
983
+ case 3:
984
+ {
985
+ slice_del(z); /* delete, line 181 */
986
+ }
987
+ { int m = z->l - z->c; (void) m; /* try, line 182 */
988
+ z->ket = z->c; /* [, line 182 */
989
+ if (!(eq_s_b(z, 1, s_32))) { z->c = z->l - m; goto lab0; }
990
+ z->bra = z->c; /* ], line 182 */
991
+ {
992
+ slice_del(z); /* delete, line 182 */
993
+ }
994
+ lab0:
995
+ ;
996
+ }
997
+ break;
998
+ }
999
+ z->lb = m3;
1000
+ }
1001
+ return 1;
1002
+ }
1003
+
1004
+ static int r_residual_suffix(struct SN_env * z) {
1005
+ int among_var;
1006
+ { int m = z->l - z->c; (void) m; /* try, line 190 */
1007
+ z->ket = z->c; /* [, line 190 */
1008
+ if (!(eq_s_b(z, 1, s_33))) { z->c = z->l - m; goto lab0; }
1009
+ z->bra = z->c; /* ], line 190 */
1010
+ { int m_test = z->l - z->c; /* test, line 190 */
1011
+ if (!(out_grouping_b(z, g_keep_with_s, 97, 232))) { z->c = z->l - m; goto lab0; }
1012
+ z->c = z->l - m_test;
1013
+ }
1014
+ {
1015
+ slice_del(z); /* delete, line 190 */
1016
+ }
1017
+ lab0:
1018
+ ;
1019
+ }
1020
+ { int m3; /* setlimit, line 191 */
1021
+ int m = z->l - z->c; (void) m;
1022
+ if (z->c < z->I[0]) return 0;
1023
+ z->c = z->I[0]; /* tomark, line 191 */
1024
+ m3 = z->lb; z->lb = z->c;
1025
+ z->c = z->l - m;
1026
+ z->ket = z->c; /* [, line 192 */
1027
+ among_var = find_among_b(z, a_6, 7); /* substring, line 192 */
1028
+ if (!(among_var)) { z->lb = m3; return 0; }
1029
+ z->bra = z->c; /* ], line 192 */
1030
+ switch(among_var) {
1031
+ case 0: { z->lb = m3; return 0; }
1032
+ case 1:
1033
+ { int ret = r_R2(z);
1034
+ if (ret == 0) { z->lb = m3; return 0; } /* call R2, line 193 */
1035
+ if (ret < 0) return ret;
1036
+ }
1037
+ { int m = z->l - z->c; (void) m; /* or, line 193 */
1038
+ if (!(eq_s_b(z, 1, s_34))) goto lab2;
1039
+ goto lab1;
1040
+ lab2:
1041
+ z->c = z->l - m;
1042
+ if (!(eq_s_b(z, 1, s_35))) { z->lb = m3; return 0; }
1043
+ }
1044
+ lab1:
1045
+ {
1046
+ slice_del(z); /* delete, line 193 */
1047
+ }
1048
+ break;
1049
+ case 2:
1050
+ {
1051
+ slice_from_s(z, 1, s_36); /* <-, line 195 */
1052
+ }
1053
+ break;
1054
+ case 3:
1055
+ {
1056
+ slice_del(z); /* delete, line 196 */
1057
+ }
1058
+ break;
1059
+ case 4:
1060
+ if (!(eq_s_b(z, 2, s_37))) { z->lb = m3; return 0; }
1061
+ {
1062
+ slice_del(z); /* delete, line 197 */
1063
+ }
1064
+ break;
1065
+ }
1066
+ z->lb = m3;
1067
+ }
1068
+ return 1;
1069
+ }
1070
+
1071
+ static int r_un_double(struct SN_env * z) {
1072
+ { int m_test = z->l - z->c; /* test, line 203 */
1073
+ if (!(find_among_b(z, a_7, 5))) return 0; /* among, line 203 */
1074
+ z->c = z->l - m_test;
1075
+ }
1076
+ z->ket = z->c; /* [, line 203 */
1077
+ if (z->c <= z->lb) return 0;
1078
+ z->c--; /* next, line 203 */
1079
+ z->bra = z->c; /* ], line 203 */
1080
+ {
1081
+ slice_del(z); /* delete, line 203 */
1082
+ }
1083
+ return 1;
1084
+ }
1085
+
1086
+ static int r_un_accent(struct SN_env * z) {
1087
+ { int i = 1;
1088
+ while(1) { /* atleast, line 207 */
1089
+ if (!(out_grouping_b(z, g_v, 97, 251))) goto lab0;
1090
+ i--;
1091
+ continue;
1092
+ lab0:
1093
+ break;
1094
+ }
1095
+ if (i > 0) return 0;
1096
+ }
1097
+ z->ket = z->c; /* [, line 208 */
1098
+ { int m = z->l - z->c; (void) m; /* or, line 208 */
1099
+ if (!(eq_s_b(z, 1, s_38))) goto lab2;
1100
+ goto lab1;
1101
+ lab2:
1102
+ z->c = z->l - m;
1103
+ if (!(eq_s_b(z, 1, s_39))) return 0;
1104
+ }
1105
+ lab1:
1106
+ z->bra = z->c; /* ], line 208 */
1107
+ {
1108
+ slice_from_s(z, 1, s_40); /* <-, line 208 */
1109
+ }
1110
+ return 1;
1111
+ }
1112
+
1113
+ extern int french_stem(struct SN_env * z) {
1114
+ { int c = z->c; /* do, line 214 */
1115
+ { int ret = r_prelude(z);
1116
+ if (ret == 0) goto lab0; /* call prelude, line 214 */
1117
+ if (ret < 0) return ret;
1118
+ }
1119
+ lab0:
1120
+ z->c = c;
1121
+ }
1122
+ { int c = z->c; /* do, line 215 */
1123
+ { int ret = r_mark_regions(z);
1124
+ if (ret == 0) goto lab1; /* call mark_regions, line 215 */
1125
+ if (ret < 0) return ret;
1126
+ }
1127
+ lab1:
1128
+ z->c = c;
1129
+ }
1130
+ z->lb = z->c; z->c = z->l; /* backwards, line 216 */
1131
+
1132
+ { int m = z->l - z->c; (void) m; /* do, line 218 */
1133
+ { int m = z->l - z->c; (void) m; /* or, line 228 */
1134
+ { int m = z->l - z->c; (void) m; /* and, line 224 */
1135
+ { int m = z->l - z->c; (void) m; /* or, line 220 */
1136
+ { int ret = r_standard_suffix(z);
1137
+ if (ret == 0) goto lab6; /* call standard_suffix, line 220 */
1138
+ if (ret < 0) return ret;
1139
+ }
1140
+ goto lab5;
1141
+ lab6:
1142
+ z->c = z->l - m;
1143
+ { int ret = r_i_verb_suffix(z);
1144
+ if (ret == 0) goto lab7; /* call i_verb_suffix, line 221 */
1145
+ if (ret < 0) return ret;
1146
+ }
1147
+ goto lab5;
1148
+ lab7:
1149
+ z->c = z->l - m;
1150
+ { int ret = r_verb_suffix(z);
1151
+ if (ret == 0) goto lab4; /* call verb_suffix, line 222 */
1152
+ if (ret < 0) return ret;
1153
+ }
1154
+ }
1155
+ lab5:
1156
+ z->c = z->l - m;
1157
+ { int m = z->l - z->c; (void) m; /* try, line 225 */
1158
+ z->ket = z->c; /* [, line 225 */
1159
+ { int m = z->l - z->c; (void) m; /* or, line 225 */
1160
+ if (!(eq_s_b(z, 1, s_41))) goto lab10;
1161
+ z->bra = z->c; /* ], line 225 */
1162
+ {
1163
+ slice_from_s(z, 1, s_42); /* <-, line 225 */
1164
+ }
1165
+ goto lab9;
1166
+ lab10:
1167
+ z->c = z->l - m;
1168
+ if (!(eq_s_b(z, 1, s_43))) { z->c = z->l - m; goto lab8; }
1169
+ z->bra = z->c; /* ], line 226 */
1170
+ {
1171
+ slice_from_s(z, 1, s_44); /* <-, line 226 */
1172
+ }
1173
+ }
1174
+ lab9:
1175
+ lab8:
1176
+ ;
1177
+ }
1178
+ }
1179
+ goto lab3;
1180
+ lab4:
1181
+ z->c = z->l - m;
1182
+ { int ret = r_residual_suffix(z);
1183
+ if (ret == 0) goto lab2; /* call residual_suffix, line 229 */
1184
+ if (ret < 0) return ret;
1185
+ }
1186
+ }
1187
+ lab3:
1188
+ lab2:
1189
+ z->c = z->l - m;
1190
+ }
1191
+ { int m = z->l - z->c; (void) m; /* do, line 234 */
1192
+ { int ret = r_un_double(z);
1193
+ if (ret == 0) goto lab11; /* call un_double, line 234 */
1194
+ if (ret < 0) return ret;
1195
+ }
1196
+ lab11:
1197
+ z->c = z->l - m;
1198
+ }
1199
+ { int m = z->l - z->c; (void) m; /* do, line 235 */
1200
+ { int ret = r_un_accent(z);
1201
+ if (ret == 0) goto lab12; /* call un_accent, line 235 */
1202
+ if (ret < 0) return ret;
1203
+ }
1204
+ lab12:
1205
+ z->c = z->l - m;
1206
+ }
1207
+ z->c = z->lb;
1208
+ { int c = z->c; /* do, line 237 */
1209
+ { int ret = r_postlude(z);
1210
+ if (ret == 0) goto lab13; /* call postlude, line 237 */
1211
+ if (ret < 0) return ret;
1212
+ }
1213
+ lab13:
1214
+ z->c = c;
1215
+ }
1216
+ return 1;
1217
+ }
1218
+
1219
+ extern struct SN_env * french_create_env(void) { return SN_create_env(0, 3, 0); }
1220
+
1221
+ extern void french_close_env(struct SN_env * z) { SN_close_env(z); }
1222
+