nepali_unicoder 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nepali_unicoder-0.2.0/src/nepali_unicoder.egg-info → nepali_unicoder-0.2.1}/PKG-INFO +2 -2
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/pyproject.toml +2 -2
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder/data/preeti_rules.json +5 -1
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1/src/nepali_unicoder.egg-info}/PKG-INFO +2 -2
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/tests/test_conversion.py +4 -1
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/LICENSE +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/MANIFEST.in +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/README.md +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/setup.cfg +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder/__init__.py +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder/__main__.py +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder/convert.py +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder/data/roman_rules.json +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder/data/word_maps.json +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder/engine.py +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder/loader.py +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder/rules.py +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder/tokenizer.py +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder/trie.py +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder.egg-info/SOURCES.txt +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder.egg-info/dependency_links.txt +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder.egg-info/entry_points.txt +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder.egg-info/requires.txt +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder.egg-info/top_level.txt +0 -0
- {nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/tests/test_components.py +0 -0
|
@@ -3,8 +3,8 @@ requires = ["setuptools>=61.0"]
|
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
|
-
name = "
|
|
7
|
-
version = "0.2.
|
|
6
|
+
name = "nepali-unicoder"
|
|
7
|
+
version = "0.2.1"
|
|
8
8
|
description = "A Python package for Roman to Nepali (Devanagari) transliteration"
|
|
9
9
|
authors = [
|
|
10
10
|
{ name="realsanjeev", email="075bei033.sanjeev@pcampus.edu.np" },
|
|
@@ -104,7 +104,7 @@ class TestNepaliUnicoder(unittest.TestCase):
|
|
|
104
104
|
self.assertEqual(self.converter.convert("lRi"), "ऌ")
|
|
105
105
|
# Consonant l + Ri matra is still accessible via 'l' alone + separate vowel
|
|
106
106
|
self.assertEqual(self.converter.convert("la"), "ल")
|
|
107
|
-
self.assertEqual(self.converter.convert("lRi"), "ऌ")
|
|
107
|
+
self.assertEqual(self.converter.convert("lRi"), "ऌ") # vowel wins
|
|
108
108
|
|
|
109
109
|
def test_word_maps_case_sensitivity(self):
|
|
110
110
|
"""Fix #5: word_maps keys are now case-sensitive; both uppercase and
|
|
@@ -223,6 +223,9 @@ class TestPreetiUnicoder(unittest.TestCase):
|
|
|
223
223
|
self.assertEqual(self.converter.convert(";ËLtsf]"), "सङ्गीतको")
|
|
224
224
|
self.assertEqual(self.converter.convert("5'§}"), "छुट्टै")
|
|
225
225
|
self.assertEqual(self.converter.convert("5'§f5'§}"), "छुट्टाछुट्टै")
|
|
226
|
+
self.assertEqual(self.converter.convert("s[lqd al'4dQf"), "कृत्रिम बुद्धिमत्ता")
|
|
227
|
+
self.assertEqual(self.converter.convert("cfl6{lkmlzon"), "आर्टिफिशियल")
|
|
228
|
+
self.assertEqual(self.converter.convert(";f/f+z M"), "सारांश:")
|
|
226
229
|
|
|
227
230
|
def test_duplicate_removal(self):
|
|
228
231
|
"""Test that duplicate matras are removed"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{nepali_unicoder-0.2.0 → nepali_unicoder-0.2.1}/src/nepali_unicoder.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|