diff --git a/LICENSE.md b/LICENSE.md index 35f0d71..2651eab 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,7 +1,3 @@ Copyright 2021-2024 Isaac L. Bleaman -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +This work is licensed under CC BY-SA 4.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/4.0/ diff --git a/setup.py b/setup.py index 581d6a3..590f34f 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='yiddish', - version='0.0.16', + version='0.0.17', author='Isaac L. Bleaman', author_email='bleaman@berkeley.edu', description='A Python library for processing Yiddish text', diff --git a/yiddish/yiddish.py b/yiddish/yiddish.py index f5e2978..4c953f3 100644 --- a/yiddish/yiddish.py +++ b/yiddish/yiddish.py @@ -229,11 +229,11 @@ def transliterate(string, loshn_koydesh=False): (r'ן(\'|")', r'נ\1'), (r'ף(\'|")', r'פֿ\1'), (r'ץ(\'|")', r'צ\1'), - (r'\bך', 'כ'), # no word-initial final letters - (r'\bם', 'מ'), - (r'\bן', 'נ'), - (r'\bף', 'פֿ'), - (r'\bץ', 'צ'), + (r'(? עד־היום־הזה # ey != ײ (r'geyogt', 'געיאָגט'), @@ -353,11 +354,16 @@ def transliterate(string, loshn_koydesh=False): (r'du shatst', 'דו שאַטסט'), # cf. ער שאַצט (r'\bforverts\b', 'פֿאָרװערטס'), (r'\bayngemakhts', 'אײַנגעמאַכטס'), + (r'\bmasatshusets', 'מאַסאַטשוסעטס'), + (r'\bhundertst', 'הונדערטסט'), # kh != כ (r'\bpikhol', 'פּיקהאָל'), # פּיקהאָלץ, פּיקהאָלצן (r'\btsurikhalt', 'צוריקהאַלט'), # צוריקהאַלטן etc. (r'\bkrikhalt', 'קריקהאַלט'), + (r'\bshtokhol', 'שטאָקהאָל'), # שטאָקהאָלם/מער + (r'\bstokhol', 'סטאָקהאָל'), + (r'\bavekharg', 'אַװעקהאַרג'), # needed for אַװעקהרגע(נע)ן # sh != ש (r'\boysh(?!ers?\b|vits(er)?\b)', 'אױסה'), # the only exceptions to oysh = אױסה @@ -392,6 +398,7 @@ def transliterate(string, loshn_koydesh=False): 'עלעף', 'עמער', 'פּױלן', + 'קאַשע', 'קעלער', 'קעץ', 'קערן',