Skip to content

Commit

Permalink
minor bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
rexa222 committed May 9, 2023
1 parent 9c7040c commit 115c6ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arabic2latin/arabic2latin.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def arabic_to_latin(text, debug=False):
elif char == "ه" and (c == n-1 or (c != n-1 and text[c+1] == " ")):
result += "ah"

else:
elif result:
if result[-1] not in VOWELS and MAPPING[char][:1] not in VOWELS and result[-3:] not in " al" and MAPPING[char] != "y":
if not no_vowel:
result += "a"
Expand Down
2 changes: 1 addition & 1 deletion arabic2latin/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.1.2"
__version__ = "1.1.3"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "arabic2latin"
version = "1.1.2"
version = "1.1.3"
description = "Convert Arabic characters to their Latin (English) homophones."
readme = "README.md"
requires-python = ">=3.6"
Expand Down

0 comments on commit 115c6ab

Please sign in to comment.