def test_convert_word_with_complex_strong(self): word = ET.fromstring( '<w lemma="a/3068 b" n="0.1.1.0" morph="HNp">יְהוָ֜ה</w>') usfm = osistousfm3.convertWord(self.lexicon, word) self.assertEqual( u'\w יְהוָ֜ה|lemma="יְהֹוָה" strong="a:H3068b" x-morph="He,Np" \w*', usfm)
def test_convert_word_missing_morph(self): word = ET.fromstring('<w lemma="3068" n="0.1.1.0">יְהוָ֜ה</w>') usfm = osistousfm3.convertWord(self.lexicon, word) self.assertEqual(u'\w יְהוָ֜ה|lemma="יְהֹוָה" strong="H3068" \w*', usfm)
def test_convert_word_with_letter_strong(self): word = ET.fromstring('<w lemma="b" morph="HR/Sp2ms">בְ/ךָ֣</w>') usfm = osistousfm3.convertWord(self.lexicon, word) self.assertEqual( u'\w בְךָ֣|lemma="" strong="b" x-morph="He,R:Sp2ms" \w*', usfm)