KartikMistry has uploaded a new change for review. https://gerrit.wikimedia.org/r/114451
Change subject: Update jquery.ime from upstream ...................................................................... Update jquery.ime from upstream Upstream: https://github.com/wikimedia/jquery.ime Changes: * Optimize all SVGs. * Removed unused images/ime-inactive.* files. * Renamed: rules/README -> rules/README.md Also, updated version in UniversalLanguageSelector.php Change-Id: Ifd848da55e8ac68ef63fef5d435ecc23fc20e000 --- M UniversalLanguageSelector.php M lib/jquery.ime/images/ime-active.svg D lib/jquery.ime/images/ime-inactive.png D lib/jquery.ime/images/ime-inactive.svg M lib/jquery.ime/images/tick.svg M lib/jquery.ime/jquery.ime.js R lib/jquery.ime/rules/README.md 7 files changed, 37 insertions(+), 195 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UniversalLanguageSelector refs/changes/51/114451/1 diff --git a/UniversalLanguageSelector.php b/UniversalLanguageSelector.php index 1375c72..b21c7af 100644 --- a/UniversalLanguageSelector.php +++ b/UniversalLanguageSelector.php @@ -25,7 +25,7 @@ /** * Version number used in extension credits and in other placed where needed. */ -define( 'ULS_VERSION', '2014-02-10' ); +define( 'ULS_VERSION', '2014-02-20' ); $GLOBALS['wgExtensionCredits']['other'][] = array( 'path' => __FILE__, diff --git a/lib/jquery.ime/images/ime-active.svg b/lib/jquery.ime/images/ime-active.svg index b850c0c..a9dcfdb 100644 --- a/lib/jquery.ime/images/ime-active.svg +++ b/lib/jquery.ime/images/ime-active.svg @@ -1,56 +1 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> - -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - version="1.1" - id="Layer_1" - x="0px" - y="0px" - width="15" - height="11" - viewBox="0 0 15 11" - enable-background="new 0 0 32 32" - xml:space="preserve" - inkscape:version="0.48.3.1 r9886" - sodipodi:docname="ime-active.svg"><metadata - id="metadata7"><rdf:RDF><cc:Work - rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs - id="defs5" /><sodipodi:namedview - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1" - objecttolerance="10" - gridtolerance="10" - guidetolerance="10" - inkscape:pageopacity="0" - inkscape:pageshadow="2" - inkscape:window-width="1600" - inkscape:window-height="842" - id="namedview3" - showgrid="false" - showguides="true" - inkscape:guide-bbox="true" - inkscape:zoom="1" - inkscape:cx="24.423195" - inkscape:cy="9.4281437" - inkscape:window-x="1366" - inkscape:window-y="27" - inkscape:window-maximized="1" - inkscape:current-layer="Layer_1" - fit-margin-top="0" - fit-margin-left="0" - fit-margin-right="0" - fit-margin-bottom="0" /> -<path - style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#565656;fill-opacity:1;stroke:none;stroke-width:1.5;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans" - d="m 6.7529297,0 c 0,0 -0.043153,0.10653602 -0.1025391,0.23342175 -0.055763,0.11914873 -0.160995,0.24200467 -0.1611328,0.24801061 -0.034964,0.002614 -0.1756903,0.0496866 -0.3662109,0.0583554 -0.2540274,0.011559 -0.5868825,0.002054 -0.9375,-0.0145889 -0.7012351,-0.0332579 -1.4487375,-0.09987 -1.9482422,-0.0145889 l -0.014648,0 C 2.9207729,0.56658321 2.706232,0.76667934 2.5488285,0.97745358 2.3891026,1.191337 2.2734893,1.4338398 2.1972656,1.66313 2.080664,2.0138821 2.0383807,2.2836892 2.0214844,2.4217507 L 0,2.4217507 0,11 l 15,0 0,-8.5782493 -12.2607422,0 C 2.7623068,2.2824058 2.7983408,2.100813 2.8710938,1.8819629 2.9325088,1.6972194 3.0144953,1.5077612 3.1054688,1.3859416 3.1964418,1.2641221 3.2843985,1.2107544 3.3691406,1.1962865 c 0.2870018,-0.049 1.0579844,-0.00471 1.772461,0.029178 0.3572381,0.016942 0.7114059,0.028207 1.0107421,0.014589 C 6.45168,1.2264352 6.691927,1.2420138 6.9433594,1.035809 7.1397455,0.87473774 7.2051605,0.70028019 7.2802734,0.5397878 7.3553864,0.37929541 7.4121094,0.23342175 7.4121094,0.23342175 L 6.7529297,0 z m -5.3320313,4.3766578 1.1572266,0 c 0.072237,0 0.1318359,0.044766 0.1318359,0.1167109 l 0,1.1671088 c 0,0.071943 -0.059598,0.1312997 -0.1318359,0.1312997 l -1.1572266,0 c -0.072237,0 -0.1318359,-0.059356 -0.1318359,-0.1312997 l 0,-1.1671088 c 0,-0.071943 0.059599,-0.1167109 0.1318359,-0.1167109 z m 2.1240235,0 1.1572265,0 c 0.072237,0 0.131836,0.044766 0.131836,0.1167109 l 0,1.1671088 c 0,0.071943 -0.059599,0.1312997 -0.131836,0.1312997 l -1.1572265,0 c -0.072237,0 -0.131836,-0.059356 -0.131836,-0.1312997 l 0,-1.1671088 c 0,-0.071943 0.059599,-0.1167109 0.131836,-0.1167109 z m 2.1240234,0 1.1572266,0 c 0.072237,0 0.1318359,0.044766 0.1318359,0.1167109 l 0,1.1671088 c 0,0.071943 -0.059599,0.1312997 -0.1318359,0.1312997 l -1.1572266,0 c -0.072237,0 -0.1318359,-0.059356 -0.1318359,-0.1312997 l 0,-1.1671088 c 0,-0.071943 0.059599,-0.1167109 0.1318359,-0.1167109 z m 2.1240234,0 1.1572266,0 c 0.072237,0 0.131836,0.044766 0.131836,0.1167109 l 0,1.1671088 c 0,0.071943 -0.059599,0.1312997 -0.131836,0.1312997 l -1.1572266,0 c -0.072237,0 -0.1318359,-0.059356 -0.1318359,-0.1312997 l 0,-1.1671088 c 0,-0.071943 0.059599,-0.1167109 0.1318359,-0.1167109 z m 2.1240235,0 1.1572268,0 c 0.07224,0 0.131836,0.044766 0.131836,0.1167109 l 0,1.1671088 c 0,0.071943 -0.0596,0.1312997 -0.131836,0.1312997 l -1.1572268,0 c -0.072237,0 -0.1318359,-0.059356 -0.1318359,-0.1312997 l 0,-1.1671088 c 0,-0.071943 0.059599,-0.1167109 0.1318359,-0.1167109 z m 2.1240238,0 1.157226,0 c 0.07224,0 0.131836,0.044766 0.131836,0.1167109 l 0,1.1671088 c 0,0.071943 -0.0596,0.1312997 -0.131836,0.1312997 l -1.157226,0 c -0.07224,0 -0.131836,-0.059356 -0.131836,-0.1312997 l 0,-1.1671088 c 0,-0.071943 0.0596,-0.1167109 0.131836,-0.1167109 z m -9.6240238,2.2466844 1.1572266,0 c 0.072237,0 0.1318359,0.059356 0.1318359,0.1312997 l 0,1.1525199 c 0,0.071943 -0.059599,0.1312997 -0.1318359,0.1312997 l -1.1572266,0 c -0.072237,0 -0.1318359,-0.059356 -0.1318359,-0.1312997 l 0,-1.1525199 c 0,-0.071943 0.059598,-0.1312997 0.1318359,-0.1312997 z m 2.1826172,0 1.1572265,0 c 0.072237,0 0.131836,0.059356 0.131836,0.1312997 l 0,1.1525199 c 0,0.071943 -0.059599,0.1312997 -0.131836,0.1312997 l -1.1572265,0 c -0.072237,0 -0.131836,-0.059356 -0.131836,-0.1312997 l 0,-1.1525199 c 0,-0.071943 0.059599,-0.1312997 0.131836,-0.1312997 z m 2.1826172,0 1.171875,0 c 0.072237,0 0.1318359,0.059356 0.1318359,0.1312997 l 0,1.1525199 c 0,0.071943 -0.059599,0.1312997 -0.1318359,0.1312997 l -1.171875,0 c -0.072237,0 -0.131836,-0.059356 -0.131836,-0.1312997 l 0,-1.1525199 c 0,-0.071943 0.059599,-0.1312997 0.131836,-0.1312997 z m 2.1972656,0 1.1572268,0 c 0.07224,0 0.131836,0.059356 0.131836,0.1312997 l 0,1.1525199 c 0,0.071943 -0.0596,0.1312997 -0.131836,0.1312997 l -1.1572268,0 c -0.072237,0 -0.1318359,-0.059356 -0.1318359,-0.1312997 l 0,-1.1525199 c 0,-0.071943 0.059599,-0.1312997 0.1318359,-0.1312997 z m 2.1826168,0 1.157227,0 c 0.07224,0 0.131836,0.059356 0.131836,0.1312997 l 0,1.1525199 c 0,0.071943 -0.0596,0.1312997 -0.131836,0.1312997 l -1.157227,0 c -0.07224,0 -0.131836,-0.059356 -0.131836,-0.1312997 l 0,-1.1525199 c 0,-0.071943 0.0596,-0.1312997 0.131836,-0.1312997 z m -8.1591793,2.6551724 8.9941403,0 c 0.07224,0 0.117188,0.059356 0.117188,0.1312997 l 0,0.5981437 c 0,0.07194 -0.04495,0.131299 -0.117188,0.131299 l -8.9941403,0 c -0.072237,0 -0.1171875,-0.05936 -0.1171875,-0.131299 l 0,-0.5981437 c 0,-0.071943 0.04495,-0.1312997 0.1171875,-0.1312997 z" - id="path4443" - inkscape:connector-curvature="0" /></svg> \ No newline at end of file +<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="15" height="11"><path d="M9 1.281c-.124.259-.185.599-.5.688-.55.081-1.133.018-1.688 0-.866-.032-1.733-.148-2.594 0-.588.157-.953.727-1.188 1.25-.178.416-.271.836-.344 1.281h-2.688v11.5h20v-11.5h-16.344c.109-.52.203-1.057.563-1.469.222-.231.587-.17.875-.188 1.212.003 2.415.179 3.625.063.463-.058.812-.455.969-.875l.188-.438-.875-.313zm-7.125 5.844h1.563c.094 0 .188.093.188.188v1.531c0 .094-.093.188-.188.188h-1.563c-.094 0-.156-.093-.156-.188v-1.531c0-.094.062-.188.156-.188zm2.844 0h1.563c.094 0 .156.093.156.188v1.531c0 .094-.062.188-.156.188h-1.563c-.094 0-.156-.093-.156-.188v-1.531c0-.094.062-.188.156-.188zm2.844 0h1.563c.094 0 .156.093.156.188v1.531c0 .094-.062.188-.156.188h-1.563c-.094 0-.188-.093-.188-.188v-1.531c0-.094.093-.188.188-.188zm2.813 0h1.563c.094 0 .188.093.188.188v1.531c0 .094-.093.188-.188.188h-1.563c-.094 0-.156-.093-.156-.188v-1.531c0-.094.062-.188.156-.188zm2.844 0h1.563c.094 0 .156.093.156.188v1.531c0 .094-.062.188-.156.188h-1.563c-.094 0-.156-.093-.156-.188v-1.531c0-.094.062-.188.156-.188zm2.844 0h1.531c.094 0 .188.093.188.188v1.531c0 .094-.093.188-.188.188h-1.531c-.094 0-.188-.093-.188-.188v-1.531c0-.094.093-.188.188-.188zm-12.844 3h1.563c.094 0 .156.093.156.188v1.563c0 .094-.062.156-.156.156h-1.563c-.094 0-.156-.062-.156-.156v-1.563c0-.094.062-.188.156-.188zm2.906 0h1.563c.094 0 .188.093.188.188v1.563c0 .094-.093.156-.188.156h-1.563c-.094 0-.156-.062-.156-.156v-1.563c0-.094.062-.188.156-.188zm2.938 0h1.531c.094 0 .188.093.188.188v1.563c0 .094-.093.156-.188.156h-1.531c-.094 0-.188-.062-.188-.156v-1.563c0-.094.093-.188.188-.188zm2.906 0h1.563c.094 0 .156.093.156.188v1.563c0 .094-.062.156-.156.156h-1.563c-.094 0-.188-.062-.188-.156v-1.563c0-.094.093-.188.188-.188zm2.906 0h1.563c.094 0 .156.093.156.188v1.563c0 .094-.062.156-.156.156h-1.563c-.094 0-.156-.062-.156-.156v-1.563c0-.094.062-.188.156-.188zm-10.875 3.563h12c.088 0 .156.068.156.156v.844c0 .088-.068.156-.156.156h-12c-.088 0-.156-.068-.156-.156v-.844c0-.088.068-.156.156-.156z" fill="#565656" transform="scale(.75) translate(0 -1.3)"/></svg> \ No newline at end of file diff --git a/lib/jquery.ime/images/ime-inactive.png b/lib/jquery.ime/images/ime-inactive.png deleted file mode 100644 index 430c301..0000000 --- a/lib/jquery.ime/images/ime-inactive.png +++ /dev/null Binary files differ diff --git a/lib/jquery.ime/images/ime-inactive.svg b/lib/jquery.ime/images/ime-inactive.svg deleted file mode 100644 index e1f01f6..0000000 --- a/lib/jquery.ime/images/ime-inactive.svg +++ /dev/null @@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> - -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - version="1.1" - id="Layer_1" - x="0px" - y="0px" - width="32" - height="23.5625" - viewBox="0 0 32 23.5625" - enable-background="new 0 0 32 32" - xml:space="preserve" - inkscape:version="0.48.3.1 r9886" - sodipodi:docname="ime-inactive.svg"><metadata - id="metadata7"><rdf:RDF><cc:Work - rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs - id="defs5" /><sodipodi:namedview - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1" - objecttolerance="10" - gridtolerance="10" - guidetolerance="10" - inkscape:pageopacity="0" - inkscape:pageshadow="2" - inkscape:window-width="1600" - inkscape:window-height="842" - id="namedview3" - showgrid="false" - showguides="true" - inkscape:guide-bbox="true" - inkscape:zoom="11.313709" - inkscape:cx="8.1155453" - inkscape:cy="9.7406437" - inkscape:window-x="1366" - inkscape:window-y="27" - inkscape:window-maximized="1" - inkscape:current-layer="Layer_1" - fit-margin-top="0" - fit-margin-left="0" - fit-margin-right="0" - fit-margin-bottom="0" /> -<path - style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#565656;fill-opacity:0.55;stroke:none;stroke-width:1.5;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans" - d="m 6.7529297,12.5625 c 0,0 -0.043153,0.106536 -0.1025391,0.233422 -0.055763,0.119149 -0.160995,0.242004 -0.1611328,0.24801 -0.034964,0.0026 -0.1756903,0.04969 -0.3662109,0.05836 -0.2540274,0.01156 -0.5868825,0.002 -0.9375,-0.01459 -0.7012351,-0.03326 -1.4487375,-0.09987 -1.9482422,-0.01459 l -0.014648,0 C 2.9207729,13.129083 2.706232,13.329179 2.5488285,13.539954 2.3891026,13.753837 2.2734893,13.99634 2.1972656,14.22563 2.080664,14.576382 2.0383807,14.846189 2.0214844,14.984251 l -2.0214844,0 0,8.578249 15,0 0,-8.578249 -12.2607422,0 c 0.023049,-0.139345 0.059083,-0.320938 0.131836,-0.539788 0.061415,-0.184744 0.1434015,-0.374202 0.234375,-0.496021 0.090973,-0.12182 0.1789297,-0.175188 0.2636718,-0.189656 0.2870018,-0.049 1.0579844,-0.0047 1.772461,0.02918 0.3572381,0.01694 0.7114059,0.02821 1.0107421,0.01459 0.2993363,-0.01362 0.5395833,0.002 0.7910157,-0.204244 0.1963861,-0.161071 0.2618011,-0.335529 0.336914,-0.496021 0.075113,-0.160492 0.131836,-0.306366 0.131836,-0.306366 L 6.7529297,12.5625 z m -5.3320313,4.376658 1.1572266,0 c 0.072237,0 0.1318359,0.04477 0.1318359,0.116711 l 0,1.167108 c 0,0.07194 -0.059598,0.1313 -0.1318359,0.1313 l -1.1572266,0 c -0.072237,0 -0.1318359,-0.05936 -0.1318359,-0.1313 l 0,-1.167108 c 0,-0.07194 0.059599,-0.116711 0.1318359,-0.116711 z m 2.1240235,0 1.1572265,0 c 0.072237,0 0.131836,0.04477 0.131836,0.116711 l 0,1.167108 c 0,0.07194 -0.059599,0.1313 -0.131836,0.1313 l -1.1572265,0 c -0.072237,0 -0.131836,-0.05936 -0.131836,-0.1313 l 0,-1.167108 c 0,-0.07194 0.059599,-0.116711 0.131836,-0.116711 z m 2.1240234,0 1.1572266,0 c 0.072237,0 0.1318359,0.04477 0.1318359,0.116711 l 0,1.167108 c 0,0.07194 -0.059599,0.1313 -0.1318359,0.1313 l -1.1572266,0 c -0.072237,0 -0.1318359,-0.05936 -0.1318359,-0.1313 l 0,-1.167108 c 0,-0.07194 0.059599,-0.116711 0.1318359,-0.116711 z m 2.1240234,0 1.1572266,0 c 0.072237,0 0.131836,0.04477 0.131836,0.116711 l 0,1.167108 c 0,0.07194 -0.059599,0.1313 -0.131836,0.1313 l -1.1572266,0 c -0.072237,0 -0.1318359,-0.05936 -0.1318359,-0.1313 l 0,-1.167108 c 0,-0.07194 0.059599,-0.116711 0.1318359,-0.116711 z m 2.1240235,0 1.1572268,0 c 0.07224,0 0.131836,0.04477 0.131836,0.116711 l 0,1.167108 c 0,0.07194 -0.0596,0.1313 -0.131836,0.1313 l -1.1572268,0 c -0.072237,0 -0.1318359,-0.05936 -0.1318359,-0.1313 l 0,-1.167108 c 0,-0.07194 0.059599,-0.116711 0.1318359,-0.116711 z m 2.1240238,0 1.157226,0 c 0.07224,0 0.131836,0.04477 0.131836,0.116711 l 0,1.167108 c 0,0.07194 -0.0596,0.1313 -0.131836,0.1313 l -1.157226,0 c -0.07224,0 -0.131836,-0.05936 -0.131836,-0.1313 l 0,-1.167108 c 0,-0.07194 0.0596,-0.116711 0.131836,-0.116711 z m -9.6240238,2.246684 1.1572266,0 c 0.072237,0 0.1318359,0.05936 0.1318359,0.1313 l 0,1.15252 c 0,0.07194 -0.059599,0.1313 -0.1318359,0.1313 l -1.1572266,0 c -0.072237,0 -0.1318359,-0.05936 -0.1318359,-0.1313 l 0,-1.15252 c 0,-0.07194 0.059598,-0.1313 0.1318359,-0.1313 z m 2.1826172,0 1.1572265,0 c 0.072237,0 0.131836,0.05936 0.131836,0.1313 l 0,1.15252 c 0,0.07194 -0.059599,0.1313 -0.131836,0.1313 l -1.1572265,0 c -0.072237,0 -0.131836,-0.05936 -0.131836,-0.1313 l 0,-1.15252 c 0,-0.07194 0.059599,-0.1313 0.131836,-0.1313 z m 2.1826172,0 1.171875,0 c 0.072237,0 0.1318359,0.05936 0.1318359,0.1313 l 0,1.15252 c 0,0.07194 -0.059599,0.1313 -0.1318359,0.1313 l -1.171875,0 c -0.072237,0 -0.131836,-0.05936 -0.131836,-0.1313 l 0,-1.15252 c 0,-0.07194 0.059599,-0.1313 0.131836,-0.1313 z m 2.1972656,0 1.1572268,0 c 0.07224,0 0.131836,0.05936 0.131836,0.1313 l 0,1.15252 c 0,0.07194 -0.0596,0.1313 -0.131836,0.1313 l -1.1572268,0 c -0.072237,0 -0.1318359,-0.05936 -0.1318359,-0.1313 l 0,-1.15252 c 0,-0.07194 0.059599,-0.1313 0.1318359,-0.1313 z m 2.1826168,0 1.157227,0 c 0.07224,0 0.131836,0.05936 0.131836,0.1313 l 0,1.15252 c 0,0.07194 -0.0596,0.1313 -0.131836,0.1313 l -1.157227,0 c -0.07224,0 -0.131836,-0.05936 -0.131836,-0.1313 l 0,-1.15252 c 0,-0.07194 0.0596,-0.1313 0.131836,-0.1313 z m -8.1591793,2.655173 8.9941403,0 c 0.07224,0 0.117188,0.05936 0.117188,0.131299 l 0,0.598144 c 0,0.07194 -0.04495,0.131299 -0.117188,0.131299 l -8.9941403,0 c -0.072237,0 -0.1171875,-0.05936 -0.1171875,-0.131299 l 0,-0.598144 c 0,-0.07194 0.04495,-0.131299 0.1171875,-0.131299 z" - id="path4443" - inkscape:connector-curvature="0" /></svg> \ No newline at end of file diff --git a/lib/jquery.ime/images/tick.svg b/lib/jquery.ime/images/tick.svg index 31618d4..1e548a3 100644 --- a/lib/jquery.ime/images/tick.svg +++ b/lib/jquery.ime/images/tick.svg @@ -1,51 +1 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Created with Inkscape (http://www.inkscape.org/) --> - -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - version="1.1" - width="12" - height="9" - viewBox="0 0 12 9" - id="Layer_1" - xml:space="preserve" - inkscape:version="0.48.3.1 r9886" - sodipodi:docname="tick.svg"><sodipodi:namedview - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1" - objecttolerance="10" - gridtolerance="10" - guidetolerance="10" - inkscape:pageopacity="0" - inkscape:pageshadow="2" - inkscape:window-width="1600" - inkscape:window-height="842" - id="namedview6" - showgrid="false" - inkscape:zoom="3.6875" - inkscape:cx="13.464678" - inkscape:cy="31.485742" - inkscape:window-x="1366" - inkscape:window-y="27" - inkscape:window-maximized="1" - inkscape:current-layer="Layer_1" /><metadata - id="metadata7"><rdf:RDF><cc:Work - rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs - id="defs5" /> -<path - style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#222222;fill-opacity:1;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans" - d="M 11.225812,0.257 4.5081089,6.70983 1.8095442,4.134358 0.5176783,5.436245 C 1.8479545,6.709711 3.1681406,7.993429 4.5081089,9.257 7.1620625,6.665723 9.845404,4.103539 12.517678,1.530585 z" - id="path10791-42-4" - inkscape:connector-curvature="0" - sodipodi:nodetypes="ccccccc" - inkscape:export-filename="/media/C0DE/wiki/wikimedia-git-repos/jqueryime/images/tick.svg.png" - inkscape:export-xdpi="90" - inkscape:export-ydpi="90" /></svg> \ No newline at end of file +<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="12" height="9"><path d="M11.226.257l-6.718 6.453-2.699-2.575-1.292 1.302c1.33 1.273 2.65 2.557 3.99 3.821 2.654-2.591 5.337-5.153 8.01-7.726z" fill="#222"/></svg> \ No newline at end of file diff --git a/lib/jquery.ime/jquery.ime.js b/lib/jquery.ime/jquery.ime.js index c87b26b..c244df4 100644 --- a/lib/jquery.ime/jquery.ime.js +++ b/lib/jquery.ime/jquery.ime.js @@ -1,4 +1,4 @@ -/*! jquery.ime - v0.1.0+20140211 +/*! jquery.ime - v0.1.0+20140220 * https://github.com/wikimedia/jquery.ime * Copyright (c) 2014 Santhosh Thottingal; Licensed GPL, MIT */ ( function ( $ ) { diff --git a/lib/jquery.ime/rules/README b/lib/jquery.ime/rules/README.md similarity index 69% rename from lib/jquery.ime/rules/README rename to lib/jquery.ime/rules/README.md index ca01905..b314bf4 100644 --- a/lib/jquery.ime/rules/README +++ b/lib/jquery.ime/rules/README.md @@ -3,36 +3,38 @@ Input methods are defined in javascript files. An input method is a javascript object and it is passed to $.ime.register() method to register with jquery.ime - - Eg: $.ime.register( hebrewStandardKeyboard ); - + +eg: $.ime.register( hebrewStandardKeyboard ); + Metadata fields --------------- -id: A mandatory unique identifier that represents the input method. Eg: "hindi-inscript" +id: A mandatory unique identifier that represents the input method. +eg: "hindi-inscript" -name: A mandatory short name for the input method. Eg: Hindi InScript +name: A mandatory short name for the input method. eg: Hindi InScript -description: An optional short description about the input method. Eg: "keyboard layout as per -inscript standard" +description: An optional short description about the input method. +eg: "keyboard layout as per inscript standard" -date: An optional string to represent when this input method was written. Format should be -yyyy-mm-dd +date: An optional string to represent when this input method was written. +Format should be: yyyy-mm-dd -author: An optional string containing the authors name. Can contain email address as well. Eg: -"Santhosh Thottingal, <santhosh.thottin...@gmail.com>" +author: An optional string containing the authors name. Can contain email +address as well. eg: "Santhosh Thottingal, <santhosh.thottin...@gmail.com>" URL: An optional string containing URL for the original input method definition. -license: An optional string containing licence information. Eg: "CC-BY_SA" or "GPLv3" +license: An optional string containing licence information. Eg: "CC-BY-SA" or +"GPLv3". -version: An optional string containing version information +version: An optional string containing version information. Input method definition ----------------------- -patterns: A regular expression table that maps the original inputs to the target -language +patterns: A regular expression table that maps the original inputs to the +target language. eg: patterns: [ @@ -59,7 +61,8 @@ [ '([ക-ഹ])a', '$1ാ' ] [ '(([ൺ-ൿം])\u200c+)?I', '$2ഐ' ] -In the above example, $1, $1 etc are according to the normal regular expression replace syntax +In the above example, $1, $1 etc are according to the normal regular expression +replace syntax. The second member of pattern can be a function as well. For eg: @@ -67,10 +70,10 @@ return $1.toUpperCase(); } ] ] -This rule replace all key strokes to its upper case character +This rule replace all key strokes to its upper case character. -contextLength: Length of the context to remember. jquery.ime can replace the text -based on the previously typed characters. Eg: +contextLength: Length of the context to remember. jquery.ime can replace the +text based on the previously typed characters. eg: [ 'ൿh', 'c', 'ച്' ] @@ -78,19 +81,21 @@ This rule is interpreted as The current key is h, previous key is c. For the previous key press c, we have -a transliteration ൿ. But if it is followed by h and ൿ is indeed from key press c, -replace ൿh with ച് +a transliteration ൿ. But if it is followed by h and ൿ is indeed from key press +c, replace ൿh with ച് -To make this work, we need to remember the previous key strokes. How many of them we -need to remember? contextLength should have that value. +To make this work, we need to remember the previous key strokes. How many of +them we need to remember? contextLength should have that value. -This is optional field with default value 0.ie, we dont remember previous key strokes -by default. +This is optional field with default value 0. ie, we don't remember previous key +strokes by default. -maxKeyLength: While trying to find possible matches, we need to know how many characters -from the current typing location(cursor) should be used before giving up. +maxKeyLength: While trying to find possible matches, we need to know how many +characters from the current typing location(cursor) should be used before +giving up. -maxKeyLength defines it. Normally it is the length of largest regex sequence in the patterns. +maxKeyLength defines it. Normally it is the length of largest regex sequence in +the patterns. This field is optional and default value is 1. @@ -99,5 +104,3 @@ For complete examples, please refer the existing input method definitions. - - \ No newline at end of file -- To view, visit https://gerrit.wikimedia.org/r/114451 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ifd848da55e8ac68ef63fef5d435ecc23fc20e000 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/UniversalLanguageSelector Gerrit-Branch: master Gerrit-Owner: KartikMistry <kartik.mis...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits