User:PerfektesChaos/js/editToolStrIns.js

/// editToolStrIns /// Edit tool to insert characters and strings--especially for WMF /// 2013-11-01 PerfektesChaos@de.wikipedia /// Fingerprint:#0#AC065F1C# (function(mw,$){ "use strict"; var ETSI; if(typeof mw.libs.editToolStrIns!=="object"||!mw.libs.editToolStrIns){ mw.libs.editToolStrIns={};} ETSI=mw.libs.editToolStrIns; ETSI.vsn=1.00; ETSI.doc="mw:User:PerfektesChaos/js/editToolStrIns"; ETSI.type="editToolStrIns"; if(typeof ETSI.debugging!=="object"){ ETSI.debugging={loud:true,say:"ETSI"};} /// @license GPL [//www.mediawiki.org/w/COPYING](+GFDL,LGPL,CC-BY-SA) /// About:mw:User:PerfektesChaos/js/editToolStrIns if(typeof ETSI.debugging!=="object"){ ETSI.debugging=false;} if(typeof ETSI.l10n!=="object"){ ETSI.l10n={};} ETSI.attr={names:{"class":false,"lang":false,"dir":false,"font-family":true,"font-size":true} }; ETSI.defs={global:null,looser:false}; ETSI.gui={container:".mw-editTools",self:"ETSI",$container:false,$wrapper:false}; ETSI.menu={}; ETSI.nowiki="nowiki"; ETSI.gui.old="#specialchars,#editpage-specialchars"; ETSI.menu.separator="\xA0\xA0•\xA0 "; ETSI.menu.divide={"font-weight":"bold"}; ETSI.menu.stick="…"; ETSI.l10n.dewiki={ "list":,"defs":{ "AHD":{"class":"Unicode"},"ar":{"class":"spanAr","font-size":"1.25em"},"grc":{"class":"polytonic"},"haw":{"font-family": "Arial Unicode MS, Lucida Sans Unicode, MS Mincho, Arial, sans-serif;"}} }; ETSI.l10n.enwiki={"defs":{ "0":"–","—",["‘","’"],["“","”",false,[1,"°″′≈≠≤≥±−×÷√←→·§"],[0,"Sign your posts on talk pages:"],["~"],[0,"Cite your sources:"]," "],"":0,"Insert:"],["–","—",["‘","’"],["“","”",false,[1,"°″′≈≠≤≥±−×÷√←→·§"],false,["~",[" "]],[0,"Wiki markup:"],",["[","]"],["[[",""],[""],["#REDIRECT ",""]," ",[" "," "],["",""],["",""],[" "],[" "," "],[""','""],[" "],[""],""," "],[" "],[" "," "],[" "," "],["",""],["",""],[""]],["",["",""]],[["$$","$$"],[" "] ]," "],[" "],[" "]," "],[[" "," "],[" "," "],[" "," "],":10":[{"font-family":"monospace"},",["","","","if"],["","","","ifeq"],["","","","ifexist"],["","","","expr"],["","","","ifexpr"],["","","","iferror"],["","","","switch"],["","","","tag"],["NaN","","","formatnum"],["","","","formatdate"],["","","","","lc"],["","","","","uc"],["","","","subst"],"ang":[{"lang":"ang"},[1,"ĀāÆæǢǣǼǽĊċÐðĒēĠġĪīŌōŪūǷƿȲȳÞþȜȝ"]],"ar":[{"lang":"ar","dir":"rtl"},[1,"؛؟ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىي،","پچژگڭ"]],"bn":[{"lang":"bn"},[2,0x0981,0x0983,0x0985,0x098C,0x098F,0x0990,0x0993,0x09A8,0x09AA,0x09B0,0x09B2,0x09B2,0x09B6,0x09B9,0x09BC,0x09C4,0x09C7,0x09C8,0x09CB,0x09CE,0x09D7,0x09D7,0x09DC,0x09DD,0x09DF,0x09E3,0x09E6,0x09FB]],"cz":[{"lang":"cz"},[1,"ÁáČčĎďÉéĚěÍíŇňÓóŘřŠšŤťÚúŮůÝýŽž"]],"de":[{"lang":"de"},[1,"ÄäÖößÜü"],"„","“"],["‚","‘"],["»","«"],["›","‹"],"el":[{"lang":"el"},[1,"ΑΆΒΓΔΕΈΖΗΉΘΙΊΚΛΜΝΞΟΌΠΡΣΤΥΎΦΧΨΩΏ","αάβγδεέζηήθιίκλμνξοόπρσςτυύφχψωώ"]],"eo":[{"lang":"eo"},[1,"ĈĉĜĝĤĥĴĵŜŝŬŭ"]],"es":[{"lang":"es"},[1,"ÁáÉéÍíÑñÓóÚúÜü¡¿"]],"et":[{"lang":"et"},[1,"ČčŠšŽžÕõÄäÖöÜü"]],"fr":[{"lang":"fr"},[1,"ÀàÂâÇçÉéÈèÊêËëÎîÏïÔôŒœÙùÛûÜüŸÿ"],"«","»"],["‹","›"],"gl":[{"lang":"gl"},[1,"ÁáÀàÂâÄäÉéÈèÊêËëÌìÎîÏïÓóÒòÔôÖöÙùÛûẀẁŴŵẄẅÝýỲỳŶŷŸÿ"]],"grc":[{"lang":"grc"},[1,"ΑαΆάΒβΓγΔδΕεΈέΖζΗηΉήΘθΙιΊίΪϊΐΚκΛλΜμΝνΞξΟοΌόΠπΡρΣσςΤτΥυΫϋΎύΰΦφΧχΨψΩωΏώ;·ἀἁὰᾶἂἃἄἅἆἇᾳᾀᾁᾴᾲᾷᾄᾅᾂᾃᾆᾇἐἑὲἔἕἒἓἠἡὴῆἤἢἣἥἦἧῃῄῂῇᾐᾑᾔᾒᾕᾓᾖᾗἰἱὶῖἴἲἵἳἶἷὸὀὁὄὅὂὃῤῥὐὑὺῦὔὕὒὓὖὗὠὡὼῶὤὢὥὣὦὧῳῴῲῷᾠᾡᾤᾢᾥᾣᾦᾧ`᾿῾῍῎῏῟῞῝῍῎ϜϝϘϙϠϡ"]],"gu":[{"lang":"gu"},[2,0x0A81,0x0A83,0x0A85,0x0A8D,0x0A8F,0x0A91,0x0A93,0x0AA8,0x0AAA,0x0AB0,0x0AB2,0x0AB3,0x0AB5,0x0AB9,0x0ABC,0x0AC5,0x0AC7,0x0AC9,0x0ACB,0x0ACD,0x0AD0,0x0AD0,0x0AE0,0x0AE3],[2,0x0AE6,0x0AEF,0x0AF1,0x0AF1]],"haw":[{"lang":"haw"},[1,"ĀāĒēĪīŌōŪūʻ"]],"hbs":[{"lang":"hbs"},[-32,"Č č Ć ć Dž dž Đ đ Š š Ž ž"]],"hu":[{"lang":"hu"},[1,"áéíŐöóőŰúüű"]],"is":[{"lang":"is"},[1,"ÁáÐðÉéÍíÓóÚúÝýÞþÆæÖöǫ"]],"it":[{"lang":"it"},[1,"ÁáÀàÉéÈèÍíÌìÓóÒòÚúÙù"]],"iw":[{"lang":"yi","dir":"rtl"},[3,0x05D0,false,0x05D0,0x05B7,false,0x05D0,0x05B8,false,0x05D1,false,0x05D1,0x05BF,false,0x05D2,false,0x05D3,false,0x05D4,false,0x05D5,false,0x05D5,0x05BC,0x05F0,false,0x05F1,false,0x05D6,false,0x05D6,0x05E9,false,0x05D7,false,0x05D8,false,0x05D9,false,0x05D9,0x05B4,false,0x05F2,false,0x05F2,0x05B7,false,0x05DB,false,0x05DA,false,0x05DB,0x05BC,0x05DC,false,0x05DE,false,0x05DD,false,0x05E0,false,0x05DF,false,0x05E1,false,0x05E2,false,0x05E4,false,0x05E4,0x05BC,false,0x05E4,0x05BF,false,0x05E3,false,0x05E6,false,0x05E5,false,0x05E7,false,0x05E8,false,0x05E9,false,0x05E9,0x05C2,false,0x05EA,0x05BC,false,0x05EA,false,0x05F3,false,0x05F4,false,0x05BE]],"lo":[{"lang":"lo"},[2,0x0E81,0x0E82,0x0E84,0x0E84,0x0E87,0x0E88,0x0E8A,0x0E8A,0x0E8D,0x0E8D,0x0E94,0x0E97,0x0E99,0x0E9F,0x0EA1,0x0EA3,0x0EA5,0x0EA5,0x0EA7,0x0EA7,0x0EAA,0x0EAB,0x0EAD,0x0EB9,0x0EC0,0x0EC4,0x0EC6,0x0EC6,0x0EC8,0x0ECD,0x0ED0,0x0ED9,0x0EDC,0x0EDD]],"lv":[{"lang":"lv"},[1,"ĀČĒĢĪĶĻŅŠŪŽ","āčēģīķļņšūž"]],"lt":[{"lang":"lt"},[1,"ĄČĘĖĮŠŲŪŽ","ąčęėįšųūž"]],"mt":[{"lang":"mt"},[1,"ĊċĠġĦħŻż"]],"pl":[{"lang":"pl"},[1,"ąĄćĆęĘłŁńŃóÓśŚźŹżŻ"]],"pt":[{"lang":"pt"},[1,"ÁáÀàÂâÃãÇçÉéÊêÍíÓóÔôÕõÚúÜü"]],"ro":[{"lang":"ro"},[1,"ĂăÂâÎîȘșȚț"]],"roa":[{"lang":"roa"},[1,"ĀāĒēĪīŌōŪū"]],"si":[{"lang":"si"},[2,0x0D82,0x0D83,0x0D85,0x0D96,0x0D9A,0x0DB1,0x0DB3,0x0DBB,0x0DBD,0x0DBD,0x0DC0,0x0DC6,0x0DCA,0x0DCA,0x0DCF,0x0DD4,0x0DD6,0x0DD6,0x0DD8,0x0DDF,0x0DF2,0x0DF4]],"sk":[{"lang":"sk"},[1,"ÁáČčĎďÉéÍíĽľŇňÓóÔôŔŕŠšŤťÚúÝýŽž"]],"te":[{"lang":"te"},[2,0x0C01,0x0C03,0x0C05,0x0C0C,0x0C0E,0x0C10,0x0C12,0x0C28,0x0C2A,0x0C33,0x0C35,0x0C39,0x0C3D,0x0C44,0x0C46,0x0C48,0x0C4A,0x0C4D,0x0C55,0x0C56,0x0C58,0x0C59,0x0C60,0x0C63,0x0C66,0x0C6F,0x0C78,0x0C7F]],"th":[{"lang":"th"},[2,0x0E01,0x0E3A],[2,0x0E3F,0x0E5B]],"tr":[{"lang":"tr"},[-32,"Â Ə Ç Ğ Gʻ Î İ Ñ Ň Oʻ Ş Û Ý Ž","â ə ç ğ gʻ î ı ñ ň oʻ ş û ý ž"]],"vi":[{"lang":"vi"},[1,"ÀàẢảÁáẠạÃãĂăẰằẲẳẴẵẮắẶặÂâẦầẨẩẪẫẤấẬậ","Đđ","ÈèẺẻẼẽÉéẸẹÊêỀềỂểỄễẾếỆệ","ỈỉĨĩÍíỊịÌì","ỎỏÓóỌọÒòÕõÔôỒồỔổỖỗỐốỘộƠơỜờỞởỠỡỚớỢợ","ÙùỦủŨũÚúỤụƯưỪừỬửỮữỨứỰự","ỲỳỶỷỸỹỴỵÝý"]],"wen":[{"lang":"wen"},[1,"ČčĆćěŁłńóřŕŠšŚśŽžŹź"]],"Khmr":[null,[2,0x1780,0x17DD],[2,0x17E0,0x17E9],[2,0x17F0,0x17F9]],"Phli":[{"dir":"rtl","font-family":"ZH Mono"},[2,0x10B60,0x10B72],[2,0x10B78,0x10B7F]],"Prti":[{"dir":"rtl","font-family":"ZH Mono"},[2,0x10B40,0x10B55],[2,0x10B58,0x10B5F]],"Xsux":[{"font-family": "Akkadian, CuneiformComposite, Free Idg Serif"},[2,0x12000,0x1236F],[2,0x12400,0x12462],[2,0x12470,0x12473]],"AHD":[null,[1,"āăäâēĕīĭîōŏôŭ"],false,"o͞o","","","food"],["o͝o","","","foot"],"Cyril":[null,[1,"АӘБВГҐЃҒДЂЕЄЁЖЗЅИІЇİЙӢЈКЌҚЛЉМНЊҢОӨПРСТЋУЎӮҰҮФХҲҺЦЧҶЏШЩЪЫЬЭЮЯ","аәбвгґѓғдђеєёжзѕиіїйӣјкќқлљмнњңоөпрстћуўӯұүфхҳһцчҷџшщъыьэюя"]],"DMG":[null,[1,"ʾʿĀāČčḌḍḎḏǦǧĠġḤḥḪḫĪīḷŋṢṣŠšṬṭṮṯŪūẒẓẔẕŽž"]],"Finance":[null,[1,"‰","₳฿₵¢₡₢$₫₯€₠₣ƒ₴₭₤ℳ₥₦№₧₰£៛₨₪৳₮₩¥"],"¤","","","unspecified currency",[1,"©®™","§"]],"IPA":[{"class":"IPA"},[-32,"p t̪ t ʈ c k q ʡ ʔ","b d̪ d ɖ ɟ ɡ ɢ","ɓ ɗ ʄ ɠ ʛ","t͡s t͡ʃ t͡ɕ d͡z d͡ʒ d͡ʑ","ɸ f θ s ʃ ʅ ʆ ʂ ɕ ç ɧ x χ ħ ʜ h","β v ʍ ð z ʒ ʓ ʐ ʑ ʝ ɣ ʁ ʕ ʖ ʢ ɦ","ɬ ɮ","m m̩ ɱ ɱ̩ ɱ̍ n̪ n̪̍ n n̩ ɳ ɳ̩ ɲ ɲ̩ ŋ ŋ̍ ŋ̩ ɴ ","ɴ̩ ʙ ʙ̩ r r̩ ʀ ʀ̩","ɾ ɽ ɿ ɺ","l̪ l̪̩ l l̩ ɫ ɫ̩ ɭ ɭ̩ ʎ ʎ̩ ʟ ʟ̩","w ɥ ʋ ɹ ɻ j ɰ","ʘ ǂ ǀ ǃ ǁ","ʰ ʱ ʷ ʸ ʲ ʳ ⁿ ˡ ʴ ʵ ˢ ˣ ˠ ʶ ˤ ˁ ˀ ʼ","i i̯ ĩ y y̯ ỹ ɪ ɪ̯ ɪ̃ ʏ ʏ̯ ʏ̃ ɨ ɨ̯ ɨ̃ ʉ ʉ̯ ʉ̃ ɯ ɯ̯ ɯ̃ u u̯ ũ ʊ ʊ̯ ʊ̃","e e̯ ẽ ø ø̯ ø̃ ɘ ɘ̯ ɘ̃ ɵ ɵ̯ ɵ̃ ɤ ɤ̯ ɤ̃ o o̯ õ","ɛ ɛ̯ ɛ̃ œ œ̯ œ̃ ɜ ɜ̯ ɜ̃ ə ə̯ ə̃ ɞ ɞ̯ ɞ̃ ʌ ʌ̯ ʌ̃ ɔ ɔ̯ ɔ̃","æ æ̯ æ̃ ɶ ɶ̯ ɶ̃ a a̯ ã ɐ ɐ̯ ɐ̃ ɑ ɑ̯ ɑ̃ ɒ ɒ̯ ɒ̃","ˈ ˌ ː ˑ ˘. ‿ | ‖"]],"KhmrSy":[null,[2,0x19E0,0x19FF]],"Latin":[null,[-32,"Á á Ć ć É é Í í Ó ó Ś ś Ú ú Ý ý Ǿ ǿ","À à È è Ì ì Ò ò Ù ù","Â â Ĉ ĉ Ê ê Ĝ ĝ Ĥ ĥ Î î Ĵ ĵ Ô ô ŝ Ŝ Û û","Ä ä Ë ë Ï ï Ö ö Ü ü ÿ","Ã ã Ñ ñ Õ õ","Å å","Ç ç","Č č Š š ŭ","Ł ł","Ő ő Ű ű","Ø ø","Ā ā Ē ē Ī ī Ō ō Ū ū Ȳ ȳ","Ă ă Ĕ ĕ Ğ ğ Ĭ ĭ Ŏ ŏ Ŭ ŭ Y̆ y̆","ß","Æ æ Œ œ","Ð ð Þ þ |"]],"Pinyin":[null,[1,"ÁáÀàǍǎĀāÉéÈèĚěĒēÍíÌìǏǐĪīÓóÒòǑǒŌōÚúÙùÜüǓǔŪūǗǘǛǜǙǚǕǖ"]],"Scand":[null,[1,"ÀàÉéÅåÆæÄäØøÖö","ÐðÍíÓóÚúÝýÞþǫ"]],"TeX":[null,"$","$"],["{,}","","","comma {,}",","],"\\",["{","}"],"^",["\\cdot","","","cdot","·"],["\\times","","","times","×"],["\\pm","","","pm","±"],["\\mp","","","mp","∓"],["\\sum{","}","","sum{}","Σ"],["\\frac{","}{}","","frac{}{}","—"],["\\sqrt{","}","","sqrt{}","√"],["\\sqrt[n]{","}","","sqrt[n]{}","ⁿ√"],["\\leq","","","leq","≤"],["\\geq","","","geq","≥"],["\\approx","","","approx","≈"],["\\ne","","","ne","≠"],["\\circ","","","circ","°"],["\\pi","","","","π"],["\\infty","","","infty","∞"],["\\cup","","","cup","∪"],["\\cap","","","cap","∩"],["\\angle","","","angle","∠"],["\\underline","","","underline","_"],["\\overline","","","overline","¯"],["\\begin","\\end","","","begin…end"],["\\!\\,","","","space\\!\\,","SPC"],["\\{","","","","{"],["\\}","","","","}"],"TeX_ar":[null,"\\leftarrow","","","leftarrow","←"],["\\leftrightarrow","","","leftrightarrow","↔"],["\\rightarrow","","","rightarrow","→"],["\\Leftarrow","","","Leftarrow","⇐"],["\\Leftrightarrow","","","Leftrightarrow","⇔"],["\\Rightarrow","","","Rightarrow","⇒"],["\\uparrow","","","uparrow","↑"],["\\updownarrow","","","updownarrow","↕"],["\\downarrow","","","downarrow","↓"],["\\Uparrow","","","Downarrow","⇑"],["\\Updownarrow","","","Updownarrow","⇕"],["\\Downarrow","","","Downarrow","⇓"],["\\nearrow","","","nearrow","↗"],["\\searrow","","","searrow","↘"],["\\swarrow","","","swarrow","↙"],["\\nwarrow","","","nwarrow","↖"],["\\leftrightarrows","","","leftrightarrows","⇆"],["\\updownarrow ","","","updownarrow ","⇅"],["\\rightleftarrows","","","rightleftarrows","⇄","\\leftrightharpoons","","","leftrightharpoons","⇋"],["\\rightleftharpoons","","","rightleftharpoons","⇌"],["\\leftharpoondown","","","leftharpoondown","↽"],["\\rightharpoondown","","","rightharpoondown","⇁"],["\\leftharpoonup","","","leftharpoonup","↼"],["\\rightharpoonup","","","rightharpoonup","⇀"],["\\upharpoonleft","","","upharpoonleft","↿"],["\\upharpoonright","","","upharpoonright","↾"],["\\downharpoonleft","","","downharpoonleft","⇃"],["\\downharpoonright","","","downharpoonright","⇂","\\circlearrowleft","","","circlearrowleft","↺"],["\\circlearrowright","","","circlearrowright","↻"],["\\curvearrowleft","","","curvearrowleft","↶"],["\\curvearrowright","","","curvearrowright","↷"],["\\hookleftarrow","","","hookleftarrow","↩"],["\\hookrightarrow","","","hookrightarrow","↪"],["\\looparrowleft","","","looparrowleft","↫"],["\\looparrowright","","","looparrowright","↬"],["\\leftrightsquigarrow","","","leftrightsquigarrow","↭","\\rightmapsto","","","rightmapsto","↦"],["\\upmapsto","","","upmapsto","↥"],["\\leftmapsto","","","leftmapsto","↤"],["\\downmapsto","","","downmapsto","↧","\\Lsh","","","Lsh","↰"],["\\Rsh","","","Rsh","↱"],["\\dlsh","","","dlsh","↲"],["\\drsh","","","drsh","↳","\\nleftrightarrow","","","nleftrightarrow","↮"],["\\nleftarrow","","","nleftarrow","↚"],["\\nrightarrow","","","nrightarrow","↛"],["\\nLeftrightarrow","","","nLeftrightarrow","⇎"],["\\nLeftarrow","","","nLeftarrow","⇍"],["\\nRightarrow","","","nRightarrow","⇏"],"TeX_bi":[null,"\\leq","","","leq","≤"],["\\geq","","","geq","≥"],["\\propto","","","propto","∝"],["\\neq","","","neq","≠"],["\\equiv","","","equiv","≡"],["\\ll","","","ll","≪"],["\\gg","","","gg","≫"],["\\simeq ","","","simeq ","≃"],["\\cong","","","cong","≅"],["\\approx","","","approx","≈"],["\\triangleq","","","triangleq","≜"],["\\doteq","","","doteq","≐"],["\\stackrel{\\mathrm{def}}","=def","","","≝","\\neg","","","neg","↦"],["\\wedge","","","wedge","∧"],["\\vee","","","vee","∨"],["\\veebar","","","veebar","⊻"],["\\therefore","","","therefore","∴"],["\\because","","","because","∵"],["\\forall","","","forall","∀"],["\\exists","","","exists","∃","\\in","","","in","∈"],["\\nowns","","","nowns","∉"],["\\ni","","","ni","∋"],["\\emptyset","","","emptyset","∅"],["\\cup","","","cup","∪"],["\\cap","","","cap","∩"],["\\subset","","","subset","⊂"],["\\nsubset","","","nsubset","⊄"],["\\subseteq","","","subseteq","⊆"],["\\nsubseteq","","","nsubseteq","⊈"],["\\subsetneq","","","subsetneq","⊊"],["\\supset","","","supset","⊃"],["\\nsupset","","","nsupset","⊅"],["\\subseteq","","","subseteq","⊇"],["\\nsupseteq","","","nsupseteq","⊉"],["\\supsetneq","","","supsetneq","⊋","\\centerdot","","","centerdot","⋅"],["\\ast","","","ast","∗"],["\\circ","","","circ","∘"],["\\oplus","","","oplus","⊕"],["\\otimes","","","otimes","⊗"],["\\square","","","square","□"],["\\nmid","","","nmid","∤"],["\\rightmapsto","","","rightmapsto","↦"],["\\wr","","","wr","≀"],["\\triangleleft","","","triangleleft","◅"],["\\triangleright","","","triangleright","▻"],["\\ltimes","","","ltimes","⋉"],["\\rtimes","","","rtimes","⋊"],["\\bowtie","","","bowtie","⋈","\\vdash","","","vdash","⊢"],["\\dashv","","","dashv","⊣"],["\\intercal","","","intercal","⊤"],["\\perp","","","perp","⊥"],["\\models","","","models","⊧"],"TeX_di":[null,"\\sum_{i=0}^N","","","sum_{i=0}^N","∑"],["\\prod_{i=0}^N","","","prod_{i=0}^N","∏"],["\\coprod","","","coprod","∐","\\lfloor","","","lfloor","⌊"],["\\rfloor","","","rfloor","⌋"],["\\lceil","","","lceil","⌈"],["\\rceil","","","rceil","⌉","\\prime","","","prime","′"],["\\int_{-N}^N","","","int","∫"],["\\iint","","","iint","∬"],["\\iiint","","","iiint","∭"],["\\oint_c","","","oint_c","∮"],["\\partial","","","partial","∂"],["\\Delta","","","Delta","∆"],["\\nabla","","","nabla","∇","\\Complex","","","Complex","ℂ"],["\\mathbb{H}","","","mathbb{H}","ℍ"],["\\Natural","","","Natural","ℕ"],["\\mathbb{P}","","","mathbb{P}","ℙ"],["\\Rational","","","Rational","ℚ"],["\\Real","","","Real","ℝ"],["\\Integer","","","Integer","ℤ"],["\\aleph","","","aleph","ℵ"],"TeX_gr":[null,"\\alpha","","","","α"],["\\beta","","","","β"],["\\gamma","","","","γ"],["\\delta","","","","δ"],["\\epsilon","","","","ε"],["\\zeta","","","","ζ"],["\\eta","","","","η"],["\\theta","","","","θ"],["\\iota","","","","ι"],["\\kappa","","","","κ"],["\\lambda","","","","λ"],["\\mu","","","","μ"],["\\nu","","","","ν"],["\\xi","","","","ξ"],["\\omicron","","","","ο"],["\\pi","","","","π"],["\\rho","","","","ρ"],["\\sigma","","","","σ"],["\\tau","","","","ς"],["\\upsilon","","","","τ"],["\\phi","","","","υ"],["\\chi","","","","φ"],["\\psi","","","","χ"],["\\omega","","","","ψ","\\Alpha","","","","Α"],["\\Beta","","","","Β"],["\\Gamma","","","","Γ"],["\\Delta","","","","Δ"],["\\Epsilon","","","","Ε"],["\\Zeta","","","","Ζ"],["\\Eta","","","","Η"],["\\Theta","","","","Θ"],["\\Iota","","","","Ι"],["\\Kappa","","","","Κ"],["\\Lambda","","","","Λ"],["\\Mu","","","","Μ"],["\\Nu","","","","Ν"],["\\Xi","","","","Ξ"],["\\Omicron","","","","Ο"],["\\Pi","","","","Π"],["\\Rho","","","","Ρ"],["\\Sigma","","","","Σ"],["\\Tau","","","","Τ"],["\\Upsilon","","","","Υ"],["\\Phi","","","","Φ"],["\\Chi","","","","Χ"],["\\Psi","","","","Ψ"],["\\Omega","","","","Ω",[0," var: "],"\\varepsilon","","","","ε"],["\\vartheta","","","","θ"],["\\varkappa","","","","κ"],["\\varpi","","","","π"],["\\varrho","","","","ρ"],["\\varsigma","","","","σ"],["\\varphi","","","","υ"],"TeX_tx":[null,"\\mbox","","","","mbox"],["\\text","","","","text"],["\\displaystyle","","","","displaystyle"],["\\textstyle","","","","textstyle"],["\\boldsymbol{","}","","","boldsymbol"],["\\mathit{","}","","italic","mathit"],["\\mathrm{","}","","roman","mathrm"],["\\mathsf{","}","","sans serif","mathsf"],["\\color{","}","","","color"] }; ETSI.defs.global.IPA_T=ETSI.defs.global.IPA.concat([""]); ETSI.attr.fetch=function(access){ var d=access[0],s,v; if(d){ for(v in this.current){ if(!this.current[v]){ s=d[v]; if(typeof s==="string"){ this.current[v]=s;}}}} }; ETSI.attr.fit=function(attempt){ var r=false,v; if(attempt){ for(v in this.names){ if(typeof attempt[v]==="string"){ r=true; break;}} }else{ r=true;} return r; }; ETSI.attr.furnish=function(assign,acquire,applied){ var d,i,n=ETSI.defs.current.length,q,v; this.current={}; for(v in this.names){ this.current[v]=false;} this.current.dir="ltr"; for(i=0;i<n;i++){ q=ETSI.defs.current[i]; d=q[1].defs; if(typeof d==="object"){ d=d[acquire]; if(typeof d==="object"){ this.fetch(d);}} if(q[0]===applied){ break;}} for(v in this.current){ d=this.current[v]; if(d){ if(this.names[v]){ assign.css(v,d); }else{ assign.attr(v,d);}}} }; ETSI.defs.factory=function{ var o,p,scope=false,shift=false,slang=false; this.current=[]; if(typeof ETSI.user==="object"){ o=this.found("user",ETSI.user); if(o){ p=o.lang; if(typeof p==="string"){ if(p.length){ shift=p;}} if(typeof o.custom==="object"){ this.lead=true;}}} if(typeof ETSI.project==="string"){ if(ETSI.project.length){ scope=ETSI.project;}} if(!scope){ scope=mw.config.get("wgDBname");} this.found("db",scope); p=scope.search(/wik[it].+$/); if(p>0){ this.found("project",scope.substr(p));} if(typeof ETSI.lang==="string"){ if(ETSI.lang.length){ slang=ETSI.lang;}} if(typeof slang!=="string"){ slang=mw.config.get("wgContentLanguage");} p=this.fluent(slang,"projlang","projsub",false); if(typeof shift!=="string"){ shift=mw.config.get("wgUserLanguage").toLowerCase;} p=this.fluent(shift,"language","dialect",p); this.features; this.current.push(["global",{"defs":this.global}]); this.fluent("en","fallback",false,p); }; ETSI.defs.fade=function(access){ var d,i,n; if(access){ n=this.opts.length; for(i=0;i=0;i--){ c=this.current[i][1].config; if(typeof c==="object"){ for(p in c){ ETSI.set(p,c[p]);}}} }; ETSI.defs.filter=function{ var i,n=this.opts.length,s; for(i=n-1;i>=0;i--){ s=this.opts[i][0]; if(typeof s==="string"){ switch(s.charCodeAt(0)){ case 47: break; case 58: if(!this.reNS){ this.reNS="^:"+mw.config.get("wgNamespaceNumber")+"(_.*)?$" ; this.reNS=new RegExp(this.reNS,"");} if(!this.reNS.test(s)){ this.opts.splice(i,1); n--;} break;}}} if(!n){ this.opts=false;} }; ETSI.defs.find=function(access,alike){ var i,n=this.current.length,p,r=false; for(i=0;i1){ r=[acquire,d,g[0]]; break;}}}} return r; }; ETSI.defs.fluent=function(assign,appoint,another,already){ var k=assign.indexOf("-"),r=(already?already:[false,false]),s,slang=assign.toLowerCase,sub; if(k>1){ s=slang.substr(0,k-1); sub=s+"_"+slang.substr(0,k+1); if(already){ if(already[0]===s){ s=false;} if(already[1]===sub){ sub=false;}} if(s){ this.found(appoint,s);} if(sub){ this.found(another,sub);} r=[s,sub]; }else{ if(already){ if(already[0]===slang){ slang=false;}} if(slang){ this.found(appoint,slang); r=[slang,false];}} return r; }; ETSI.defs.format=function{ var c,d,e,g,i,n=this.current.length,o,p; for(i=0;i<n;i++){ o=this.current[i][1]; c=o.defs; if(typeof c==="object"){ if(c){ for(e in c){ d=c[e]; if(typeof d==="object"){ if(ETSI.attr.fit(d)){ c[e]=[d]; }else{ if($.isArray(d)){ if(!ETSI.attr.fit(d[0])){ d.unshift([null]);} }else{ p=d.atributes; g=d.groups; if(p||g){ if(!p){ p=null;} if(g){ c[e]=[p,{"groups":g}]; }else{ c[e]=[p];} }else{ d=false;}}} }else{ d=false;} if(!d){ delete c[e];}}} }else{ c=false;} if(!c){ delete o.defs;}} }; ETSI.defs.found=function(appoint,assign){ var o=false,r=false; switch(typeof assign){ case "object": o=assign; break; case "string": o=ETSI.l10n[assign]; break;} if(typeof o==="object"){ if(o){ this.current.push([appoint,o]); r=o;}} return r; }; ETSI.defs.friend=function(access){ var i,n=this.opts.length,o,r=false; for(i=0;i<n;i++){ o=this.opts[i]; if(o[0]===access){ r=o[3]; break;}} return r; }; ETSI.defs.furnish=function{ var i,j,n,opt,say,seek,temp; if(typeof ETSI.user.custom==="object"){ if($.isArray(ETSI.user.custom)){ n=ETSI.user.custom.length / 2; if(n){ temp=[]; for(i=0;i";}} if(say){ opt=this.finder(seek); if(opt){ opt=opt.concat([say,false]); temp.push(opt);}}} if(seek!==""){ this.fade(seek);}}}} if(temp.length){ this.opts=temp.concat(this.opts);}}}} }; ETSI.gui.facet=function(action){ var k,learn=(typeof ETSI.gui.cookie==="string"),s; if(action){ k=ETSI.gui.$gadget.attr("value"); }else{ if(typeof ETSI.gui.selection==="string"){ k=ETSI.gui.find(ETSI.gui.selection); }else{ k=-1;} if(k<0){ if(learn){ if(typeof window.sessionStorage==="object"){ s=window.sessionStorage.getItem(ETSI.gui.cookie); k=ETSI.gui.find(s);}}} ETSI.gui.$gadget.attr("value",k);} k=(k<0?0:k); if(!ETSI.defs.opts[k][4]){ ETSI.defs.opts[k][4]=ETSI.menu.factory(ETSI.defs.opts[k]);} ETSI.gui.$menu.children.detach; ETSI.gui.$menu.append(ETSI.defs.opts[k][4]); if(learn){ if(typeof window.sessionStorage==="object"){ window.sessionStorage.setItem(ETSI.gui.cookie,ETSI.defs.opts[k][0]);}} }; ETSI.gui.favour=function{ if(typeof this.old==="string"){ mw.util.addCSS(this.old+"{display:none}");} }; ETSI.gui.fill=function(arglist){ var launch; if(this.$current.length){ launch=true; if(this.wikEd){ if(window.wikEd.useWikEd!==true){ this.wikEd.active=false;} if(this.wikEd.active){ if(this.wikEd.focus){ if(arglist.post||arglist.peri||arglist.replace){ launch=this.flip(arglist);} if(window.wikEd.frameBody){ window.wikEd.UpdateTextarea(null);} this.$current=this.$textarea;} }else{ this.wikEd.focus=false;}} if(launch){ if(ETSI.defs.looser){ if(arglist.post===undefined&&arglist.replace===undefined){ arglist.replace=true; if(arglist.peri===undefined){ arglist.peri="";}}} this.$current.textSelection("encapsulateSelection",arglist);}} }; ETSI.gui.find=function(adjust){ var i,n,r=-1; n=ETSI.defs.opts.length; for(i=0;i<n;i++){ if(ETSI.defs.opts[i][0]===adjust){ r=i; break;}} return r; }; ETSI.gui.fit=function(arglist){ var pars,range,re,sel; if(this.$current.length){ pars={}; range=this.$current.textSelection("getCaretPosition",{"startAndEnd": true}); if(arglist[0]){ pars.pre=arglist[0];} if(arglist[1]){ pars.post=arglist[1];} if(range[0]<range[1]){ if(typeof arglist[2]==="string"&&typeof arglist[5]==="string"){ re=new RegExp(arglist[5],""); sel=this.$current.textSelection("getSelection"); pars.peri=sel.replace(re,arglist[2]); pars.replace=true;}} this.fill(pars);} }; ETSI.gui.flip=function(arglist){ var r=true,range=window.wikEd.GetSelection,sel=range.toString,n=sel.length; if(n){ if(n!==$.trimLeft(sel).length||n!==$.trimRight(sel).length){ this.wikEd.encapsulateSelection=arglist; window.wikEd.EditButton(null,this.self,null,this.flipper); r=false;}} return r; }; ETSI.gui.flipper=function(about){ var encapsulate=ETSI.gui.wikEd.encapsulateSelection,got,select,start,sample,suffix; window.wikEd.GetText(about,"selection"); about.changed=about.selection; select=about.changed.plain; start=encapsulate.pre; suffix=encapsulate.post; if(typeof start==="string"){ start=start.replace(/&/g,"&amp;") .replace(//g,"&gt;"); }else{ start="";} if(typeof suffix==="string"){ suffix=suffix.replace(/&/g,"&amp;") .replace(//g,"&gt;"); }else{ suffix="";} got=/^\s+/.exec(select); if(got){ start=got[0]+start; select=select.substr(got[0].length);} got=/\s+$/.exec(select); if(got){ suffix=suffix+got[0]; select=select.substr(0,select.length-got[0].length);} if(encapsulate.replace){ select="";} sample=encapsulate.peri; if(typeof sample==="string"){ if(!select.length){ sample=sample.replace(/&/g,"&amp;") .replace(//g,"&gt;");} }else{ sample=select;} about.changed.plain=start+sample+suffix; about.changed.keepSel=true; return; }; ETSI.gui.focus=function{ this.$textarea=$("#wpTextbox1"); this.wikEd=false; $("textarea, input:text").focus(function{ this.$current=$(this); if(this.wikEd){ this.wikEd.focus=false;} }); if(this.$textarea.length){ this.$current=this.$textarea; }else{ this.$current=$("textarea, input:text").first;} if(typeof window.wikEd==="object"){ if(window.wikEd&&this.$textarea.length){ if(typeof window.wikEd.Setup==="function"){ if(typeof window.wikEd.disabled!=="boolean"||!window.wikEd.disabled){ window.wikEd.Setup;} if(typeof window.wikEd.disabled==="boolean"){ this.wikEd=!window.wikEd.disabled;}} if(this.wikEd){ this.wikEd={active:window.wikEd.useWikEd,focus:true}; window.wikEd.frameDocument.addEventListener("click",this.frames,false); window.wikEd.frameDocument.addEventListener("dblclick",this.frames,false); window.wikEd.frameDocument.addEventListener("keypress",this.frames,false);}}} }; ETSI.gui.frames=function(active){ if(this.wikEd){ this.wikEd.focus=true;} }; ETSI.menu.factory=function(apply){ var d=apply[1],i,lead=false,n=d.length,p,sel,$r=$(" "); $r.css("display","inline"); if(typeof this.$sep!=="object"){ this.$sep=false; if(typeof this.separator==="string"){ if(this.separator.length){ this.$sep=$(" "); this.$sep.text(this.separator); this.$sep.attr("class",ETSI.gui.self+"-sep"); if(typeof this.divide==="object"){ for(p in this.divide){ this.$sep.css(p,this.divide[p]);}}}}} ETSI.attr.furnish($r,apply[0],apply[2]); sel=$r.attr("class"); if(typeof sel==="string"){ sel=sel+","; }else{ sel="";} sel=sel+ETSI.gui.self+"-menu-"+apply[0]; $r.attr("class",sel); for(i=1;i-1024){ for(true;i>=j;i--){ this.fill(assign,i);} m=false;}} if(m){ this.fixed(assign,"ERROR: too many UCS chars: "+i+"..."+j,true);}} }; ETSI.menu.feed=function(assign,apply,align){ var i,lead=align,m,more=apply.length,n,sep=String.fromCharCode(-apply[0]),subs,stream; for(i=1;i<more;i++){ stream=apply[i]; if(typeof stream==="string"){ subs=stream.split(sep); n=subs.length; this.fence(assign,n&&lead); for(m=0;m<n;m++){ this.fill(assign,subs[m]);}} lead=true;} }; ETSI.menu.fence=function(assign,align){ if(align){ if(this.$sep){ assign.append(this.$sep.clone);}} }; ETSI.menu.field=function(assign,apply,align){ var begin,light=true,i,n,r=true; if(apply){ begin=apply[0]; light=(typeof begin==="number"); if(light){ if(begin===1){ this.flush(assign,apply,align); }else if(begin===2){ this.family(assign,apply,align); }else if(begin===3){ this.figures(assign,apply,align); }else if(begin<-31){ this.feed(assign,apply,align); }else if(!begin){ if(apply[1]){ this.fixed(assign,apply[1],align);} r=false; }else if(begin>126){ light=false;}} }else{ r=false;} if(!light){ n=apply.length; this.fence(assign,align); for(i=0;i0){ say=this.fromCharCode(apply); light=true;} break; case "string": say=apply; light=true; break; case "object": loose=false; n=apply.length; sample=""; start=(apply[0]?apply[0]:""); suffix=""; if(typeof start==="number"){ start=this.fromCharCode(start);} say=start; if(n>1){ if(apply[1]){ suffix=apply[1]; if(typeof suffix==="number"){ suffix=this.fromCharCode(suffix);} say=start+suffix; story=start+(this.stick?this.stick:"")+suffix;} if(n>2){ if(apply[2]){ sample=apply[2]; story=say+sample+suffix;} if(n>3){ if(apply[3]){ story=apply[3];} if(n>4){ if(apply[4]){ say=apply[4];} if(n>5){ switch(typeof apply[5]){ case "boolean": loose=apply[5]; break; case "function": exec=function{this.fun(apply); return false; }; break; case "string": exec=function{ETSI.gui.fit(apply); return false; }; break;}}}}}} if(!exec){ if(start||suffix||sample||loose){ pars={}; if(start){ pars.pre=start;} if(suffix){ pars.post=suffix;} if(sample){ pars.peri=sample;} if(loose){ pars.replace=true;}}} break;} if(say.length){ if(light){ pars={"pre":say};} if(pars){ exec=function{ETSI.gui.fill(pars); return false; };} if(exec){ $space=$(" "); $token=$(""); $token.attr("href","#"); $token.attr("class",ETSI.gui.self+"-token"); $token.text(say.replace(/ /g,"\xA0")); if(story){ $token.attr("title",story);} $token.click(exec); assign.append($space); assign.append($token);}} }; ETSI.menu.fixed=function(assign,apply,align){ var s=" "+(align?" ":"")+apply+" "; assign.append(s); }; ETSI.menu.flush=function(assign,apply,align){ var i,lead=align,m,more=apply.length,n,stream; for(i=1;i0xFFFF){ c=address-0x10000; r=String.fromCharCode(0xD800+(c>>10),0xDC00+(c&0x3FF)); }else{ r=String.fromCharCode(address);} return r; }; ETSI.menu.fun=function(apply){ var got=apply[5](apply,ETSI.gui.$current.textSelection("getSelection")); if(typeof got==="object"){ ETSI.gui.fill(got);} }; ETSI.factory=function{ this.defs.lead=false; this.defs.opts=false; this.defs.reNS=false; this.defs.factory; this.defs.tmp=this.defs.find("list","object"); this.gui.hintList=this.defs.find("hintList","string"); this.gui.hintMenu=this.defs.find("hintMenu","string"); this.defs.format; this.defs.fair; if(this.defs.lead){ this.defs.furnish;} if(this.defs.opts){ this.defs.filter;} }; ETSI.about_defs=function(alerting){ var collect=[],d,i,n,p,q,r=false,v; n=this.defs.current.length; for(i=0;i1){ collect=collect.concat([q]);}}}} n=collect.length; if(n){ collect.sort; r=""; p=""; for(q=0;q<n;q++){ v=collect[q]; if(v!==p){ r+=" "+v; p=v;}} r=r.substr(1); }else{ r="*-*-*-*";} if(alerting!==false){ if(typeof window==="object"){ window.alert(r); r=void(0);}} return r; }; ETSI.about_version=function{ var r; r="MediaWiki User:PerfektesChaos editToolStrIns self='"+this.gui.self+"' vsn="+this.vsn; return r; }; ETSI.set=function(action,apply){ switch(action){ case "cookieName": if(typeof apply==="string"){ this.gui.cookie=$.trimLeft(apply); this.gui.cookie=$.trimRight(this.gui.cookie); if(!this.gui.cookie.length){ this.gui.cookie=false;} }else{ this.gui.cookie=false;} break; case "ellipsis": if(typeof apply==="string"){ this.menu.stick=apply;} break; case "groupSeparator": this.menu.separator=apply; break; case "groupSeparatorCSS": if(typeof apply==="object"){ this.menu.divide=apply;} break; case "hintList": if(typeof apply==="string"){ this.gui.hintList=apply;} break; case "hintMenu": if(typeof apply==="string"){ this.gui.hintMenu=apply;} break; case "old": this.gui.old=apply; this.gui.favour; break; case "replace": this.defs.looser=apply; break; case "selection": this.gui.selection=apply; if(typeof this.opts==="object"){ this.gui.facet;} break;} }; ETSI.update=function{ var i,later=(ETSI.gui.$container?true:false),multi,n,$opt,$sep; var x=""; ETSI.gui.$container=$(ETSI.gui.container); multi=ETSI.gui.$container.length; if(multi){ if(later){ ETSI.gui.$container.remove("."+ETSI.gui.self);} ETSI.factory; if(ETSI.defs.opts){ n=ETSI.defs.opts.length; $sep=$(" "); if(ETSI.vsn<1){ x=" ***** TEST "+ETSI.gui.self+" "+ETSI.vsn;} if(!later){ ETSI.gui.favour; ETSI.gui.focus;} ETSI.gui.$wrapper=$(" "); ETSI.gui.$wrapper.attr("class",ETSI.gui.self); ETSI.gui.$gadget=$(" "); ETSI.gui.$gadget.attr("class",ETSI.gui.self+"-gadget"); if(ETSI.gui.hintList){ ETSI.gui.$gadget.attr("title",ETSI.gui.hintList /********/+x); }else{ ETSI.gui.$gadget.attr("title",x);} ETSI.gui.$gadget.change(ETSI.gui.facet); ETSI.gui.$gadget.keyup(ETSI.gui.facet); for(i=0;i<n;i++){ $opt=$(" "); $opt.attr("value",i); $opt.text(ETSI.defs.opts[i][3]); ETSI.gui.$gadget.append($opt);} ETSI.gui.$wrapper.append(ETSI.gui.$gadget); ETSI.gui.$wrapper.append($sep); ETSI.gui.$menu=$(" "); ETSI.gui.$menu.attr("class",ETSI.gui.self+"-menu"); ETSI.gui.$menu.css("display","inline"); if(ETSI.gui.hintMenu){ ETSI.gui.$menu.attr("title",ETSI.gui.hintMenu);} ETSI.gui.$wrapper.append(ETSI.gui.$menu); ETSI.gui.facet(false); for(i=1;i<multi;i++){ ETSI.gui.$container.eq(i).prepend(ETSI.gui.$wrapper.clone);} ETSI.gui.$container.first.prepend(ETSI.gui.$wrapper);}} }; if(!ETSI.lock){ ETSI.lock=true; try{ mw.loader.state("ext.gadget.editToolStrIns","ready"); }catch(e){ } mw.loader.using(["user","mediawiki.util"],function{ $(ETSI.update); });} if(typeof ETSI.hookAfterLoad==="function"){ ETSI.hookAfterLoad;} }(window.mediaWiki,window.jQuery)); /// end of editToolStrIns.js