Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
* **What kind of change does this PR introduce?** (Language addition, bug fix, feature, docs update, ...)
### What kind of change does this PR introduce?
<!-- For example: Language addition, bug fix, feature, docs update, ...) -->

<!-- Use below for adding new language -->
* **Checklist**
<!-- USE BELOW FOR ADDING NEW LANGUAGE -->
### Checklist
- [] Have you added adequate tests on epitran/test?
- [] Have you updated the language list in README.md?
- [] Does it follow the <iso639>-<iso15924> format?
- [] Have you used IPA ɡ, not latin small letter g?

* **Sources of information for the test samples** (I'm a native speaker, books, online resources, ...)
### Sources of information for the test samples
<!-- For example: I'm a native speaker, books, online resources, ... -->


* **Sources of information for the rules** (I'm a native speaker, books, online resources, ...)
### Sources of information for the rules
<!-- For example: I'm a native speaker, books, online resources, ... -->


<!-- Use below for everything else -->
* **What is the current behavior?** (You can also link to an open issue here)
<!-- USE BELOW FOR EVERYTHING ELSE -->
### What is the current behavior?
<!-- You can also link to an open issue here -->


* **What is the new behavior (if this is a feature change)?**
### What is the new behavior (if this is a feature change)?


* **Does this PR introduce a breaking change?** (What changes might users need to make in their application due to this PR?)
### Does this PR introduce a breaking change?
<!-- What changes might users need to make in their application due to this PR? -->


1 change: 1 addition & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ concurrency:

jobs:
release:
if: github.event.repository.fork == false
environment:
name: pypi
url: https://pypi.org/project/epitran/
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ A few notes are in order regarding this data structure:
| cmn-Hant | Mandarin (Traditional)\*|
| cmn-Latn | Mandarin (Pinyin)\* |
| csb-Latn | Kashubian |
| dan-Latn | Danish |
| cym-Latn | Welsh (northern) |
| deu-Latn | German |
| deu-Latn-np | German† |
Expand Down
30 changes: 0 additions & 30 deletions epitran/data/map/dan-Latn.csv

This file was deleted.

55 changes: 0 additions & 55 deletions epitran/data/post/dan-Latn.txt

This file was deleted.

88 changes: 0 additions & 88 deletions epitran/data/pre/dan-Latn.txt

This file was deleted.

58 changes: 0 additions & 58 deletions epitran/test/test_danish.py

This file was deleted.

4 changes: 2 additions & 2 deletions epitran/test/test_occitan.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import epitran

class TestOccitan(unittest.TestCase):
def setUp(self):
self.epi = epitran.Epitran("oci-Latn")
def setUp(self):
self.epi = epitran.Epitran("oci-Latn")

def test_abadia(self):
# test intervocalic g, word-final r
Expand Down
32 changes: 18 additions & 14 deletions epitran/test/test_pashto.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
import epitran
import unittest

epi = epitran.Epitran('pbu-Arab')
class TestPashto(unittest.TestCase):
def setUp(self):
self.epi = epitran.Epitran("pbu-Arab")

def t(x, y):
assert epi.transliterate(x) == y
def t(self, x, y):
tr = self.epi.transliterate(x)
self.assertEqual(tr, y)

def test_core():
t('پښتو', 'paxto') # PBU merger ښ→x, no implicit vowels
t('کور', 'kor') # و→o in C_و_C by postrule (Northern Pashto)
t('ګل', 'ɡul') # no implicit vowels between ګ and ل
t('څنګه', 'saŋɡa') # څ→s; n→ŋ/_{ɡ}, final ه→a (with nasal assimilation)
t('ژوند', 'd͡ʒwand') # ژ→d͡ʒ (PBU), و→w between consonants
t('مینه', 'mi:na') # ی→i; final ه→a (or ə if spelledۀ)
t('ونه', 'wana') # و onset → w, no implicit vowels
t('او', 'ɑw') # diphthong (correct transliteration)
t('ستړی', 'staɽai') # ړۍ→ɽ + final ی as i, no implicit vowels
t('سړي', 'saɽi:') # ړۍ→ɽ + final ی as i, no implicit vowels
def test_core(self):
self.t('پښتو', 'paxto') # PBU merger ښ→x, no implicit vowels
self.t('کور', 'kor') # و→o in C_و_C by postrule (Northern Pashto)
self.t('ګل', 'ɡul') # no implicit vowels between ګ and ل
self.t('څنګه', 'saŋɡa') # څ→s; n→ŋ/_{ɡ}, final ه→a (with nasal assimilation)
self.t('ژوند', 'd͡ʒwand') # ژ→d͡ʒ (PBU), و→w between consonants
self.t('مینه', 'mi:na') # ی→i; final ه→a (or ə if spelledۀ)
self.t('ونه', 'wana') # و onset → w, no implicit vowels
self.t('او', 'ɑw') # diphthong (correct transliteration)
self.t('ستړی', 'staɽai') # ړۍ→ɽ + final ی as i, no implicit vowels
self.t('سړي', 'saɽi:') # ړۍ→ɽ + final ی as i, no implicit vowels
Loading