aboutsummaryrefslogtreecommitdiffstats
path: root/netinstall/8/zh_cn/content/search
diff options
context:
space:
mode:
Diffstat (limited to 'netinstall/8/zh_cn/content/search')
-rw-r--r--netinstall/8/zh_cn/content/search/default.props1
-rw-r--r--netinstall/8/zh_cn/content/search/en-us.props45
-rw-r--r--netinstall/8/zh_cn/content/search/es-es.props179
-rw-r--r--netinstall/8/zh_cn/content/search/htmlFileInfoList.js4
-rw-r--r--netinstall/8/zh_cn/content/search/htmlFileList.js5
-rw-r--r--netinstall/8/zh_cn/content/search/index-1.js366
-rw-r--r--netinstall/8/zh_cn/content/search/index-2.js365
-rw-r--r--netinstall/8/zh_cn/content/search/index-3.js362
-rw-r--r--netinstall/8/zh_cn/content/search/ja-jp.props1
-rw-r--r--netinstall/8/zh_cn/content/search/nwSearchFnt.js513
-rw-r--r--netinstall/8/zh_cn/content/search/punctuation.props31
-rw-r--r--netinstall/8/zh_cn/content/search/stemmers/de_stemmer.js247
-rw-r--r--netinstall/8/zh_cn/content/search/stemmers/en_stemmer.js187
-rw-r--r--netinstall/8/zh_cn/content/search/stemmers/fr_stemmer.js299
14 files changed, 2605 insertions, 0 deletions
diff --git a/netinstall/8/zh_cn/content/search/default.props b/netinstall/8/zh_cn/content/search/default.props
new file mode 100644
index 00000000..22edf439
--- /dev/null
+++ b/netinstall/8/zh_cn/content/search/default.props
@@ -0,0 +1 @@
+DEF01=a \ No newline at end of file
diff --git a/netinstall/8/zh_cn/content/search/en-us.props b/netinstall/8/zh_cn/content/search/en-us.props
new file mode 100644
index 00000000..da284ce5
--- /dev/null
+++ b/netinstall/8/zh_cn/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/netinstall/8/zh_cn/content/search/es-es.props b/netinstall/8/zh_cn/content/search/es-es.props
new file mode 100644
index 00000000..fb73bdcc
--- /dev/null
+++ b/netinstall/8/zh_cn/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/netinstall/8/zh_cn/content/search/htmlFileInfoList.js b/netinstall/8/zh_cn/content/search/htmlFileInfoList.js
new file mode 100644
index 00000000..7ed41c47
--- /dev/null
+++ b/netinstall/8/zh_cn/content/search/htmlFileInfoList.js
@@ -0,0 +1,4 @@
+fil = new Array();
+fil["0"]= "ar01s01.html@@@Introduction@@@null";
+fil["1"]= "netStageTwo.html@@@Stage 2 (Installation Stage)@@@null";
+fil["2"]= "ar01s02.html@@@Stage 1 (Pre-installation Stage)@@@null";
diff --git a/netinstall/8/zh_cn/content/search/htmlFileList.js b/netinstall/8/zh_cn/content/search/htmlFileList.js
new file mode 100644
index 00000000..d46ab75c
--- /dev/null
+++ b/netinstall/8/zh_cn/content/search/htmlFileList.js
@@ -0,0 +1,5 @@
+//List of files which are indexed.
+fl = new Array();
+fl["0"]= "ar01s01.html";
+fl["1"]= "netStageTwo.html";
+fl["2"]= "ar01s02.html";
diff --git a/netinstall/8/zh_cn/content/search/index-1.js b/netinstall/8/zh_cn/content/search/index-1.js
new file mode 100644
index 00000000..ca9a8b99
--- /dev/null
+++ b/netinstall/8/zh_cn/content/search/index-1.js
@@ -0,0 +1,366 @@
+var indexerLanguage="en";
+//Auto generated index for searching.
+w["-"]="1";
+w["-call"]="1";
+w["-charg"]="1";
+w["-green"]="1";
+w["-implement"]="1";
+w["-sa"]="0,1,2";
+w["-yellow-"]="1";
+w["0"]="0,1,2";
+w["0027"]="1";
+w["1"]="0,1,2";
+w["100"]="0";
+w["1024x768"]="1";
+w["12"]="1";
+w["160"]="1";
+w["19"]="1";
+w["2"]="0,1,2";
+w["3"]="0,1,2";
+w["30"]="1";
+w["32-bit"]="0,1";
+w["4"]="1";
+w["40"]="1";
+w["4096"]="1";
+w["5"]="1";
+w["50"]="1";
+w["512"]="1";
+w["6"]="1,2";
+w["60hz"]="1";
+w["64-bit"]="0,1";
+w["7"]="1";
+w["8"]="1";
+w["873"]="1";
+w["@"]="1";
+w["@localhost"]="1";
+w["abl"]="1";
+w["about"]="1";
+w["abov"]="1";
+w["absolut"]="1";
+w["accept"]="1,2";
+w["access"]="0,1";
+w["accord"]="1";
+w["acpi"]="1";
+w["act"]="1";
+w["action"]="1";
+w["activ"]="0,1,2";
+w["actual"]="0,1,2";
+w["ad"]="1";
+w["add"]="1,2";
+w["addit"]="0,1";
+w["address"]="1";
+w["adequ"]="1";
+w["adjust"]="1";
+w["administr"]="1";
+w["adsl"]="2";
+w["advanc"]="1,2";
+w["advic"]="1";
+w["advis"]="1";
+w["after"]="0,1,2";
+w["again"]="1";
+w["agre"]="1";
+w["alert"]="1";
+w["align"]="1";
+w["all"]="1,2";
+w["alloc"]="1";
+w["allow"]="1";
+w["along"]="1";
+w["alreadi"]="1";
+w["also"]="1,2";
+w["alt"]="0,1";
+w["altern"]="1";
+w["although"]="1";
+w["alway"]="1";
+w["amd"]="1";
+w["american"]="0";
+w["ani"]="0,1,2";
+w["anoth"]="1,2";
+w["answer"]="1";
+w["anyth"]="1";
+w["apic"]="1";
+w["appear"]="1";
+w["append"]="1";
+w["appli"]="1";
+w["applic"]="1";
+w["appropri"]="1,2";
+w["arch"]="2";
+w["aren"]="1";
+w["arrang"]="1";
+w["arrow"]="2";
+w["ask"]="0,1,2";
+w["assign"]="1";
+w["attack"]="1";
+w["attempt"]="1";
+w["audio"]="1";
+w["automat"]="0,1,2";
+w["avail"]="0,1,2";
+w["averag"]="1";
+w["awar"]="1";
+w["b"]="0";
+w["back"]="1";
+w["background"]="1";
+w["bad"]="1";
+w["bandwidth"]="0";
+w["base"]="1";
+w["bash"]="1";
+w["basic"]="1";
+w["be"]="1,2";
+w["bear"]="1";
+w["becaus"]="1,2";
+w["becom"]="1";
+w["been"]="0,1,2";
+w["befor"]="1";
+w["behaviour"]="1";
+w["below"]="1,2";
+w["best"]="1";
+w["better"]="1";
+w["between"]="1";
+w["beyond"]="1";
+w["bio"]="1,2";
+w["blank"]="1,2";
+w["block"]="1,2";
+w["blue"]="1";
+w["bluetooth"]="0";
+w["boot"]="0,1,2";
+w["bootabl"]="1";
+w["bootload"]="1";
+w["both"]="0,1,2";
+w["bottom"]="1";
+w["box"]="1";
+w["burn"]="0";
+w["but"]="1";
+w["button"]="1";
+w["byte"]="1";
+w["call"]="1";
+w["candi"]="1";
+w["cannot"]="1";
+w["capabl"]="1";
+w["capac"]="1";
+w["card"]="1";
+w["care"]="1";
+w["carri"]="0";
+w["case"]="1,2";
+w["case-sensit"]="1";
+w["categori"]="1";
+w["cauldron"]="2";
+w["caus"]="1";
+w["cc"]="0,1,2";
+w["cd"]="0";
+w["cdrom"]="2";
+w["center"]="1";
+w["certain"]="1";
+w["cfg"]="1";
+w["chain-load"]="1";
+w["chang"]="1";
+w["channel"]="1";
+w["charact"]="1";
+w["characterist"]="1";
+w["check"]="1";
+w["chines"]="1";
+w["choic"]="1,2";
+w["choos"]="1,2";
+w["chose"]="1,2";
+w["chosen"]="1";
+w["citi"]="1";
+w["clean”"]="1";
+w["clear"]="1";
+w["click"]="1";
+w["clock"]="1";
+w["close"]="1";
+w["closed-sourc"]="1";
+w["codec"]="1";
+w["color"]="1";
+w["colour"]="1";
+w["combin"]="1";
+w["come"]="1";
+w["command"]="1";
+w["commenc"]="0";
+w["commerci"]="1";
+w["common"]="1";
+w["complet"]="0";
+w["complex"]="1";
+w["comput"]="1";
+w["condit"]="1";
+w["confid"]="1";
+w["configur"]="1";
+w["confirm"]="1";
+w["confus"]="0";
+w["connect"]="0,1,2";
+w["conserv"]="1";
+w["consult"]="1";
+w["contain"]="0,1,2";
+w["content"]="1";
+w["context"]="1";
+w["contin"]="1";
+w["continu"]="0,1,2";
+w["contribut"]="1";
+w["control"]="0,1";
+w["conveni"]="0";
+w["convinc"]="1";
+w["copyright"]="1";
+w["core"]="1";
+w["coreutil"]="1";
+w["correct"]="1,2";
+w["correspond"]="1";
+w["could"]="1,2";
+w["countri"]="1";
+w["coupl"]="1";
+w["couples”"]="1";
+w["covert"]="1";
+w["creat"]="1";
+w["criteria"]="1";
+w["critic"]="1";
+w["crt"]="1";
+w["ctrl"]="0,1";
+w["cup"]="1";
+w["currenc"]="1";
+w["custom"]="1";
+w["daemon"]="1";
+w["damag"]="1";
+w["dark"]="1";
+w["dash"]="1";
+w["data"]="1";
+w["databas"]="1";
+w["de-select"]="1";
+w["debug"]="1";
+w["decid"]="1";
+w["dedic"]="1";
+w["default"]="1,2";
+w["defin"]="1";
+w["del"]="0,1";
+w["delay"]="1";
+w["delet"]="1";
+w["depend"]="1,2";
+w["depth"]="1";
+w["descript"]="0";
+w["deselect"]="1";
+w["design"]="1";
+w["desir"]="1";
+w["desktop"]="1";
+w["despit"]="1";
+w["detail"]="0,1,2";
+w["detect"]="1,2";
+w["determin"]="1";
+w["devic"]="0,1,2";
+w["dhcp"]="2";
+w["dialogu"]="1";
+w["didn"]="1";
+w["differ"]="1,2";
+w["difficult"]="1";
+w["directori"]="1,2";
+w["disabl"]="1";
+w["discov"]="1";
+w["disk"]="0,1,2";
+w["diskdrak"]="1";
+w["display"]="1";
+w["distrib"]="2";
+w["distribut"]="1,2";
+w["do"]="0,1";
+w["document"]="1";
+w["doe"]="1";
+w["doesn"]="1";
+w["domain"]="1,2";
+w["don"]="1,2";
+w["done"]="1,2";
+w["doubt"]="1";
+w["down"]="1,2";
+w["down-triangl"]="1";
+w["download"]="0,1";
+w["drag"]="1";
+w["draksound"]="1";
+w["drakx"]="0,1";
+w["drakx-installer-stage2"]="0";
+w["drive"]="0,1,2";
+w["driver"]="0,1";
+w["drop"]="1";
+w["drop-down"]="1";
+w["due"]="1";
+w["dump_mageia_isos_on_an_usb_stick"]="0";
+w["dure"]="0,1";
+w["dvd"]="0,1";
+w["e"]="1";
+w["easier"]="1,2";
+w["easy-"]="1";
+w["edit"]="1";
+w["efi"]="1";
+w["either"]="1,2";
+w["els"]="1";
+w["email"]="1";
+w["en"]="0,1";
+w["enabl"]="1";
+w["encount"]="1";
+w["encrypt"]="0,1";
+w["end"]="1";
+w["energi"]="1";
+w["enjoy"]="1";
+w["enough"]="1";
+w["ensur"]="1";
+w["enter"]="1,2";
+w["enterpris"]="2";
+w["entir"]="1";
+w["entri"]="1,2";
+w["environ"]="1";
+w["eras"]="1";
+w["esp"]="1";
+w["establish"]="0";
+w["etc"]="0,1";
+w["evdev"]="1";
+w["even"]="1";
+w["everi"]="1";
+w["everyth"]="1";
+w["exact"]="1";
+w["exampl"]="1,2";
+w["exclus"]="1";
+w["exfiltr"]="1";
+w["exist"]="1";
+w["expand"]="1";
+w["expert"]="1";
+w["explanatori"]="1";
+w["explicit"]="1";
+w["extend"]="1";
+w["extern"]="1";
+w["extra"]="1";
+w["eye"]="1";
+w["f1"]="0,2";
+w["f2"]="1,2";
+w["f3"]="0";
+w["f7"]="1";
+w["factor"]="1";
+w["fail"]="1";
+w["fair"]="1";
+w["fat32"]="1";
+w["featur"]="1";
+w["few"]="1";
+w["fewer"]="1";
+w["field"]="1,2";
+w["figur"]="1";
+w["file"]="0,1,2";
+w["filesystem"]="1";
+w["film"]="1";
+w["find"]="0,1,2";
+w["fine-tun"]="1";
+w["finish"]="1";
+w["firewal"]="1";
+w["firmwar"]="1";
+w["first"]="0,1,2";
+w["flat-panel"]="1";
+w["floppi"]="1";
+w["follow"]="0,1,2";
+w["forc"]="1";
+w["foreign"]="1";
+w["forget"]="1";
+w["forgot"]="1";
+w["form"]="0,1";
+w["format"]="1";
+w["found"]="1";
+w["free"]="0,1";
+w["free-"]="1";
+w["freed"]="1";
+w["frequenc"]="1";
+w["fresh"]="1";
+w["from"]="0,1,2";
+w["ftp"]="1,2";
+w["full"]="0,1";
+w["fuller"]="1";
+w["function"]="1";
+
diff --git a/netinstall/8/zh_cn/content/search/index-2.js b/netinstall/8/zh_cn/content/search/index-2.js
new file mode 100644
index 00000000..40d2e391
--- /dev/null
+++ b/netinstall/8/zh_cn/content/search/index-2.js
@@ -0,0 +1,365 @@
+//Auto generated index for searching.
+w["further"]="1";
+w["g"]="1";
+w["game"]="1";
+w["gap"]="1";
+w["gb"]="1";
+w["gcin"]="1";
+w["general"]="1";
+w["generic"]="1";
+w["get"]="1";
+w["give"]="1";
+w["gmt"]="1";
+w["gnome"]="1";
+w["gnu"]="1";
+w["go"]="1";
+w["good"]="1,2";
+w["gpart"]="1";
+w["gpt"]="1";
+w["graphic"]="1";
+w["greater"]="1";
+w["green"]="1";
+w["group"]="1";
+w["grub-custom"]="1";
+w["grub2"]="1";
+w["grub2-efi"]="1";
+w["grub2-efi_and_mageia"]="1";
+w["gui"]="1";
+w["hard"]="0,1,2";
+w["hardwar"]="1";
+w["have"]="1";
+w["hdd"]="2";
+w["help"]="2";
+w["henc"]="1";
+w["here"]="0,1,2";
+w["hereaft"]="1";
+w["high"]="1";
+w["highlight"]="2";
+w["hime"]="1";
+w["home"]="1";
+w["horizont"]="1";
+w["host"]="2";
+w["hover"]="1";
+w["how"]="1";
+w["howev"]="1";
+w["http"]="1,2";
+w["https"]="0,1";
+w["i586"]="2";
+w["ibus"]="1";
+w["icewm"]="1";
+w["icmp"]="1";
+w["icon"]="1";
+w["id"]="1";
+w["if"]="0,1,2";
+w["ignor"]="1";
+w["imag"]="0,1,2";
+w["implement"]="1";
+w["implic"]="1";
+w["import"]="1";
+w["improv"]="1";
+w["inappropri"]="1";
+w["inbound"]="1";
+w["includ"]="0,1";
+w["incompat"]="1";
+w["incorpor"]="1";
+w["incorrect"]="1";
+w["indic"]="1";
+w["individu"]="1";
+w["info"]="1";
+w["inform"]="1,2";
+w["info”"]="1";
+w["infring"]="1";
+w["input"]="1";
+w["insert"]="1";
+w["instal"]="0,1,2";
+w["installation_media"]="0";
+w["instanc"]="1";
+w["instead"]="1";
+w["instruct"]="0,1";
+w["intend"]="1";
+w["interest"]="1";
+w["interfac"]="1";
+w["intermediari"]="1";
+w["internet"]="0,1";
+w["interrupt"]="1";
+w["into"]="1";
+w["introduct"]="0";
+w["involv"]="0,1";
+w["irq"]="1";
+w["isn"]="1";
+w["iso"]="0,1,2";
+w["issu"]="1";
+w["it"]="1";
+w["item"]="1";
+w["itself"]="1";
+w["japanes"]="1";
+w["just"]="1,2";
+w["kde"]="1";
+w["kept"]="1";
+w["kernel"]="1";
+w["key"]="1,2";
+w["keyboard"]="0,1";
+w["keyboard_layout"]="1";
+w["kind"]="1";
+w["know"]="1,2";
+w["known"]="1";
+w["korean"]="1";
+w["label"]="1";
+w["lack"]="1";
+w["languag"]="1";
+w["laptop"]="1";
+w["later"]="1";
+w["latin"]="1";
+w["law"]="1";
+w["layout"]="0,1";
+w["lead"]="1";
+w["least"]="1";
+w["leav"]="1,2";
+w["left"]="1";
+w["legaci"]="1";
+w["less"]="0,1";
+w["let"]="1";
+w["letter"]="1";
+w["level"]="1";
+w["licens"]="1";
+w["life”"]="1";
+w["light"]="1";
+w["lighter"]="1";
+w["lightweight"]="1";
+w["like"]="1";
+w["line"]="1";
+w["linux"]="1,2";
+w["list"]="1,2";
+w["livecd"]="0";
+w["ll"]="1";
+w["load"]="1,2";
+w["loader"]="1";
+w["local"]="0,1";
+w["localedrak"]="1";
+w["locat"]="1,2";
+w["lockup"]="1";
+w["log"]="0";
+w["logic"]="1";
+w["login"]="1,2";
+w["lose"]="1";
+w["lot"]="1";
+w["low"]="0";
+w["lower"]="1";
+w["lxde"]="1";
+w["machin"]="1";
+w["made"]="1";
+w["mageia"]="0,1,2";
+w["mail"]="1";
+w["mailspool"]="1";
+w["main"]="1";
+w["make"]="1,2";
+w["malici"]="1";
+w["man"]="1";
+w["manag"]="1";
+w["manual"]="1,2";
+w["manufactur"]="1";
+w["man”"]="1";
+w["mark"]="1";
+w["master"]="1";
+w["match"]="1";
+w["matter"]="1";
+w["maximum"]="1";
+w["may"]="0,1,2";
+w["mb"]="0,1";
+w["mbr"]="1";
+w["mean"]="1,2";
+w["media"]="0,1,2";
+w["medium"]="0,1";
+w["megabyt"]="1";
+w["mention"]="1";
+w["menu"]="1";
+w["menus"]="1";
+w["messag"]="1";
+w["method"]="0,1,2";
+w["mib"]="1";
+w["mice"]="1";
+w["might"]="1";
+w["mind"]="1";
+w["minim"]="0,1";
+w["mirror"]="1,2";
+w["miss"]="1";
+w["mistak"]="1";
+w["mistyp"]="1";
+w["mixtur"]="1";
+w["mode"]="1";
+w["model"]="1";
+w["modern"]="1";
+w["modifi"]="1";
+w["modul"]="2";
+w["monitor"]="1";
+w["more"]="0,1";
+w["most"]="1";
+w["mount"]="1";
+w["mous"]="1";
+w["move"]="2";
+w["much"]="1";
+w["multi-cor"]="1";
+w["multilingu"]="1";
+w["multimedia"]="1";
+w["multipl"]="1";
+w["multiprocess"]="1";
+w["must"]="1";
+w["n"]="1";
+w["name"]="0,1,2";
+w["near"]="1";
+w["necessari"]="2";
+w["need"]="0,1,2";
+w["netinstal"]="0,2";
+w["netinstall-nonfre"]="0";
+w["network"]="0,1,2";
+w["new"]="1";
+w["newer"]="1";
+w["next"]="1";
+w["nfs"]="1,2";
+w["no"]="0,1";
+w["noarch"]="1";
+w["non-fre"]="0,1";
+w["non-latin"]="1";
+w["none"]="1";
+w["nonfre"]="1";
+w["normal"]="1";
+w["note"]="1";
+w["noth"]="0,1";
+w["notif"]="1,2";
+w["now"]="1,2";
+w["ntfs"]="1";
+w["number"]="1";
+w["nvidia"]="1";
+w["obtain"]="1";
+w["offer"]="1";
+w["offic"]="1";
+w["offici"]="2";
+w["often"]="1";
+w["ok"]="1,2";
+w["older"]="1";
+w["onc"]="0,1,2";
+w["one"]="1";
+w["onli"]="0,1";
+w["onlin"]="1";
+w["open"]="1,2";
+w["oper"]="0,1";
+w["opt"]="1";
+w["optical-disc"]="1";
+w["option"]="1,2";
+w["order"]="1";
+w["ordinari"]="1";
+w["org"]="0,1,2";
+w["os"]="1";
+w["other"]="0,1,2";
+w["otherwis"]="1,2";
+w["out"]="0";
+w["outbound"]="1";
+w["outsid"]="1";
+w["over"]="1";
+w["own"]="1";
+w["packag"]="0,1";
+w["page"]="1";
+w["panel"]="1";
+w["paramet"]="1";
+w["part"]="0,1";
+w["particular"]="1,2";
+w["partit"]="1,2";
+w["partition”"]="1";
+w["pass"]="1";
+w["password"]="1,2";
+w["patent"]="1";
+w["path"]="0,2";
+w["pc"]="0";
+w["peopl"]="1";
+w["per"]="0";
+w["perform"]="1,2";
+w["perhap"]="1";
+w["permit"]="1";
+w["person"]="1";
+w["ping"]="1";
+w["place"]="1";
+w["plasma"]="1";
+w["play"]="1";
+w["pleas"]="1";
+w["plug"]="1";
+w["point"]="0,1,2";
+w["pop-up"]="2";
+w["port"]="1";
+w["port-numb"]="1";
+w["possibl"]="1";
+w["post-instal"]="1";
+w["power"]="1";
+w["pre-exist"]="1";
+w["pre-instal"]="0,2";
+w["preced"]="1";
+w["prefer"]="0,1";
+w["prepar"]="0,1";
+w["present"]="1,2";
+w["preserv"]="1";
+w["press"]="0,1,2";
+w["prevent"]="1";
+w["previous"]="1";
+w["printer"]="1";
+w["prioriti"]="1";
+w["privileg"]="1";
+w["probabl"]="1,2";
+w["probe"]="1";
+w["problem"]="1";
+w["procedur"]="1";
+w["proceed"]="1,2";
+w["process"]="1";
+w["processor"]="1";
+w["program"]="1";
+w["programm"]="1";
+w["project"]="1";
+w["propos"]="1";
+w["proprietari"]="0,1";
+w["protect"]="1";
+w["protocol"]="1";
+w["provid"]="0,1,2";
+w["proxi"]="1";
+w["ps"]="1";
+w["pub"]="2";
+w["public"]="1";
+w["purpos"]="1";
+w["put"]="0";
+w["question"]="1";
+w["quit"]="0,1";
+w["random"]="1";
+w["rang"]="1";
+w["rate"]="1";
+w["rather"]="1";
+w["re"]="1";
+w["reach"]="1";
+w["read"]="0,1,2";
+w["readi"]="1";
+w["real"]="1";
+w["realli"]="1";
+w["reboot"]="1";
+w["receiv"]="1";
+w["recognis"]="1";
+w["recommend"]="1";
+w["reconfigur"]="1";
+w["record"]="1";
+w["recov"]="1";
+w["red-"]="1";
+w["redistribut"]="1";
+w["refer"]="1";
+w["refresh"]="1";
+w["region"]="1";
+w["regular"]="1";
+w["regulatori"]="1";
+w["reject"]="1";
+w["relat"]="1";
+w["releas"]="1";
+w["relev"]="1,2";
+w["remain"]="1";
+w["remaind"]="1";
+w["remot"]="1";
+w["remov"]="1";
+w["repeat"]="1";
+w["repositori"]="1";
+w["request"]="1";
+w["requir"]="0,1,2";
+w["rescu"]="1";
+
diff --git a/netinstall/8/zh_cn/content/search/index-3.js b/netinstall/8/zh_cn/content/search/index-3.js
new file mode 100644
index 00000000..5b1cf4f2
--- /dev/null
+++ b/netinstall/8/zh_cn/content/search/index-3.js
@@ -0,0 +1,362 @@
+//Auto generated index for searching.
+w["resiz"]="1";
+w["resolut"]="1";
+w["rest"]="1";
+w["restor"]="1";
+w["result"]="1";
+w["return"]="0,1,2";
+w["retyp"]="1";
+w["rfc-433"]="1";
+w["rid"]="1";
+w["right"]="1";
+w["right-click"]="1";
+w["risk"]="1";
+w["riski"]="1";
+w["room"]="1";
+w["root"]="1";
+w["rsync"]="1,2";
+w["rule"]="1";
+w["run"]="1";
+w["s"]="0,1";
+w["safe"]="0,1";
+w["safe”"]="1";
+w["same"]="1,2";
+w["satisfact"]="1";
+w["satisfactori"]="1";
+w["save"]="1";
+w["say"]="2";
+w["scan"]="1,2";
+w["scim"]="1";
+w["scope"]="1";
+w["screen"]="0,1,2";
+w["screenshot"]="1,2";
+w["scsi"]="1";
+w["sda"]="1";
+w["sdb"]="1";
+w["second"]="1,2";
+w["section"]="1,2";
+w["sector"]="1";
+w["secur"]="1";
+w["see"]="0,1,2";
+w["seem"]="1";
+w["seen"]="2";
+w["select"]="1,2";
+w["self"]="1";
+w["self-explanatori"]="1";
+w["send"]="1";
+w["sens"]="1";
+w["separ"]="0,1";
+w["seri"]="1";
+w["server"]="0,1,2";
+w["servic"]="1";
+w["set"]="1,2";
+w["setup"]="1";
+w["sever"]="1";
+w["sh"]="1";
+w["shell"]="1";
+w["shield"]="1";
+w["short"]="1";
+w["should"]="1,2";
+w["show"]="1,2";
+w["shown"]="1";
+w["side"]="1";
+w["similar"]="1";
+w["simpl"]="1";
+w["simpli"]="1";
+w["sinc"]="1";
+w["situat"]="1";
+w["six"]="1";
+w["size"]="1";
+w["slideshow"]="1";
+w["small"]="1";
+w["smp"]="1";
+w["smtp"]="1";
+w["softwar"]="0,1";
+w["solv"]="1";
+w["some"]="1";
+w["someth"]="1";
+w["sound"]="1";
+w["sourc"]="0,1";
+w["space"]="1";
+w["specialis"]="1";
+w["specif"]="1";
+w["specifi"]="1,2";
+w["sport"]="1";
+w["ssd"]="1";
+w["stage"]="0,1,2";
+w["standard"]="1";
+w["standbi"]="1";
+w["start"]="0,1,2";
+w["static"]="2";
+w["step"]="1,2";
+w["stick"]="0,2";
+w["still"]="1";
+w["stop"]="1";
+w["storag"]="1,2";
+w["store"]="1";
+w["strength"]="1";
+w["strong"]="1";
+w["structur"]="2";
+w["subsequ"]="1";
+w["such"]="1,2";
+w["suggest"]="1";
+w["suit"]="1";
+w["suitabl"]="1,2";
+w["summari"]="1";
+w["superus"]="1";
+w["supplement"]="1";
+w["suppli"]="2";
+w["support"]="0,1";
+w["sure"]="1";
+w["swap"]="1";
+w["switch"]="1";
+w["symmetr"]="1";
+w["sync"]="1";
+w["system"]="1,2";
+w["t"]="1,2";
+w["tab"]="1,2";
+w["taint"]="1";
+w["take"]="1";
+w["target"]="1";
+w["tcp"]="1";
+w["tell"]="1";
+w["temporarili"]="1";
+w["term"]="1";
+w["test"]="1";
+w["text"]="1";
+w["than"]="0,1";
+w["thank"]="1";
+w["that"]="0,1,2";
+w["their"]="1";
+w["them"]="1";
+w["then"]="0,1,2";
+w["there"]="0,1";
+w["therefor"]="1";
+w["these"]="0,1";
+w["they"]="1";
+w["thing"]="0";
+w["think"]="1";
+w["third-parti"]="2";
+w["thorough"]="1";
+w["those"]="0,1";
+w["though"]="1";
+w["three"]="1";
+w["tick"]="1";
+w["time"]="1";
+w["timezon"]="1";
+w["too"]="0,1";
+w["tool"]="1";
+w["tool-tip"]="1";
+w["top"]="1";
+w["total"]="1";
+w["touch"]="1";
+w["tree"]="1";
+w["tree-lik"]="2";
+w["tri"]="1";
+w["triangl"]="1";
+w["troubleshoot"]="1";
+w["true"]="1";
+w["tty2"]="1";
+w["turn"]="1";
+w["two"]="0,1,2";
+w["type"]="0,1,2";
+w["udp"]="1";
+w["uefi"]="1,2";
+w["uefi-bas"]="1";
+w["umask"]="1";
+w["unabl"]="0,1";
+w["unboot"]="1";
+w["under"]="1";
+w["underneath"]="1";
+w["understand"]="1";
+w["unicod"]="1";
+w["uninstal"]="1";
+w["univers"]="1";
+w["unix"]="1";
+w["unknown"]="1";
+w["unless"]="1";
+w["unlik"]="0";
+w["unprotect"]="1";
+w["unsupport"]="1";
+w["unsur"]="1,2";
+w["untick"]="1";
+w["until"]="1,2";
+w["unus"]="1";
+w["up"]="1,2";
+w["updat"]="1";
+w["upgrad"]="1";
+w["upper"]="1";
+w["url"]="1";
+w["usag"]="1";
+w["usb"]="0,1,2";
+w["use"]="0,1,2";
+w["user"]="1";
+w["usernam"]="1";
+w["usual"]="1";
+w["utc"]="1";
+w["utf-8"]="1";
+w["util"]="1";
+w["valu"]="1";
+w["var"]="1";
+w["vari"]="1";
+w["various"]="1";
+w["vendor"]="1";
+w["veri"]="0,1";
+w["verit"]="1";
+w["version"]="0,1,2";
+w["vertic"]="1";
+w["vesa"]="1";
+w["via"]="0,1,2";
+w["video"]="1";
+w["view"]="1";
+w["visibl"]="1";
+w["visit"]="1";
+w["vista"]="1";
+w["want"]="1";
+w["warn"]="1";
+w["was"]="1";
+w["way"]="1";
+w["we"]="1";
+w["websit"]="1";
+w["welcom"]="2";
+w["well"]="1";
+w["what"]="1,2";
+w["whatev"]="1";
+w["when"]="0,1,2";
+w["where"]="1,2";
+w["whether"]="1,2";
+w["which"]="0,1,2";
+w["whichev"]="2";
+w["while"]="1";
+w["who"]="0";
+w["wider"]="1";
+w["wifi"]="0,1";
+w["wiki"]="0,1";
+w["wikipedia"]="1";
+w["will"]="0,1,2";
+w["window"]="1";
+w["wipe"]="1";
+w["wireless"]="1";
+w["wise"]="1";
+w["wish"]="0,1,2";
+w["within"]="1";
+w["without"]="0,1";
+w["work"]="1";
+w["workstat"]="1";
+w["would"]="1";
+w["write"]="1";
+w["written"]="0,1";
+w["wrong"]="1";
+w["www"]="0,1";
+w["x"]="1";
+w["x86_64"]="2";
+w["xorg"]="1";
+w["xp"]="1";
+w["x”"]="1";
+w["yes"]="1";
+w["yet"]="1";
+w["yourself"]="1";
+w["zero"]="1";
+w[" "]="0,1,2";
+w[" bio"]="1,2";
+w[" efi"]="1";
+w[" uefi"]="2";
+w["©"]="0,1,2";
+w["“"]="1";
+w["“显示卡和显示器配置”一节"]="1";
+w["“选择一个x服务器"]="1";
+w["“选择您的显示器”一节"]="1";
+w["”一节"]="1";
+w["→"]="1";
+w["也可以在安装完成后改变访问权限"]="1";
+w["仓库无法被禁用,因其包含发行版中的基础软件"]="1";
+w["会根据您的语言为您选择合适的键盘"]="1";
+w["使用现存的引导器"]="1";
+w["允许您完全控制系统在硬盘上的安装方式"]="1";
+w["分区的大小"]="1";
+w["分区,并且可以将其用于"]="1";
+w["卸载mageia"]="1";
+w["参数"]="1";
+w["发行说明"]="1";
+w["只有在您完全了解您的行为的风险后再作出改动"]="1";
+w["同时,该分区也应当进行碎片整理,即便不能将文件碎片完全移出待使用区域"]="1";
+w["图 1"]="2";
+w["图 2"]="2";
+w["图 3"]="1";
+w["图 4"]="1";
+w["地区"]="1";
+w["声音配置"]="1";
+w["如果您不知道您的键盘肿瘤,请查阅您的电脑配件规格,或询问电脑供应商,或查看键盘上的标签"]="1";
+w["如果您发现键盘布局错误"]="1";
+w["如果您在后续的安装过程中遇到大量依赖缺失的问题,请重启并改用其他镜像"]="2";
+w["如果需要获取网络资源,请执行以下两步:"]="1";
+w["安全"]="1";
+w["安全级别"]="1";
+w["安装到该区域中"]="1";
+w["将会缩小"]="1";
+w["小心"]="1";
+w["平板"]="1";
+w["引导程序的主要选项"]="1";
+w["恭喜"]="1";
+w["您也可以参考这里的内容:"]="1";
+w["您可以添加或配置其他触控设备"]="1";
+w["您尝试了默认配置,但安装失败"]="1";
+w["您预知该默认配置存在问题"]="1";
+w["我们推荐您对个人文件进行备份后再进行此操作"]="1";
+w["所选仓库将决定下一步中可用的软件包"]="1";
+w["提示"]="0,1";
+w["新安装或升级"]="1";
+w["时必须正常地关机或重启"]="1";
+w["显示卡和显示器配置"]="1";
+w["更新"]="1";
+w["最小安装"]="1";
+w["有齐全的显卡数据库,一般情况下可以正确识别您的视频设备"]="1";
+w["根据所选的安装介质,并非所有仓库都可以使用"]="1";
+w["格式化"]="1";
+w["桌面环境选择"]="1";
+w["此处列出了可用的仓库"]="1";
+w["注意"]="0,1";
+w["添加或修改引导菜单项"]="1";
+w["的安装"]="1";
+w["硬件参数"]="1";
+w["确定要格式化的硬盘"]="1";
+w["系统参数"]="1";
+w["网络和"]="1";
+w["自定义"]="1";
+w["若仍有疑问,请查询显示器文档"]="1";
+w["若安装程序无法正确检测您的显卡,请在以下列表中选择一个合适的配置:"]="1";
+w["若安装程序无法正确检测您的显示器,请在以下列表中选择一个合适的配置:"]="1";
+w["若您安装了多个操作系统,请确保硬件时钟均被设为本地时间,或均为"]="1";
+w["若您对鼠标的响应速度不满意,可以在这里进行调整"]="1";
+w["若您没有调整引导器的配置,将会自动启动"]="1";
+w["若找不到合适的键盘,则会自动选择美式键盘"]="1";
+w["若此选项可用,表面安装程序找到了现存的"]="1";
+w["若硬盘上有未使用的区域,此选项将会把"]="1";
+w["若高亮选中服务,则可在下方的信息框中查看此服务的细节"]="1";
+w["警告"]="0,1";
+w["许可协议"]="1";
+w["许可证和发行说明"]="1";
+w["设置scsi"]="1";
+w["设置管理员(root"]="1";
+w["该分区必须为“clean”状态,即上一次使用"]="1";
+w["请不要选择与您的显示器不匹配的同步范围,这样做可能损害显示器"]="1";
+w["请确保该选项正确"]="1";
+w["请选择要使用的语言"]="1";
+w["账户)密码:"]="1";
+w["轨迹球等"]="1";
+w["输入法"]="1";
+w["输入用户名"]="1";
+w["选择一个x服务器"]="1";
+w["选择单个软件包"]="1";
+w["选择您所在的国家"]="1";
+w["选择您的显示器"]="1";
+w["选择挂载点"]="1";
+w["选择软件包组"]="1";
+w["选择鼠标"]="1";
+w["配置您的显示卡"]="1";
+w["配置时区"]="1";
+w["配置服务"]="1";
+w["重要"]="1";
+w["键盘"]="1";
+w["需要更正,请注意:在更改配置后,之前设置的密码也可能发生改变"]="1";
+
diff --git a/netinstall/8/zh_cn/content/search/ja-jp.props b/netinstall/8/zh_cn/content/search/ja-jp.props
new file mode 100644
index 00000000..27568054
--- /dev/null
+++ b/netinstall/8/zh_cn/content/search/ja-jp.props
@@ -0,0 +1 @@
+J01=\\u306B \ No newline at end of file
diff --git a/netinstall/8/zh_cn/content/search/nwSearchFnt.js b/netinstall/8/zh_cn/content/search/nwSearchFnt.js
new file mode 100644
index 00000000..0111559c
--- /dev/null
+++ b/netinstall/8/zh_cn/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/netinstall/8/zh_cn/content/search/punctuation.props b/netinstall/8/zh_cn/content/search/punctuation.props
new file mode 100644
index 00000000..d3e3fcd2
--- /dev/null
+++ b/netinstall/8/zh_cn/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/netinstall/8/zh_cn/content/search/stemmers/de_stemmer.js b/netinstall/8/zh_cn/content/search/stemmers/de_stemmer.js
new file mode 100644
index 00000000..7ff3822a
--- /dev/null
+++ b/netinstall/8/zh_cn/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/netinstall/8/zh_cn/content/search/stemmers/en_stemmer.js b/netinstall/8/zh_cn/content/search/stemmers/en_stemmer.js
new file mode 100644
index 00000000..f58012f2
--- /dev/null
+++ b/netinstall/8/zh_cn/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/netinstall/8/zh_cn/content/search/stemmers/fr_stemmer.js b/netinstall/8/zh_cn/content/search/stemmers/fr_stemmer.js
new file mode 100644
index 00000000..34f97431
--- /dev/null
+++ b/netinstall/8/zh_cn/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");
+}
+
+