Repository: BoboTiG/ebook-reader-dict

Issue:
[EL] Support 'Ετυμ' template
- Wiktionary page: https://el.wiktionary.org/wiki/%CE%BB%CE%B1%CE%BC%CE%B2%CE%AC%CE%BD%CF%89

Wikicode:
```
{ετυμ|ine-pro}}
```

Output:
```
<i>(Ετυμ)</i>
```

Expected:
```
πρωτοϊνδοευρωπαϊκή
```

---

Model link, if any: https://el.wiktionary.org/wiki/%CE%A0%CF%81%CF%8C%CF%84%CF%85%CF%80%CE%BF:%CE%B5%CF%84%CF%85%CE%BC

<!-- POLAR PLEDGE BADGE START -->
## Upvote & Fund

- We're using [Polar.sh](https://polar.sh/tiger-222) so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.

<a href="https://polar.sh/BoboTiG/ebook-reader-dict/issues/983">
<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://polar.sh/api/github/BoboTiG/ebook-reader-dict/issues/983/pledge.svg?darkmode=1">
  <img alt="Fund with Polar" src="https://polar.sh/api/github/BoboTiG/ebook-reader-dict/issues/983/pledge.svg">
</picture>
</a>
<!-- POLAR PLEDGE BADGE END -->


Discussion:

Patch:
diff --git a/wikidict/lang/el/__init__.py b/wikidict/lang/el/__init__.py
index 0c1abc91..0d11f5a4 100644
--- a/wikidict/lang/el/__init__.py
+++ b/wikidict/lang/el/__init__.py
@@ -250,8 +250,12 @@ def last_template_handler(template: tuple[str, ...], locale: str, word: str = ""
         >>> last_template_handler(["ουσ"], "el")
         '(<i>ουσιαστικοποιημένο</i>)'
 
+        >>> last_template_handler(["ετυμ", "ine-pro"], "el")
+        'πρωτοϊνδοευρωπαϊκή'
     """
+    from ...user_functions import italic
     from ..defaults import last_template_handler as default
+    from .langs import langs
 
     tpl, *parts = template
     data = extract_keywords_from(parts)
@@ -299,7 +303,7 @@ def last_template_handler(template: tuple[str, ...], locale: str, word: str = ""
         return phrase
 
     if tpl == "βλφρ":
-        phrase = "<i>δείτε την έκφραση</i>"
+        phrase = italic("δείτε την έκφραση")
         if not data["0"]:
             phrase += ":"
         return phrase
@@ -323,6 +327,9 @@ def last_template_handler(template: tuple[str, ...], locale: str, word: str = ""
         data["label"] = parts[0]
         return labels_output(data.get("text", ""), data)
 
+    if tpl == "ετυμ":
+        return str(langs[parts[0]]["name"])
+
     if tpl == "λόγιο":
         data["label"] = tpl
         return labels_output("", data)


Test patch:
diff --git a/tests/test_el.py b/tests/test_el.py
index a65e8709..6dc03c3b 100644
--- a/tests/test_el.py
+++ b/tests/test_el.py
@@ -14,7 +14,9 @@
             "λαμβάνω",
             ["/laɱˈva.no/"],
             [],
-            ["<b>λαμβάνω</b> < (διαχρονικό δάνειο) <i>αρχαία ελληνική</i> λαμβάνω < <i>(Ετυμ)</i> *<i>sleh₂gʷ</i>-"],
+            [
+                "<b>λαμβάνω</b> < (διαχρονικό δάνειο) <i>αρχαία ελληνική</i> λαμβάνω < πρωτοϊνδοευρωπαϊκή *<i>sleh₂gʷ</i>-",
+            ],
             [
                 "παίρνω, δέχομαι",
                 "εντοπίζω επιθυμητό σήμα (όπως από ασύρματο)",