Skip to content

Commit

Permalink
Merge pull request #279 from fqa-cyber/master
Browse files Browse the repository at this point in the history
Adding Arabic and Turkish Language Support
  • Loading branch information
TahirJalilov authored Jan 18, 2024
2 parents 1846483 + fc1b3fd commit 3045892
Show file tree
Hide file tree
Showing 5 changed files with 14,234 additions and 4,737 deletions.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ By default, the language is English (``language='en'``) but also supported langu
* Japanese (``'ja'``)
* Korean (``'ko'``)
* Russian (``'ru'``)
* Arabic (``'ar'``)
* Turkish (``'tr'``)


.. code-block:: python
Expand Down
3 changes: 2 additions & 1 deletion emoji/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
]

_DEFAULT_DELIMITER = ':'
_EMOJI_NAME_PATTERN = '\\w\\-&.’”“()!#*+,/«»\u0300\u0301\u0302\u0303\u0306\u0308\u030a\u0327\u064b\u064e\u064f\u0650\u0653\u0654\u3099\u30fb\u309a'
# In Arabic language, the unicode character "\u0655" should be kept so we add it to the pattern below
_EMOJI_NAME_PATTERN = '\\w\\-&.’”“()!#*+,/«»\u0300\u0301\u0302\u0303\u0306\u0308\u030a\u0327\u064b\u064e\u064f\u0650\u0653\u0654\u3099\u30fb\u309a\u0655'


class config():
Expand Down
Loading

0 comments on commit 3045892

Please sign in to comment.