j1-template 2021.0.3 → 2021.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +10 -10
  3. data/assets/data/quicklinks.html +2 -2
  4. data/assets/themes/j1/adapter/js/mmenu.js +18 -22
  5. data/assets/themes/j1/adapter/js/{lunr_search.js → quicksearch.js} +11 -11
  6. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-brands-400.eot → eot/fa-brands-400.eot} +0 -0
  7. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-regular-400.eot → eot/fa-regular-400.eot} +0 -0
  8. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-solid-900.eot → eot/fa-solid-900.eot} +0 -0
  9. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-brands-400.svg → svg/fa-brands-400.svg} +0 -0
  10. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-regular-400.svg → svg/fa-regular-400.svg} +0 -0
  11. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-solid-900.svg → svg/fa-solid-900.svg} +0 -0
  12. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-brands-400.ttf → ttf/fa-brands-400.ttf} +0 -0
  13. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-regular-400.ttf → ttf/fa-regular-400.ttf} +0 -0
  14. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-solid-900.ttf → ttf/fa-solid-900.ttf} +0 -0
  15. data/assets/themes/j1/core/fonts/materialdesign_icons/fonts/{materialdesignicons-webfont.eot → eot/materialdesignicons-webfont.eot} +0 -0
  16. data/assets/themes/j1/core/fonts/materialdesign_icons/fonts/{materialdesignicons-webfont.svg → svg/materialdesignicons-webfont.svg} +0 -0
  17. data/assets/themes/j1/core/fonts/materialdesign_icons/fonts/{materialdesignicons-webfont.ttf → ttf/materialdesignicons-webfont.ttf} +0 -0
  18. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Bold.eot → eot/Roboto-Bold.eot} +0 -0
  19. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Light.eot → eot/Roboto-Light.eot} +0 -0
  20. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Medium.eot → eot/Roboto-Medium.eot} +0 -0
  21. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Regular.eot → eot/Roboto-Regular.eot} +0 -0
  22. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Thin.eot → eot/Roboto-Thin.eot} +0 -0
  23. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Black.ttf → ttf/Roboto-Black.ttf} +0 -0
  24. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-BlackItalic.ttf → ttf/Roboto-BlackItalic.ttf} +0 -0
  25. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Bold.ttf → ttf/Roboto-Bold.ttf} +0 -0
  26. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-BoldItalic.ttf → ttf/Roboto-BoldItalic.ttf} +0 -0
  27. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Italic.ttf → ttf/Roboto-Italic.ttf} +0 -0
  28. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Light.ttf → ttf/Roboto-Light.ttf} +0 -0
  29. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-LightItalic.ttf → ttf/Roboto-LightItalic.ttf} +0 -0
  30. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Medium.ttf → ttf/Roboto-Medium.ttf} +0 -0
  31. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-MediumItalic.ttf → ttf/Roboto-MediumItalic.ttf} +0 -0
  32. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Regular.ttf → ttf/Roboto-Regular.ttf} +0 -0
  33. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Thin.ttf → ttf/Roboto-Thin.ttf} +0 -0
  34. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-ThinItalic.ttf → ttf/Roboto-ThinItalic.ttf} +0 -0
  35. data/assets/themes/j1/modules/datatables/css/DataTables-1.10.16/images/sort_asc.png +0 -0
  36. data/assets/themes/j1/modules/datatables/css/DataTables-1.10.16/images/sort_asc_disabled.png +0 -0
  37. data/assets/themes/j1/modules/datatables/css/DataTables-1.10.16/images/sort_both.png +0 -0
  38. data/assets/themes/j1/modules/datatables/css/DataTables-1.10.16/images/sort_desc.png +0 -0
  39. data/assets/themes/j1/modules/datatables/css/DataTables-1.10.16/images/sort_desc_disabled.png +0 -0
  40. data/assets/themes/j1/modules/datatables/css/datatables.css +1113 -0
  41. data/assets/themes/j1/modules/datatables/css/datatables.min.css +136 -0
  42. data/assets/themes/j1/modules/datatables/css/theme/uno.css +473 -0
  43. data/assets/themes/j1/modules/datatables/js/datatables.js +95360 -0
  44. data/assets/themes/j1/modules/datatables/js/datatables.min.js +533 -0
  45. data/assets/themes/j1/modules/lunrSearch/css/{lunr_search.css → quicksearch.css} +0 -0
  46. data/assets/themes/j1/modules/lunrSearch/css/{lunr_search.min.css → quicksearch.min.css} +0 -0
  47. data/assets/themes/j1/modules/lunrSearch/js/lunr.language.support.js +304 -0
  48. data/assets/themes/j1/modules/lunrSearch/js/lunr.language.support.min.js +1 -0
  49. data/assets/themes/j1/modules/lunrSearch/js/{lunr_search.js → quicksearch.js} +22 -3
  50. data/assets/themes/j1/modules/lunrSearch/js/{lunr_search.min.js → quicksearch.min.js} +0 -0
  51. data/assets/themes/j1/modules/lunrSearch/languages/lunr.ar.js +381 -0
  52. data/assets/themes/j1/modules/lunrSearch/languages/lunr.ar.min.js +1 -0
  53. data/assets/themes/j1/modules/lunrSearch/languages/lunr.da.js +284 -0
  54. data/assets/themes/j1/modules/lunrSearch/languages/lunr.da.min.js +18 -0
  55. data/assets/themes/j1/modules/lunrSearch/languages/lunr.de.js +384 -0
  56. data/assets/themes/j1/modules/lunrSearch/languages/lunr.de.min.js +18 -0
  57. data/assets/themes/j1/modules/lunrSearch/languages/lunr.du.js +450 -0
  58. data/assets/themes/j1/modules/lunrSearch/languages/lunr.du.min.js +18 -0
  59. data/assets/themes/j1/modules/lunrSearch/languages/lunr.es.js +599 -0
  60. data/assets/themes/j1/modules/lunrSearch/languages/lunr.es.min.js +18 -0
  61. data/assets/themes/j1/modules/lunrSearch/languages/lunr.fi.js +541 -0
  62. data/assets/themes/j1/modules/lunrSearch/languages/lunr.fi.min.js +18 -0
  63. data/assets/themes/j1/modules/lunrSearch/languages/lunr.fr.js +703 -0
  64. data/assets/themes/j1/modules/lunrSearch/languages/lunr.fr.min.js +18 -0
  65. data/assets/themes/j1/modules/lunrSearch/languages/lunr.hu.js +565 -0
  66. data/assets/themes/j1/modules/lunrSearch/languages/lunr.hu.min.js +18 -0
  67. data/assets/themes/j1/modules/lunrSearch/languages/lunr.it.js +617 -0
  68. data/assets/themes/j1/modules/lunrSearch/languages/lunr.it.min.js +18 -0
  69. data/assets/themes/j1/modules/lunrSearch/languages/lunr.ja.js +188 -0
  70. data/assets/themes/j1/modules/lunrSearch/languages/lunr.ja.min.js +1 -0
  71. data/assets/themes/j1/modules/lunrSearch/languages/lunr.jp.js +5 -0
  72. data/assets/themes/j1/modules/lunrSearch/languages/lunr.jp.min.js +1 -0
  73. data/assets/themes/j1/modules/lunrSearch/languages/lunr.multi.js +79 -0
  74. data/assets/themes/j1/modules/lunrSearch/languages/lunr.multi.min.js +1 -0
  75. data/assets/themes/j1/modules/lunrSearch/languages/lunr.nl.js +448 -0
  76. data/assets/themes/j1/modules/lunrSearch/languages/lunr.nl.min.js +18 -0
  77. data/assets/themes/j1/modules/lunrSearch/languages/lunr.no.js +258 -0
  78. data/assets/themes/j1/modules/lunrSearch/languages/lunr.no.min.js +18 -0
  79. data/assets/themes/j1/modules/lunrSearch/languages/lunr.pt.js +570 -0
  80. data/assets/themes/j1/modules/lunrSearch/languages/lunr.pt.min.js +18 -0
  81. data/assets/themes/j1/modules/lunrSearch/languages/lunr.ro.js +558 -0
  82. data/assets/themes/j1/modules/lunrSearch/languages/lunr.ro.min.js +18 -0
  83. data/assets/themes/j1/modules/lunrSearch/languages/lunr.ru.js +391 -0
  84. data/assets/themes/j1/modules/lunrSearch/languages/lunr.ru.min.js +18 -0
  85. data/assets/themes/j1/modules/lunrSearch/languages/lunr.sv.js +256 -0
  86. data/assets/themes/j1/modules/lunrSearch/languages/lunr.sv.min.js +18 -0
  87. data/assets/themes/j1/modules/lunrSearch/languages/lunr.th.js +97 -0
  88. data/assets/themes/j1/modules/lunrSearch/languages/lunr.tr.js +1087 -0
  89. data/assets/themes/j1/modules/lunrSearch/languages/lunr.tr.min.js +18 -0
  90. data/assets/themes/j1/modules/lunrSearch/languages/lunr.vi.js +84 -0
  91. data/assets/themes/j1/modules/lunrSearch/languages/lunr.vi.min.js +1 -0
  92. data/lib/j1/version.rb +1 -1
  93. data/lib/starter_web/Gemfile +1 -2
  94. data/lib/starter_web/_config.yml +2 -2
  95. data/lib/starter_web/_data/asciidoc2pdf/fonts/ABOUT-mplus1mn-subset +26 -0
  96. data/lib/starter_web/_data/asciidoc2pdf/fonts/ABOUT-mplus1p-subset +26 -0
  97. data/lib/starter_web/_data/asciidoc2pdf/fonts/ABOUT-notoemoji-subset +3 -0
  98. data/lib/starter_web/_data/asciidoc2pdf/fonts/ABOUT-notoserif-subset +26 -0
  99. data/lib/starter_web/_data/asciidoc2pdf/fonts/LICENSE-mplus +16 -0
  100. data/lib/starter_web/_data/asciidoc2pdf/fonts/LICENSE-notoemoji +201 -0
  101. data/lib/starter_web/_data/asciidoc2pdf/fonts/LICENSE-notoserif +201 -0
  102. data/lib/starter_web/_data/asciidoc2pdf/fonts/LICENSE-roboto +11 -0
  103. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-Black.ttf +0 -0
  104. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-BlackItalic.ttf +0 -0
  105. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-Bold.ttf +0 -0
  106. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-BoldItalic.ttf +0 -0
  107. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-Italic.ttf +0 -0
  108. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-Light.ttf +0 -0
  109. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-LightItalic.ttf +0 -0
  110. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-Medium.ttf +0 -0
  111. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-MediumItalic.ttf +0 -0
  112. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-Regular.ttf +0 -0
  113. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-Thin.ttf +0 -0
  114. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-ThinItalic.ttf +0 -0
  115. data/lib/starter_web/_data/asciidoc2pdf/fonts/mplus1mn-bold-subset.ttf +0 -0
  116. data/lib/starter_web/_data/asciidoc2pdf/fonts/mplus1mn-bold_italic-subset.ttf +0 -0
  117. data/lib/starter_web/_data/asciidoc2pdf/fonts/mplus1mn-italic-subset.ttf +0 -0
  118. data/lib/starter_web/_data/asciidoc2pdf/fonts/mplus1mn-regular-subset.ttf +0 -0
  119. data/{assets/themes/j1/core/fonts/roboto → lib/starter_web/_data/asciidoc2pdf}/fonts/mplus1p-regular-fallback.ttf +0 -0
  120. data/lib/starter_web/_data/asciidoc2pdf/fonts/notoemoji-subset.ttf +0 -0
  121. data/{assets/themes/j1/core/fonts/roboto → lib/starter_web/_data/asciidoc2pdf}/fonts/notoserif-bold-subset.ttf +0 -0
  122. data/{assets/themes/j1/core/fonts/roboto → lib/starter_web/_data/asciidoc2pdf}/fonts/notoserif-bold_italic-subset.ttf +0 -0
  123. data/{assets/themes/j1/core/fonts/roboto → lib/starter_web/_data/asciidoc2pdf}/fonts/notoserif-italic-subset.ttf +0 -0
  124. data/{assets/themes/j1/core/fonts/roboto → lib/starter_web/_data/asciidoc2pdf}/fonts/notoserif-regular-subset.ttf +0 -0
  125. data/lib/starter_web/_data/asciidoc2pdf/themes/base-theme.yml +130 -0
  126. data/lib/starter_web/_data/asciidoc2pdf/themes/default-for-print-theme.yml +36 -0
  127. data/lib/starter_web/_data/asciidoc2pdf/themes/default-for-print-with-fallback-font-theme.yml +15 -0
  128. data/lib/starter_web/_data/asciidoc2pdf/themes/default-theme.yml +298 -0
  129. data/lib/starter_web/_data/asciidoc2pdf/themes/default-with-fallback-font-theme.yml +21 -0
  130. data/lib/starter_web/_data/asciidoc2pdf/themes/j1-theme.yml +315 -0
  131. data/lib/starter_web/_data/modules/defaults/quicksearch.yml +73 -0
  132. data/lib/starter_web/_data/modules/navigator.yml +4 -6
  133. data/lib/starter_web/_data/modules/{lunr_search.yml → quicksearch.yml} +3 -3
  134. data/lib/starter_web/_data/modules/themer.yml +1 -1
  135. data/lib/starter_web/_data/resources.yml +34 -37
  136. data/lib/starter_web/_includes/attributes.asciidoc +3 -1
  137. data/lib/starter_web/_plugins/lunr_index.rb +19 -8
  138. data/lib/starter_web/assets/images/modules/icons/d1/scalable/d1.svg +1 -1
  139. data/lib/starter_web/dot.gitattributes +2 -16
  140. data/lib/starter_web/package.json +6 -6
  141. data/lib/starter_web/pages/protected/site_search.adoc +2 -7
  142. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/100_meet_and_greet_jekyll.adoc +1 -1
  143. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/200_preparations.adoc +2 -2
  144. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/300_first_awesome_web.adoc +2 -2
  145. data/lib/starter_web/pages/public/learn/roundtrip/600_lunr.adoc +146 -47
  146. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  147. data/lib/starter_web/utilsrv/package.json +1 -1
  148. metadata +127 -49
  149. data/assets/themes/j1/core/fonts/materialdesign_icons/license.md +0 -97
  150. data/assets/themes/j1/core/fonts/roboto/fonts/OpenSansEmoji.ttf +0 -0
  151. data/assets/themes/j1/core/fonts/roboto/fonts/mplus1mn-bold-ascii.ttf +0 -0
  152. data/assets/themes/j1/core/fonts/roboto/fonts/mplus1mn-bold_italic-ascii.ttf +0 -0
  153. data/assets/themes/j1/core/fonts/roboto/fonts/mplus1mn-italic-ascii.ttf +0 -0
  154. data/assets/themes/j1/core/fonts/roboto/fonts/mplus1mn-regular-ascii-conums.ttf +0 -0
  155. data/lib/starter_web/_data/modules/defaults/lunr_search.yml +0 -171
@@ -0,0 +1,18 @@
1
+ /*!
2
+ * Lunr languages, `Finnish` language
3
+ * https://github.com/MihaiValentin/lunr-languages
4
+ *
5
+ * Copyright 2014, Mihai Valentin
6
+ * http://www.mozilla.org/MPL/
7
+ */
8
+ /*!
9
+ * based on
10
+ * Snowball JavaScript Library v0.3
11
+ * http://code.google.com/p/urim/
12
+ * http://snowball.tartarus.org/
13
+ *
14
+ * Copyright 2010, Oleg Mazko
15
+ * http://www.mozilla.org/MPL/
16
+ */
17
+
18
+ !function(i,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():e()(i.lunr)}(this,function(){return function(i){if(void 0===i)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===i.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");i.fi=function(){this.pipeline.reset(),this.pipeline.add(i.fi.trimmer,i.fi.stopWordFilter,i.fi.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(i.fi.stemmer))},i.fi.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",i.fi.trimmer=i.trimmerSupport.generateTrimmer(i.fi.wordCharacters),i.Pipeline.registerFunction(i.fi.trimmer,"trimmer-fi"),i.fi.stemmer=function(){var e=i.stemmerSupport.Among,r=i.stemmerSupport.SnowballProgram,n=new function(){function i(){f=A.limit,d=f,n()||(f=A.cursor,n()||(d=A.cursor))}function n(){for(var i;;){if(i=A.cursor,A.in_grouping(W,97,246))break;if(A.cursor=i,i>=A.limit)return!0;A.cursor++}for(A.cursor=i;!A.out_grouping(W,97,246);){if(A.cursor>=A.limit)return!0;A.cursor++}return!1}function t(){return d<=A.cursor}function s(){var i,e;if(A.cursor>=f)if(e=A.limit_backward,A.limit_backward=f,A.ket=A.cursor,i=A.find_among_b(h,10)){switch(A.bra=A.cursor,A.limit_backward=e,i){case 1:if(!A.in_grouping_b(x,97,246))return;break;case 2:if(!t())return}A.slice_del()}else A.limit_backward=e}function o(){var i,e,r;if(A.cursor>=f)if(e=A.limit_backward,A.limit_backward=f,A.ket=A.cursor,i=A.find_among_b(v,9))switch(A.bra=A.cursor,A.limit_backward=e,i){case 1:r=A.limit-A.cursor,A.eq_s_b(1,"k")||(A.cursor=A.limit-r,A.slice_del());break;case 2:A.slice_del(),A.ket=A.cursor,A.eq_s_b(3,"kse")&&(A.bra=A.cursor,A.slice_from("ksi"));break;case 3:A.slice_del();break;case 4:A.find_among_b(p,6)&&A.slice_del();break;case 5:A.find_among_b(g,6)&&A.slice_del();break;case 6:A.find_among_b(j,2)&&A.slice_del()}else A.limit_backward=e}function l(){return A.find_among_b(q,7)}function a(){return A.eq_s_b(1,"i")&&A.in_grouping_b(L,97,246)}function u(){var i,e,r;if(A.cursor>=f)if(e=A.limit_backward,A.limit_backward=f,A.ket=A.cursor,i=A.find_among_b(C,30)){switch(A.bra=A.cursor,A.limit_backward=e,i){case 1:if(!A.eq_s_b(1,"a"))return;break;case 2:case 9:if(!A.eq_s_b(1,"e"))return;break;case 3:if(!A.eq_s_b(1,"i"))return;break;case 4:if(!A.eq_s_b(1,"o"))return;break;case 5:if(!A.eq_s_b(1,"ä"))return;break;case 6:if(!A.eq_s_b(1,"ö"))return;break;case 7:if(r=A.limit-A.cursor,!l()&&(A.cursor=A.limit-r,!A.eq_s_b(2,"ie"))){A.cursor=A.limit-r;break}if(A.cursor=A.limit-r,A.cursor<=A.limit_backward){A.cursor=A.limit-r;break}A.cursor--,A.bra=A.cursor;break;case 8:if(!A.in_grouping_b(W,97,246)||!A.out_grouping_b(W,97,246))return}A.slice_del(),k=!0}else A.limit_backward=e}function c(){var i,e,r;if(A.cursor>=d)if(e=A.limit_backward,A.limit_backward=d,A.ket=A.cursor,i=A.find_among_b(P,14)){if(A.bra=A.cursor,A.limit_backward=e,1==i){if(r=A.limit-A.cursor,A.eq_s_b(2,"po"))return;A.cursor=A.limit-r}A.slice_del()}else A.limit_backward=e}function m(){var i;A.cursor>=f&&(i=A.limit_backward,A.limit_backward=f,A.ket=A.cursor,A.find_among_b(F,2)?(A.bra=A.cursor,A.limit_backward=i,A.slice_del()):A.limit_backward=i)}function w(){var i,e,r,n,t,s;if(A.cursor>=f){if(e=A.limit_backward,A.limit_backward=f,A.ket=A.cursor,A.eq_s_b(1,"t")&&(A.bra=A.cursor,r=A.limit-A.cursor,A.in_grouping_b(W,97,246)&&(A.cursor=A.limit-r,A.slice_del(),A.limit_backward=e,n=A.limit-A.cursor,A.cursor>=d&&(A.cursor=d,t=A.limit_backward,A.limit_backward=A.cursor,A.cursor=A.limit-n,A.ket=A.cursor,i=A.find_among_b(S,2))))){if(A.bra=A.cursor,A.limit_backward=t,1==i){if(s=A.limit-A.cursor,A.eq_s_b(2,"po"))return;A.cursor=A.limit-s}return void A.slice_del()}A.limit_backward=e}}function _(){var i,e,r,n;if(A.cursor>=f){for(i=A.limit_backward,A.limit_backward=f,e=A.limit-A.cursor,l()&&(A.cursor=A.limit-e,A.ket=A.cursor,A.cursor>A.limit_backward&&(A.cursor--,A.bra=A.cursor,A.slice_del())),A.cursor=A.limit-e,A.ket=A.cursor,A.in_grouping_b(y,97,228)&&(A.bra=A.cursor,A.out_grouping_b(W,97,246)&&A.slice_del()),A.cursor=A.limit-e,A.ket=A.cursor,A.eq_s_b(1,"j")&&(A.bra=A.cursor,r=A.limit-A.cursor,A.eq_s_b(1,"o")?A.slice_del():(A.cursor=A.limit-r,A.eq_s_b(1,"u")&&A.slice_del())),A.cursor=A.limit-e,A.ket=A.cursor,A.eq_s_b(1,"o")&&(A.bra=A.cursor,A.eq_s_b(1,"j")&&A.slice_del()),A.cursor=A.limit-e,A.limit_backward=i;;){if(n=A.limit-A.cursor,A.out_grouping_b(W,97,246)){A.cursor=A.limit-n;break}if(A.cursor=A.limit-n,A.cursor<=A.limit_backward)return;A.cursor--}A.ket=A.cursor,A.cursor>A.limit_backward&&(A.cursor--,A.bra=A.cursor,b=A.slice_to(),A.eq_v_b(b)&&A.slice_del())}}var k,b,d,f,h=[new e("pa",-1,1),new e("sti",-1,2),new e("kaan",-1,1),new e("han",-1,1),new e("kin",-1,1),new e("hän",-1,1),new e("kään",-1,1),new e("ko",-1,1),new e("pä",-1,1),new e("kö",-1,1)],p=[new e("lla",-1,-1),new e("na",-1,-1),new e("ssa",-1,-1),new e("ta",-1,-1),new e("lta",3,-1),new e("sta",3,-1)],g=[new e("llä",-1,-1),new e("nä",-1,-1),new e("ssä",-1,-1),new e("tä",-1,-1),new e("ltä",3,-1),new e("stä",3,-1)],j=[new e("lle",-1,-1),new e("ine",-1,-1)],v=[new e("nsa",-1,3),new e("mme",-1,3),new e("nne",-1,3),new e("ni",-1,2),new e("si",-1,1),new e("an",-1,4),new e("en",-1,6),new e("än",-1,5),new e("nsä",-1,3)],q=[new e("aa",-1,-1),new e("ee",-1,-1),new e("ii",-1,-1),new e("oo",-1,-1),new e("uu",-1,-1),new e("ää",-1,-1),new e("öö",-1,-1)],C=[new e("a",-1,8),new e("lla",0,-1),new e("na",0,-1),new e("ssa",0,-1),new e("ta",0,-1),new e("lta",4,-1),new e("sta",4,-1),new e("tta",4,9),new e("lle",-1,-1),new e("ine",-1,-1),new e("ksi",-1,-1),new e("n",-1,7),new e("han",11,1),new e("den",11,-1,a),new e("seen",11,-1,l),new e("hen",11,2),new e("tten",11,-1,a),new e("hin",11,3),new e("siin",11,-1,a),new e("hon",11,4),new e("hän",11,5),new e("hön",11,6),new e("ä",-1,8),new e("llä",22,-1),new e("nä",22,-1),new e("ssä",22,-1),new e("tä",22,-1),new e("ltä",26,-1),new e("stä",26,-1),new e("ttä",26,9)],P=[new e("eja",-1,-1),new e("mma",-1,1),new e("imma",1,-1),new e("mpa",-1,1),new e("impa",3,-1),new e("mmi",-1,1),new e("immi",5,-1),new e("mpi",-1,1),new e("impi",7,-1),new e("ejä",-1,-1),new e("mmä",-1,1),new e("immä",10,-1),new e("mpä",-1,1),new e("impä",12,-1)],F=[new e("i",-1,-1),new e("j",-1,-1)],S=[new e("mma",-1,1),new e("imma",0,-1)],y=[17,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8],W=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,8,0,32],L=[17,65,16,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,32],x=[17,97,24,1,0,0,0,0,0,0,0,0,0,0,0,0,8,0,32],A=new r;this.setCurrent=function(i){A.setCurrent(i)},this.getCurrent=function(){return A.getCurrent()},this.stem=function(){var e=A.cursor;return i(),k=!1,A.limit_backward=e,A.cursor=A.limit,s(),A.cursor=A.limit,o(),A.cursor=A.limit,u(),A.cursor=A.limit,c(),A.cursor=A.limit,k?(m(),A.cursor=A.limit):(A.cursor=A.limit,w(),A.cursor=A.limit),_(),!0}};return function(i){return"function"==typeof i.update?i.update(function(i){return n.setCurrent(i),n.stem(),n.getCurrent()}):(n.setCurrent(i),n.stem(),n.getCurrent())}}(),i.Pipeline.registerFunction(i.fi.stemmer,"stemmer-fi"),i.fi.stopWordFilter=i.generateStopWordFilter("ei eivät emme en et ette että he heidän heidät heihin heille heillä heiltä heissä heistä heitä hän häneen hänelle hänellä häneltä hänen hänessä hänestä hänet häntä itse ja johon joiden joihin joiksi joilla joille joilta joina joissa joista joita joka joksi jolla jolle jolta jona jonka jos jossa josta jota jotka kanssa keiden keihin keiksi keille keillä keiltä keinä keissä keistä keitä keneen keneksi kenelle kenellä keneltä kenen kenenä kenessä kenestä kenet ketkä ketkä ketä koska kuin kuka kun me meidän meidät meihin meille meillä meiltä meissä meistä meitä mihin miksi mikä mille millä miltä minkä minkä minua minulla minulle minulta minun minussa minusta minut minuun minä minä missä mistä mitkä mitä mukaan mutta ne niiden niihin niiksi niille niillä niiltä niin niin niinä niissä niistä niitä noiden noihin noiksi noilla noille noilta noin noina noissa noista noita nuo nyt näiden näihin näiksi näille näillä näiltä näinä näissä näistä näitä nämä ole olemme olen olet olette oli olimme olin olisi olisimme olisin olisit olisitte olisivat olit olitte olivat olla olleet ollut on ovat poikki se sekä sen siihen siinä siitä siksi sille sillä sillä siltä sinua sinulla sinulle sinulta sinun sinussa sinusta sinut sinuun sinä sinä sitä tai te teidän teidät teihin teille teillä teiltä teissä teistä teitä tuo tuohon tuoksi tuolla tuolle tuolta tuon tuona tuossa tuosta tuota tähän täksi tälle tällä tältä tämä tämän tänä tässä tästä tätä vaan vai vaikka yli".split(" ")),i.Pipeline.registerFunction(i.fi.stopWordFilter,"stopWordFilter-fi")}});
@@ -0,0 +1,703 @@
1
+ /*!
2
+ * Lunr languages, `French` language
3
+ * https://github.com/MihaiValentin/lunr-languages
4
+ *
5
+ * Copyright 2014, Mihai Valentin
6
+ * http://www.mozilla.org/MPL/
7
+ */
8
+ /*!
9
+ * based on
10
+ * Snowball JavaScript Library v0.3
11
+ * http://code.google.com/p/urim/
12
+ * http://snowball.tartarus.org/
13
+ *
14
+ * Copyright 2010, Oleg Mazko
15
+ * http://www.mozilla.org/MPL/
16
+ */
17
+
18
+ /**
19
+ * export the module via AMD, CommonJS or as a browser global
20
+ * Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
21
+ */
22
+ ;
23
+ (function(root, factory) {
24
+ if (typeof define === 'function' && define.amd) {
25
+ // AMD. Register as an anonymous module.
26
+ define(factory)
27
+ } else if (typeof exports === 'object') {
28
+ /**
29
+ * Node. Does not work with strict CommonJS, but
30
+ * only CommonJS-like environments that support module.exports,
31
+ * like Node.
32
+ */
33
+ module.exports = factory()
34
+ } else {
35
+ // Browser globals (root is window)
36
+ factory()(root.lunr);
37
+ }
38
+ }(this, function() {
39
+ /**
40
+ * Just return a value to define the module export.
41
+ * This example returns an object, but the module
42
+ * can return a function as the exported value.
43
+ */
44
+ return function(lunr) {
45
+ /* throw error if lunr is not yet included */
46
+ if ('undefined' === typeof lunr) {
47
+ throw new Error('Lunr is not present. Please include / require Lunr before this script.');
48
+ }
49
+
50
+ /* throw error if lunr stemmer support is not yet included */
51
+ if ('undefined' === typeof lunr.stemmerSupport) {
52
+ throw new Error('Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.');
53
+ }
54
+
55
+ /* register specific locale function */
56
+ lunr.fr = function() {
57
+ this.pipeline.reset();
58
+ this.pipeline.add(
59
+ lunr.fr.trimmer,
60
+ lunr.fr.stopWordFilter,
61
+ lunr.fr.stemmer
62
+ );
63
+
64
+ // for lunr version 2
65
+ // this is necessary so that every searched word is also stemmed before
66
+ // in lunr <= 1 this is not needed, as it is done using the normal pipeline
67
+ if (this.searchPipeline) {
68
+ this.searchPipeline.reset();
69
+ this.searchPipeline.add(lunr.fr.stemmer)
70
+ }
71
+ };
72
+
73
+ /* lunr trimmer function */
74
+ lunr.fr.wordCharacters = "A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A";
75
+ lunr.fr.trimmer = lunr.trimmerSupport.generateTrimmer(lunr.fr.wordCharacters);
76
+
77
+ lunr.Pipeline.registerFunction(lunr.fr.trimmer, 'trimmer-fr');
78
+
79
+ /* lunr stemmer function */
80
+ lunr.fr.stemmer = (function() {
81
+ /* create the wrapped stemmer object */
82
+ var Among = lunr.stemmerSupport.Among,
83
+ SnowballProgram = lunr.stemmerSupport.SnowballProgram,
84
+ st = new function FrenchStemmer() {
85
+ var a_0 = [new Among("col", -1, -1), new Among("par", -1, -1),
86
+ new Among("tap", -1, -1)
87
+ ],
88
+ a_1 = [new Among("", -1, 4),
89
+ new Among("I", 0, 1), new Among("U", 0, 2), new Among("Y", 0, 3)
90
+ ],
91
+ a_2 = [
92
+ new Among("iqU", -1, 3), new Among("abl", -1, 3),
93
+ new Among("I\u00E8r", -1, 4), new Among("i\u00E8r", -1, 4),
94
+ new Among("eus", -1, 2), new Among("iv", -1, 1)
95
+ ],
96
+ a_3 = [
97
+ new Among("ic", -1, 2), new Among("abil", -1, 1),
98
+ new Among("iv", -1, 3)
99
+ ],
100
+ a_4 = [new Among("iqUe", -1, 1),
101
+ new Among("atrice", -1, 2), new Among("ance", -1, 1),
102
+ new Among("ence", -1, 5), new Among("logie", -1, 3),
103
+ new Among("able", -1, 1), new Among("isme", -1, 1),
104
+ new Among("euse", -1, 11), new Among("iste", -1, 1),
105
+ new Among("ive", -1, 8), new Among("if", -1, 8),
106
+ new Among("usion", -1, 4), new Among("ation", -1, 2),
107
+ new Among("ution", -1, 4), new Among("ateur", -1, 2),
108
+ new Among("iqUes", -1, 1), new Among("atrices", -1, 2),
109
+ new Among("ances", -1, 1), new Among("ences", -1, 5),
110
+ new Among("logies", -1, 3), new Among("ables", -1, 1),
111
+ new Among("ismes", -1, 1), new Among("euses", -1, 11),
112
+ new Among("istes", -1, 1), new Among("ives", -1, 8),
113
+ new Among("ifs", -1, 8), new Among("usions", -1, 4),
114
+ new Among("ations", -1, 2), new Among("utions", -1, 4),
115
+ new Among("ateurs", -1, 2), new Among("ments", -1, 15),
116
+ new Among("ements", 30, 6), new Among("issements", 31, 12),
117
+ new Among("it\u00E9s", -1, 7), new Among("ment", -1, 15),
118
+ new Among("ement", 34, 6), new Among("issement", 35, 12),
119
+ new Among("amment", 34, 13), new Among("emment", 34, 14),
120
+ new Among("aux", -1, 10), new Among("eaux", 39, 9),
121
+ new Among("eux", -1, 1), new Among("it\u00E9", -1, 7)
122
+ ],
123
+ a_5 = [
124
+ new Among("ira", -1, 1), new Among("ie", -1, 1),
125
+ new Among("isse", -1, 1), new Among("issante", -1, 1),
126
+ new Among("i", -1, 1), new Among("irai", 4, 1),
127
+ new Among("ir", -1, 1), new Among("iras", -1, 1),
128
+ new Among("ies", -1, 1), new Among("\u00EEmes", -1, 1),
129
+ new Among("isses", -1, 1), new Among("issantes", -1, 1),
130
+ new Among("\u00EEtes", -1, 1), new Among("is", -1, 1),
131
+ new Among("irais", 13, 1), new Among("issais", 13, 1),
132
+ new Among("irions", -1, 1), new Among("issions", -1, 1),
133
+ new Among("irons", -1, 1), new Among("issons", -1, 1),
134
+ new Among("issants", -1, 1), new Among("it", -1, 1),
135
+ new Among("irait", 21, 1), new Among("issait", 21, 1),
136
+ new Among("issant", -1, 1), new Among("iraIent", -1, 1),
137
+ new Among("issaIent", -1, 1), new Among("irent", -1, 1),
138
+ new Among("issent", -1, 1), new Among("iront", -1, 1),
139
+ new Among("\u00EEt", -1, 1), new Among("iriez", -1, 1),
140
+ new Among("issiez", -1, 1), new Among("irez", -1, 1),
141
+ new Among("issez", -1, 1)
142
+ ],
143
+ a_6 = [new Among("a", -1, 3),
144
+ new Among("era", 0, 2), new Among("asse", -1, 3),
145
+ new Among("ante", -1, 3), new Among("\u00E9e", -1, 2),
146
+ new Among("ai", -1, 3), new Among("erai", 5, 2),
147
+ new Among("er", -1, 2), new Among("as", -1, 3),
148
+ new Among("eras", 8, 2), new Among("\u00E2mes", -1, 3),
149
+ new Among("asses", -1, 3), new Among("antes", -1, 3),
150
+ new Among("\u00E2tes", -1, 3), new Among("\u00E9es", -1, 2),
151
+ new Among("ais", -1, 3), new Among("erais", 15, 2),
152
+ new Among("ions", -1, 1), new Among("erions", 17, 2),
153
+ new Among("assions", 17, 3), new Among("erons", -1, 2),
154
+ new Among("ants", -1, 3), new Among("\u00E9s", -1, 2),
155
+ new Among("ait", -1, 3), new Among("erait", 23, 2),
156
+ new Among("ant", -1, 3), new Among("aIent", -1, 3),
157
+ new Among("eraIent", 26, 2), new Among("\u00E8rent", -1, 2),
158
+ new Among("assent", -1, 3), new Among("eront", -1, 2),
159
+ new Among("\u00E2t", -1, 3), new Among("ez", -1, 2),
160
+ new Among("iez", 32, 2), new Among("eriez", 33, 2),
161
+ new Among("assiez", 33, 3), new Among("erez", 32, 2),
162
+ new Among("\u00E9", -1, 2)
163
+ ],
164
+ a_7 = [new Among("e", -1, 3),
165
+ new Among("I\u00E8re", 0, 2), new Among("i\u00E8re", 0, 2),
166
+ new Among("ion", -1, 1), new Among("Ier", -1, 2),
167
+ new Among("ier", -1, 2), new Among("\u00EB", -1, 4)
168
+ ],
169
+ a_8 = [
170
+ new Among("ell", -1, -1), new Among("eill", -1, -1),
171
+ new Among("enn", -1, -1), new Among("onn", -1, -1),
172
+ new Among("ett", -1, -1)
173
+ ],
174
+ g_v = [17, 65, 16, 1, 0, 0, 0, 0, 0, 0,
175
+ 0, 0, 0, 0, 0, 128, 130, 103, 8, 5
176
+ ],
177
+ g_keep_with_s = [1, 65, 20, 0,
178
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128
179
+ ],
180
+ I_p2, I_p1, I_pV, sbp = new SnowballProgram();
181
+ this.setCurrent = function(word) {
182
+ sbp.setCurrent(word);
183
+ };
184
+ this.getCurrent = function() {
185
+ return sbp.getCurrent();
186
+ };
187
+
188
+ function habr1(c1, c2, v_1) {
189
+ if (sbp.eq_s(1, c1)) {
190
+ sbp.ket = sbp.cursor;
191
+ if (sbp.in_grouping(g_v, 97, 251)) {
192
+ sbp.slice_from(c2);
193
+ sbp.cursor = v_1;
194
+ return true;
195
+ }
196
+ }
197
+ return false;
198
+ }
199
+
200
+ function habr2(c1, c2, v_1) {
201
+ if (sbp.eq_s(1, c1)) {
202
+ sbp.ket = sbp.cursor;
203
+ sbp.slice_from(c2);
204
+ sbp.cursor = v_1;
205
+ return true;
206
+ }
207
+ return false;
208
+ }
209
+
210
+ function r_prelude() {
211
+ var v_1, v_2;
212
+ while (true) {
213
+ v_1 = sbp.cursor;
214
+ if (sbp.in_grouping(g_v, 97, 251)) {
215
+ sbp.bra = sbp.cursor;
216
+ v_2 = sbp.cursor;
217
+ if (habr1("u", "U", v_1))
218
+ continue;
219
+ sbp.cursor = v_2;
220
+ if (habr1("i", "I", v_1))
221
+ continue;
222
+ sbp.cursor = v_2;
223
+ if (habr2("y", "Y", v_1))
224
+ continue;
225
+ }
226
+ sbp.cursor = v_1;
227
+ sbp.bra = v_1;
228
+ if (!habr1("y", "Y", v_1)) {
229
+ sbp.cursor = v_1;
230
+ if (sbp.eq_s(1, "q")) {
231
+ sbp.bra = sbp.cursor;
232
+ if (habr2("u", "U", v_1))
233
+ continue;
234
+ }
235
+ sbp.cursor = v_1;
236
+ if (v_1 >= sbp.limit)
237
+ return;
238
+ sbp.cursor++;
239
+ }
240
+ }
241
+ }
242
+
243
+ function habr3() {
244
+ while (!sbp.in_grouping(g_v, 97, 251)) {
245
+ if (sbp.cursor >= sbp.limit)
246
+ return true;
247
+ sbp.cursor++;
248
+ }
249
+ while (!sbp.out_grouping(g_v, 97, 251)) {
250
+ if (sbp.cursor >= sbp.limit)
251
+ return true;
252
+ sbp.cursor++;
253
+ }
254
+ return false;
255
+ }
256
+
257
+ function r_mark_regions() {
258
+ var v_1 = sbp.cursor;
259
+ I_pV = sbp.limit;
260
+ I_p1 = I_pV;
261
+ I_p2 = I_pV;
262
+ if (sbp.in_grouping(g_v, 97, 251) && sbp.in_grouping(g_v, 97, 251) &&
263
+ sbp.cursor < sbp.limit)
264
+ sbp.cursor++;
265
+ else {
266
+ sbp.cursor = v_1;
267
+ if (!sbp.find_among(a_0, 3)) {
268
+ sbp.cursor = v_1;
269
+ do {
270
+ if (sbp.cursor >= sbp.limit) {
271
+ sbp.cursor = I_pV;
272
+ break;
273
+ }
274
+ sbp.cursor++;
275
+ } while (!sbp.in_grouping(g_v, 97, 251));
276
+ }
277
+ }
278
+ I_pV = sbp.cursor;
279
+ sbp.cursor = v_1;
280
+ if (!habr3()) {
281
+ I_p1 = sbp.cursor;
282
+ if (!habr3())
283
+ I_p2 = sbp.cursor;
284
+ }
285
+ }
286
+
287
+ function r_postlude() {
288
+ var among_var, v_1;
289
+ while (true) {
290
+ v_1 = sbp.cursor;
291
+ sbp.bra = v_1;
292
+ among_var = sbp.find_among(a_1, 4);
293
+ if (!among_var)
294
+ break;
295
+ sbp.ket = sbp.cursor;
296
+ switch (among_var) {
297
+ case 1:
298
+ sbp.slice_from("i");
299
+ break;
300
+ case 2:
301
+ sbp.slice_from("u");
302
+ break;
303
+ case 3:
304
+ sbp.slice_from("y");
305
+ break;
306
+ case 4:
307
+ if (sbp.cursor >= sbp.limit)
308
+ return;
309
+ sbp.cursor++;
310
+ break;
311
+ }
312
+ }
313
+ }
314
+
315
+ function r_RV() {
316
+ return I_pV <= sbp.cursor;
317
+ }
318
+
319
+ function r_R1() {
320
+ return I_p1 <= sbp.cursor;
321
+ }
322
+
323
+ function r_R2() {
324
+ return I_p2 <= sbp.cursor;
325
+ }
326
+
327
+ function r_standard_suffix() {
328
+ var among_var, v_1;
329
+ sbp.ket = sbp.cursor;
330
+ among_var = sbp.find_among_b(a_4, 43);
331
+ if (among_var) {
332
+ sbp.bra = sbp.cursor;
333
+ switch (among_var) {
334
+ case 1:
335
+ if (!r_R2())
336
+ return false;
337
+ sbp.slice_del();
338
+ break;
339
+ case 2:
340
+ if (!r_R2())
341
+ return false;
342
+ sbp.slice_del();
343
+ sbp.ket = sbp.cursor;
344
+ if (sbp.eq_s_b(2, "ic")) {
345
+ sbp.bra = sbp.cursor;
346
+ if (!r_R2())
347
+ sbp.slice_from("iqU");
348
+ else
349
+ sbp.slice_del();
350
+ }
351
+ break;
352
+ case 3:
353
+ if (!r_R2())
354
+ return false;
355
+ sbp.slice_from("log");
356
+ break;
357
+ case 4:
358
+ if (!r_R2())
359
+ return false;
360
+ sbp.slice_from("u");
361
+ break;
362
+ case 5:
363
+ if (!r_R2())
364
+ return false;
365
+ sbp.slice_from("ent");
366
+ break;
367
+ case 6:
368
+ if (!r_RV())
369
+ return false;
370
+ sbp.slice_del();
371
+ sbp.ket = sbp.cursor;
372
+ among_var = sbp.find_among_b(a_2, 6);
373
+ if (among_var) {
374
+ sbp.bra = sbp.cursor;
375
+ switch (among_var) {
376
+ case 1:
377
+ if (r_R2()) {
378
+ sbp.slice_del();
379
+ sbp.ket = sbp.cursor;
380
+ if (sbp.eq_s_b(2, "at")) {
381
+ sbp.bra = sbp.cursor;
382
+ if (r_R2())
383
+ sbp.slice_del();
384
+ }
385
+ }
386
+ break;
387
+ case 2:
388
+ if (r_R2())
389
+ sbp.slice_del();
390
+ else if (r_R1())
391
+ sbp.slice_from("eux");
392
+ break;
393
+ case 3:
394
+ if (r_R2())
395
+ sbp.slice_del();
396
+ break;
397
+ case 4:
398
+ if (r_RV())
399
+ sbp.slice_from("i");
400
+ break;
401
+ }
402
+ }
403
+ break;
404
+ case 7:
405
+ if (!r_R2())
406
+ return false;
407
+ sbp.slice_del();
408
+ sbp.ket = sbp.cursor;
409
+ among_var = sbp.find_among_b(a_3, 3);
410
+ if (among_var) {
411
+ sbp.bra = sbp.cursor;
412
+ switch (among_var) {
413
+ case 1:
414
+ if (r_R2())
415
+ sbp.slice_del();
416
+ else
417
+ sbp.slice_from("abl");
418
+ break;
419
+ case 2:
420
+ if (r_R2())
421
+ sbp.slice_del();
422
+ else
423
+ sbp.slice_from("iqU");
424
+ break;
425
+ case 3:
426
+ if (r_R2())
427
+ sbp.slice_del();
428
+ break;
429
+ }
430
+ }
431
+ break;
432
+ case 8:
433
+ if (!r_R2())
434
+ return false;
435
+ sbp.slice_del();
436
+ sbp.ket = sbp.cursor;
437
+ if (sbp.eq_s_b(2, "at")) {
438
+ sbp.bra = sbp.cursor;
439
+ if (r_R2()) {
440
+ sbp.slice_del();
441
+ sbp.ket = sbp.cursor;
442
+ if (sbp.eq_s_b(2, "ic")) {
443
+ sbp.bra = sbp.cursor;
444
+ if (r_R2())
445
+ sbp.slice_del();
446
+ else
447
+ sbp.slice_from("iqU");
448
+ break;
449
+ }
450
+ }
451
+ }
452
+ break;
453
+ case 9:
454
+ sbp.slice_from("eau");
455
+ break;
456
+ case 10:
457
+ if (!r_R1())
458
+ return false;
459
+ sbp.slice_from("al");
460
+ break;
461
+ case 11:
462
+ if (r_R2())
463
+ sbp.slice_del();
464
+ else if (!r_R1())
465
+ return false;
466
+ else
467
+ sbp.slice_from("eux");
468
+ break;
469
+ case 12:
470
+ if (!r_R1() || !sbp.out_grouping_b(g_v, 97, 251))
471
+ return false;
472
+ sbp.slice_del();
473
+ break;
474
+ case 13:
475
+ if (r_RV())
476
+ sbp.slice_from("ant");
477
+ return false;
478
+ case 14:
479
+ if (r_RV())
480
+ sbp.slice_from("ent");
481
+ return false;
482
+ case 15:
483
+ v_1 = sbp.limit - sbp.cursor;
484
+ if (sbp.in_grouping_b(g_v, 97, 251) && r_RV()) {
485
+ sbp.cursor = sbp.limit - v_1;
486
+ sbp.slice_del();
487
+ }
488
+ return false;
489
+ }
490
+ return true;
491
+ }
492
+ return false;
493
+ }
494
+
495
+ function r_i_verb_suffix() {
496
+ var among_var, v_1;
497
+ if (sbp.cursor < I_pV)
498
+ return false;
499
+ v_1 = sbp.limit_backward;
500
+ sbp.limit_backward = I_pV;
501
+ sbp.ket = sbp.cursor;
502
+ among_var = sbp.find_among_b(a_5, 35);
503
+ if (!among_var) {
504
+ sbp.limit_backward = v_1;
505
+ return false;
506
+ }
507
+ sbp.bra = sbp.cursor;
508
+ if (among_var == 1) {
509
+ if (!sbp.out_grouping_b(g_v, 97, 251)) {
510
+ sbp.limit_backward = v_1;
511
+ return false;
512
+ }
513
+ sbp.slice_del();
514
+ }
515
+ sbp.limit_backward = v_1;
516
+ return true;
517
+ }
518
+
519
+ function r_verb_suffix() {
520
+ var among_var, v_2, v_3;
521
+ if (sbp.cursor < I_pV)
522
+ return false;
523
+ v_2 = sbp.limit_backward;
524
+ sbp.limit_backward = I_pV;
525
+ sbp.ket = sbp.cursor;
526
+ among_var = sbp.find_among_b(a_6, 38);
527
+ if (!among_var) {
528
+ sbp.limit_backward = v_2;
529
+ return false;
530
+ }
531
+ sbp.bra = sbp.cursor;
532
+ switch (among_var) {
533
+ case 1:
534
+ if (!r_R2()) {
535
+ sbp.limit_backward = v_2;
536
+ return false;
537
+ }
538
+ sbp.slice_del();
539
+ break;
540
+ case 2:
541
+ sbp.slice_del();
542
+ break;
543
+ case 3:
544
+ sbp.slice_del();
545
+ v_3 = sbp.limit - sbp.cursor;
546
+ sbp.ket = sbp.cursor;
547
+ if (sbp.eq_s_b(1, "e")) {
548
+ sbp.bra = sbp.cursor;
549
+ sbp.slice_del();
550
+ } else
551
+ sbp.cursor = sbp.limit - v_3;
552
+ break;
553
+ }
554
+ sbp.limit_backward = v_2;
555
+ return true;
556
+ }
557
+
558
+ function r_residual_suffix() {
559
+ var among_var, v_1 = sbp.limit - sbp.cursor,
560
+ v_2, v_4, v_5;
561
+ sbp.ket = sbp.cursor;
562
+ if (sbp.eq_s_b(1, "s")) {
563
+ sbp.bra = sbp.cursor;
564
+ v_2 = sbp.limit - sbp.cursor;
565
+ if (sbp.out_grouping_b(g_keep_with_s, 97, 232)) {
566
+ sbp.cursor = sbp.limit - v_2;
567
+ sbp.slice_del();
568
+ } else
569
+ sbp.cursor = sbp.limit - v_1;
570
+ } else
571
+ sbp.cursor = sbp.limit - v_1;
572
+ if (sbp.cursor >= I_pV) {
573
+ v_4 = sbp.limit_backward;
574
+ sbp.limit_backward = I_pV;
575
+ sbp.ket = sbp.cursor;
576
+ among_var = sbp.find_among_b(a_7, 7);
577
+ if (among_var) {
578
+ sbp.bra = sbp.cursor;
579
+ switch (among_var) {
580
+ case 1:
581
+ if (r_R2()) {
582
+ v_5 = sbp.limit - sbp.cursor;
583
+ if (!sbp.eq_s_b(1, "s")) {
584
+ sbp.cursor = sbp.limit - v_5;
585
+ if (!sbp.eq_s_b(1, "t"))
586
+ break;
587
+ }
588
+ sbp.slice_del();
589
+ }
590
+ break;
591
+ case 2:
592
+ sbp.slice_from("i");
593
+ break;
594
+ case 3:
595
+ sbp.slice_del();
596
+ break;
597
+ case 4:
598
+ if (sbp.eq_s_b(2, "gu"))
599
+ sbp.slice_del();
600
+ break;
601
+ }
602
+ }
603
+ sbp.limit_backward = v_4;
604
+ }
605
+ }
606
+
607
+ function r_un_double() {
608
+ var v_1 = sbp.limit - sbp.cursor;
609
+ if (sbp.find_among_b(a_8, 5)) {
610
+ sbp.cursor = sbp.limit - v_1;
611
+ sbp.ket = sbp.cursor;
612
+ if (sbp.cursor > sbp.limit_backward) {
613
+ sbp.cursor--;
614
+ sbp.bra = sbp.cursor;
615
+ sbp.slice_del();
616
+ }
617
+ }
618
+ }
619
+
620
+ function r_un_accent() {
621
+ var v_1, v_2 = 1;
622
+ while (sbp.out_grouping_b(g_v, 97, 251))
623
+ v_2--;
624
+ if (v_2 <= 0) {
625
+ sbp.ket = sbp.cursor;
626
+ v_1 = sbp.limit - sbp.cursor;
627
+ if (!sbp.eq_s_b(1, "\u00E9")) {
628
+ sbp.cursor = sbp.limit - v_1;
629
+ if (!sbp.eq_s_b(1, "\u00E8"))
630
+ return;
631
+ }
632
+ sbp.bra = sbp.cursor;
633
+ sbp.slice_from("e");
634
+ }
635
+ }
636
+
637
+ function habr5() {
638
+ if (!r_standard_suffix()) {
639
+ sbp.cursor = sbp.limit;
640
+ if (!r_i_verb_suffix()) {
641
+ sbp.cursor = sbp.limit;
642
+ if (!r_verb_suffix()) {
643
+ sbp.cursor = sbp.limit;
644
+ r_residual_suffix();
645
+ return;
646
+ }
647
+ }
648
+ }
649
+ sbp.cursor = sbp.limit;
650
+ sbp.ket = sbp.cursor;
651
+ if (sbp.eq_s_b(1, "Y")) {
652
+ sbp.bra = sbp.cursor;
653
+ sbp.slice_from("i");
654
+ } else {
655
+ sbp.cursor = sbp.limit;
656
+ if (sbp.eq_s_b(1, "\u00E7")) {
657
+ sbp.bra = sbp.cursor;
658
+ sbp.slice_from("c");
659
+ }
660
+ }
661
+ }
662
+ this.stem = function() {
663
+ var v_1 = sbp.cursor;
664
+ r_prelude();
665
+ sbp.cursor = v_1;
666
+ r_mark_regions();
667
+ sbp.limit_backward = v_1;
668
+ sbp.cursor = sbp.limit;
669
+ habr5();
670
+ sbp.cursor = sbp.limit;
671
+ r_un_double();
672
+ sbp.cursor = sbp.limit;
673
+ r_un_accent();
674
+ sbp.cursor = sbp.limit_backward;
675
+ r_postlude();
676
+ return true;
677
+ }
678
+ };
679
+
680
+ /* and return a function that stems a word for the current locale */
681
+ return function(token) {
682
+ // for lunr version 2
683
+ if (typeof token.update === "function") {
684
+ return token.update(function(word) {
685
+ st.setCurrent(word);
686
+ st.stem();
687
+ return st.getCurrent();
688
+ })
689
+ } else { // for lunr version <= 1
690
+ st.setCurrent(token);
691
+ st.stem();
692
+ return st.getCurrent();
693
+ }
694
+ }
695
+ })();
696
+
697
+ lunr.Pipeline.registerFunction(lunr.fr.stemmer, 'stemmer-fr');
698
+
699
+ lunr.fr.stopWordFilter = lunr.generateStopWordFilter('ai aie aient aies ait as au aura aurai auraient aurais aurait auras aurez auriez aurions aurons auront aux avaient avais avait avec avez aviez avions avons ayant ayez ayons c ce ceci celà ces cet cette d dans de des du elle en es est et eu eue eues eurent eus eusse eussent eusses eussiez eussions eut eux eûmes eût eûtes furent fus fusse fussent fusses fussiez fussions fut fûmes fût fûtes ici il ils j je l la le les leur leurs lui m ma mais me mes moi mon même n ne nos notre nous on ont ou par pas pour qu que quel quelle quelles quels qui s sa sans se sera serai seraient serais serait seras serez seriez serions serons seront ses soi soient sois soit sommes son sont soyez soyons suis sur t ta te tes toi ton tu un une vos votre vous y à étaient étais était étant étiez étions été étée étées étés êtes'.split(' '));
700
+
701
+ lunr.Pipeline.registerFunction(lunr.fr.stopWordFilter, 'stopWordFilter-fr');
702
+ };
703
+ }))