tamilstring 0.0.0.dev0__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.
- tamilstring-0.0.0.dev0/LICENCE +21 -0
- tamilstring-0.0.0.dev0/PKG-INFO +218 -0
- tamilstring-0.0.0.dev0/README.md +193 -0
- tamilstring-0.0.0.dev0/setup.cfg +4 -0
- tamilstring-0.0.0.dev0/setup.py +37 -0
- tamilstring-0.0.0.dev0/tamilstring/__init__.py +3 -0
- tamilstring-0.0.0.dev0/tamilstring/constant.py +27 -0
- tamilstring-0.0.0.dev0/tamilstring/helper.py +1574 -0
- tamilstring-0.0.0.dev0/tamilstring/math.py +0 -0
- tamilstring-0.0.0.dev0/tamilstring/utf8.py +1125 -0
- tamilstring-0.0.0.dev0/tamilstring.egg-info/PKG-INFO +218 -0
- tamilstring-0.0.0.dev0/tamilstring.egg-info/SOURCES.txt +17 -0
- tamilstring-0.0.0.dev0/tamilstring.egg-info/dependency_links.txt +1 -0
- tamilstring-0.0.0.dev0/tamilstring.egg-info/top_level.txt +1 -0
- tamilstring-0.0.0.dev0/tests/test_int.py +239 -0
- tamilstring-0.0.0.dev0/tests/test_let.py +63 -0
- tamilstring-0.0.0.dev0/tests/test_letter.py +103 -0
- tamilstring-0.0.0.dev0/tests/test_string.py +88 -0
- tamilstring-0.0.0.dev0/tests/test_utf8.py +365 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Boopalan S and other contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tamilstring
|
|
3
|
+
Version: 0.0.0.dev0
|
|
4
|
+
Summary: tamilstring helps to handle tamil unicode characters lot more easier
|
|
5
|
+
Home-page: https://gitlab.com/boopalan-dev/tamilstring
|
|
6
|
+
Author: boopalan
|
|
7
|
+
Author-email: contact.boopalan@gmail.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Requires-Python: >=3.6
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENCE
|
|
15
|
+
Dynamic: author
|
|
16
|
+
Dynamic: author-email
|
|
17
|
+
Dynamic: classifier
|
|
18
|
+
Dynamic: description
|
|
19
|
+
Dynamic: description-content-type
|
|
20
|
+
Dynamic: home-page
|
|
21
|
+
Dynamic: license
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
Dynamic: requires-python
|
|
24
|
+
Dynamic: summary
|
|
25
|
+
|
|
26
|
+
# TamilString
|
|
27
|
+
|
|
28
|
+
[](https://pypi.org/project/tamilstring/)
|
|
29
|
+
[](https://gitlab.com/boopalan-dev/tamilstring/-/blob/main/LICENSE)
|
|
30
|
+
|
|
31
|
+
**English:**
|
|
32
|
+
|
|
33
|
+
TamilString is a Python library designed to simplify the handling and manipulation of Tamil Unicode characters, enabling developers to process Tamil text more efficiently in their applications.
|
|
34
|
+
|
|
35
|
+
**தமிழ்:**
|
|
36
|
+
|
|
37
|
+
TamilString என்பது தமிழ் யூனிகோட் எழுத்துகளை எளிதாக கையாளவும், செயலாக்கவும் உதவும் ஒரு Python நூலகமாகும், இது டெவலப்பர்களுக்கு தங்கள் பயன்பாடுகளில் தமிழ் உரையை சிறப்பாக செயல்படுத்த உதவுகிறது.
|
|
38
|
+
|
|
39
|
+
## Table of Contents
|
|
40
|
+
|
|
41
|
+
1. [Inspiration - தூண்டுதல்](#inspiration---தூண்டுதல்)
|
|
42
|
+
2. [Features - அம்சங்கள்](#features---அம்சங்கள்)
|
|
43
|
+
3. [Installation - நிறுவல்](#installation---நிறுவல்)
|
|
44
|
+
4. [Usage - பயன்பாடு](#usage---பயன்பாடு)
|
|
45
|
+
5. [Contributing - பங்களிப்பு](#contributing---பங்களிப்பு)
|
|
46
|
+
6. [License - உரிமம்](#license---உரிமம்)
|
|
47
|
+
7. [Acknowledgments - நன்றியுரைகள்](#acknowledgments---நன்றியுரைகள்)
|
|
48
|
+
8. [Contributors - பங்களிப்பாளர்கள்](#contributors---பங்களிப்பாளர்கள்)
|
|
49
|
+
|
|
50
|
+
## Inspiration - தூண்டுதல்
|
|
51
|
+
|
|
52
|
+
**English:**
|
|
53
|
+
|
|
54
|
+
TamilString was inspired by the [Open-Tamil](https://pypi.org/project/Open-Tamil/) project, which offers a set of Python libraries for Tamil text processing. While Open-Tamil laid the groundwork, TamilString aims to enhance and expand these capabilities. For instance, TamilString addresses specific issues found in Open-Tamil, such as the inaccurate output when handling complex Tamil ligatures like 'ஸ்ரீ'. By improving the processing of such characters, TamilString provides more accurate and reliable results for developers working with Tamil text.
|
|
55
|
+
|
|
56
|
+
**தமிழ்:**
|
|
57
|
+
|
|
58
|
+
TamilString திட்டம் [Open-Tamil](https://pypi.org/project/Open-Tamil/) திட்டத்தால் தூண்டப்பட்டது, இது தமிழ் உரை செயலாக்கத்திற்கான Python நூலகங்களை வழங்குகிறது. Open-Tamil அடித்தளத்தை அமைத்தபோதிலும், TamilString இந்த திறன்களை மேம்படுத்த மற்றும் விரிவாக்க நோக்கத்துடன் உருவாக்கப்பட்டது. உதாரணமாக, Open-Tamil இல் காணப்படும் 'ஸ்ரீ' போன்ற சிக்கலான தமிழ் லிகேச்சர்களை கையாளும்போது ஏற்படும் தவறான வெளியீட்டை TamilString தீர்க்கிறது. இப்படியான எழுத்துகளைச் சரியாக செயலாக்குவதன் மூலம், தமிழ் உரையுடன் பணிபுரியும் டெவலப்பர்களுக்கு TamilString மேலும் துல்லியமான மற்றும் நம்பகமான முடிவுகளை வழங்குகிறது.
|
|
59
|
+
|
|
60
|
+
## Features - அம்சங்கள்
|
|
61
|
+
|
|
62
|
+
**English:**
|
|
63
|
+
|
|
64
|
+
- Comprehensive support for Tamil Unicode character manipulation.
|
|
65
|
+
- Functions for transliteration between Tamil and other scripts.
|
|
66
|
+
- Tools for text normalization and validation specific to the Tamil language.
|
|
67
|
+
|
|
68
|
+
**தமிழ்:**
|
|
69
|
+
|
|
70
|
+
- தமிழ் யூனிகோட் எழுத்துகளை முழுமையாக கையாள்வதற்கான ஆதரவு.
|
|
71
|
+
- தமிழ் மற்றும் பிற எழுத்துக்களுக்கிடையே எழுத்துப்பெயர்ப்பு செய்யும் செயல்பாடுகள்.
|
|
72
|
+
- தமிழ் மொழிக்கேற்ப உரை சாதாரணமாக்கல் மற்றும் சரிபார்ப்பு கருவிகள்.
|
|
73
|
+
|
|
74
|
+
## Installation - நிறுவல்
|
|
75
|
+
|
|
76
|
+
**English:**
|
|
77
|
+
|
|
78
|
+
Install the latest version of TamilString using pip:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
pip install tamilstring
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**தமிழ்:**
|
|
85
|
+
|
|
86
|
+
pip பயன்படுத்தி TamilString இன் சமீபத்திய பதிப்பை நிறுவவும்:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
pip install tamilstring
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Usage - பயன்பாடு
|
|
93
|
+
|
|
94
|
+
**English:**
|
|
95
|
+
|
|
96
|
+
Here's a basic example demonstrating how to use TamilString:
|
|
97
|
+
|
|
98
|
+
```python
|
|
99
|
+
import tamilstring
|
|
100
|
+
|
|
101
|
+
# Example function usage
|
|
102
|
+
string = 'தமிழ்'
|
|
103
|
+
tamil_str = tamilstring.String(string)
|
|
104
|
+
|
|
105
|
+
# Splitting the string into characters
|
|
106
|
+
characters = list(tamil_str)
|
|
107
|
+
print(characters)
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**Output:**
|
|
111
|
+
|
|
112
|
+
```python
|
|
113
|
+
['த', 'மி', 'ழ்']
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**தமிழ்:**
|
|
117
|
+
|
|
118
|
+
TamilString ஐ எவ்வாறு பயன்படுத்துவது என்பதை காட்டும் ஒரு அடிப்படை எடுத்துக்காட்டு:
|
|
119
|
+
|
|
120
|
+
```python
|
|
121
|
+
import tamilstring
|
|
122
|
+
|
|
123
|
+
# எடுத்துக்காட்டு செயல்பாடு பயன்பாடு
|
|
124
|
+
string = 'தமிழ்'
|
|
125
|
+
tamil_str = tamilstring.String(string)
|
|
126
|
+
|
|
127
|
+
# எழுத்துக்களைப் பிரித்தல்
|
|
128
|
+
characters = list(tamil_str)
|
|
129
|
+
print(characters)
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
**வெளியீடு:**
|
|
133
|
+
|
|
134
|
+
```python
|
|
135
|
+
['த', 'மி', 'ழ்']
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
For more detailed usage and advanced features, please refer to the [Documentation](https://tamilstring-011d48.gitlab.io/).
|
|
139
|
+
|
|
140
|
+
## Contributing - பங்களிப்பு
|
|
141
|
+
|
|
142
|
+
**English:**
|
|
143
|
+
|
|
144
|
+
We welcome contributions! If you have suggestions or encounter issues, please raise them in our [GitLab Issues](https://gitlab.com/boopalan-dev/tamilstring/-/issues).
|
|
145
|
+
|
|
146
|
+
**தமிழ்:**
|
|
147
|
+
|
|
148
|
+
நாங்கள் பங்களிப்புகளை வரவேற்கிறோம்! உங்களிடம் பரிந்துரைகள் அல்லது சிக்கல்கள் இருந்தால், தயவுசெய்து அவற்றை எங்கள் [GitLab Issues](https://gitlab.com/boopalan-dev/tamilstring/-/issues) இல் பதிவு செய்யவும்.
|
|
149
|
+
|
|
150
|
+
### Adding Yourself as a Contributor | பங்களிப்பாளராக சேர்க்க
|
|
151
|
+
|
|
152
|
+
**English:**
|
|
153
|
+
|
|
154
|
+
At the time of contribution, please add your profile to the list of contributors **before** sending the merge request by including the following HTML snippet in the `README.md` file:
|
|
155
|
+
|
|
156
|
+
```html
|
|
157
|
+
<a href="https://gitlab.com/your_username">
|
|
158
|
+
<img src="IMAGE_URL" width="100" height="100" style="border-radius: 50%;" alt="Your Name"/>
|
|
159
|
+
</a>
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**Instructions:**
|
|
163
|
+
|
|
164
|
+
1. Go to your GitLab profile.
|
|
165
|
+
2. Right-click your profile image → “Open image in new tab”.
|
|
166
|
+
3. Copy the full image URL from the new tab.
|
|
167
|
+
4. Replace `IMAGE_URL` in the above snippet with the copied URL.
|
|
168
|
+
5. Replace `your_username` and `Your Name` accordingly.
|
|
169
|
+
|
|
170
|
+
**தமிழ்:**
|
|
171
|
+
|
|
172
|
+
பங்களிப்பு செய்யும் போது, merge request அனுப்புவதற்கு முன் `README.md` கோப்பில் பங்களிப்பாளர்கள் பட்டியலில் உங்கள் சுயவிவரத்தை கீழ்காணும் HTML குறியீட்டின் மூலம் சேர்க்கவும்:
|
|
173
|
+
|
|
174
|
+
```html
|
|
175
|
+
<a href="https://gitlab.com/your_username">
|
|
176
|
+
<img src="IMAGE_URL" width="100" height="100" style="border-radius: 50%;" alt="உங்கள் பெயர்"/>
|
|
177
|
+
</a>
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
**வழிமுறைகள்:**
|
|
181
|
+
|
|
182
|
+
1. உங்கள் GitLab சுயவிவரத்திற்கு செல்லவும்.
|
|
183
|
+
2. சுயவிவரப் படத்தை வலது கிளிக் செய்து “Open image in new tab” என்பதைத் தேர்ந்தெடுக்கவும்.
|
|
184
|
+
3. புதிய தாவலில் தோன்றும் URL ஐ முழுவதுமாக copy செய்யவும்.
|
|
185
|
+
4. மேலே உள்ள குறியீட்டில் `IMAGE_URL` என்பதை அந்த URL உடன் மாற்றவும்.
|
|
186
|
+
5. பின்னர் `your_username` மற்றும் `உங்கள் பெயர்` விவரங்களுடன் மாற்றவும்.
|
|
187
|
+
|
|
188
|
+
## License - உரிமம்
|
|
189
|
+
|
|
190
|
+
**English:**
|
|
191
|
+
|
|
192
|
+
This project is licensed under the MIT License. See the [LICENSE](https://gitlab.com/boopalan-dev/tamilstring/-/blob/main/LICENSE) file for details.
|
|
193
|
+
|
|
194
|
+
**தமிழ்:**
|
|
195
|
+
|
|
196
|
+
இந்த திட்டம் MIT உரிமத்தின் கீழ் வழங்கப்படுகிறது. விவரங்களுக்கு [உரிமம்](https://gitlab.com/boopalan-dev/tamilstring/-/blob/main/LICENSE) கோப்பை பார்க்கவும்.
|
|
197
|
+
|
|
198
|
+
## Acknowledgments - நன்றியுரைகள்
|
|
199
|
+
|
|
200
|
+
**English:**
|
|
201
|
+
|
|
202
|
+
Special thanks to all contributors and the open-source community for their invaluable support.
|
|
203
|
+
|
|
204
|
+
**தமிழ்:**
|
|
205
|
+
|
|
206
|
+
அனைத்து பங்களிப்பாளர்களுக்கும் மற்றும் திறந்த மூல சமூகத்திற்கும் அவர்களின் மதிப்புமிக்க ஆதரவுக்கு சிறப்பு நன்றி.
|
|
207
|
+
|
|
208
|
+
## Contributors - பங்களிப்பாளர்கள்
|
|
209
|
+
|
|
210
|
+
<a href="https://gitlab.com/boopalan-dev">
|
|
211
|
+
<img src="https://gitlab.com/uploads/-/system/user/avatar/22134717/avatar.png?s=100" width="100" height="100" style="border-radius: 50%;" alt="Boopalan S"/>
|
|
212
|
+
</a>
|
|
213
|
+
<a href="https://gitlab.com/anandsundaramoorthysa">
|
|
214
|
+
<img src="https://gitlab.com/uploads/-/system/user/avatar/22613937/avatar.png?s=100" width="100" height="100" style="border-radius: 50%;" alt="Anand Sundaramoorthy SA"/>
|
|
215
|
+
</a>
|
|
216
|
+
<a href="https://gitlab.com/bkmgit">
|
|
217
|
+
<img src="https://gitlab.com/uploads/-/system/user/avatar/618404/avatar.png?s=100" width="100" height="100" style="border-radius: 50%;" alt="Benson Muite"/>
|
|
218
|
+
</a>
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
# TamilString
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/tamilstring/)
|
|
4
|
+
[](https://gitlab.com/boopalan-dev/tamilstring/-/blob/main/LICENSE)
|
|
5
|
+
|
|
6
|
+
**English:**
|
|
7
|
+
|
|
8
|
+
TamilString is a Python library designed to simplify the handling and manipulation of Tamil Unicode characters, enabling developers to process Tamil text more efficiently in their applications.
|
|
9
|
+
|
|
10
|
+
**தமிழ்:**
|
|
11
|
+
|
|
12
|
+
TamilString என்பது தமிழ் யூனிகோட் எழுத்துகளை எளிதாக கையாளவும், செயலாக்கவும் உதவும் ஒரு Python நூலகமாகும், இது டெவலப்பர்களுக்கு தங்கள் பயன்பாடுகளில் தமிழ் உரையை சிறப்பாக செயல்படுத்த உதவுகிறது.
|
|
13
|
+
|
|
14
|
+
## Table of Contents
|
|
15
|
+
|
|
16
|
+
1. [Inspiration - தூண்டுதல்](#inspiration---தூண்டுதல்)
|
|
17
|
+
2. [Features - அம்சங்கள்](#features---அம்சங்கள்)
|
|
18
|
+
3. [Installation - நிறுவல்](#installation---நிறுவல்)
|
|
19
|
+
4. [Usage - பயன்பாடு](#usage---பயன்பாடு)
|
|
20
|
+
5. [Contributing - பங்களிப்பு](#contributing---பங்களிப்பு)
|
|
21
|
+
6. [License - உரிமம்](#license---உரிமம்)
|
|
22
|
+
7. [Acknowledgments - நன்றியுரைகள்](#acknowledgments---நன்றியுரைகள்)
|
|
23
|
+
8. [Contributors - பங்களிப்பாளர்கள்](#contributors---பங்களிப்பாளர்கள்)
|
|
24
|
+
|
|
25
|
+
## Inspiration - தூண்டுதல்
|
|
26
|
+
|
|
27
|
+
**English:**
|
|
28
|
+
|
|
29
|
+
TamilString was inspired by the [Open-Tamil](https://pypi.org/project/Open-Tamil/) project, which offers a set of Python libraries for Tamil text processing. While Open-Tamil laid the groundwork, TamilString aims to enhance and expand these capabilities. For instance, TamilString addresses specific issues found in Open-Tamil, such as the inaccurate output when handling complex Tamil ligatures like 'ஸ்ரீ'. By improving the processing of such characters, TamilString provides more accurate and reliable results for developers working with Tamil text.
|
|
30
|
+
|
|
31
|
+
**தமிழ்:**
|
|
32
|
+
|
|
33
|
+
TamilString திட்டம் [Open-Tamil](https://pypi.org/project/Open-Tamil/) திட்டத்தால் தூண்டப்பட்டது, இது தமிழ் உரை செயலாக்கத்திற்கான Python நூலகங்களை வழங்குகிறது. Open-Tamil அடித்தளத்தை அமைத்தபோதிலும், TamilString இந்த திறன்களை மேம்படுத்த மற்றும் விரிவாக்க நோக்கத்துடன் உருவாக்கப்பட்டது. உதாரணமாக, Open-Tamil இல் காணப்படும் 'ஸ்ரீ' போன்ற சிக்கலான தமிழ் லிகேச்சர்களை கையாளும்போது ஏற்படும் தவறான வெளியீட்டை TamilString தீர்க்கிறது. இப்படியான எழுத்துகளைச் சரியாக செயலாக்குவதன் மூலம், தமிழ் உரையுடன் பணிபுரியும் டெவலப்பர்களுக்கு TamilString மேலும் துல்லியமான மற்றும் நம்பகமான முடிவுகளை வழங்குகிறது.
|
|
34
|
+
|
|
35
|
+
## Features - அம்சங்கள்
|
|
36
|
+
|
|
37
|
+
**English:**
|
|
38
|
+
|
|
39
|
+
- Comprehensive support for Tamil Unicode character manipulation.
|
|
40
|
+
- Functions for transliteration between Tamil and other scripts.
|
|
41
|
+
- Tools for text normalization and validation specific to the Tamil language.
|
|
42
|
+
|
|
43
|
+
**தமிழ்:**
|
|
44
|
+
|
|
45
|
+
- தமிழ் யூனிகோட் எழுத்துகளை முழுமையாக கையாள்வதற்கான ஆதரவு.
|
|
46
|
+
- தமிழ் மற்றும் பிற எழுத்துக்களுக்கிடையே எழுத்துப்பெயர்ப்பு செய்யும் செயல்பாடுகள்.
|
|
47
|
+
- தமிழ் மொழிக்கேற்ப உரை சாதாரணமாக்கல் மற்றும் சரிபார்ப்பு கருவிகள்.
|
|
48
|
+
|
|
49
|
+
## Installation - நிறுவல்
|
|
50
|
+
|
|
51
|
+
**English:**
|
|
52
|
+
|
|
53
|
+
Install the latest version of TamilString using pip:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
pip install tamilstring
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**தமிழ்:**
|
|
60
|
+
|
|
61
|
+
pip பயன்படுத்தி TamilString இன் சமீபத்திய பதிப்பை நிறுவவும்:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
pip install tamilstring
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Usage - பயன்பாடு
|
|
68
|
+
|
|
69
|
+
**English:**
|
|
70
|
+
|
|
71
|
+
Here's a basic example demonstrating how to use TamilString:
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
import tamilstring
|
|
75
|
+
|
|
76
|
+
# Example function usage
|
|
77
|
+
string = 'தமிழ்'
|
|
78
|
+
tamil_str = tamilstring.String(string)
|
|
79
|
+
|
|
80
|
+
# Splitting the string into characters
|
|
81
|
+
characters = list(tamil_str)
|
|
82
|
+
print(characters)
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**Output:**
|
|
86
|
+
|
|
87
|
+
```python
|
|
88
|
+
['த', 'மி', 'ழ்']
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**தமிழ்:**
|
|
92
|
+
|
|
93
|
+
TamilString ஐ எவ்வாறு பயன்படுத்துவது என்பதை காட்டும் ஒரு அடிப்படை எடுத்துக்காட்டு:
|
|
94
|
+
|
|
95
|
+
```python
|
|
96
|
+
import tamilstring
|
|
97
|
+
|
|
98
|
+
# எடுத்துக்காட்டு செயல்பாடு பயன்பாடு
|
|
99
|
+
string = 'தமிழ்'
|
|
100
|
+
tamil_str = tamilstring.String(string)
|
|
101
|
+
|
|
102
|
+
# எழுத்துக்களைப் பிரித்தல்
|
|
103
|
+
characters = list(tamil_str)
|
|
104
|
+
print(characters)
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**வெளியீடு:**
|
|
108
|
+
|
|
109
|
+
```python
|
|
110
|
+
['த', 'மி', 'ழ்']
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
For more detailed usage and advanced features, please refer to the [Documentation](https://tamilstring-011d48.gitlab.io/).
|
|
114
|
+
|
|
115
|
+
## Contributing - பங்களிப்பு
|
|
116
|
+
|
|
117
|
+
**English:**
|
|
118
|
+
|
|
119
|
+
We welcome contributions! If you have suggestions or encounter issues, please raise them in our [GitLab Issues](https://gitlab.com/boopalan-dev/tamilstring/-/issues).
|
|
120
|
+
|
|
121
|
+
**தமிழ்:**
|
|
122
|
+
|
|
123
|
+
நாங்கள் பங்களிப்புகளை வரவேற்கிறோம்! உங்களிடம் பரிந்துரைகள் அல்லது சிக்கல்கள் இருந்தால், தயவுசெய்து அவற்றை எங்கள் [GitLab Issues](https://gitlab.com/boopalan-dev/tamilstring/-/issues) இல் பதிவு செய்யவும்.
|
|
124
|
+
|
|
125
|
+
### Adding Yourself as a Contributor | பங்களிப்பாளராக சேர்க்க
|
|
126
|
+
|
|
127
|
+
**English:**
|
|
128
|
+
|
|
129
|
+
At the time of contribution, please add your profile to the list of contributors **before** sending the merge request by including the following HTML snippet in the `README.md` file:
|
|
130
|
+
|
|
131
|
+
```html
|
|
132
|
+
<a href="https://gitlab.com/your_username">
|
|
133
|
+
<img src="IMAGE_URL" width="100" height="100" style="border-radius: 50%;" alt="Your Name"/>
|
|
134
|
+
</a>
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
**Instructions:**
|
|
138
|
+
|
|
139
|
+
1. Go to your GitLab profile.
|
|
140
|
+
2. Right-click your profile image → “Open image in new tab”.
|
|
141
|
+
3. Copy the full image URL from the new tab.
|
|
142
|
+
4. Replace `IMAGE_URL` in the above snippet with the copied URL.
|
|
143
|
+
5. Replace `your_username` and `Your Name` accordingly.
|
|
144
|
+
|
|
145
|
+
**தமிழ்:**
|
|
146
|
+
|
|
147
|
+
பங்களிப்பு செய்யும் போது, merge request அனுப்புவதற்கு முன் `README.md` கோப்பில் பங்களிப்பாளர்கள் பட்டியலில் உங்கள் சுயவிவரத்தை கீழ்காணும் HTML குறியீட்டின் மூலம் சேர்க்கவும்:
|
|
148
|
+
|
|
149
|
+
```html
|
|
150
|
+
<a href="https://gitlab.com/your_username">
|
|
151
|
+
<img src="IMAGE_URL" width="100" height="100" style="border-radius: 50%;" alt="உங்கள் பெயர்"/>
|
|
152
|
+
</a>
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
**வழிமுறைகள்:**
|
|
156
|
+
|
|
157
|
+
1. உங்கள் GitLab சுயவிவரத்திற்கு செல்லவும்.
|
|
158
|
+
2. சுயவிவரப் படத்தை வலது கிளிக் செய்து “Open image in new tab” என்பதைத் தேர்ந்தெடுக்கவும்.
|
|
159
|
+
3. புதிய தாவலில் தோன்றும் URL ஐ முழுவதுமாக copy செய்யவும்.
|
|
160
|
+
4. மேலே உள்ள குறியீட்டில் `IMAGE_URL` என்பதை அந்த URL உடன் மாற்றவும்.
|
|
161
|
+
5. பின்னர் `your_username` மற்றும் `உங்கள் பெயர்` விவரங்களுடன் மாற்றவும்.
|
|
162
|
+
|
|
163
|
+
## License - உரிமம்
|
|
164
|
+
|
|
165
|
+
**English:**
|
|
166
|
+
|
|
167
|
+
This project is licensed under the MIT License. See the [LICENSE](https://gitlab.com/boopalan-dev/tamilstring/-/blob/main/LICENSE) file for details.
|
|
168
|
+
|
|
169
|
+
**தமிழ்:**
|
|
170
|
+
|
|
171
|
+
இந்த திட்டம் MIT உரிமத்தின் கீழ் வழங்கப்படுகிறது. விவரங்களுக்கு [உரிமம்](https://gitlab.com/boopalan-dev/tamilstring/-/blob/main/LICENSE) கோப்பை பார்க்கவும்.
|
|
172
|
+
|
|
173
|
+
## Acknowledgments - நன்றியுரைகள்
|
|
174
|
+
|
|
175
|
+
**English:**
|
|
176
|
+
|
|
177
|
+
Special thanks to all contributors and the open-source community for their invaluable support.
|
|
178
|
+
|
|
179
|
+
**தமிழ்:**
|
|
180
|
+
|
|
181
|
+
அனைத்து பங்களிப்பாளர்களுக்கும் மற்றும் திறந்த மூல சமூகத்திற்கும் அவர்களின் மதிப்புமிக்க ஆதரவுக்கு சிறப்பு நன்றி.
|
|
182
|
+
|
|
183
|
+
## Contributors - பங்களிப்பாளர்கள்
|
|
184
|
+
|
|
185
|
+
<a href="https://gitlab.com/boopalan-dev">
|
|
186
|
+
<img src="https://gitlab.com/uploads/-/system/user/avatar/22134717/avatar.png?s=100" width="100" height="100" style="border-radius: 50%;" alt="Boopalan S"/>
|
|
187
|
+
</a>
|
|
188
|
+
<a href="https://gitlab.com/anandsundaramoorthysa">
|
|
189
|
+
<img src="https://gitlab.com/uploads/-/system/user/avatar/22613937/avatar.png?s=100" width="100" height="100" style="border-radius: 50%;" alt="Anand Sundaramoorthy SA"/>
|
|
190
|
+
</a>
|
|
191
|
+
<a href="https://gitlab.com/bkmgit">
|
|
192
|
+
<img src="https://gitlab.com/uploads/-/system/user/avatar/618404/avatar.png?s=100" width="100" height="100" style="border-radius: 50%;" alt="Benson Muite"/>
|
|
193
|
+
</a>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
import subprocess
|
|
3
|
+
import re
|
|
4
|
+
|
|
5
|
+
def get_version():
|
|
6
|
+
"""Extract version from latest git tag, fallback to dev version"""
|
|
7
|
+
try:
|
|
8
|
+
tag = subprocess.check_output(
|
|
9
|
+
["git", "describe", "--tags", "--abbrev=0"],
|
|
10
|
+
stderr=subprocess.DEVNULL,
|
|
11
|
+
universal_newlines=True
|
|
12
|
+
).strip()
|
|
13
|
+
return re.sub(r'^v', '', tag)
|
|
14
|
+
except (subprocess.CalledProcessError, FileNotFoundError):
|
|
15
|
+
return "0.0.0.dev0"
|
|
16
|
+
|
|
17
|
+
with open("README.md", "r", encoding="utf-8") as fh:
|
|
18
|
+
long_description = fh.read()
|
|
19
|
+
|
|
20
|
+
setup(
|
|
21
|
+
name="tamilstring",
|
|
22
|
+
version=get_version(),
|
|
23
|
+
author="boopalan",
|
|
24
|
+
author_email="contact.boopalan@gmail.com",
|
|
25
|
+
description="tamilstring helps to handle tamil unicode characters lot more easier",
|
|
26
|
+
license="MIT",
|
|
27
|
+
long_description=long_description,
|
|
28
|
+
long_description_content_type="text/markdown",
|
|
29
|
+
url="https://gitlab.com/boopalan-dev/tamilstring",
|
|
30
|
+
packages=find_packages(),
|
|
31
|
+
classifiers=[
|
|
32
|
+
"Programming Language :: Python :: 3",
|
|
33
|
+
"Operating System :: OS Independent",
|
|
34
|
+
"License :: OSI Approved :: MIT License",
|
|
35
|
+
],
|
|
36
|
+
python_requires=">=3.6",
|
|
37
|
+
)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
tamil_vowel_letters = ["அ","ஆ","இ","ஈ","உ","ஊ","எ","ஏ","ஐ","ஒ","ஓ","ஔ"]
|
|
2
|
+
tamil_vowel_unicode_symbols = ["ா", "ி", "ீ", "ு", "ூ", "ெ", "ே", "ை", "ொ", "ோ", "ௌ" ]
|
|
3
|
+
tamil_consonent_letters =["க","ங","ச","ஞ","ட","ண","த","ந","ப","ம","ய","ர","ல","வ","ழ","ள","ற","ன"]
|
|
4
|
+
tamil_autham_letter = "ஃ"
|
|
5
|
+
sanskrit_vowel_letters = ["ஶ", "ஜ", "ஷ", "ஸ", "ஹ", "க்ஷ"]
|
|
6
|
+
sanskrit_consonents_letters = ["ஶ்", "ஜ்", "ஷ்", "ஸ்", "ஹ்", "க்ஷ்"]
|
|
7
|
+
tamil_numerals = ["௦", "௧", "௨", "௩", "௪", "௫", "௬", "௭", "௮", "௯", "௰""௱","௲"]
|
|
8
|
+
tamil_sym=["௳","௴","௵","௶","௷","௹","௺"]
|
|
9
|
+
|
|
10
|
+
tamil_hard_consonents = ["க்","ச்","ட்","த்","ப்","ற்"]
|
|
11
|
+
tamil_soft_consonents = ["ங்","ஞ்","ண்","ந்", "ம்","ன்"]
|
|
12
|
+
tamil_medium_consonents = []
|
|
13
|
+
|
|
14
|
+
TAMIL_SYMBOLS = ['௹']
|
|
15
|
+
|
|
16
|
+
TAMIL_NUMURALS = ["௦", "௧", "௨", "௩", "௪", "௫", "௬", "௭", "௮", "௯", "௰""௱","௲"]
|
|
17
|
+
|
|
18
|
+
TA_ROOT_CONSONENT = ["க","ங","ச","ஞ","ட","ண","த","ந","ப","ம","ய","ர","ல","வ","ழ","ள","ற","ன"]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
TAMIL_ROOT_VOWEL = ["அ","ஆ","இ","ஈ","உ","ஊ","எ","ஏ","ஐ","ஒ","ஓ","ஔ"]
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
TAMIL_VOWEL_CHARS = ["ா", "ி", "ீ", "ு", "ூ", "ெ", "ே", "ை", "ொ", "ோ", "ௌ" ]
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
SA_ROOT_LETTERS = ["ஶ", "ஜ", "ஷ", "ஸ", "ஹ", "க்ஷ"]
|