From 2747db57e9d84b33835748a6168d806dd4a78f7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Be=C5=A1i=C4=87?= Date: Tue, 2 Jun 2020 10:25:12 +0200 Subject: [PATCH 1/3] Support for Bosnian letters --- lib/speakingurl.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/speakingurl.js b/lib/speakingurl.js index 4a62bc0..7c261a7 100644 --- a/lib/speakingurl.js +++ b/lib/speakingurl.js @@ -227,6 +227,19 @@ '္': '', '့': '', 'း': '', + + // Bosnian + 'č': 'c', + 'Č': 'c', + 'ć': 'c', + 'Ć': 'c', + 'đ': 'd', + 'Đ': 'd', + 'š': 's', + 'Š': 's', + 'ž': 'z', + 'Ž': 'z', + // Czech 'č': 'c', @@ -1686,4 +1699,4 @@ } } catch (e) {} } -})(this); \ No newline at end of file +})(this); From 2e6ee83ac45f61e883b52e4aca8f5ef803686984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Be=C5=A1i=C4=87?= Date: Tue, 2 Jun 2020 10:26:35 +0200 Subject: [PATCH 2/3] Update docs --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9651601..5bdb029 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,7 @@ Usage - language specific transliteration ( - 'ar' // Arabic - 'az' // Azerbaijani\* + - 'bs' // Bosnian - 'cs' // Czech - 'de' // German - 'dv' // Divehi From b98d0697a15e4c934b0198a915b92b549d6ba579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Be=C5=A1i=C4=87?= Date: Tue, 2 Jun 2020 10:30:24 +0200 Subject: [PATCH 3/3] Mapping Bosnian --- lib/speakingurl.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/speakingurl.js b/lib/speakingurl.js index 7c261a7..b03caeb 100644 --- a/lib/speakingurl.js +++ b/lib/speakingurl.js @@ -967,6 +967,19 @@ 'Ş': 'S', 'Ü': 'U' }, + + 'bs': { //Bosnian + 'č': 'c', + 'Č': 'c', + 'ć': 'c', + 'Ć': 'c', + 'đ': 'd', + 'Đ': 'd', + 'š': 's', + 'Š': 's', + 'ž': 'z', + 'Ž': 'z' + }, 'cs': { // Czech 'č': 'c',