aboutsummaryrefslogtreecommitdiffstats
path: root/installer/7/ca/content/search
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2019-07-02 16:00:41 +0200
committerPapoteur <papoteur@mageia.org>2019-07-02 16:00:41 +0200
commit6c701ecffa0e66ba1f8dbfff4a9f70470188dd7c (patch)
tree78de529ae1bcda9ee861f048711e23dbe30ea92a /installer/7/ca/content/search
parentfefd76c8bec0b42e3693c2456af2a854c66851f9 (diff)
downloaddoc-6c701ecffa0e66ba1f8dbfff4a9f70470188dd7c.tar
doc-6c701ecffa0e66ba1f8dbfff4a9f70470188dd7c.tar.gz
doc-6c701ecffa0e66ba1f8dbfff4a9f70470188dd7c.tar.bz2
doc-6c701ecffa0e66ba1f8dbfff4a9f70470188dd7c.tar.xz
doc-6c701ecffa0e66ba1f8dbfff4a9f70470188dd7c.zip
Adding or refreshing installer in ca
Diffstat (limited to 'installer/7/ca/content/search')
-rw-r--r--installer/7/ca/content/search/default.props1
-rw-r--r--installer/7/ca/content/search/en-us.props45
-rw-r--r--installer/7/ca/content/search/es-es.props179
-rw-r--r--installer/7/ca/content/search/htmlFileInfoList.js23
-rw-r--r--installer/7/ca/content/search/htmlFileList.js24
-rw-r--r--installer/7/ca/content/search/index-1.js482
-rw-r--r--installer/7/ca/content/search/index-2.js481
-rw-r--r--installer/7/ca/content/search/index-3.js479
-rw-r--r--installer/7/ca/content/search/ja-jp.props1
-rw-r--r--installer/7/ca/content/search/nwSearchFnt.js513
-rw-r--r--installer/7/ca/content/search/punctuation.props31
-rw-r--r--installer/7/ca/content/search/stemmers/de_stemmer.js247
-rw-r--r--installer/7/ca/content/search/stemmers/en_stemmer.js187
-rw-r--r--installer/7/ca/content/search/stemmers/fr_stemmer.js299
14 files changed, 2992 insertions, 0 deletions
diff --git a/installer/7/ca/content/search/default.props b/installer/7/ca/content/search/default.props
new file mode 100644
index 00000000..22edf439
--- /dev/null
+++ b/installer/7/ca/content/search/default.props
@@ -0,0 +1 @@
+DEF01=a \ No newline at end of file
diff --git a/installer/7/ca/content/search/en-us.props b/installer/7/ca/content/search/en-us.props
new file mode 100644
index 00000000..da284ce5
--- /dev/null
+++ b/installer/7/ca/content/search/en-us.props
@@ -0,0 +1,45 @@
+DEF01=this
+DEF02=is
+DEF03=the
+DEF04=in
+DEF05=i
+DEF06=on
+DEF07=a
+DEF08=about
+DEF09=an
+DEF10=are
+DEF11=as
+DEF12=at
+DEF13=be
+DEF14=by
+DEF15=com
+DEF16=de
+DEF17=en
+DEF18=for
+DEF19=from
+DEF20=how
+DEF21=it
+DEF22=la
+DEF23=of
+DEF24=on
+DEF25=or
+DEF26=that
+DEF27=to
+DEF28=was
+DEF29=what
+DEF30=when
+DEF31=where
+DEF32=who
+DEF33=will
+DEF34=with
+DEF35=und
+DEF36=Next
+DEF37=Prev
+DEF38=Home
+DEF39=Motive
+DEF40=Inc
+DEF41=Copyright
+DEF42=All
+DEF43=rights
+DEF44=reserved
+DEF45=Up \ No newline at end of file
diff --git a/installer/7/ca/content/search/es-es.props b/installer/7/ca/content/search/es-es.props
new file mode 100644
index 00000000..fb73bdcc
--- /dev/null
+++ b/installer/7/ca/content/search/es-es.props
@@ -0,0 +1,179 @@
+DEF01=un
+DEF02=una
+DEF03=unas
+DEF04=unos
+DEF05=uno
+DEF06=sobre
+DEF07=todo
+DEF08=tambin
+DEF09=tras
+DEF10=otro
+DEF11=algn
+DEF12=alguno
+DEF13=alguna
+DEF14=algunos
+DEF15=algunas
+DEF16=ser
+DEF17=es
+DEF18=soy
+DEF19=eres
+DEF20=somos
+DEF21=sois
+DEF22=estoy
+DEF23=esta
+DEF24=estamos
+DEF25=estais
+DEF26=estan
+DEF27=como
+DEF28=en
+DEF29=para
+DEF30=atras
+DEF31=porque
+DEF32=por
+DEF33=estado
+DEF34=estaba
+DEF35=ante
+DEF36=antes
+DEF37=siendo
+DEF38=ambos
+DEF39=pero
+DEF40=por
+DEF41=poder
+DEF42=puede
+DEF43=puedo
+DEF44=podemos
+DEF45=podeis
+DEF46=pueden
+DEF47=fui
+DEF48=fue
+DEF49=fuimos
+DEF50=fueron
+DEF51=hacer
+DEF52=hago
+DEF53=hace
+DEF54=hacemos
+DEF55=haceis
+DEF56=hacen
+DEF57=cada
+DEF58=fin
+DEF59=incluso
+DEF60=primero
+DEF61=desde
+DEF62=conseguir
+DEF63=consigo
+DEF64=consigue
+DEF65=consigues
+DEF66=conseguimos
+DEF67=consiguen
+DEF68=ir
+DEF69=voy
+DEF70=va
+DEF71=vamos
+DEF72=vais
+DEF73=van
+DEF74=vaya
+DEF75=gueno
+DEF76=ha
+DEF77=tener
+DEF78=tengo
+DEF79=tiene
+DEF80=tenemos
+DEF81=teneis
+DEF82=tienen
+DEF83=el
+DEF84=la
+DEF85=lo
+DEF86=las
+DEF87=los
+DEF88=su
+DEF89=aqui
+DEF90=mio
+DEF91=tuyo
+DEF92=ellos
+DEF93=ellas
+DEF94=nos
+DEF95=nosotros
+DEF96=vosotros
+DEF97=vosotras
+DEF98=si
+DEF99=dentro
+DEF100=solo
+DEF101=solamente
+DEF102=saber
+DEF103=sabes
+DEF104=sabe
+DEF105=sabemos
+DEF106=sabeis
+DEF107=saben
+DEF108=ultimo
+DEF109=largo
+DEF110=bastante
+DEF111=haces
+DEF112=muchos
+DEF113=aquellos
+DEF114=aquellas
+DEF115=sus
+DEF116=entonces
+DEF117=tiempo
+DEF118=verdad
+DEF119=verdadero
+DEF120=verdadera
+DEF121=cierto
+DEF122=ciertos
+DEF123=cierta
+DEF124=ciertas
+DEF125=intentar
+DEF126=intento
+DEF127=intenta
+DEF128=intentas
+DEF129=intentamos
+DEF130=intentais
+DEF131=intentan
+DEF132=dos
+DEF133=bajo
+DEF134=arriba
+DEF135=encima
+DEF136=usar
+DEF137=uso
+DEF138=usas
+DEF139=usa
+DEF140=usamos
+DEF141=usais
+DEF142=usan
+DEF143=emplear
+DEF144=empleo
+DEF145=empleas
+DEF146=emplean
+DEF147=ampleamos
+DEF148=empleais
+DEF149=valor
+DEF150=muy
+DEF151=era
+DEF152=eras
+DEF153=eramos
+DEF154=eran
+DEF155=modo
+DEF156=bien
+DEF157=cual
+DEF158=cuando
+DEF159=donde
+DEF160=mientras
+DEF161=quien
+DEF162=con
+DEF163=entre
+DEF164=sin
+DEF165=trabajo
+DEF166=trabajar
+DEF167=trabajas
+DEF168=trabaja
+DEF169=trabajamos
+DEF170=trabajais
+DEF171=trabajan
+DEF172=podria
+DEF173=podrias
+DEF174=podriamos
+DEF175=podrian
+DEF176=podriais
+DEF177=yo
+DEF178=aquel
+DEF179=qu \ No newline at end of file
diff --git a/installer/7/ca/content/search/htmlFileInfoList.js b/installer/7/ca/content/search/htmlFileInfoList.js
new file mode 100644
index 00000000..ccefcb3c
--- /dev/null
+++ b/installer/7/ca/content/search/htmlFileInfoList.js
@@ -0,0 +1,23 @@
+fil = new Array();
+fil["0"]= "locale.html@@@Locale@@@null";
+fil["1"]= "installer.html@@@DrakX, l instal·lador de Mageia@@@null";
+fil["2"]= "selectKeyboard.html@@@Teclat@@@null";
+fil["3"]= "diskPartitioning.html@@@Particions@@@null";
+fil["4"]= "misc-params.html@@@Configuration Summary@@@null";
+fil["5"]= "securityLevel.html@@@Nivell de seguretat@@@null";
+fil["6"]= "uninstall-Mageia.html@@@Desinstal·lació de Mageia@@@null";
+fil["7"]= "setupBootloader.html@@@Gestor d arrencada@@@null";
+fil["8"]= "selectLanguage.html@@@Trieu la llengua que voleu utilitzar@@@null";
+fil["9"]= "setupSCSI.html@@@Configuració SCSI@@@null";
+fil["10"]= "installUpdates.html@@@Actualitzacions@@@null";
+fil["11"]= "Select-and-use-ISOs.html@@@Selecció i utilització de les ISO@@@null";
+fil["12"]= "configureServices.html@@@Configuració dels serveis@@@null";
+fil["13"]= "graphicalConfiguration.html@@@Graphical Configuration@@@null";
+fil["14"]= "soundConfig.html@@@Configuració del so@@@null";
+fil["15"]= "acceptLicense.html@@@Llicència i notes de la versió@@@null";
+fil["16"]= "firewall.html@@@Tallafoc@@@null";
+fil["17"]= "addUser.html@@@User Management@@@null";
+fil["18"]= "software.html@@@Software@@@null";
+fil["19"]= "selectInstallClass.html@@@Instal·lació o actualització@@@null";
+fil["20"]= "exitInstall.html@@@Enhorabona@@@null";
+fil["21"]= "selectMouse.html@@@Selecció del ratolí@@@null";
diff --git a/installer/7/ca/content/search/htmlFileList.js b/installer/7/ca/content/search/htmlFileList.js
new file mode 100644
index 00000000..3ed91459
--- /dev/null
+++ b/installer/7/ca/content/search/htmlFileList.js
@@ -0,0 +1,24 @@
+//List of files which are indexed.
+fl = new Array();
+fl["0"]= "locale.html";
+fl["1"]= "installer.html";
+fl["2"]= "selectKeyboard.html";
+fl["3"]= "diskPartitioning.html";
+fl["4"]= "misc-params.html";
+fl["5"]= "securityLevel.html";
+fl["6"]= "uninstall-Mageia.html";
+fl["7"]= "setupBootloader.html";
+fl["8"]= "selectLanguage.html";
+fl["9"]= "setupSCSI.html";
+fl["10"]= "installUpdates.html";
+fl["11"]= "Select-and-use-ISOs.html";
+fl["12"]= "configureServices.html";
+fl["13"]= "graphicalConfiguration.html";
+fl["14"]= "soundConfig.html";
+fl["15"]= "acceptLicense.html";
+fl["16"]= "firewall.html";
+fl["17"]= "addUser.html";
+fl["18"]= "software.html";
+fl["19"]= "selectInstallClass.html";
+fl["20"]= "exitInstall.html";
+fl["21"]= "selectMouse.html";
diff --git a/installer/7/ca/content/search/index-1.js b/installer/7/ca/content/search/index-1.js
new file mode 100644
index 00000000..923e58df
--- /dev/null
+++ b/installer/7/ca/content/search/index-1.js
@@ -0,0 +1,482 @@
+var indexerLanguage="en";
+//Auto generated index for searching.
+w["-"]="1,3,4,5,6,11,16,17,18";
+w["-call"]="3";
+w["-charg"]="18";
+w["-green"]="17";
+w["-implement"]="5";
+w["-l"]="11";
+w["-sa"]="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21";
+w["-yellow-"]="17";
+w["0"]="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21";
+w["00"]="11";
+w["0027"]="17";
+w["0x2"]="11";
+w["0x81"]="11";
+w["1"]="3,7,11";
+w["1-1"]="11";
+w["100"]="11";
+w["1000"]="11";
+w["1024x768"]="13";
+w["1100"]="11";
+w["12"]="3";
+w["128"]="11";
+w["14"]="11";
+w["160"]="3";
+w["18mjtwlmpucc3ssb"]="11";
+w["19"]="3";
+w["1m"]="11";
+w["2"]="3,7,11,16,21";
+w["255"]="11";
+w["256m"]="1";
+w["256mb"]="1";
+w["27"]="11";
+w["2gb"]="11";
+w["3"]="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21";
+w["30"]="13";
+w["32"]="11";
+w["32-bit"]="18";
+w["4"]="3,11";
+w["40"]="13";
+w["4096"]="3";
+w["4194304"]="11";
+w["43"]="11";
+w["4gb"]="11";
+w["5"]="3";
+w["50"]="3";
+w["512"]="3";
+w["512-byte"]="11";
+w["6"]="3";
+w["604531"]="11";
+w["60hz"]="13";
+w["64-bit"]="11,18";
+w["7"]="6";
+w["72594"]="11";
+w["72595"]="11";
+w["770528"]="11";
+w["770533"]="11";
+w["770536"]="11";
+w["770537"]="11";
+w["770539"]="11";
+w["770713"]="11";
+w["770719"]="11";
+w["771122"]="11";
+w["772447"]="11";
+w["8"]="7,11";
+w["8564"]="11";
+w["873"]="16";
+w["8gb"]="11";
+w["963238"]="11";
+w["963626"]="11";
+w["964104"]="11";
+w["964108"]="11";
+w["965025"]="11";
+w["965031"]="11";
+w["967251"]="11";
+w["969446"]="11";
+w["@"]="13";
+w["@localhost"]="5";
+w["abl"]="9,13,18";
+w["abort"]="1";
+w["about"]="1,3,11,14,15,18";
+w["abov"]="1,3,7,11";
+w["absolut"]="7";
+w["accept"]="4,15,16";
+w["access"]="0,1,7,11,13,16,18";
+w["accord"]="3,4";
+w["accé"]="17";
+w["acord"]="15";
+w["acpi"]="7";
+w["act"]="4";
+w["action"]="3";
+w["activ"]="18";
+w["actual"]="0,3,4,11,14,18";
+w["actualitzacion"]="10";
+w["actualització"]="1,19";
+w["ad"]="0,7,17,18";
+w["add"]="4,7,8,11,17,18";
+w["addició"]="7";
+w["addit"]="18,19";
+w["address"]="5";
+w["adequ"]="4";
+w["adequat"]="2";
+w["adjust"]="3,5";
+w["administr"]="4,5,6,11,17";
+w["administrador"]="5,17";
+w["advanc"]="1,3,4,7,14,16,17";
+w["advic"]="14";
+w["advis"]="8,17,18";
+w["afegir"]="4";
+w["after"]="0,1,2,4,6,8,11,13,18,20";
+w["again"]="3,7,13,17";
+w["against"]="11";
+w["agrada"]="21";
+w["agre"]="3";
+w["això"]="3";
+w["ajudar-vo"]="1";
+w["ajustat"]="20";
+w["al"]="2,3,7";
+w["alert"]="5";
+w["algorithm"]="11";
+w["align"]="3";
+w["all"]="0,1,3,7,8,11,12,13,16,17,18";
+w["alloc"]="3,4";
+w["allow"]="0,1,3,4,5,7,11,13,16,17";
+w["along"]="3";
+w["alphanumer"]="11";
+w["alreadi"]="3,4,7,18";
+w["also"]="0,1,3,4,6,8,11,13,17,18";
+w["alt"]="1,19";
+w["altament"]="3";
+w["altern"]="1,3,4,11,14";
+w["although"]="7";
+w["altr"]="4,7,21";
+w["altra"]="2";
+w["alway"]="5,6,13";
+w["amb"]="1,2,3,13";
+w["amd"]="18";
+w["amount"]="1";
+w["ani"]="3,11,13,14,17,18,20,21";
+w["anoth"]="1,7,18";
+w["ansi"]="11";
+w["answer"]="13";
+w["anyth"]="4,6,13,17";
+w["apic"]="7";
+w["appear"]="1,13";
+w["append"]="7";
+w["appli"]="0,2,8,13,15";
+w["applic"]="11,13,17,18";
+w["appropri"]="4,13,14";
+w["aprofitarà"]="3";
+w["apuntador"]="4";
+w["aquest"]="17";
+w["aquesta"]="3";
+w["aquí"]="2,4,12,18,21";
+w["arbr"]="13";
+w["architectur"]="11";
+w["aren"]="10";
+w["arrang"]="18";
+w["arrencada"]="7,20";
+w["arrenqueu"]="12";
+w["ask"]="2,13";
+w["aspx"]="1";
+w["assegureu-vo"]="0,2";
+w["assign"]="16";
+w["assum"]="11";
+w["atenció"]="1,13";
+w["attach"]="11";
+w["attack"]="4";
+w["attempt"]="4,7,11";
+w["audio"]="18";
+w["automat"]="1,3,7,13";
+w["automàtica"]="20";
+w["autònom"]="11";
+w["avail"]="1,3,4,6,7,11,13,14,17,18";
+w["avançat"]="14";
+w["averag"]="5,17";
+w["aví"]="3,4,11,13";
+w["awar"]="4,13";
+w["back"]="1,3,6";
+w["background"]="4";
+w["bad"]="3";
+w["baixad"]="11";
+w["baixada"]="11";
+w["bandwidth"]="11";
+w["base"]="2,13,18";
+w["bash"]="17";
+w["basic"]="1,13,18";
+w["be"]="0,19";
+w["bear"]="4";
+w["becaus"]="6,11,13";
+w["becom"]="11,18";
+w["been"]="1,3,4,10,19";
+w["befor"]="0,1,3,4,7,15";
+w["behaviour"]="7";
+w["below"]="3,4,18";
+w["benvinguda"]="1";
+w["best"]="4,11,17";
+w["better"]="4,19";
+w["between"]="2,3,4";
+w["beyond"]="7";
+w["bio"]="1,3,7";
+w["bittorr"]="11";
+w["black"]="1";
+w["blank"]="3,16,17";
+w["block"]="3,11";
+w["blue"]="3";
+w["bola"]="4";
+w["bolcat"]="11";
+w["boot"]="1,3,6,7,11";
+w["bootabl"]="7,11";
+w["bootload"]="1,4,7,20";
+w["both"]="3,6,11,16,17,18";
+w["bottom"]="0,18";
+w["botó"]="17";
+w["box"]="7,17";
+w["bs"]="11";
+w["burn"]="11";
+w["but"]="1,3,4,7,11,14,17,18,19";
+w["button"]="1,13,15,16,18,21";
+w["bypass"]="1";
+w["byte"]="3";
+w["bé"]="0,2";
+w["ca"]="2";
+w["cach"]="11";
+w["cal"]="3,18";
+w["call"]="11,13,17";
+w["candi"]="18";
+w["cannot"]="11,13";
+w["canviar"]="17";
+w["canvieu"]="12";
+w["cap"]="2";
+w["capabl"]="13";
+w["capac"]="3,11";
+w["capacitat"]="13";
+w["característiqu"]="11";
+w["card"]="1,4,13,14,18";
+w["care"]="3,4,6,15";
+w["cas"]="13";
+w["case"]="1,4,7,11,13,14,16,17";
+w["case-sensit"]="17";
+w["casella"]="12";
+w["categori"]="13";
+w["caus"]="7";
+w["cc"]="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21";
+w["cc776315"]="1";
+w["cd"]="11";
+w["center"]="4,5,8,14,16";
+w["certain"]="4";
+w["cfg"]="7";
+w["chain-load"]="7";
+w["chang"]="3,4,6,7,8,11,17";
+w["channel"]="4";
+w["charact"]="0,2,11,17";
+w["characterist"]="13";
+w["check"]="3,4,7,11,16,17";
+w["checksum"]="11";
+w["chines"]="0";
+w["choic"]="0,2,3,4,5,11,14,18,19,21";
+w["choos"]="0,2,3,4,5,6,7,8,11,13,14,17,18,20";
+w["chose"]="12,13";
+w["chosen"]="0,2,7,8,11,14";
+w["citi"]="0";
+w["clar"]="12";
+w["classic"]="11";
+w["clean"]="11";
+w["clean”"]="11,19";
+w["clear"]="3";
+w["clic"]="17";
+w["click"]="0,2,3,4,6,7,11,12,14,15,18";
+w["clock"]="0";
+w["close"]="0";
+w["closed-sourc"]="18";
+w["clàssic"]="11";
+w["codec"]="11,18";
+w["color"]="13";
+w["colour"]="7";
+w["com"]="1,21";
+w["combin"]="1,18";
+w["come"]="1,18";
+w["command"]="11,13";
+w["commerci"]="18";
+w["common"]="1,18";
+w["compar"]="11";
+w["compat"]="3";
+w["complet"]="11";
+w["completa"]="13";
+w["complex"]="7";
+w["comprovació"]="11";
+w["comput"]="0,1,3,4,6,7,11,15,17,20";
+w["comun"]="11";
+w["condit"]="15";
+w["confid"]="3";
+w["configur"]="0,4,5,7,9,11,13,14,16,17,20,21";
+w["configura"]="13";
+w["configuració"]="0,7,9,12,13,14";
+w["configurar"]="4";
+w["configurat"]="0";
+w["confirm"]="1,13";
+w["confirmació"]="3";
+w["connect"]="4,10";
+w["conserv"]="13";
+w["conservadora"]="13";
+w["consol"]="11";
+w["consola"]="11";
+w["consult"]="4,13";
+w["consulteu"]="4,7,13";
+w["contain"]="11,18";
+w["content"]="3,18";
+w["context"]="16";
+w["contin"]="8";
+w["continu"]="1,2,3,4,10,11,15";
+w["contrasenya"]="7,17";
+w["contribut"]="20";
+w["control"]="3,4,5,6,7,8,9,14,16";
+w["conté"]="18";
+w["conveni"]="11";
+w["convert"]="1";
+w["convinc"]="6";
+w["copi"]="11";
+w["copyright"]="18";
+w["core"]="18";
+w["coreutil"]="18";
+w["correct"]="1,3,4,6,9,11,13";
+w["correcta"]="2,3,13";
+w["correspond"]="16";
+w["cose"]="12";
+w["could"]="1,7,11,13";
+w["countri"]="0,4,18";
+w["coupl"]="16";
+w["couples”"]="16";
+w["covert"]="4";
+w["creat"]="3,5,6,7,11,16";
+w["criteria"]="18";
+w["critic"]="13";
+w["crt"]="13";
+w["ctrl"]="1,19";
+w["cup"]="16";
+w["currenc"]="0";
+w["current"]="11";
+w["custom"]="3,7,13,18";
+w["còpia"]="3";
+w["d"]="0,3,7,11,12,17,20";
+w["dade"]="13";
+w["daemon"]="4";
+w["damag"]="13";
+w["danger"]="11";
+w["dark"]="3";
+w["darrera"]="3";
+w["dash"]="17";
+w["data"]="3,4,6,11";
+w["databas"]="13";
+w["dd"]="11";
+w["de"]="0,1,2,3,4,5,6,11,13,15,17,18,20";
+w["de-select"]="18";
+w["dealt"]="1";
+w["debug"]="16";
+w["decid"]="1,15";
+w["dedic"]="19";
+w["default"]="0,1,4,5,7,8,13,14,16,18";
+w["defin"]="16";
+w["definició"]="11";
+w["del"]="3,4,7,11,12,13,14,18,20,21";
+w["delay"]="7";
+w["delet"]="1,6";
+w["depen"]="18";
+w["depend"]="1,4,17";
+w["depth"]="7,13";
+w["desc"]="11";
+w["deselect"]="7";
+w["desfragmentada"]="3";
+w["design"]="18";
+w["desinstal·lació"]="6";
+w["desir"]="3,5,18";
+w["desktop"]="11,13,18";
+w["despit"]="0";
+w["desplaçat"]="3";
+w["despré"]="17";
+w["destroy"]="11";
+w["detail"]="1,3,4,11,13,14,18";
+w["detect"]="1,3,4,5,7,9,11";
+w["detectat"]="13";
+w["determin"]="9,13,16,18";
+w["determina"]="18";
+w["dev"]="11";
+w["devic"]="3,7,9,11";
+w["dialogu"]="2";
+w["did"]="1";
+w["didn"]="6,13";
+w["differ"]="3,11,13";
+w["difficult"]="8";
+w["digit"]="11";
+w["dinàmiqu"]="1";
+w["dipòsit"]="18";
+w["dir"]="3";
+w["direct-access"]="11";
+w["directori"]="4,17";
+w["disabl"]="4,7,8,13,16,18";
+w["disc"]="1,3";
+w["discov"]="19";
+w["disk"]="1,3,6,9,11";
+w["diskdrak"]="3";
+w["display"]="3,4,13";
+w["dispon"]="3,18";
+w["disposició"]="2";
+w["dispositiu"]="13";
+w["dispositius"]="4";
+w["dissenyat"]="1";
+w["distribut"]="11,15";
+w["divid"]="1";
+w["dmesg"]="11";
+w["do"]="1,3,4,7,10,11,13,18,19,21";
+w["document"]="1,7,13,18";
+w["documentació"]="13";
+w["doe"]="3,4,7,13,16";
+w["doesn"]="3";
+w["domain"]="0";
+w["don"]="3,7,10,11,13";
+w["dona"]="3";
+w["done"]="3";
+w["dos"]="18";
+w["doubt"]="13";
+w["down"]="3";
+w["down-triangl"]="7";
+w["download"]="10,11";
+w["drag"]="3";
+w["draksound"]="14";
+w["drakx"]="0,1,2,3,4,7,9,11,12,13,17";
+w["drakx-installer-stage2"]="11";
+w["drive"]="3,7,9,11";
+w["driver"]="4,9,11,13,14,18";
+w["drop"]="3";
+w["drop-down"]="3,17";
+w["dubt"]="13";
+w["due"]="3";
+w["dump"]="11";
+w["dumped”"]="11";
+w["duplic"]="1";
+w["dur"]="3";
+w["durant"]="18";
+w["dure"]="0,1,8,11,13,17,18";
+w["dvd"]="6,11,18";
+w["dynam"]="1";
+w["e"]="1,16,18";
+w["earlier"]="11";
+w["easier"]="18";
+w["easy-"]="5";
+w["edit"]="1,7,17";
+w["efi"]="3,7";
+w["eg"]="11";
+w["either"]="1,7,11,18";
+w["el"]="2,3,12,13,17,18,20,21";
+w["els"]="3,17";
+w["email"]="5";
+w["en"]="1,2,7,12,13,18,20,21";
+w["en-us"]="1";
+w["enabl"]="4,7,13,16";
+w["encongir"]="3";
+w["encount"]="14";
+w["encrypt"]="3";
+w["end"]="1,11,17,19";
+w["energi"]="7";
+w["english"]="11";
+w["enhorabona"]="20";
+w["enough"]="17";
+w["enregistra"]="11";
+w["ensur"]="3,11";
+w["enter"]="1,4,5,11,13,17";
+w["entir"]="3,15,16";
+w["entorn"]="18";
+w["entrada"]="0,7";
+w["entri"]="7,16,17,18";
+w["environ"]="11,13,18";
+w["ep"]="11";
+w["eras"]="3";
+w["es"]="1,3,17,18";
+w["esc"]="1";
+w["escriptori"]="18";
+w["esp"]="3,7";
+w["espai"]="3";
+w["especificacion"]="2";
+w["especifiqueu"]="13";
+
diff --git a/installer/7/ca/content/search/index-2.js b/installer/7/ca/content/search/index-2.js
new file mode 100644
index 00000000..89209527
--- /dev/null
+++ b/installer/7/ca/content/search/index-2.js
@@ -0,0 +1,481 @@
+//Auto generated index for searching.
+w["estableix"]="17";
+w["estació"]="18";
+w["estan"]="0,18";
+w["estar"]="3";
+w["estat"]="3";
+w["esteu"]="12";
+w["està"]="1,3";
+w["etc"]="0,4,18";
+w["etiqueta"]="2";
+w["evdev"]="21";
+w["even"]="3,4,8";
+w["everi"]="3,6";
+w["everyth"]="3,4,13,16,18";
+w["exact"]="7";
+w["exampl"]="3,7,11,16,18";
+w["exclus"]="7";
+w["exempl"]="11";
+w["exfiltr"]="4";
+w["exist"]="1,3,6,7,11,19";
+w["expand"]="8,12,13";
+w["experiència"]="1";
+w["expert"]="3";
+w["explanatori"]="18";
+w["explicit"]="13";
+w["extend"]="6";
+w["extens"]="11";
+w["extern"]="7";
+w["extra"]="1,2,4,8,17,18";
+w["eye"]="18";
+w["f10"]="1";
+w["f2"]="1";
+w["fabric"]="13";
+w["factor"]="4";
+w["fail"]="4,9";
+w["fair"]="18";
+w["fat32"]="6";
+w["fdisk"]="11";
+w["featur"]="7";
+w["fent"]="12";
+w["fer"]="1,3";
+w["fer-lo"]="13";
+w["feu"]="17,18";
+w["few"]="18";
+w["fewer"]="11,17,18";
+w["field"]="3";
+w["figur"]="3";
+w["figura"]="3";
+w["file"]="3,11,18";
+w["file-system"]="11";
+w["filesystem"]="3";
+w["film"]="3";
+w["fin"]="2";
+w["find"]="11,13,14,18";
+w["fine-tun"]="18";
+w["fingerprint"]="11";
+w["finish"]="20";
+w["firewal"]="4,16";
+w["firmwar"]="18";
+w["first"]="1,2,3,7,8,11,13,17,18";
+w["fitxer"]="3";
+w["flash"]="11";
+w["flat-panel"]="13";
+w["flexibl"]="11";
+w["floppi"]="18";
+w["follow"]="3,11,13";
+w["fora"]="3";
+w["forc"]="21";
+w["foreign"]="7";
+w["forget"]="4,11";
+w["forgot"]="19";
+w["form"]="7,18";
+w["format"]="1,3,6,11,19";
+w["formatació"]="3";
+w["formatarà"]="3";
+w["força"]="13";
+w["found"]="3,11";
+w["free"]="3,6,11,18";
+w["free-"]="18";
+w["freed"]="6";
+w["freez"]="1";
+w["frequenc"]="13";
+w["fresh"]="19";
+w["from"]="0,1,2,3,4,7,8,11,13,14,16,17,18,19";
+w["ftp"]="0";
+w["full"]="2,11,18";
+w["fuller"]="2";
+w["function"]="0";
+w["further"]="1,17";
+w["fàcil"]="1";
+w["g"]="1,16,18";
+w["game"]="17";
+w["gap"]="3";
+w["garantia"]="3";
+w["gaudiu"]="20";
+w["gb"]="3,11";
+w["gcin"]="0";
+w["general"]="4";
+w["generat"]="11";
+w["generic"]="13";
+w["genèric"]="13";
+w["gestor"]="7,20";
+w["get"]="2,3,6,7";
+w["gib"]="11";
+w["give"]="6,7";
+w["given"]="11";
+w["gmt"]="0";
+w["gnome"]="11,13,18";
+w["gnu"]="11,18";
+w["gnu-linux"]="1";
+w["go"]="1,3,4";
+w["good"]="5,12,13,21";
+w["gpart"]="3,6";
+w["gpt"]="3,7";
+w["graphic"]="1,4,7,11,13,18";
+w["gravació"]="11";
+w["greater"]="3";
+w["green"]="17";
+w["group"]="12,13,17,18";
+w["grub-custom"]="7";
+w["grub2"]="4,7";
+w["grub2-efi"]="7";
+w["grub2-efi_and_mageia"]="7";
+w["grup"]="18";
+w["gràfic"]="18";
+w["gràfica"]="1,4,13";
+w["gui"]="16";
+w["ha"]="3,11,13";
+w["hagi"]="2,3";
+w["hagin"]="3";
+w["han"]="3,12";
+w["hand"]="11";
+w["happen"]="1";
+w["hard"]="1,3,7,9,11";
+w["hardwar"]="0,1,3,4,11,13,14";
+w["have"]="11,18";
+w["haver"]="3";
+w["help"]="1,11";
+w["henc"]="11,18";
+w["here"]="3,4,7,11,13,17,18";
+w["hereaft"]="7";
+w["heu"]="20";
+w["hi"]="2,11";
+w["high"]="4,5";
+w["high-spe"]="11";
+w["hime"]="0";
+w["home"]="3,4,11,17,19";
+w["hora"]="0";
+w["horizont"]="13";
+w["horària"]="0";
+w["host8"]="11";
+w["hover"]="18";
+w["how"]="2,3,4,13,14,18";
+w["howev"]="1,7,9,11,14,18";
+w["http"]="0,1,11";
+w["https"]="7";
+w["hybrid"]="11";
+w["ibus"]="0";
+w["icewm"]="18";
+w["icmp"]="4";
+w["icon"]="18";
+w["icona"]="17";
+w["id"]="17";
+w["identifica"]="13";
+w["identificarà"]="13";
+w["identifiqui"]="2";
+w["idproduct"]="11";
+w["idvendor"]="11";
+w["if"]="0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20";
+w["ignor"]="2";
+w["imag"]="7,11";
+w["implement"]="7,16";
+w["implic"]="7";
+w["implica"]="3";
+w["import"]="0,3,4,6,8,11,13,15,19";
+w["improv"]="10";
+w["inappropri"]="8";
+w["inbound"]="4";
+w["includ"]="11,13,18";
+w["incompat"]="13";
+w["incorpor"]="19";
+w["incorrect"]="1,13";
+w["indic"]="1,17";
+w["individu"]="18";
+w["inferior"]="12";
+w["info"]="18";
+w["inform"]="3,4,7,11,15,18";
+w["informació"]="4,7,12";
+w["info”"]="18";
+w["infring"]="18";
+w["inhabilitar"]="18";
+w["iniciar"]="12";
+w["iniciarà"]="20";
+w["initi"]="1";
+w["input"]="0,11";
+w["insert"]="17";
+w["instal"]="0,1,2,3,4,6,7,8,10,11,13,14,15,16,17,18,19,20";
+w["instal·la"]="1";
+w["instal·lació"]="1,3,11,17,18,19,20";
+w["instal·lador"]="1,13";
+w["instanc"]="3,5,7,16,18";
+w["instead"]="3,7,19";
+w["instruct"]="18";
+w["integr"]="11";
+w["intend"]="3,18";
+w["interest"]="15";
+w["interfac"]="4,7,13";
+w["interfíci"]="1,4";
+w["intermediari"]="4";
+w["internet"]="4,10,11,16,17";
+w["interrupt"]="7";
+w["interv"]="11,13";
+w["into"]="1,7,11,17,18";
+w["introducció"]="11";
+w["introduïu"]="17";
+w["involv"]="7";
+w["irq"]="7";
+w["isn"]="0,2";
+w["iso"]="11,18";
+w["isodump"]="11";
+w["issu"]="4,14";
+w["it"]="3,11,16,19";
+w["item"]="5";
+w["itself"]="11,19";
+w["ja"]="18";
+w["japanes"]="0";
+w["jetflash"]="11";
+w["just"]="3,11";
+w["kde"]="13,18";
+w["keep"]="4";
+w["kept"]="13";
+w["kernel"]="7";
+w["key"]="1,3,18";
+w["keyboard"]="2,4,8";
+w["kind"]="0";
+w["know"]="4,7,8,11,13";
+w["known"]="0,3,4,13";
+w["korean"]="0";
+w["l"]="0,1,3,11,13,17,18";
+w["la"]="0,1,2,3,8,12,13,15,17,18,20";
+w["label"]="3,6";
+w["lack"]="3";
+w["languag"]="1,4,8,11,19";
+w["laptop"]="13";
+w["later"]="1,19";
+w["latin"]="2";
+w["law"]="18";
+w["layout"]="2,3,4,16";
+w["lead"]="0";
+w["least"]="3";
+w["leav"]="1,3,17";
+w["left"]="1,3,6";
+w["legaci"]="1,3,7";
+w["les"]="2,11,13";
+w["less"]="1,3,11,16,18";
+w["let"]="7,17";
+w["letter"]="6,17";
+w["level"]="4,5";
+w["librari"]="1";
+w["licens"]="15,18";
+w["life”"]="19";
+w["light"]="3,11";
+w["lighter"]="18";
+w["lightweight"]="18";
+w["like"]="0,3,7,8,11,18";
+w["line"]="11,13";
+w["linux"]="3,6,11,13,17,18";
+w["list"]="0,2,3,8,13,16,17,18";
+w["live"]="11";
+w["ll"]="2,11,13";
+w["llapi"]="11";
+w["llengua"]="2,8";
+w["llicència"]="15";
+w["llista"]="18";
+w["lliur"]="3";
+w["lliurad"]="2";
+w["load"]="18";
+w["loader"]="6";
+w["local"]="0,7,8,11";
+w["localedrak"]="0";
+w["localització"]="3";
+w["locat"]="4";
+w["lockup"]="7";
+w["logic"]="3,11";
+w["login"]="5,17";
+w["longer"]="1,11";
+w["lose"]="3";
+w["lost"]="11";
+w["lot"]="18";
+w["low"]="1,11";
+w["lower"]="17";
+w["lxde"]="13,18";
+w["machin"]="16";
+w["made"]="3,4,14,18";
+w["mageia"]="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21";
+w["mageia-6-x86_64-dvd"]="11";
+w["mail"]="5";
+w["mailspool"]="5";
+w["main"]="0,3,8,18";
+w["make"]="3,11,13,16,18";
+w["malbé"]="13";
+w["malici"]="4";
+w["man"]="18";
+w["manag"]="4,6,7,11,17,18";
+w["mani"]="11";
+w["manual"]="0,1,4,7,9,13,14,18";
+w["manufactur"]="11,13";
+w["man”"]="18";
+w["mapes_de_teclat"]="2";
+w["maquinari"]="4";
+w["mark"]="3,8";
+w["mass"]="11";
+w["master"]="7";
+w["match"]="7,11";
+w["matter"]="13";
+w["maximum"]="3,11";
+w["may"]="0,1,3,4,8,9,11,13,14,18";
+w["mb"]="3,11";
+w["mbr"]="7";
+w["md5sum"]="11";
+w["mean"]="3,7,11";
+w["meantim"]="11";
+w["media"]="0,1,4,11,18";
+w["medium"]="11,20";
+w["megabyt"]="3";
+w["mem"]="1";
+w["memori"]="1,11";
+w["memòria"]="11";
+w["mention"]="4";
+w["menu"]="1,3,7";
+w["menus"]="3";
+w["menú"]="1,7";
+w["messag"]="5,16";
+w["method"]="0,18";
+w["mfr"]="11";
+w["mib"]="3";
+w["mice"]="21";
+w["microfram"]="11";
+w["microsoft"]="1";
+w["might"]="3,7,11,17";
+w["mind"]="4,18";
+w["minim"]="11,18";
+w["mirar"]="2";
+w["mireu"]="2";
+w["mirror"]="11,18";
+w["miss"]="0,7";
+w["mistak"]="4";
+w["mistyp"]="17";
+w["mitjan"]="11,18";
+w["mitjà"]="11,18";
+w["mixtur"]="17";
+w["mode"]="1,3,7,11,13";
+w["model"]="7,13";
+w["modern"]="13";
+w["modifi"]="3,18";
+w["modificació"]="7";
+w["modificar"]="17";
+w["molt"]="12,13";
+w["monitor"]="4,13";
+w["monitor”"]="4,13";
+w["more"]="1,2,3,4,6,7,8,11,13,16,18,20,21";
+w["most"]="1,4,7,11,14";
+w["mostrarà"]="12";
+w["motherboard"]="1";
+w["mount"]="3,11";
+w["mous"]="18,21";
+w["msdn"]="1";
+w["much"]="16";
+w["multi-cor"]="7";
+w["multilingu"]="0";
+w["multimedia"]="18";
+w["multipl"]="1,8";
+w["multiprocess"]="7";
+w["muntatg"]="3";
+w["must"]="3,5,8,11,15";
+w["mètode"]="0";
+w["més"]="0,4,7";
+w["mínima"]="18";
+w["n"]="2,13";
+w["name"]="3,5,11,17,18";
+w["near"]="13";
+w["necessari"]="1";
+w["need"]="0,1,3,4,7,9,11,13,17,18";
+w["net"]="11";
+w["netinstal"]="11";
+w["netinstall-nonfre"]="11";
+w["network"]="0,4,11,16,18";
+w["new"]="3,6,7,11";
+w["newer"]="3";
+w["next"]="0,3,6,10,11,15";
+w["nfs"]="18";
+w["nivel"]="4,5";
+w["no"]="1,2,3,4,6,7,10,11,13,14,16,18,20,21";
+w["noarch"]="18";
+w["noauto"]="1";
+w["nomé"]="12";
+w["non-fre"]="4,11";
+w["non-latin"]="2";
+w["none"]="13";
+w["nonfre"]="4,13,18";
+w["normal"]="1,4,9,13";
+w["nota"]="0,2,3,4,5,7,11,17,18";
+w["note"]="15";
+w["notic"]="4";
+w["notif"]="5";
+w["nou"]="1";
+w["now"]="3,8,10,11,20";
+w["ntfs"]="6";
+w["number"]="1,3,7,11,17";
+w["nvidia"]="18";
+w["o"]="0,1,2,7,11,19";
+w["obriu"]="11";
+w["obtain"]="4";
+w["obtenir"]="4,7";
+w["off"]="11";
+w["offer"]="3,7,18";
+w["offic"]="17";
+w["often"]="13";
+w["ok"]="0,3,7,11";
+w["old"]="1";
+w["older"]="1,9,13";
+w["onc"]="1,11,13";
+w["one"]="1,3,4,6,7,8,11,16,18,20";
+w["onli"]="0,3,6,7,11,13,18,19";
+w["onlin"]="18";
+w["onto"]="11";
+w["opcion"]="7,13";
+w["opció"]="3";
+w["open"]="11,13,16,18";
+w["oper"]="1,3,4,6,7,11,20";
+w["operatiu"]="0";
+w["opt"]="7";
+w["optical-disc"]="18";
+w["option"]="0,1,3,4,6,7,8,11,13,16,17,18,19";
+w["order"]="7,13";
+w["ordinador"]="0";
+w["ordinari"]="5";
+w["org"]="2,7,20";
+w["origen"]="18";
+w["origin"]="11";
+w["os"]="7";
+w["other"]="0,1,3,4,6,7,8,11,13,14,16,17,18";
+w["otherwis"]="3";
+w["out"]="11";
+w["outbound"]="4";
+w["output"]="11";
+w["outsid"]="13";
+w["over"]="3,18";
+w["overwrit"]="11";
+w["own"]="3,4,18";
+w["packag"]="0,10,11,18";
+w["page"]="11,18";
+w["panel"]="1,6";
+w["pantalla"]="1";
+w["paquet"]="18";
+w["paramet"]="1,4,13";
+w["part"]="3";
+w["particion"]="1,3";
+w["partició"]="3";
+w["particular"]="1,3,11,15";
+w["partit"]="1,3,6,7,11,19";
+w["partition”"]="3";
+w["paràmetr"]="4,20";
+w["pass"]="7";
+w["passo"]="1,18";
+w["password"]="4,7,17";
+w["patent"]="18";
+w["path"]="11";
+w["paí"]="0";
+w["pc"]="11";
+w["penja"]="1";
+w["peopl"]="7";
+w["per"]="1,2,3,4,7,18";
+w["perform"]="1,11,19";
+w["perhap"]="3";
+w["permiso"]="17";
+w["permit"]="7";
+w["person"]="3,4";
+w["personalitzat"]="13";
+w["physic"]="11";
+
diff --git a/installer/7/ca/content/search/index-3.js b/installer/7/ca/content/search/index-3.js
new file mode 100644
index 00000000..4f78ed7e
--- /dev/null
+++ b/installer/7/ca/content/search/index-3.js
@@ -0,0 +1,479 @@
+//Auto generated index for searching.
+w["ping"]="4";
+w["place"]="3,6,18";
+w["plasma"]="11,13,18";
+w["play"]="13,17,18";
+w["pleas"]="1,4,5,13,15";
+w["plug"]="11,13";
+w["plural"]="11";
+w["poden"]="17";
+w["podeu"]="2,4,11,12,13,21";
+w["podrien"]="3";
+w["podríeu"]="13";
+w["point"]="1,3";
+w["port"]="16";
+w["port-numb"]="16";
+w["possibl"]="1,4,5,6,7,14";
+w["post-instal"]="0,5,8,14";
+w["pot"]="2,18";
+w["potenti"]="11";
+w["power"]="7";
+w["pq"]="11";
+w["pre-exist"]="19";
+w["preced"]="3";
+w["prefer"]="2,4,8,11,13,18";
+w["pregunteu-ho"]="2";
+w["prepar"]="3";
+w["present"]="1,3,4,11";
+w["preserv"]="3,19";
+w["press"]="1,4,10,18,19";
+w["prevent"]="4";
+w["preview"]="11";
+w["previous"]="3,11,13,17,18,19";
+w["princip"]="7";
+w["printer"]="16";
+w["prioriti"]="7";
+w["privileg"]="17";
+w["probabl"]="18";
+w["probe"]="4,7";
+w["problem"]="1,7,14";
+w["problema"]="1";
+w["procedur"]="7";
+w["proceed"]="3,7,15";
+w["process"]="1,4,11";
+w["processor"]="7";
+w["product"]="11";
+w["program"]="4,7";
+w["programm"]="7";
+w["progress"]="1";
+w["project"]="18";
+w["prompt"]="1";
+w["propos"]="3,4";
+w["proposaran"]="18";
+w["proprietari"]="13,18";
+w["protect"]="5,11,17";
+w["protocol"]="16,18";
+w["provar"]="11";
+w["proveïdor"]="2";
+w["provid"]="0,3,11,13,18";
+w["proxi"]="4";
+w["ps"]="21";
+w["public"]="5";
+w["punt"]="3";
+w["purpos"]="16,17";
+w["quan"]="12";
+w["que"]="0,2,3,8,13,18";
+w["question"]="20";
+w["quin"]="12,13,18";
+w["quina"]="2,13";
+w["quit"]="1,15";
+w["què"]="12";
+w["ram"]="1";
+w["random"]="7";
+w["rang"]="13";
+w["rare"]="1";
+w["rate"]="13";
+w["rather"]="7,19";
+w["ratolin"]="4";
+w["ratolí"]="4,21";
+w["re"]="3";
+w["re-instal"]="1";
+w["reach"]="19";
+w["read"]="1,11,15,17";
+w["readi"]="3";
+w["real"]="17";
+w["realceu"]="12";
+w["realli"]="7";
+w["reboot"]="1,4,6,7,13,15,20";
+w["receiv"]="5";
+w["recognis"]="6,9,18";
+w["recoman"]="3";
+w["recommend"]="4,5,7";
+w["reconfigur"]="13";
+w["record"]="7";
+w["recov"]="6,11";
+w["red-"]="17";
+w["redistribut"]="18";
+w["refer"]="4,11";
+w["reformat"]="11";
+w["refresh"]="13";
+w["regard"]="11";
+w["region"]="0,4";
+w["regió"]="0,3";
+w["regular"]="17";
+w["regulatori"]="0";
+w["reject"]="13";
+w["relat"]="18";
+w["releas"]="10,11,15,18,19";
+w["relev"]="7,12,18";
+w["remain"]="3,11";
+w["remaind"]="3";
+w["remot"]="18";
+w["remov"]="3,11,18,20";
+w["repair"]="11";
+w["repartit"]="11";
+w["repeat"]="17";
+w["report"]="1";
+w["repositori"]="4,7,13,18";
+w["request"]="7";
+w["requir"]="1,5,7,8,18";
+w["rescu"]="1,6,11";
+w["resiz"]="3";
+w["resolució"]="13";
+w["resolut"]="1,13";
+w["respon"]="21";
+w["rest"]="3";
+w["restor"]="1,6";
+w["result"]="11,13";
+w["retri"]="11";
+w["return"]="2,13,19";
+w["retyp"]="7,17";
+w["revert"]="1";
+w["rfc-433"]="16";
+w["rid"]="6";
+w["right"]="3,6";
+w["right-click"]="6";
+w["risk"]="4,11,13";
+w["riski"]="3,4";
+w["room"]="3";
+w["root"]="0,3,7,11,17,19";
+w["round"]="11";
+w["rsync"]="16";
+w["rufus"]="11";
+w["rule"]="3,4,16";
+w["run"]="0,4,7,14";
+w["s"]="3,4,9,11,12,13,17,18,19";
+w["sabeu"]="2,13";
+w["safe"]="2,4,13,20";
+w["safe”"]="4";
+w["same"]="0,1,8,16,17,18";
+w["satisfact"]="3";
+w["satisfactori"]="13";
+w["save"]="1,7,11,18";
+w["say"]="11";
+w["scan"]="13";
+w["scim"]="0";
+w["scope"]="7";
+w["screen"]="0,1,2,3,7,8,11,13,14,17,18,19,20";
+w["screenshot"]="3,11,18";
+w["scsi"]="9,11";
+w["sd"]="11";
+w["sda"]="3";
+w["sdb"]="3,11";
+w["sdd"]="11";
+w["sdd1"]="11";
+w["se"]="12,20";
+w["second"]="7";
+w["section"]="1,4,5,7,11,16";
+w["sector"]="3";
+w["secur"]="4,5,7,11";
+w["see"]="1,2,3,4,7,11,13,17,18";
+w["seem"]="0,2,4";
+w["seguir"]="18";
+w["seguretat"]="3,4,5";
+w["següent"]="18";
+w["selecciona"]="2";
+w["seleccionar"]="13,18,21";
+w["seleccionarà"]="20";
+w["seleccioneu"]="2";
+w["seleccioneu-la"]="13";
+w["selecció"]="0,2,11,18,21";
+w["select"]="0,1,2,3,4,6,7,8,10,13,15,18,19,21";
+w["self"]="18";
+w["self-explanatori"]="16";
+w["send"]="5";
+w["sens"]="1,11,16";
+w["separ"]="3,16";
+w["ser"]="2";
+w["seri"]="16";
+w["serialnumb"]="11";
+w["servei"]="4,12";
+w["server"]="4,5,16,18";
+w["servic"]="4,12,16";
+w["servidor"]="4,13,18";
+w["servir"]="3,18";
+w["set"]="0,1,3,4,5,7,12,13,16,17,18";
+w["setup"]="0,7";
+w["sever"]="3,7,8";
+w["sh"]="17";
+w["sha1sum"]="11";
+w["sha512sum"]="11";
+w["shell"]="17";
+w["shield"]="17";
+w["short"]="1,6";
+w["should"]="0,1,3,4,7,8,9,11,13,14";
+w["show"]="11,14,17,18";
+w["shown"]="2,3,13";
+w["si"]="0,1,2,3,12,13,17,20,21";
+w["side"]="13";
+w["sigui"]="1";
+w["similar"]="0";
+w["simpl"]="16";
+w["simpler"]="11";
+w["simpli"]="13,15";
+w["sinc"]="10,16";
+w["sincronism"]="13";
+w["sistem"]="1";
+w["sistema"]="0,2,3,4,12";
+w["situat"]="5";
+w["six"]="21";
+w["size"]="3,6,7,11";
+w["slideshow"]="18";
+w["small"]="4";
+w["smp"]="7";
+w["smtp"]="5";
+w["sobr"]="3";
+w["softwar"]="7,11,18";
+w["solucion"]="1";
+w["solv"]="14";
+w["some"]="1,3,4,7,9,10,11,13,16,18";
+w["someth"]="3,13";
+w["sou"]="1";
+w["sound"]="4,14";
+w["sourc"]="11,13,18";
+w["space"]="3,6";
+w["specialis"]="18";
+w["specif"]="7,13,18";
+w["specifi"]="1,4,11,14,16,18";
+w["spite"]="1";
+w["sport"]="18";
+w["ssd"]="3";
+w["stand"]="11";
+w["standard"]="3,4,5,7,11";
+w["standbi"]="13";
+w["start"]="1,3,6,7,11,14,20";
+w["state"]="1";
+w["status"]="1";
+w["step"]="1,11,17,18";
+w["stick"]="1,11";
+w["still"]="3,13,19";
+w["stop"]="4,7";
+w["storag"]="3,6,11";
+w["store"]="3";
+w["strength"]="17";
+w["string"]="11";
+w["strong"]="17";
+w["su"]="11";
+w["subsequ"]="9,18";
+w["such"]="3,4,5,6,11,13,18";
+w["suffix"]="1";
+w["suggeri"]="3,11,19";
+w["suggest"]="3";
+w["suit"]="4,11";
+w["suitabl"]="13";
+w["summari"]="4,17";
+w["superi"]="13";
+w["superus"]="17";
+w["supplement"]="18";
+w["support"]="7,8,19";
+w["sure"]="1,3,7,13";
+w["swap"]="3";
+w["switch"]="2,11";
+w["symmetr"]="7";
+w["sync"]="11,13";
+w["system"]="0,1,3,4,5,6,7,8,11,13,16,18,20";
+w["t"]="0,2,3,6,7,10,11,13";
+w["tab"]="3";
+w["taint"]="18";
+w["take"]="3";
+w["tallafoc"]="4,16";
+w["també"]="2,3,17";
+w["tan"]="1";
+w["tancat"]="3";
+w["tant"]="1";
+w["target"]="11,13,16";
+w["targeta"]="4,13";
+w["taulet"]="4";
+w["tcp"]="16";
+w["teclat"]="2,4";
+w["tell"]="7,9";
+w["temporarili"]="16";
+w["teniu"]="0,3,12,18";
+w["term"]="15";
+w["termin"]="1";
+w["test"]="1,3,11,13,16,19";
+w["text"]="1,7,17";
+w["text-mod"]="1";
+w["than"]="3,8,11,13,17,18,19,20";
+w["thank"]="15";
+w["that"]="0,1,2,3,4,6,7,8,11,13,16,17,18,19,21";
+w["their"]="3,4,6";
+w["them"]="4,7,8,10,11,13,18";
+w["then"]="1,3,6,7,8,9,11,13,14,15,17,18,19";
+w["there"]="0,2,3,4,6,7,13,14,17,18,20";
+w["therefor"]="5,16";
+w["these"]="3,5,6,11,15,18";
+w["they"]="4,6,11,13,16,18";
+w["think"]="1,4,7,13,14";
+w["thorough"]="19";
+w["those"]="3,4,11,18";
+w["though"]="2";
+w["three"]="3";
+w["through"]="11";
+w["tick"]="3,18";
+w["time"]="0";
+w["timezon"]="0,4";
+w["tingueu"]="3";
+w["tipus"]="11,13";
+w["togeth"]="1";
+w["too"]="4,11,18";
+w["tool"]="3,4,6,7,11,14,18";
+w["tool-tip"]="18";
+w["top"]="3,17";
+w["tot"]="0,2,3,18";
+w["total"]="3,16";
+w["touch"]="7";
+w["toward"]="11";
+w["transcend"]="11";
+w["trebal"]="18";
+w["tree"]="18";
+w["tres"]="11";
+w["tri"]="1,4,11,13";
+w["tria"]="3,13,18";
+w["triangl"]="12";
+w["triar"]="12";
+w["triarà"]="2";
+w["trieu"]="8,13";
+w["troba"]="2";
+w["trobat"]="3";
+w["troubleshoot"]="14";
+w["true"]="6";
+w["turn"]="16";
+w["twice"]="1";
+w["two"]="3,13,18";
+w["type"]="1,3,4,11,13,16,17";
+w["té"]="2,13";
+w["udp"]="16";
+w["uefi"]="1,3,7";
+w["uefi-bas"]="7";
+w["umask"]="17";
+w["un"]="0,1,7,11,12,13,17,18,21";
+w["una"]="2,3,7,11,13,18";
+w["unabl"]="0,7,9,11";
+w["unboot"]="3";
+w["under"]="3,18";
+w["underneath"]="3,17";
+w["understand"]="7";
+w["unicod"]="8";
+w["uninstal"]="6";
+w["univers"]="21";
+w["unix"]="5";
+w["unknown"]="6";
+w["unless"]="1,4,7";
+w["unplug"]="11";
+w["unprotect"]="16";
+w["unsupport"]="13";
+w["unsur"]="3,17";
+w["untick"]="7";
+w["until"]="3,13";
+w["unus"]="1,3,7";
+w["up"]="3,6,7,11,18";
+w["updat"]="1,10,11,18";
+w["upgrad"]="11,19";
+w["upper"]="17";
+w["url"]="18";
+w["us"]="2,3,12,21";
+w["usag"]="4";
+w["usb"]="1,3,11,18,21";
+w["usb-storag"]="11";
+w["use"]="0,1,3,4,5,6,7,8,9,11,13,14,16,17,18,19,20";
+w["user"]="0,4,5,7,11,13,17";
+w["usernam"]="7";
+w["usual"]="3,12,17,21";
+w["usuari"]="1,11,17";
+w["utc"]="0";
+w["utf-8"]="8";
+w["util"]="4";
+w["utilització"]="11";
+w["utilitzar"]="3,8";
+w["va"]="3";
+w["valu"]="16";
+w["valuabl"]="11";
+w["var"]="3";
+w["vari"]="3";
+w["various"]="1,3,13,18";
+w["vegada"]="3";
+w["vendor"]="13";
+w["veri"]="1,4,6,11,18";
+w["verifi"]="11";
+w["verit"]="16";
+w["version"]="10,11,17,19";
+w["versió"]="15";
+w["vertic"]="13";
+w["vesa"]="13";
+w["vgalo"]="1";
+w["via"]="0,11,14";
+w["video"]="3,7,13,18";
+w["view"]="3,15";
+w["visibl"]="18";
+w["visit"]="20";
+w["vista"]="6";
+w["vol"]="3";
+w["voleu"]="8,17";
+w["vostr"]="2,12,13";
+w["vostra"]="2,20";
+w["vídeo"]="13";
+w["wait"]="11";
+w["want"]="1,3,4,6,7,10,16,18,19,20";
+w["warn"]="7";
+w["was"]="0,2,10,17,19";
+w["way"]="3";
+w["we"]="3,15";
+w["websit"]="13";
+w["welcom"]="1";
+w["welcome”"]="11";
+w["well"]="1,4,8,13";
+w["what"]="1,3,7,11,13,17,18";
+w["whatev"]="7";
+w["when"]="1,3,4,5,6,7,11,13,19";
+w["where"]="1,3,4,5,11,16";
+w["whether"]="1,3,18";
+w["which"]="1,3,4,5,7,9,11,13,16,18,20";
+w["whichev"]="11";
+w["while"]="1,7,11,17,19";
+w["who"]="11";
+w["wider"]="4";
+w["wifi"]="18";
+w["wiki"]="2,7,11";
+w["wikipedia"]="2";
+w["will"]="0,1,2,3,4,5,6,7,8,9,10,11,13,15,16,17,18,19";
+w["win32"]="11";
+w["window"]="1,3,6,7,11,13,16";
+w["wipe"]="3";
+w["wireless"]="0";
+w["wise"]="13";
+w["wish"]="3,7,10,18";
+w["within"]="11,19";
+w["without"]="1,7,11,13,14,18";
+w["work"]="13,14,18,21";
+w["workstat"]="18";
+w["worth"]="1";
+w["would"]="1,2,7,16";
+w["write"]="1,11,17";
+w["written"]="7,11";
+w["wrong"]="0,4,11";
+w["www"]="20";
+w["x"]="11,13,18";
+w["xarxa"]="4,18";
+w["xfce"]="11";
+w["xhci_hcd"]="11";
+w["xorg"]="13";
+w["xp"]="6";
+w["xxx"]="1";
+w["xxxm"]="1";
+w["x”"]="13,18";
+w["yes"]="10,13";
+w["yet"]="3,4,13";
+w["yourself"]="3";
+w["zero"]="4";
+w["zona"]="0";
+w[" "]="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21";
+w["©"]="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21";
+w["«neta»"]="3";
+w["és"]="2,3,13";
+w["ús"]="7";
+w["“"]="3,4,11,13,16,18,19";
+w["“configuració"]="4";
+w["“tria"]="13";
+w["”"]="13";
+
diff --git a/installer/7/ca/content/search/ja-jp.props b/installer/7/ca/content/search/ja-jp.props
new file mode 100644
index 00000000..27568054
--- /dev/null
+++ b/installer/7/ca/content/search/ja-jp.props
@@ -0,0 +1 @@
+J01=\\u306B \ No newline at end of file
diff --git a/installer/7/ca/content/search/nwSearchFnt.js b/installer/7/ca/content/search/nwSearchFnt.js
new file mode 100644
index 00000000..0111559c
--- /dev/null
+++ b/installer/7/ca/content/search/nwSearchFnt.js
@@ -0,0 +1,513 @@
+/*----------------------------------------------------------------------------
+ * JavaScript for webhelp search
+ *----------------------------------------------------------------------------
+ This file is part of the webhelpsearch plugin for DocBook WebHelp
+ Copyright (c) 2007-2008 NexWave Solutions All Rights Reserved.
+ www.nexwave.biz Nadege Quaine
+ http://kasunbg.blogspot.com/ Kasun Gajasinghe
+ */
+
+//string initialization
+var htmlfileList = "htmlFileList.js";
+var htmlfileinfoList = "htmlFileInfoList.js";
+var useCJKTokenizing = false;
+
+/* Cette fonction verifie la validite de la recherche entrre par l utilisateur */
+function Verifie(ditaSearch_Form) {
+
+ // Check browser compatibitily
+ if (navigator.userAgent.indexOf("Konquerer") > -1) {
+
+ alert(txt_browser_not_supported);
+ return;
+ }
+
+
+ var expressionInput = document.ditaSearch_Form.textToSearch.value;
+ //Set a cookie to store the searched keywords
+ $.cookie('textToSearch', expressionInput);
+
+
+ if (expressionInput.length < 1) {
+
+ // expression is invalid
+ alert(txt_enter_at_least_1_char);
+ // reactive la fenetre de search (utile car cadres)
+ document.ditaSearch_Form.textToSearch.focus();
+ }
+ else {
+
+ // Effectuer la recherche
+ Effectuer_recherche(expressionInput);
+
+ // reactive la fenetre de search (utile car cadres)
+ document.ditaSearch_Form.textToSearch.focus();
+ }
+}
+
+var stemQueryMap = new Array(); // A hashtable which maps stems to query words
+
+/* This function parses the search expression, loads the indices and displays the results*/
+function Effectuer_recherche(expressionInput) {
+
+ /* Display a waiting message */
+ //DisplayWaitingMessage();
+
+ /*data initialisation*/
+ var searchFor = ""; // expression en lowercase et sans les caracte res speciaux
+ //w = new Object(); // hashtable, key=word, value = list of the index of the html files
+ scriptLetterTab = new Scriptfirstchar(); // Array containing the first letter of each word to look for
+ var wordsList = new Array(); // Array with the words to look for
+ var finalWordsList = new Array(); // Array with the words to look for after removing spaces
+ var linkTab = new Array();
+ var fileAndWordList = new Array();
+ var txt_wordsnotfound = "";
+
+
+ /*nqu: expressionInput, la recherche est lower cased, plus remplacement des char speciaux*/
+ searchFor = expressionInput.toLowerCase().replace(/<\//g, "_st_").replace(/\$_/g, "_di_").replace(/\.|%2C|%3B|%21|%3A|@|\/|\*/g, " ").replace(/(%20)+/g, " ").replace(/_st_/g, "</").replace(/_di_/g, "%24_");
+
+ searchFor = searchFor.replace(/ +/g, " ");
+ searchFor = searchFor.replace(/ $/, "").replace(/^ /, "");
+
+ wordsList = searchFor.split(" ");
+ wordsList.sort();
+
+ //set the tokenizing method
+ if(typeof indexerLanguage != "undefined" && (indexerLanguage=="zh" || indexerLanguage=="ja" ||indexerLanguage=="ko")){
+ useCJKTokenizing=true;
+ } else {
+ useCJKTokenizing=false;
+ }
+ //If Lucene CJKTokenizer was used as the indexer, then useCJKTokenizing will be true. Else, do normal tokenizing.
+ // 2-gram tokenizinghappens in CJKTokenizing,
+ if(useCJKTokenizing){
+ finalWordsList = cjkTokenize(wordsList);
+ } else {
+ finalWordsList = tokenize(wordsList);
+ }
+
+ //load the scripts with the indices: the following lines do not work on the server. To be corrected
+ /*if (IEBrowser) {
+ scriptsarray = loadTheIndexScripts (scriptLetterTab);
+ } */
+
+ /**
+ * Compare with the indexed words (in the w[] array), and push words that are in it to tempTab.
+ */
+ var tempTab = new Array();
+ for (var t in finalWordsList) {
+ if (w[finalWordsList[t].toString()] == undefined) {
+ txt_wordsnotfound += finalWordsList[t] + " ";
+ } else {
+ tempTab.push(finalWordsList[t]);
+ }
+ }
+ finalWordsList = tempTab;
+
+ if (finalWordsList.length) {
+
+ //search 'and' and 'or' one time
+ fileAndWordList = SortResults(finalWordsList);
+
+ var cpt = fileAndWordList.length;
+ for (var i = cpt - 1; i >= 0; i--) {
+ if (fileAndWordList[i] != undefined) {
+ linkTab.push("<p>" + txt_results_for + " " + "<span class=\"searchExpression\">" + fileAndWordList[i][0].motslisteDisplay + "</span>" + "</p>");
+
+ linkTab.push("<ul class='searchresult'>");
+ for (t in fileAndWordList[i]) {
+ //DEBUG: alert(": "+ fileAndWordList[i][t].filenb+" " +fileAndWordList[i][t].motsliste);
+ //linkTab.push("<li><a href=\"../"+fl[fileAndWordList[i][t].filenb]+"\">"+fl[fileAndWordList[i][t].filenb]+"</a></li>");
+ var tempInfo = fil[fileAndWordList[i][t].filenb];
+ var pos1 = tempInfo.indexOf("@@@");
+ var pos2 = tempInfo.lastIndexOf("@@@");
+ var tempPath = tempInfo.substring(0, pos1);
+ var tempTitle = tempInfo.substring(pos1 + 3, pos2);
+ var tempShortdesc = tempInfo.substring(pos2 + 3, tempInfo.length);
+
+ //file:///home/kasun/docbook/WEBHELP/webhelp-draft-output-format-idea/src/main/resources/web/webhelp/installation.html
+ var linkString = "<li><a href=" + tempPath + ">" + tempTitle + "</a>";
+ // var linkString = "<li><a href=\"installation.html\">" + tempTitle + "</a>";
+ if ((tempShortdesc != "null")) {
+ linkString += "\n<div class=\"shortdesclink\">" + tempShortdesc + "</div>";
+ }
+ linkString += "</li>";
+ linkTab.push(linkString);
+ }
+ linkTab.push("</ul>");
+ }
+ }
+ }
+
+ var results = "";
+ if (linkTab.length > 0) {
+ /*writeln ("<p>" + txt_results_for + " " + "<span class=\"searchExpression\">" + cleanwordsList + "</span>" + "<br/>"+"</p>");*/
+ results = "<p>";
+ //write("<ul class='searchresult'>");
+ for (t in linkTab) {
+ results += linkTab[t].toString();
+ }
+ results += "</p>";
+ } else {
+ results = "<p>" + "Your search returned no results for " + "<span class=\"searchExpression\">" + txt_wordsnotfound + "</span>" + "</p>";
+ }
+ //alert(results);
+ document.getElementById('searchResults').innerHTML = results;
+}
+
+function tokenize(wordsList){
+ var stemmedWordsList = new Array(); // Array with the words to look for after removing spaces
+ var cleanwordsList = new Array(); // Array with the words to look for
+ for(var j in wordsList){
+ var word = wordsList[j];
+ if(typeof stemmer != "undefined" ){
+ stemQueryMap[stemmer(word)] = word;
+ } else {
+ stemQueryMap[word] = word;
+ }
+ }
+ //stemmedWordsList is the stemmed list of words separated by spaces.
+ for (var t in wordsList) {
+ wordsList[t] = wordsList[t].replace(/(%22)|^-/g, "");
+ if (wordsList[t] != "%20") {
+ scriptLetterTab.add(wordsList[t].charAt(0));
+ cleanwordsList.push(wordsList[t]);
+ }
+ }
+
+ if(typeof stemmer != "undefined" ){
+ //Do the stemming using Porter's stemming algorithm
+ for (var i = 0; i < cleanwordsList.length; i++) {
+ var stemWord = stemmer(cleanwordsList[i]);
+ stemmedWordsList.push(stemWord);
+ }
+ } else {
+ stemmedWordsList = cleanwordsList;
+ }
+ return stemmedWordsList;
+}
+
+//Invoker of CJKTokenizer class methods.
+function cjkTokenize(wordsList){
+ var allTokens= new Array();
+ var notCJKTokens= new Array();
+ var j=0;
+ for(j=0;j<wordsList.length;j++){
+ var word = wordsList[j];
+ if(getAvgAsciiValue(word) < 127){
+ notCJKTokens.push(word);
+ } else {
+ var tokenizer = new CJKTokenizer(word);
+ var tokensTmp = tokenizer.getAllTokens();
+ allTokens = allTokens.concat(tokensTmp);
+ }
+ }
+ allTokens = allTokens.concat(tokenize(notCJKTokens));
+ return allTokens;
+}
+
+//A simple way to determine whether the query is in english or not.
+function getAvgAsciiValue(word){
+ var tmp = 0;
+ var num = word.length < 5 ? word.length:5;
+ for(var i=0;i<num;i++){
+ if(i==5) break;
+ tmp += word.charCodeAt(i);
+ }
+ return tmp/num;
+}
+
+//CJKTokenizer
+function CJKTokenizer(input){
+ this.input = input;
+ this.offset=-1;
+ this.tokens = new Array();
+ this.incrementToken = incrementToken;
+ this.tokenize = tokenize;
+ this.getAllTokens = getAllTokens;
+ this.unique = unique;
+
+ function incrementToken(){
+ if(this.input.length - 2 <= this.offset){
+ // console.log("false "+offset);
+ return false;
+ }
+ else {
+ this.offset+=1;
+ return true;
+ }
+ }
+
+ function tokenize(){
+ //document.getElementById("content").innerHTML += x.substring(offset,offset+2)+"<br>";
+ return this.input.substring(this.offset,this.offset+2);
+ }
+
+ function getAllTokens(){
+ while(this.incrementToken()){
+ var tmp = this.tokenize();
+ this.tokens.push(tmp);
+ }
+ return this.unique(this.tokens);
+// document.getElementById("content").innerHTML += tokens+" ";
+// document.getElementById("content").innerHTML += "<br>dada"+sortedTokens+" ";
+// console.log(tokens.length+"dsdsds");
+ /*for(i=0;i<tokens.length;i++){
+ console.log(tokens[i]);
+ var ss = tokens[i] == sortedTokens[i];
+
+// document.getElementById("content").innerHTML += "<br>dada"+un[i]+"- "+stems[i]+"&nbsp;&nbsp;&nbsp;"+ ss;
+ document.getElementById("content").innerHTML += "<br>"+sortedTokens[i];
+ }*/
+ }
+
+ function unique(a)
+ {
+ var r = new Array();
+ o:for(var i = 0, n = a.length; i < n; i++)
+ {
+ for(var x = 0, y = r.length; x < y; x++)
+ {
+ if(r[x]==a[i]) continue o;
+ }
+ r[r.length] = a[i];
+ }
+ return r;
+ }
+}
+
+
+/* Scriptfirstchar: to gather the first letter of index js files to upload */
+function Scriptfirstchar() {
+ this.strLetters = "";
+ this.add = addLettre;
+}
+
+function addLettre(caract) {
+
+ if (this.strLetters == 'undefined') {
+ this.strLetters = caract;
+ } else if (this.strLetters.indexOf(caract) < 0) {
+ this.strLetters += caract;
+ }
+
+ return 0;
+}
+/* end of scriptfirstchar */
+
+/*main loader function*/
+/*tab contains the first letters of each word looked for*/
+function loadTheIndexScripts(tab) {
+
+ //alert (tab.strLetters);
+ var scriptsarray = new Array();
+
+ for (var i = 0; i < tab.strLetters.length; i++) {
+
+ scriptsarray[i] = "..\/search" + "\/" + tab.strLetters.charAt(i) + ".js";
+ }
+ // add the list of html files
+ i++;
+ scriptsarray[i] = "..\/search" + "\/" + htmlfileList;
+
+ //debug
+ for (var t in scriptsarray) {
+ //alert (scriptsarray[t]);
+ }
+
+ tab = new ScriptLoader();
+ for (t in scriptsarray) {
+ tab.add(scriptsarray[t]);
+ }
+ tab.load();
+ //alert ("scripts loaded");
+ return (scriptsarray);
+}
+
+/* ScriptLoader: to load the scripts and wait that it's finished */
+function ScriptLoader() {
+ this.cpt = 0;
+ this.scriptTab = new Array();
+ this.add = addAScriptInTheList;
+ this.load = loadTheScripts;
+ this.onScriptLoaded = onScriptLoadedFunc;
+}
+
+function addAScriptInTheList(scriptPath) {
+ this.scriptTab.push(scriptPath);
+}
+
+function loadTheScripts() {
+ var script;
+ var head;
+
+ head = document.getElementsByTagName('head').item(0);
+
+ //script = document.createElement('script');
+
+ for (var el in this.scriptTab) {
+ //alert (el+this.scriptTab[el]);
+ script = document.createElement('script');
+ script.src = this.scriptTab[el];
+ script.type = 'text/javascript';
+ script.defer = false;
+
+ head.appendChild(script);
+ }
+
+}
+
+function onScriptLoadedFunc(e) {
+ e = e || window.event;
+ var target = e.target || e.srcElement;
+ var isComplete = true;
+ if (typeof target.readyState != undefined) {
+
+ isComplete = (target.readyState == "complete" || target.readyState == "loaded");
+ }
+ if (isComplete) {
+ ScriptLoader.cpt++;
+ if (ScriptLoader.cpt == ScriptLoader.scripts.length) {
+ ScriptLoader.onLoadComplete();
+ }
+ }
+}
+
+/*
+function onLoadComplete() {
+ alert("loaded !!");
+} */
+
+/* End of scriptloader functions */
+
+// Array.unique( strict ) - Remove duplicate values
+function unique(tab) {
+ var a = new Array();
+ var i;
+ var l = tab.length;
+
+ if (tab[0] != undefined) {
+ a[0] = tab[0];
+ }
+ else {
+ return -1
+ }
+
+ for (i = 1; i < l; i++) {
+ if (indexof(a, tab[i], 0) < 0) {
+ a.push(tab[i]);
+ }
+ }
+ return a;
+}
+function indexof(tab, element, begin) {
+ for (var i = begin; i < tab.length; i++) {
+ if (tab[i] == element) {
+ return i;
+ }
+ }
+ return -1;
+
+}
+/* end of Array functions */
+
+
+/*
+ Param: mots= list of words to look for.
+ This function creates an hashtable:
+ - The key is the index of a html file which contains a word to look for.
+ - The value is the list of all words contained in the html file.
+
+ Return value: the hashtable fileAndWordList
+ */
+function SortResults(mots) {
+
+ var fileAndWordList = new Object();
+ if (mots.length == 0) {
+ return null;
+ }
+
+ for (var t in mots) {
+ // get the list of the indices of the files.
+ var listNumerosDesFicStr = w[mots[t].toString()];
+ //alert ("listNumerosDesFicStr "+listNumerosDesFicStr);
+ var tab = listNumerosDesFicStr.split(",");
+
+ //for each file (file's index):
+ for (var t2 in tab) {
+ var temp = tab[t2].toString();
+ if (fileAndWordList[temp] == undefined) {
+
+ fileAndWordList[temp] = "" + mots[t];
+ } else {
+
+ fileAndWordList[temp] += "," + mots[t];
+ }
+ }
+ }
+
+ var fileAndWordListValuesOnly = new Array();
+
+ // sort results according to values
+ var temptab = new Array();
+ for (t in fileAndWordList) {
+ tab = fileAndWordList[t].split(',');
+
+ var tempDisplay = new Array();
+ for (var x in tab) {
+ if(stemQueryMap[tab[x]] != undefined){
+ tempDisplay.push(stemQueryMap[tab[x]]); //get the original word from the stem word.
+ } else {
+ tempDisplay.push(tab[x]); //no stem is available. (probably a CJK language)
+ }
+ }
+ var tempDispString = tempDisplay.join(", ");
+
+ temptab.push(new resultPerFile(t, fileAndWordList[t], tab.length, tempDispString));
+ fileAndWordListValuesOnly.push(fileAndWordList[t]);
+ }
+
+
+ //alert("t"+fileAndWordListValuesOnly.toString());
+
+ fileAndWordListValuesOnly = unique(fileAndWordListValuesOnly);
+ fileAndWordListValuesOnly = fileAndWordListValuesOnly.sort(compare_nbMots);
+ //alert("t: "+fileAndWordListValuesOnly.join(';'));
+
+ var listToOutput = new Array();
+
+ for (var j in fileAndWordListValuesOnly) {
+ for (t in temptab) {
+ if (temptab[t].motsliste == fileAndWordListValuesOnly[j]) {
+ if (listToOutput[j] == undefined) {
+ listToOutput[j] = new Array(temptab[t]);
+ } else {
+ listToOutput[j].push(temptab[t]);
+ }
+ }
+ }
+ }
+ return listToOutput;
+}
+
+function resultPerFile(filenb, motsliste, motsnb, motslisteDisplay) {
+ this.filenb = filenb;
+ this.motsliste = motsliste;
+ this.motsnb = motsnb;
+ this.motslisteDisplay= motslisteDisplay;
+}
+
+function compare_nbMots(s1, s2) {
+ var t1 = s1.split(',');
+ var t2 = s2.split(',');
+ //alert ("s1:"+t1.length + " " +t2.length)
+ if (t1.length == t2.length) {
+ return 0;
+ } else if (t1.length > t2.length) {
+ return 1;
+ } else {
+ return -1;
+ }
+ //return t1.length - t2.length);
+} \ No newline at end of file
diff --git a/installer/7/ca/content/search/punctuation.props b/installer/7/ca/content/search/punctuation.props
new file mode 100644
index 00000000..d3e3fcd2
--- /dev/null
+++ b/installer/7/ca/content/search/punctuation.props
@@ -0,0 +1,31 @@
+Punct01=\\u3002
+Punct02=\\u3003
+Punct03=\\u300C
+Punct04=\\u300D
+Punct05=\\u300E
+Punct06=\\u300F
+Punct07=\\u301D
+Punct08=\\u301E
+Punct09=\\u301F
+Punct10=\\u309B
+Punct11=\\u2018
+Punct12=\\u2019
+Punct13=\\u201A
+Punct14=\\u201C
+Punct15=\\u201D
+Punct16=\\u201E
+Punct17=\\u2032
+Punct18=\\u2033
+Punct19=\\u2035
+Punct20=\\u2039
+Punct21=\\u203A
+Punct22=\\u201E
+Punct23=\\u00BB
+Punct24=\\u00AB
+Punct25=
+Punct26=
+Punct27=\\u00A0
+Punct28=\\u2014
+
+
+
diff --git a/installer/7/ca/content/search/stemmers/de_stemmer.js b/installer/7/ca/content/search/stemmers/de_stemmer.js
new file mode 100644
index 00000000..7ff3822a
--- /dev/null
+++ b/installer/7/ca/content/search/stemmers/de_stemmer.js
@@ -0,0 +1,247 @@
+/*
+ * Author: Joder Illi
+ *
+ * Copyright (c) 2010, FormBlitz AG
+ * All rights reserved.
+ * Implementation of the stemming algorithm from http://snowball.tartarus.org/algorithms/german/stemmer.html
+ * Copyright of the algorithm is: Copyright (c) 2001, Dr Martin Porter and can be found at http://snowball.tartarus.org/license.php
+ *
+ * Redistribution and use in source and binary forms, with or without modification, is covered by the standard BSD license.
+ *
+ */
+
+//var stemmer = function Stemmer() {
+ /*
+ German includes the following accented forms,
+ ä ö ü
+ and a special letter, ß, equivalent to double s.
+ The following letters are vowels:
+ a e i o u y ä ö ü
+ */
+
+ var stemmer = function(word) {
+ /*
+ Put u and y between vowels into upper case
+ */
+ word = word.replace(/([aeiouyäöü])u([aeiouyäöü])/g, '$1U$2');
+ word = word.replace(/([aeiouyäöü])y([aeiouyäöü])/g, '$1Y$2');
+
+ /*
+ and then do the following mappings,
+ (a) replace ß with ss,
+ (a) replace ae with ä, Not doing these, have trouble with diphtongs
+ (a) replace oe with ö, Not doing these, have trouble with diphtongs
+ (a) replace ue with ü unless preceded by q. Not doing these, have trouble with diphtongs
+ So in quelle, ue is not mapped to ü because it follows q, and in feuer it is not mapped because the first part of the rule changes it to feUer, so the u is not found.
+ */
+ word = word.replace(/ß/g, 'ss');
+ //word = word.replace(/ae/g, 'ä');
+ //word = word.replace(/oe/g, 'ö');
+ //word = word.replace(/([^q])ue/g, '$1ü');
+
+ /*
+ R1 and R2 are first set up in the standard way (see the note on R1 and R2), but then R1 is adjusted so that the region before it contains at least 3 letters.
+ R1 is the region after the first non-vowel following a vowel, or is the null region at the end of the word if there is no such non-vowel.
+ R2 is the region after the first non-vowel following a vowel in R1, or is the null region at the end of the word if there is no such non-vowel.
+ */
+
+ var r1Index = word.search(/[aeiouyäöü][^aeiouyäöü]/);
+ var r1 = '';
+ if (r1Index != -1) {
+ r1Index += 2;
+ r1 = word.substring(r1Index);
+ }
+
+ var r2Index = -1;
+ var r2 = '';
+
+ if (r1Index != -1) {
+ var r2Index = r1.search(/[aeiouyäöü][^aeiouyäöü]/);
+ if (r2Index != -1) {
+ r2Index += 2;
+ r2 = r1.substring(r2Index);
+ r2Index += r1Index;
+ } else {
+ r2 = '';
+ }
+ }
+
+ if (r1Index != -1 && r1Index < 3) {
+ r1Index = 3;
+ r1 = word.substring(r1Index);
+ }
+
+ /*
+ Define a valid s-ending as one of b, d, f, g, h, k, l, m, n, r or t.
+ Define a valid st-ending as the same list, excluding letter r.
+ */
+
+ /*
+ Do each of steps 1, 2 and 3.
+ */
+
+ /*
+ Step 1:
+ Search for the longest among the following suffixes,
+ (a) em ern er
+ (b) e en es
+ (c) s (preceded by a valid s-ending)
+ */
+ var a1Index = word.search(/(em|ern|er)$/g);
+ var b1Index = word.search(/(e|en|es)$/g);
+ var c1Index = word.search(/([bdfghklmnrt]s)$/g);
+ if (c1Index != -1) {
+ c1Index++;
+ }
+ var index1 = 10000;
+ var optionUsed1 = '';
+ if (a1Index != -1 && a1Index < index1) {
+ optionUsed1 = 'a';
+ index1 = a1Index;
+ }
+ if (b1Index != -1 && b1Index < index1) {
+ optionUsed1 = 'b';
+ index1 = b1Index;
+ }
+ if (c1Index != -1 && c1Index < index1) {
+ optionUsed1 = 'c';
+ index1 = c1Index;
+ }
+
+ /*
+ and delete if in R1. (Of course the letter of the valid s-ending is not necessarily in R1.) If an ending of group (b) is deleted, and the ending is preceded by niss, delete the final s.
+ (For example, äckern -> äck, ackers -> acker, armes -> arm, bedürfnissen -> bedürfnis)
+ */
+
+ if (index1 != 10000 && r1Index != -1) {
+ if (index1 >= r1Index) {
+ word = word.substring(0, index1);
+ if (optionUsed1 == 'b') {
+ if (word.search(/niss$/) != -1) {
+ word = word.substring(0, word.length -1);
+ }
+ }
+ }
+ }
+ /*
+ Step 2:
+ Search for the longest among the following suffixes,
+ (a) en er est
+ (b) st (preceded by a valid st-ending, itself preceded by at least 3 letters)
+ */
+
+ var a2Index = word.search(/(en|er|est)$/g);
+ var b2Index = word.search(/(.{3}[bdfghklmnt]st)$/g);
+ if (b2Index != -1) {
+ b2Index += 4;
+ }
+
+ var index2 = 10000;
+ var optionUsed2 = '';
+ if (a2Index != -1 && a2Index < index2) {
+ optionUsed2 = 'a';
+ index2 = a2Index;
+ }
+ if (b2Index != -1 && b2Index < index2) {
+ optionUsed2 = 'b';
+ index2 = b2Index;
+ }
+
+ /*
+ and delete if in R1.
+ (For example, derbsten -> derbst by step 1, and derbst -> derb by step 2, since b is a valid st-ending, and is preceded by just 3 letters)
+ */
+
+ if (index2 != 10000 && r1Index != -1) {
+ if (index2 >= r1Index) {
+ word = word.substring(0, index2);
+ }
+ }
+
+ /*
+ Step 3: d-suffixes (*)
+ Search for the longest among the following suffixes, and perform the action indicated.
+ end ung
+ delete if in R2
+ if preceded by ig, delete if in R2 and not preceded by e
+ ig ik isch
+ delete if in R2 and not preceded by e
+ lich heit
+ delete if in R2
+ if preceded by er or en, delete if in R1
+ keit
+ delete if in R2
+ if preceded by lich or ig, delete if in R2
+ */
+
+ var a3Index = word.search(/(end|ung)$/g);
+ var b3Index = word.search(/[^e](ig|ik|isch)$/g);
+ var c3Index = word.search(/(lich|heit)$/g);
+ var d3Index = word.search(/(keit)$/g);
+ if (b3Index != -1) {
+ b3Index ++;
+ }
+
+ var index3 = 10000;
+ var optionUsed3 = '';
+ if (a3Index != -1 && a3Index < index3) {
+ optionUsed3 = 'a';
+ index3 = a3Index;
+ }
+ if (b3Index != -1 && b3Index < index3) {
+ optionUsed3 = 'b';
+ index3 = b3Index;
+ }
+ if (c3Index != -1 && c3Index < index3) {
+ optionUsed3 = 'c';
+ index3 = c3Index;
+ }
+ if (d3Index != -1 && d3Index < index3) {
+ optionUsed3 = 'd';
+ index3 = d3Index;
+ }
+
+ if (index3 != 10000 && r2Index != -1) {
+ if (index3 >= r2Index) {
+ word = word.substring(0, index3);
+ var optionIndex = -1;
+ var optionSubsrt = '';
+ if (optionUsed3 == 'a') {
+ optionIndex = word.search(/[^e](ig)$/);
+ if (optionIndex != -1) {
+ optionIndex++;
+ if (optionIndex >= r2Index) {
+ word = word.substring(0, optionIndex);
+ }
+ }
+ } else if (optionUsed3 == 'c') {
+ optionIndex = word.search(/(er|en)$/);
+ if (optionIndex != -1) {
+ if (optionIndex >= r1Index) {
+ word = word.substring(0, optionIndex);
+ }
+ }
+ } else if (optionUsed3 == 'd') {
+ optionIndex = word.search(/(lich|ig)$/);
+ if (optionIndex != -1) {
+ if (optionIndex >= r2Index) {
+ word = word.substring(0, optionIndex);
+ }
+ }
+ }
+ }
+ }
+
+ /*
+ Finally,
+ turn U and Y back into lower case, and remove the umlaut accent from a, o and u.
+ */
+ word = word.replace(/U/g, 'u');
+ word = word.replace(/Y/g, 'y');
+ word = word.replace(/ä/g, 'a');
+ word = word.replace(/ö/g, 'o');
+ word = word.replace(/ü/g, 'u');
+
+ return word;
+ };
+//} \ No newline at end of file
diff --git a/installer/7/ca/content/search/stemmers/en_stemmer.js b/installer/7/ca/content/search/stemmers/en_stemmer.js
new file mode 100644
index 00000000..f58012f2
--- /dev/null
+++ b/installer/7/ca/content/search/stemmers/en_stemmer.js
@@ -0,0 +1,187 @@
+// Porter stemmer in Javascript. Few comments, but it's easy to follow against the rules in the original
+// paper, in
+//
+// Porter, 1980, An algorithm for suffix stripping, Program, Vol. 14,
+// no. 3, pp 130-137,
+//
+// see also http://www.tartarus.org/~martin/PorterStemmer
+
+// Release 1 be 'andargor', Jul 2004
+// Release 2 (substantially revised) by Christopher McKenzie, Aug 2009
+
+
+var stemmer = (function(){
+ var step2list = {
+ "ational" : "ate",
+ "tional" : "tion",
+ "enci" : "ence",
+ "anci" : "ance",
+ "izer" : "ize",
+ "bli" : "ble",
+ "alli" : "al",
+ "entli" : "ent",
+ "eli" : "e",
+ "ousli" : "ous",
+ "ization" : "ize",
+ "ation" : "ate",
+ "ator" : "ate",
+ "alism" : "al",
+ "iveness" : "ive",
+ "fulness" : "ful",
+ "ousness" : "ous",
+ "aliti" : "al",
+ "iviti" : "ive",
+ "biliti" : "ble",
+ "logi" : "log"
+ },
+
+ step3list = {
+ "icate" : "ic",
+ "ative" : "",
+ "alize" : "al",
+ "iciti" : "ic",
+ "ical" : "ic",
+ "ful" : "",
+ "ness" : ""
+ },
+
+ c = "[^aeiou]", // consonant
+ v = "[aeiouy]", // vowel
+ C = c + "[^aeiouy]*", // consonant sequence
+ V = v + "[aeiou]*", // vowel sequence
+
+ mgr0 = "^(" + C + ")?" + V + C, // [C]VC... is m>0
+ meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$", // [C]VC[V] is m=1
+ mgr1 = "^(" + C + ")?" + V + C + V + C, // [C]VCVC... is m>1
+ s_v = "^(" + C + ")?" + v; // vowel in stem
+
+ return function (w) {
+ var stem,
+ suffix,
+ firstch,
+ re,
+ re2,
+ re3,
+ re4,
+ origword = w;
+
+ if (w.length < 3) { return w; }
+
+ firstch = w.substr(0,1);
+ if (firstch == "y") {
+ w = firstch.toUpperCase() + w.substr(1);
+ }
+
+ // Step 1a
+ re = /^(.+?)(ss|i)es$/;
+ re2 = /^(.+?)([^s])s$/;
+
+ if (re.test(w)) { w = w.replace(re,"$1$2"); }
+ else if (re2.test(w)) { w = w.replace(re2,"$1$2"); }
+
+ // Step 1b
+ re = /^(.+?)eed$/;
+ re2 = /^(.+?)(ed|ing)$/;
+ if (re.test(w)) {
+ var fp = re.exec(w);
+ re = new RegExp(mgr0);
+ if (re.test(fp[1])) {
+ re = /.$/;
+ w = w.replace(re,"");
+ }
+ } else if (re2.test(w)) {
+ var fp = re2.exec(w);
+ stem = fp[1];
+ re2 = new RegExp(s_v);
+ if (re2.test(stem)) {
+ w = stem;
+ re2 = /(at|bl|iz)$/;
+ re3 = new RegExp("([^aeiouylsz])\\1$");
+ re4 = new RegExp("^" + C + v + "[^aeiouwxy]$");
+ if (re2.test(w)) { w = w + "e"; }
+ else if (re3.test(w)) { re = /.$/; w = w.replace(re,""); }
+ else if (re4.test(w)) { w = w + "e"; }
+ }
+ }
+
+ // Step 1c
+ re = /^(.+?)y$/;
+ if (re.test(w)) {
+ var fp = re.exec(w);
+ stem = fp[1];
+ re = new RegExp(s_v);
+ if (re.test(stem)) { w = stem + "i"; }
+ }
+
+ // Step 2
+ re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/;
+ if (re.test(w)) {
+ var fp = re.exec(w);
+ stem = fp[1];
+ suffix = fp[2];
+ re = new RegExp(mgr0);
+ if (re.test(stem)) {
+ w = stem + step2list[suffix];
+ }
+ }
+
+ // Step 3
+ re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/;
+ if (re.test(w)) {
+ var fp = re.exec(w);
+ stem = fp[1];
+ suffix = fp[2];
+ re = new RegExp(mgr0);
+ if (re.test(stem)) {
+ w = stem + step3list[suffix];
+ }
+ }
+
+ // Step 4
+ re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/;
+ re2 = /^(.+?)(s|t)(ion)$/;
+ if (re.test(w)) {
+ var fp = re.exec(w);
+ stem = fp[1];
+ re = new RegExp(mgr1);
+ if (re.test(stem)) {
+ w = stem;
+ }
+ } else if (re2.test(w)) {
+ var fp = re2.exec(w);
+ stem = fp[1] + fp[2];
+ re2 = new RegExp(mgr1);
+ if (re2.test(stem)) {
+ w = stem;
+ }
+ }
+
+ // Step 5
+ re = /^(.+?)e$/;
+ if (re.test(w)) {
+ var fp = re.exec(w);
+ stem = fp[1];
+ re = new RegExp(mgr1);
+ re2 = new RegExp(meq1);
+ re3 = new RegExp("^" + C + v + "[^aeiouwxy]$");
+ if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) {
+ w = stem;
+ }
+ }
+
+ re = /ll$/;
+ re2 = new RegExp(mgr1);
+ if (re.test(w) && re2.test(w)) {
+ re = /.$/;
+ w = w.replace(re,"");
+ }
+
+ // and turn initial Y back to y
+
+ if (firstch == "y") {
+ w = firstch.toLowerCase() + w.substr(1);
+ }
+
+ return w;
+ }
+})(); \ No newline at end of file
diff --git a/installer/7/ca/content/search/stemmers/fr_stemmer.js b/installer/7/ca/content/search/stemmers/fr_stemmer.js
new file mode 100644
index 00000000..34f97431
--- /dev/null
+++ b/installer/7/ca/content/search/stemmers/fr_stemmer.js
@@ -0,0 +1,299 @@
+/*
+ * Author: Kasun Gajasinghe
+ * E-Mail: kasunbg AT gmail DOT com
+ * Date: 09.08.2010
+ *
+ * usage: stemmer(word);
+ * ex: var stem = stemmer(foobar);
+ * Implementation of the stemming algorithm from http://snowball.tartarus.org/algorithms/french/stemmer.html
+ *
+ * LICENSE:
+ *
+ * Copyright (c) 2010, Kasun Gajasinghe. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ *
+ * THIS SOFTWARE IS PROVIDED BY KASUN GAJASINGHE ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KASUN GAJASINGHE BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+ * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
+ * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+var stemmer = function(word){
+// Letters in French include the following accented forms,
+// â à ç ë é ê è ï î ô û ù
+// The following letters are vowels:
+// a e i o u y â à ë é ê è ï î ô û ù
+
+ word = word.toLowerCase();
+ var oriWord = word;
+ word = word.replace(/qu/g, 'qU'); //have to perform first, as after the operation, capital U is not treated as a vowel
+ word = word.replace(/([aeiouyâàëéêèïîôûù])u([aeiouyâàëéêèïîôûù])/g, '$1U$2');
+ word = word.replace(/([aeiouyâàëéêèïîôûù])i([aeiouyâàëéêèïîôûù])/g, '$1I$2');
+ word = word.replace(/([aeiouyâàëéêèïîôûù])y/g, '$1Y');
+ word = word.replace(/y([aeiouyâàëéêèïîôûù])/g, 'Y$1');
+
+ var rv='';
+ var rvIndex = -1;
+ if(word.search(/^(par|col|tap)/) != -1 || word.search(/^[aeiouyâàëéêèïîôûù]{2}/) != -1){
+ rv = word.substring(3);
+ rvIndex = 3;
+ } else {
+ rvIndex = word.substring(1).search(/[aeiouyâàëéêèïîôûù]/);
+ if(rvIndex != -1){
+ rvIndex +=2; //+2 is to supplement the substring(1) used to find rvIndex
+ rv = word.substring(rvIndex);
+ } else {
+ rvIndex = word.length;
+ }
+ }
+
+// R1 is the region after the first non-vowel following a vowel, or the end of the word if there is no such non-vowel.
+// R2 is the region after the first non-vowel following a vowel in R1, or the end of the word if there is no such non-vowel
+ var r1Index = word.search(/[aeiouyâàëéêèïîôûù][^aeiouyâàëéêèïîôûù]/);
+ var r1 = '';
+ if (r1Index != -1) {
+ r1Index += 2;
+ r1 = word.substring(r1Index);
+ } else {
+ r1Index = word.length;
+ }
+
+ var r2Index = -1;
+ var r2 = '';
+ if (r1Index != -1) {
+ r2Index = r1.search(/[aeiouyâàëéêèïîôûù][^aeiouyâàëéêèïîôûù]/);
+ if (r2Index != -1) {
+ r2Index += 2;
+ r2 = r1.substring(r2Index);
+ r2Index += r1Index;
+ } else {
+ r2 = '';
+ r2Index = word.length;
+ }
+ }
+ if (r1Index != -1 && r1Index < 3) {
+ r1Index = 3;
+ r1 = word.substring(r1Index);
+ }
+
+ /*
+ Step 1: Standard suffix removal
+ */
+ var a1Index = word.search(/(ance|iqUe|isme|able|iste|eux|ances|iqUes|ismes|ables|istes)$/);
+ var a2Index = word.search(/(atrice|ateur|ation|atrices|ateurs|ations)$/);
+ var a3Index = word.search(/(logie|logies)$/);
+ var a4Index = word.search(/(usion|ution|usions|utions)$/);
+ var a5Index = word.search(/(ence|ences)$/);
+ var a6Index = word.search(/(ement|ements)$/);
+ var a7Index = word.search(/(ité|ités)$/);
+ var a8Index = word.search(/(if|ive|ifs|ives)$/);
+ var a9Index = word.search(/(eaux)$/);
+ var a10Index = word.search(/(aux)$/);
+ var a11Index = word.search(/(euse|euses)$/);
+ var a12Index = word.search(/[^aeiouyâàëéêèïîôûù](issement|issements)$/);
+ var a13Index = word.search(/(amment)$/);
+ var a14Index = word.search(/(emment)$/);
+ var a15Index = word.search(/[aeiouyâàëéêèïîôûù](ment|ments)$/);
+
+ if(a1Index != -1 && a1Index >= r2Index){
+ word = word.substring(0,a1Index);
+ } else if(a2Index != -1 && a2Index >= r2Index){
+ word = word.substring(0,a2Index);
+ var a2Index2 = word.search(/(ic)$/);
+ if(a2Index2 != -1 && a2Index2 >= r2Index){
+ word = word.substring(0, a2Index2); //if preceded by ic, delete if in R2,
+ } else { //else replace by iqU
+ word = word.replace(/(ic)$/,'iqU');
+ }
+ } else if(a3Index != -1 && a3Index >= r2Index){
+ word = word.replace(/(logie|logies)$/,'log'); //replace with log if in R2
+ } else if(a4Index != -1 && a4Index >= r2Index){
+ word = word.replace(/(usion|ution|usions|utions)$/,'u'); //replace with u if in R2
+ } else if(a5Index != -1 && a5Index >= r2Index){
+ word = word.replace(/(ence|ences)$/,'ent'); //replace with ent if in R2
+ } else if(a6Index != -1 && a6Index >= rvIndex){
+ word = word.substring(0,a6Index);
+ if(word.search(/(iv)$/) >= r2Index){
+ word = word.replace(/(iv)$/, '');
+ if(word.search(/(at)$/) >= r2Index){
+ word = word.replace(/(at)$/, '');
+ }
+ } else if(word.search(/(eus)$/) != -1){
+ var a6Index2 = word.search(/(eus)$/);
+ if(a6Index2 >=r2Index){
+ word = word.substring(0, a6Index2);
+ } else if(a6Index2 >= r1Index){
+ word = word.substring(0,a6Index2)+"eux";
+ }
+ } else if(word.search(/(abl|iqU)$/) >= r2Index){
+ word = word.replace(/(abl|iqU)$/,''); //if preceded by abl or iqU, delete if in R2,
+ } else if(word.search(/(ièr|Ièr)$/) >= rvIndex){
+ word = word.replace(/(ièr|Ièr)$/,'i'); //if preceded by abl or iqU, delete if in R2,
+ }
+ } else if(a7Index != -1 && a7Index >= r2Index){
+ word = word.substring(0,a7Index); //delete if in R2
+ if(word.search(/(abil)$/) != -1){ //if preceded by abil, delete if in R2, else replace by abl, otherwise,
+ var a7Index2 = word.search(/(abil)$/);
+ if(a7Index2 >=r2Index){
+ word = word.substring(0, a7Index2);
+ } else {
+ word = word.substring(0,a7Index2)+"abl";
+ }
+ } else if(word.search(/(ic)$/) != -1){
+ var a7Index3 = word.search(/(ic)$/);
+ if(a7Index3 != -1 && a7Index3 >= r2Index){
+ word = word.substring(0, a7Index3); //if preceded by ic, delete if in R2,
+ } else { //else replace by iqU
+ word = word.replace(/(ic)$/,'iqU');
+ }
+ } else if(word.search(/(iv)$/) != r2Index){
+ word = word.replace(/(iv)$/,'');
+ }
+ } else if(a8Index != -1 && a8Index >= r2Index){
+ word = word.substring(0,a8Index);
+ if(word.search(/(at)$/) >= r2Index){
+ word = word.replace(/(at)$/, '');
+ if(word.search(/(ic)$/) >= r2Index){
+ word = word.replace(/(ic)$/, '');
+ } else { word = word.replace(/(ic)$/, 'iqU'); }
+ }
+ } else if(a9Index != -1){ word = word.replace(/(eaux)/,'eau')
+ } else if(a10Index >= r1Index){ word = word.replace(/(aux)/,'al')
+ } else if(a11Index != -1 ){
+ var a11Index2 = word.search(/(euse|euses)$/);
+ if(a11Index2 >=r2Index){
+ word = word.substring(0, a11Index2);
+ } else if(a11Index2 >= r1Index){
+ word = word.substring(0, a11Index2)+"eux";
+ }
+ } else if(a12Index!=-1 && a12Index>=r1Index){
+ word = word.substring(0,a12Index+1); //+1- amendment to non-vowel
+ } else if(a13Index!=-1 && a13Index>=rvIndex){
+ word = word.replace(/(amment)$/,'ant');
+ } else if(a14Index!=-1 && a14Index>=rvIndex){
+ word = word.replace(/(emment)$/,'ent');
+ } else if(a15Index!=-1 && a15Index>=rvIndex){
+ word = word.substring(0,a15Index+1);
+ }
+
+ /* Step 2a: Verb suffixes beginning i*/
+ var wordStep1 = word;
+ var step2aDone = false;
+ if(oriWord == word.toLowerCase() || oriWord.search(/(amment|emment|ment|ments)$/) != -1){
+ step2aDone = true;
+ var b1Regex = /([^aeiouyâàëéêèïîôûù])(îmes|ît|îtes|i|ie|ies|ir|ira|irai|iraIent|irais|irait|iras|irent|irez|iriez|irions|irons|iront|is|issaIent|issais|issait|issant|issante|issantes|issants|isse|issent|isses|issez|issiez|issions|issons|it)$/i;
+ if(word.search(b1Regex) >= rvIndex){
+ word = word.replace(b1Regex,'$1');
+ }
+ }
+
+ /* Step 2b: Other verb suffixes*/
+ if (step2aDone && wordStep1 == word) {
+ if (word.search(/(ions)$/) >= r2Index) {
+ word = word.replace(/(ions)$/, '');
+ } else {
+ var b2Regex = /(é|ée|ées|és|èrent|er|era|erai|eraIent|erais|erait|eras|erez|eriez|erions|erons|eront|ez|iez)$/i;
+ if (word.search(b2Regex) >= rvIndex) {
+ word = word.replace(b2Regex, '');
+ } else {
+ var b3Regex = /e(âmes|ât|âtes|a|ai|aIent|ais|ait|ant|ante|antes|ants|as|asse|assent|asses|assiez|assions)$/i;
+ if (word.search(b3Regex) >= rvIndex) {
+ word = word.replace(b3Regex, '');
+ } else {
+ var b3Regex2 = /(âmes|ât|âtes|a|ai|aIent|ais|ait|ant|ante|antes|ants|as|asse|assent|asses|assiez|assions)$/i;
+ if (word.search(b3Regex2) >= rvIndex) {
+ word = word.replace(b3Regex2, '');
+ }
+ }
+ }
+ }
+ }
+
+ if(oriWord != word.toLowerCase()){
+ /* Step 3 */
+ var rep = '';
+ if(word.search(/Y$/) != -1) {
+ word = word.replace(/Y$/, 'i');
+ } else if(word.search(/ç$/) != -1){
+ word = word.replace(/ç$/, 'c');
+ }
+ } else {
+ /* Step 4 */
+ //If the word ends s, not preceded by a, i, o, u, è or s, delete it.
+ if (word.search(/([^aiouès])s$/) >= rvIndex) {
+ word = word.replace(/([^aiouès])s$/, '$1');
+ }
+ var e1Index = word.search(/ion$/);
+ if (e1Index >= r2Index && word.search(/[st]ion$/) >= rvIndex) {
+ word = word.substring(0, e1Index);
+ } else {
+ var e2Index = word.search(/(ier|ière|Ier|Ière)$/);
+ if (e2Index != -1 && e2Index >= rvIndex) {
+ word = word.substring(0, e2Index) + "i";
+ } else {
+ if (word.search(/e$/) >= rvIndex) {
+ word = word.replace(/e$/, ''); //delete last e
+ } else if (word.search(/guë$/) >= rvIndex) {
+ word = word.replace(/guë$/, 'gu');
+ }
+ }
+ }
+ }
+
+ /* Step 5: Undouble */
+ //word = word.replace(/(en|on|et|el|eil)(n|t|l)$/,'$1');
+ word = word.replace(/(en|on)(n)$/,'$1');
+ word = word.replace(/(ett)$/,'et');
+ word = word.replace(/(el|eil)(l)$/,'$1');
+
+ /* Step 6: Un-accent */
+ word = word.replace(/[éè]([^aeiouyâàëéêèïîôûù]+)$/,'e$1');
+ word = word.toLowerCase();
+ return word;
+};
+
+var eqOut = new Array();
+var noteqOut = new Array();
+var eqCount = 0;
+/*
+To test the stemming, create two arrays named "voc" and "COut" which are for vocabualary and the stemmed output.
+Then add the vocabulary strings and output strings. This method will generate the stemmed output for "voc" and will
+compare the output with COut.
+ (I used porter's voc and out files and did a regex to convert them to js objects. regex: /");\nvoc.push("/g . This
+ will add strings to voc array such that output would look like: voc.push("foobar"); ) drop me an email for any help.
+ */
+function testFr(){
+ var start = new Date().getTime(); //execution time
+ eqCount = 0;
+ eqOut = new Array();
+ noteqOut = new Array();
+ for(var k=0;k<voc.length;k++){
+ if(COut[k]==stemmer(voc[k])){
+ eqCount++;
+ eqOut.push("v: "+voc[k]+" c: "+COut[k]);
+ } else {
+ noteqOut.push(voc[k]+", c: "+COut[k]+" s:"+stemmer(voc[k]));
+ }
+ }
+ var end = new Date().getTime(); //execution time
+ var time = end-start;
+ alert("equal count= "+eqCount+" out of "+voc.length+" words. time= "+time+" ms");
+ //console.log("equal count= "+eqCount+" out of "+voc.length+" words. time= "+time+" ms");
+}
+
+