tamil added
This commit is contained in:
@@ -25,6 +25,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Spanish pack
|
- name: Build Spanish pack
|
||||||
run: python -m build packages/langs/es
|
run: python -m build packages/langs/es
|
||||||
|
|
||||||
|
- name: Build Tamil pack
|
||||||
|
run: python -m build packages/langs/ta
|
||||||
|
|
||||||
- name: Publish to PyPI
|
- name: Publish to PyPI
|
||||||
env:
|
env:
|
||||||
@@ -33,6 +36,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
twine upload --skip-existing packages/foreignthon/dist/*
|
twine upload --skip-existing packages/foreignthon/dist/*
|
||||||
twine upload --skip-existing packages/langs/es/dist/*
|
twine upload --skip-existing packages/langs/es/dist/*
|
||||||
|
twine upload --skip-existing packages/langs/ta/dist/*
|
||||||
|
|
||||||
|
|
||||||
- name: Create Gitea release with assets
|
- name: Create Gitea release with assets
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -6,16 +6,16 @@ build-backend = "hatchling.build"
|
|||||||
name = "foreignthon"
|
name = "foreignthon"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Write Python in any language. Transpiles foreign-language .xx.py files to standard Python."
|
description = "Write Python in any language. Transpiles foreign-language .xx.py files to standard Python."
|
||||||
license = { text = "MIT" }
|
license = { text = "GPL v3" }
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "Your Name", email = "you@example.com" }
|
{ name = "Keshav Anand", email = "keshavanand.dev@gmail.com" }
|
||||||
]
|
]
|
||||||
keywords = ["python", "transpiler", "i18n", "localization", "language"]
|
keywords = ["python", "transpiler", "i18n", "localization", "language"]
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Development Status :: 3 - Alpha",
|
"Development Status :: 3 - Alpha",
|
||||||
"Intended Audience :: Developers",
|
"Intended Audience :: Developers",
|
||||||
"License :: OSI Approved :: MIT License",
|
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
|
|||||||
@@ -6,17 +6,13 @@ build-backend = "hatchling.build"
|
|||||||
name = "foreignthon-es"
|
name = "foreignthon-es"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Spanish language pack for ForeignThon."
|
description = "Spanish language pack for ForeignThon."
|
||||||
license = { text = "MIT" }
|
license = { text = "GPL v3" }
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "Your Name", email = "you@example.com" }
|
{ name = "Keshav Anand", email = "keshavanand.dev@gmail.com" }
|
||||||
]
|
]
|
||||||
keywords = ["foreignthon", "spanish", "español"]
|
keywords = ["foreignthon", "spanish", "español"]
|
||||||
classifiers = [
|
|
||||||
"Development Status :: 3 - Alpha",
|
|
||||||
"Intended Audience :: Developers",
|
|
||||||
"License :: OSI Approved :: MIT License",
|
|
||||||
]
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"foreignthon>=0.1.0",
|
"foreignthon>=0.1.0",
|
||||||
]
|
]
|
||||||
|
|||||||
1
packages/langs/ta/README.md
Normal file
1
packages/langs/ta/README.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# foreignthon-ta
|
||||||
@@ -6,21 +6,13 @@ build-backend = "hatchling.build"
|
|||||||
name = "foreignthon-ta"
|
name = "foreignthon-ta"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Tamil language pack for ForeignThon."
|
description = "Tamil language pack for ForeignThon."
|
||||||
readme = "README.md"
|
license = { text = "GPL v3" }
|
||||||
license = { text = "MIT" }
|
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "Your Name", email = "you@example.com" }
|
{ name = "Keshav Anand", email = "keshavanand.dev@gmail.com" }
|
||||||
]
|
]
|
||||||
keywords = ["foreignthon", "tamil", "தமிழ்"]
|
keywords = ["foreignthon", "tamil", "தமிழ்"]
|
||||||
classifiers = [
|
dependencies = ["foreignthon>=0.1.0"]
|
||||||
"Development Status :: 3 - Alpha",
|
|
||||||
"Intended Audience :: Developers",
|
|
||||||
"License :: OSI Approved :: MIT License",
|
|
||||||
]
|
|
||||||
dependencies = [
|
|
||||||
"foreignthon>=0.1.0",
|
|
||||||
]
|
|
||||||
|
|
||||||
[project.entry-points."foreignthon.langs"]
|
[project.entry-points."foreignthon.langs"]
|
||||||
ta = "foreignthon_ta"
|
ta = "foreignthon_ta"
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
from importlib.resources import files
|
||||||
|
|
||||||
|
def get_pack_path():
|
||||||
|
return files(__name__) / "ta.json"
|
||||||
|
|||||||
@@ -0,0 +1,130 @@
|
|||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"name": "Tamil",
|
||||||
|
"native_name": "தமிழ்",
|
||||||
|
"code": "ta",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"authors": []
|
||||||
|
},
|
||||||
|
"keywords": {
|
||||||
|
"ஆனால்": "if",
|
||||||
|
"இல்லையெனில்": "else",
|
||||||
|
"இல்லெனில்": "elif",
|
||||||
|
"ஒவ்வொன்றும்": "for",
|
||||||
|
"தொடர்": "while",
|
||||||
|
"வரையறு": "def",
|
||||||
|
"வகுப்பு": "class",
|
||||||
|
"திரும்ப": "return",
|
||||||
|
"நிறுத்து": "break",
|
||||||
|
"தொடரவும்": "continue",
|
||||||
|
"கடந்துசெல்": "pass",
|
||||||
|
"முயற்சி": "try",
|
||||||
|
"தவிர": "except",
|
||||||
|
"இறுதியில்": "finally",
|
||||||
|
"எழுப்பு": "raise",
|
||||||
|
"உடன்": "with",
|
||||||
|
"இறக்கு": "import",
|
||||||
|
"இருந்து": "from",
|
||||||
|
"என": "as",
|
||||||
|
"உள்ளே": "in",
|
||||||
|
"ஆகும்": "is",
|
||||||
|
"மற்றும்": "and",
|
||||||
|
"அல்லது": "or",
|
||||||
|
"இல்லை": "not",
|
||||||
|
"நீக்கு": "del",
|
||||||
|
"உலகளாவிய": "global",
|
||||||
|
"உள்ளூர்சாரா": "nonlocal",
|
||||||
|
"உறுதிப்படுத்து": "assert",
|
||||||
|
"வழங்கு": "yield",
|
||||||
|
"காத்திரு": "await",
|
||||||
|
"ஒத்திசைவற்ற": "async",
|
||||||
|
"சிறுசார்பு": "lambda",
|
||||||
|
"உண்மை": "True",
|
||||||
|
"பொய்": "False",
|
||||||
|
"ஒன்றுமில்லை": "None"
|
||||||
|
},
|
||||||
|
"builtins": {
|
||||||
|
"அச்சிடு": "print",
|
||||||
|
"உள்ளீடு": "input",
|
||||||
|
"நீளம்": "len",
|
||||||
|
"வரம்பு": "range",
|
||||||
|
"வகை": "type",
|
||||||
|
"முழுஎண்": "int",
|
||||||
|
"மிதவை": "float",
|
||||||
|
"சரம்": "str",
|
||||||
|
"பட்டியல்": "list",
|
||||||
|
"அகராதி": "dict",
|
||||||
|
"கணம்": "set",
|
||||||
|
"தொகுப்பு": "tuple",
|
||||||
|
"உண்மைவகை": "bool",
|
||||||
|
"திற": "open",
|
||||||
|
"எண்ணிட": "enumerate",
|
||||||
|
"மேப்": "map",
|
||||||
|
"வடிகட்டு": "filter",
|
||||||
|
"வரிசைப்படுத்து": "sorted",
|
||||||
|
"கூட்டுத்தொகை": "sum",
|
||||||
|
"குறைந்தபட்சம்": "min",
|
||||||
|
"அதிகபட்சம்": "max",
|
||||||
|
"தனிமதிப்பு": "abs",
|
||||||
|
"சுற்று": "round",
|
||||||
|
"அனைத்தும்": "all",
|
||||||
|
"ஏதாவது": "any",
|
||||||
|
"அடுத்தது": "next",
|
||||||
|
"எண்": "id",
|
||||||
|
"எழுத்து": "chr",
|
||||||
|
"தலைகீழ்": "reversed"
|
||||||
|
},
|
||||||
|
"exceptions": {
|
||||||
|
"விதிவிலக்கு": "Exception",
|
||||||
|
"அடிப்படைவிதிவிலக்கு": "BaseException",
|
||||||
|
"மதிப்புபிழை": "ValueError",
|
||||||
|
"வகைபிழை": "TypeError",
|
||||||
|
"திறவுகோல்பிழை": "KeyError",
|
||||||
|
"குறியீட்டுபிழை": "IndexError",
|
||||||
|
"பண்புபிழை": "AttributeError",
|
||||||
|
"பெயர்பிழை": "NameError",
|
||||||
|
"இறக்குமதிபிழை": "ImportError",
|
||||||
|
"கோப்புகிடைக்கவில்லை": "FileNotFoundError",
|
||||||
|
"இயக்கநேரபிழை": "RuntimeError",
|
||||||
|
"பூஜ்யபிரிவுபிழை": "ZeroDivisionError",
|
||||||
|
"தொடரியல்பிழை": "SyntaxError",
|
||||||
|
"உறுதிப்பாட்டுபிழை": "AssertionError",
|
||||||
|
"நினைவகபிழை": "MemoryError",
|
||||||
|
"மிகைபிழை": "OverflowError",
|
||||||
|
"சுழல்பிழை": "RecursionError",
|
||||||
|
"அனுமதிபிழை": "PermissionError",
|
||||||
|
"நேரமுடிந்தது": "TimeoutError",
|
||||||
|
"கணினிவெளியேறு": "SystemExit",
|
||||||
|
"விசைகுறுக்கீடு": "KeyboardInterrupt"
|
||||||
|
},
|
||||||
|
"error_messages": {
|
||||||
|
"SyntaxError": "தொடரியல் பிழை",
|
||||||
|
"ValueError": "மதிப்பு பிழை",
|
||||||
|
"TypeError": "வகை பிழை",
|
||||||
|
"KeyError": "திறவுகோல் பிழை",
|
||||||
|
"IndexError": "குறியீட்டு பிழை",
|
||||||
|
"AttributeError": "பண்பு பிழை",
|
||||||
|
"NameError": "பெயர் பிழை",
|
||||||
|
"ImportError": "இறக்குமதி பிழை",
|
||||||
|
"FileNotFoundError": "கோப்பு கிடைக்கவில்லை",
|
||||||
|
"ZeroDivisionError": "பூஜ்யத்தால் வகுக்க முடியாது",
|
||||||
|
"RecursionError": "சுழல் பிழை",
|
||||||
|
"RuntimeError": "இயக்க நேர பிழை",
|
||||||
|
"MemoryError": "நினைவக பிழை",
|
||||||
|
"OverflowError": "மிகை பிழை",
|
||||||
|
"AssertionError": "உறுதிப்பாட்டு பிழை",
|
||||||
|
"PermissionError": "அனுமதி பிழை",
|
||||||
|
"TimeoutError": "நேரம் முடிந்தது",
|
||||||
|
"KeyboardInterrupt": "விசை குறுக்கீடு"
|
||||||
|
},
|
||||||
|
"stdlib": {
|
||||||
|
"கணிதம்": "math",
|
||||||
|
"கணினி": "sys",
|
||||||
|
"தேதிநேரம்": "datetime",
|
||||||
|
"நேரம்": "time",
|
||||||
|
"சீரற்ற": "random",
|
||||||
|
"தொகுப்புகள்": "collections",
|
||||||
|
"பாதை": "pathlib",
|
||||||
|
"வழக்கமொழி": "re"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user