42e3a65131dad33664024e7ef0eb36507e87bf9f
Generate the font listing in javascript with variant support
An example of generated script:
"Opendyslexic": {
"version": "0.6",
"license": "Creative Commons Attribution 3.0 Unported License",
"ttf": "Opendyslexic\/opendyslexic.ttf",
"eot": "Opendyslexic\/opendyslexic.eot",
"woff": "Opendyslexic\/opendyslexic.woff",
"variants": {
"bold": "Opendyslexic Bold",
"italic": "Opendyslexic Italic"
}
},
"Opendyslexic Bold": {
"version": "0.6",
"license": "Creative Commons Attribution 3.0 Unported License",
"fontweight": "bold",
"ttf": "Opendyslexic\/opendyslexic-bold.ttf",
"eot": "Opendyslexic\/opendyslexic-bold.eot",
"woff": "Opendyslexic\/opendyslexic-bold.woff"
},
"Opendyslexic Italic": {
"version": "0.6",
"license": "Creative Commons Attribution 3.0 Unported License",
"fontstyle": "italic",
"ttf": "Opendyslexic\/opendyslexic-italic.ttf",
"eot": "Opendyslexic\/opendyslexic-italic.eot",
"woff": "Opendyslexic\/opendyslexic-italic.woff"
},
Corresponding ini file:
[Opendyslexic]
languages=en,af,pt,es,sw,de,fi,sq,fr,hu,ca,da,fo,ga,is,ms,sv,wa,lb,gd,oc,tr,mi,it,et,cy
version=0.6
license=Creative Commons Attribution 3.0 Unported License
licensefile=http://dyslexicfonts.com/license.php
url=https://github.com/antijingoist/open-dyslexic
ttf=opendyslexic.ttf
eot=opendyslexic.eot
woff=opendyslexic.woff
bold=Opendyslexic Bold
italic=Opendyslexic Italic
[Opendyslexic Bold]
ttf=opendyslexic-bold.ttf
eot=opendyslexic-bold.eot
woff=opendyslexic-bold.woff
fontweight=bold
[Opendyslexic Italic]
ttf=opendyslexic-italic.ttf
eot=opendyslexic-italic.eot
woff=opendyslexic-italic.woff
fontstyle=italic
Change-Id: I55afcd89fe5be5ecf35b4f2fc47ba508fbcfc41e
== Copying ==
In short: You may use any Project Milkshake product, including the Universal
Language Selector, under the terms of either the MIT License or the GNU General
Public License (GPL) Version 2 or later.
See GPL-LICENSE and MIT-LICENSE for details.
== Installation ==
For a very, very quick start add the following to LocalSettings.php:
include("$IP/extensions/UniversalLanguageSelector/UniversalLanguageSelector.php");
== For Developers ==
The MediaWiki Universal Language Selector project uses jquery.uls(https://github.com/wikimedia/jquery.uls).
Its development is at wikimedia github account. So any fixes to lib/jquery.uls should happen at github.
Follow the build instructions of jquery.uls to create jquery.uls.js.
More documenation is at
https://www.mediawiki.org/wiki/Extension:UniversalLanguageSelector
== Change log ==
Description
Languages
JavaScript
79.4%
HTML
11.9%
PHP
4.7%
Less
2.5%
CSS
1.4%
Other
0.1%