python-negar 1.2.8__tar.gz → 1.2.9__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.
@@ -1,3 +1,7 @@
1
+ 1.2.9 - 2024-05-07
2
+ -- Fix subtle issue with untoucahle words which stick to nonliteral symbols like Parantheses
3
+ -- new test for untoucahle words
4
+
1
5
  1.2.8 - 2023-09-21
2
6
  -- Fix subtle issue with triple dots at the end of sentence followed by another [?!.]
3
7
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-negar
3
- Version: 1.2.8
3
+ Version: 1.2.9
4
4
  Summary: Negar is a spell corrector and Persian text editor
5
5
  Home-page: http://github.com/shahinism/python-negar
6
6
  Author: Shahin Azad
@@ -1,7 +1,7 @@
1
1
  import platform
2
2
  from pathlib import Path
3
3
 
4
- __version__ = "1.2.8"
4
+ __version__ = "1.2.9"
5
5
 
6
6
  DATAFILE = Path(__file__).parent.absolute() / "data/untouchable.dat"
7
7
  APPDATA = "AppData/Roaming/" if platform.system() == "Windows" else "."
@@ -232,7 +232,7 @@ class PersianEditor:
232
232
  [تمش]ان|
233
233
  ها(ی(ی|ت|م|ش|تان|شان)?)?|""" if self._exaggerating_zwnj else ""
234
234
  regx = re.compile(
235
- rf"""(\S+?) # not-greedy fetch to handle some case like هایشان instead شان
235
+ rf"""\b(\S+?) # not-greedy fetch to handle some case like هایشان instead شان
236
236
  ({exag}
237
237
  # تر(ی(ن)?)?
238
238
  # [تمش]ان|
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-negar
3
- Version: 1.2.8
3
+ Version: 1.2.9
4
4
  Summary: Negar is a spell corrector and Persian text editor
5
5
  Home-page: http://github.com/shahinism/python-negar
6
6
  Author: Shahin Azad
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes