Closed chopinesque closed 2 weeks ago
support more templates
Question: I want the following snippet to be amended so as not to add parenthesis in the expanded templates.
if text := { "αθ": "αρσενικό ή θηλυκό", "ταυτ": "ταυτόσημα", "αναδρομικός": "αναδρομικός σχηματισμός", "κρητ αρχ": "κρητικός τύπος", "λατ": "λατινικά", "υστερο la": "υστερολατινική", "αντιδάνειο": "αντιδάνειο", "χρειάζεται": "χρειάζεται", "συνων": "συνώνυμα", "συνών": "συνώνυμα", "ποιητ": "ποιητικός τύπος", }.get(tpl, ""): return text if data["0"] else term(text)
Parenthesis are added by the term() function. If you want only italic, you can call italic(). Have a look at functions into the user_functionS.py file ;)
term()
italic()
user_functionS.py
Great! Feel free to amend and merge.
support more templates
Question: I want the following snippet to be amended so as not to add parenthesis in the expanded templates.