6 Commits
v0.2.3 ... main

Author SHA1 Message Date
9ae556df47 bumped version to 0.2.4 to fix breakign change
All checks were successful
Pack Validation CI / validate (push) Successful in 8s
Publish Language Pack / verify (push) Successful in 7s
Publish Language Pack / publish (push) Successful in 14s
2026-05-21 15:35:55 +00:00
8c1bbc2ab6 added 0.5.4 dependency to fix issues
All checks were successful
Pack Validation CI / validate (push) Successful in 7s
2026-05-21 15:35:10 +00:00
0ab35b8a90 added readme
All checks were successful
Pack Validation CI / validate (push) Successful in 7s
Trigger Docs Rebuild / trigger (push) Successful in 2s
2026-05-21 15:16:38 +00:00
20761a9aad added docs trigger
All checks were successful
Pack Validation CI / validate (push) Successful in 8s
2026-05-20 22:07:27 -05:00
6246faa9e8 Added readme
All checks were successful
Pack Validation CI / validate (push) Successful in 9s
2026-05-20 17:45:29 -05:00
de801eda78 fixed release naming in workflow publish.yml
All checks were successful
Pack Validation CI / validate (push) Successful in 7s
2026-05-19 18:01:10 -05:00
4 changed files with 149 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ jobs:
-H "Content-Type: application/json" \
-d "{
\"tag_name\": \"$TAG\",
\"name\": \"$REPO_NAME $TAG\",
\"name\": \"$TAG\",
\"body\": \"Language pack release version $TAG for the foreignthon transpiler framework.\",
\"draft\": false,
\"prerelease\": false

View File

@@ -0,0 +1,21 @@
name: Trigger Docs Rebuild
on:
push:
branches: ["main"]
paths:
- "README.md"
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger docs rebuild
env:
DOCS_TOKEN: ${{ secrets.DOCS_TRIGGER_TOKEN }}
run: |
curl -s -X POST \
-H "Authorization: token $DOCS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"ref": "main"}' \
"https://git.keshavanand.net/api/v1/repos/foreign-thon/foreignthon-docs/actions/workflows/deploy.yml/dispatches"

125
README.md
View File

@@ -1 +1,126 @@
# foreignthon-ta
Tamil language pack for [ForeignThon](https://foreignthon.keshavanand.net/) — write Python in தமிழ்.
---
## Install
```bash
pip install foreignthon foreignthon-ta
```
---
## Example
**`fizzbuzz.ta.py`**
```python
ிரலகம fizzbuzz(n):
ஆக i உள வரம(1, n + 1):
i % 15 == 0 @@ஆன:
பதிி("FizzBuzz")
i % 3 == 0 @@இலஆன:
பதிி("Fizz")
i % 5 == 0 @@இலஆன:
பதிி("Buzz")
மறறபடி:
பதிி(i)
fizzbuzz(20)
```
This uses Tamil's natural SOV word order — the condition comes first, then the keyword with `@@`. See [Postfix Syntax](https://foreignthon.keshavanand.net/postfix-syntax/) for details.
Compiles to standard Python:
```python
def fizzbuzz(n):
for i in range(1, n + 1):
if i % 15 == 0:
print("FizzBuzz")
elif i % 3 == 0:
print("Fizz")
elif i % 5 == 0:
print("Buzz")
else:
print(i)
fizzbuzz(20)
```
---
## Keyword reference
| Python | தமிழ் |
|---|---|
| `if` | `ஆனால்` |
| `else` | `மற்றபடி` |
| `elif` | `இல்லைஆனால்` |
| `for` | `ஆக` |
| `while` | `வரை` |
| `def` | `நிரல்பாகம்` |
| `class` | `கோப்பு` |
| `return` | `பின்கோடு` |
| `import` | `இறக்கு` |
| `True` | `உண்மை` |
| `False` | `பொய்` |
| `None` | `ஒன்றுமில்லை` |
| `print` | `பதிப்பி` |
| `input` | `உள்ளீடு` |
| `len` | `நீளம்` |
| `range` | `வரம்பு` |
Full mapping: [`ta.json`](https://git.keshavanand.net/foreign-thon/foreignthon-ta/raw/branch/main/src/foreignthon_ta/ta.json)
---
## Postfix syntax
Tamil is SOV — the condition naturally comes before the keyword. The `@@` operator lets you write it that way:
```python
# prefix style (also valid)
ஆன x > 0:
பதிி(x)
# postfix style — natural Tamil order
x > 0 @@ஆன:
பதிி(x)
```
Both compile identically. Decompile standard Python with postfix output:
```bash
fpy decompile script.py --lang ta --postfix
```
---
## Start a project
```bash
fpy new myproject --lang ta
cd myproject
fpy run src/main.ta.py
```
---
## Documentation
→ [foreignthon.keshavanand.net](https://foreignthon.keshavanand.net/)
---
## Contributing
Found a missing translation or a better keyword choice? Open an issue or PR — no access to the core repo needed.
---
## License
GPL v3

View File

@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "foreignthon-ta"
version = "0.2.3"
version = "0.2.4"
description = "Tamil language pack for ForeignThon."
license = { text = "GPL v3" }
requires-python = ">=3.9"
@@ -12,7 +12,7 @@ authors = [
{ name = "Keshav Anand", email = "keshavanand.dev@gmail.com" }
]
keywords = ["foreignthon", "tamil", "தமிழ்"]
dependencies = ["foreignthon>=0.5.3"]
dependencies = ["foreignthon>=0.5.4"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",