From 71931948afbe8764a582973380df776385e3cd8e Mon Sep 17 00:00:00 2001 From: B Date: Wed, 24 Aug 2016 20:38:54 +0200 Subject: [PATCH] release 1.0.0 --- build/translit.min.js | 10 ++++++++++ docs/BACKLOG.md | 8 +++----- docs/CHANGELOG.md | 5 +++-- src/translit.js | 2 +- test/test_translit.html | 1 + 5 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 build/translit.min.js diff --git a/build/translit.min.js b/build/translit.min.js new file mode 100644 index 0000000..153856f --- /dev/null +++ b/build/translit.min.js @@ -0,0 +1,10 @@ +/*! + * Translit (Rusyn transliteration) 1.0.0 + * http://translit.tota.sk + * + * Copyright 2014-16 Braňo Šandala + * Released under the MIT license + * + * Date: 2016-08-24 + */ +!function(){function o(o){return o.replace(/’|ʼ|‘/g,"'")}function i(o,i){for(var r in t[i]){var a=RegExp(t[i][r],"g");o=o.replace(a,r)}return o}function r(o){return o=i(o,"exceptions"),o=i(o,"priority-set-1"),o=i(o,"priority-set-2"),o=i(o,"priority-set-3"),o=i(o,"carons"),o=i(o,"basic"),o=i(o,"chars")}function a(o,i){for(var r in t[i]){var a=RegExp(r,"g");o=o.replace(a,t[i][r])}return o}function e(i){return i=o(i),i=a(i,"exceptions"),i=a(i,"priority-set-1"),i=a(i,"priority-set-2"),i=a(i,"priority-set-3"),i=a(i,"carons"),i=a(i,"basic"),i=a(i,"chars")}var t={exceptions:{text:"текст",taxi:"таксі"},"priority-set-1":{"ľľa":"лля","Ľľa":"Лля","ďijo":"дїё","Ďijo":"Дїё"},"priority-set-2":{"ďi":"дї","Ďi":"Дї","ťi":"тї","Ťi":"Тї","ňi":"нї","Ňi":"Нї","ľi":"лї","Ľi":"Лї","ďa":"дя","Ďa":"Дя","ťa":"тя","Ťa":"Тя","ňa":"ня","Ňa":"Ня","ľa":"ля","Ľa":"Ля","ďu":"дю","Ďu":"Дю","ťu":"тю","Ťu":"Тю","ňu":"ню","Ňu":"Hю","ľu":"лю","Ľu":"Лю","ďo":"дё","Ďo":"Дё","ťo":"тё","Ťo":"Тё","ňo":"нё","Ňo":"Hё","ľo":"лё","Ľo":"Лё","ďe":"дє","Ďe":"Дє","ťe":"тє","Ťe":"Тє","ňe":"нє","Ňe":"Hє","ľe":"лє","Ľe":"Лє","c'a":"ця","C'a":"Ця","c'i":"цї","C'i":"Цї","c'o":"цё","C'o":"Цё","c'u":"цю","C'u":"Цю","s'a":"ся","S'a":"Ся","s'i":"сї","S'i":"Сї","s'o":"сё","S'o":"Сё","s'u":"сю","S'u":"Сю","r'a":"ря","R'a":"Ря","r'i":"рї","R'i":"Рї","r'o":"рё","R'o":"Рё","r'u":"рю","R'u":"Рю","z'a":"зя","Z'a":"Зя","z'i":"зї","Z'i":"Зї","z'o":"зё","Z'o":"Зё","z'u":"зю","Z'u":"Зю"},"priority-set-3":{zja:"зъя",Zja:"Зъя",zje:"зъє",Zje:"Зъє",zji:"зъї",Zji:"Зъї",zjo:"зъё",Zjo:"Зъё",zju:"зъю",Zju:"Зъю","r'jo":"рьё","R'jo":"Рьё",ajo:"аё",Ajo:"Аё",ejo:"её",Ejo:"Её",yjo:"иё",Yjo:"Иё",ojo:"оё",Ojo:"Оё",joj:"ёй",Joj:"Ёй",joho:"ёго",Joho:"Ёго",jomu:"ёму",Jomu:"Ёму"},carons:{"ď":"дь","Ď":"Дь","ť":"ть","Ť":"Ть","ň":"нь","Ň":"Нь","ľ":"ль","Ľ":"Ль"},basic:{ja:"я",Ja:"Я",ju:"ю",Ju:"Ю",je:"є",Je:"Є","'o":"ё","'O":"Ë",ji:"ї",Ji:"Ї",ch:"х",Ch:"Х","šč":"щ","Šč":"Щ","c'":"ць","C'":"Ць","s'":"сь","S'":"Сь","r'":"рь","R'":"Рь","z'":"зь","Z'":"Зь","ž'":"жь","Ž'":"Жь"},chars:{a:"а",b:"б",v:"в",h:"г",g:"ґ",d:"д",e:"е",z:"з",i:"і",y:"и",j:"й",k:"к",l:"л",m:"м",n:"н",o:"о",p:"п",r:"р",s:"с",t:"т",u:"у",f:"ф","ŷ":"ы",c:"ц","č":"ч","ž":"ж","š":"ш",A:"А",B:"Б",V:"В",H:"Г",G:"Ґ",D:"Д",E:"Е",Z:"З",I:"I",Y:"И",J:"Й",K:"К",L:"Л",M:"М",N:"Н",O:"О",P:"П",R:"Р",S:"С",T:"Т",U:"У",F:"Ф","Ŷ":"Ы",C:"Ц","Č":"Ч","Ž":"Ж","Š":"Ш"}};window.translit_azb_lat=r,window.translit_lat_azb=e,window.streamline_apostrophes=o}(); diff --git a/docs/BACKLOG.md b/docs/BACKLOG.md index 1b39d8d..41477e9 100644 --- a/docs/BACKLOG.md +++ b/docs/BACKLOG.md @@ -1,11 +1,9 @@ # translit backlog -change apostrpohe being render as a single quote? -## 1.0.1 +## backlog +* change Apostrophe being rendered as a single quote? * refactor combinations such as ďi, ťi... + jo * reevaluate use of Ь and Ъ -* refactor mapping for joj, joho, jomu (maybe as regex) - -## Pool * provide translit as an npm package +* refactor mapping for joj, joho, jomu (maybe as regex) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 58176f3..455d3ac 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,10 +1,11 @@ # Changelog for Rusyn transliterate -## 2016-07-X - * 0.30 released +## 2016-08-24 + * 1.0.0 released. This is a major version as it was tested on and used for transliteration of a book Червеный берег (by Людміла Шандалова). * include exceptions for "Joho, joho, Jomu, jomu, ser'jozno, ...ňo..., ťoj, zjavyla, zjemnyty, ...ľľa..., plaksyvo ..." * improve transliteration of soft and hard signs * improve transliteration of "vowel + ё" + * set exceptions for taxi and text ## 2016-01-21 * 0.29 released diff --git a/src/translit.js b/src/translit.js index 0e2268c..a2d689b 100644 --- a/src/translit.js +++ b/src/translit.js @@ -5,7 +5,7 @@ * Copyright 2014-16 Braňo Šandala * Released under the MIT license * - * Date: 2016-07-17 + * Date: 2016-08-24 */ (function(){ diff --git a/test/test_translit.html b/test/test_translit.html index 056f8a8..a45cd70 100644 --- a/test/test_translit.html +++ b/test/test_translit.html @@ -16,6 +16,7 @@ +