Cscott has uploaded a new change for review. https://gerrit.wikimedia.org/r/212438
Change subject: T92817: improve text rendering for nepali languages. ...................................................................... T92817: improve text rendering for nepali languages. At the moment, we just use the settings for 'hindi'. A proper language definition for polyglossia should really be created and upstreamed. Change-Id: Ib93b0a0af235a0175f8df65cb3e28358be21552a --- M lib/polyglossia.js A samples/maithili.zip A samples/nepali.zip A samples/newari.zip M test/samples.js 5 files changed, 4 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Collection/OfflineContentGenerator/latex_renderer refs/changes/38/212438/1 diff --git a/lib/polyglossia.js b/lib/polyglossia.js index 4508220..97201e2 100644 --- a/lib/polyglossia.js +++ b/lib/polyglossia.js @@ -92,8 +92,11 @@ lt: { lang: 'lithuanian' }, dsb: { lang: 'lsorbian' }, hu: { lang: 'magyar' }, + 'mai': { lang: /*'maithili'*/'hindi' }, // HACK, get devanagari script. ml: { lang: 'malayalam' }, mr: { lang: 'marathi' }, + ne: { lang: /*'nepali'*/'hindi' }, // HACK, get devanagari script. + 'new': { lang: /*'newari'*/'hindi' }, // HACK, get devanagari script. nqo: { lang: 'nko' }, no: { lang: 'norsk' }, nn: { lang: 'nynorsk' }, diff --git a/samples/maithili.zip b/samples/maithili.zip new file mode 100644 index 0000000..6dad963 --- /dev/null +++ b/samples/maithili.zip Binary files differ diff --git a/samples/nepali.zip b/samples/nepali.zip new file mode 100644 index 0000000..68f412c --- /dev/null +++ b/samples/nepali.zip Binary files differ diff --git a/samples/newari.zip b/samples/newari.zip new file mode 100644 index 0000000..a8e1daa --- /dev/null +++ b/samples/newari.zip Binary files differ diff --git a/test/samples.js b/test/samples.js index 0fe9419..8b5c6eb 100644 --- a/test/samples.js +++ b/test/samples.js @@ -34,7 +34,7 @@ describe("Basic crash test", function() { var hasXeLaTeX = checkExecutable('xelatex'); var hasJpegtran = checkExecutable('jpegtran'); - ['tao.zip', 'hurricanes.zip', 'malayalam.zip', 'multiwiki.zip', 'papier.zip', 'titlecrash.zip', 'us.zip', 'jabug.zip', 'bug68854.zip', '1988.zip', 'set.zip', 'bug71185.zip', 'url-in-toc.zip', 'allah.zip', 'tibetan.zip', 'lao.zip', 'khmer.zip','pashto.zip'].forEach(function(bundle) { + ['tao.zip', 'hurricanes.zip', 'malayalam.zip', 'multiwiki.zip', 'papier.zip', 'titlecrash.zip', 'us.zip', 'jabug.zip', 'bug68854.zip', '1988.zip', 'set.zip', 'bug71185.zip', 'url-in-toc.zip', 'allah.zip', 'tibetan.zip', 'lao.zip', 'khmer.zip','pashto.zip','nepali.zip','newari.zip','maithili.zip'].forEach(function(bundle) { describe(bundle, function() { var dest = hasXeLaTeX ? 'pdf' : 'tex'; it('should compile to '+dest, function() { -- To view, visit https://gerrit.wikimedia.org/r/212438 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib93b0a0af235a0175f8df65cb3e28358be21552a Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Collection/OfflineContentGenerator/latex_renderer Gerrit-Branch: master Gerrit-Owner: Cscott <canan...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits