Repository: BoboTiG/ebook-reader-dict

Issue:
[EN] Support "taxfmt" template
- Wiktionary page: https://en.wiktionary.org/wiki/solidago
- Model link: https://en.wiktionary.org/wiki/Template:taxfmt

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


Discussion:

Patch:
diff --git a/wikidict/lang/en/__init__.py b/wikidict/lang/en/__init__.py
index d450e199..dfc0a166 100644
--- a/wikidict/lang/en/__init__.py
+++ b/wikidict/lang/en/__init__.py
@@ -209,6 +209,8 @@
     "sub": "subscript(parts[1])",
     # {{sup|KI}}
     "sup": "superscript(parts[1])",
+    # {{taxfmt|Gadus macrocephalus|species|ver=170710}}
+    "taxfmt": "italic(parts[1])",
     # {{taxlink|Gadus macrocephalus|species|ver=170710}}
     "taxlink": "italic(parts[1])",
     #
diff --git a/wikidict/lang/en/langs.py b/wikidict/lang/en/langs.py
index 07eecf40..d71744b7 100644
--- a/wikidict/lang/en/langs.py
+++ b/wikidict/lang/en/langs.py
@@ -2453,6 +2453,7 @@
     "es-CO": "Colombian Spanish",
     "es-CU": "Cuban Spanish",
     "es-MX": "Mexican Spanish",
+    "es-PE": "Peruvian Spanish",
     "es-PR": "Puerto Rican Spanish",
     "es-US": "United States Spanish",
     "es-VE": "Venezuelan Spanish",
@@ -3377,7 +3378,6 @@
     "inc-pah": "Pahari",
     "inc-pan": "Punjabi-Lahnda",
     "inc-pas": "Pashayi",
-    "inc-pra": "Prakrit",
     "inc-pro": "Proto-Indo-Aryan",
     "inc-raj": "Rajasthani",
     "inc-rom": "Romani",
@@ -6704,6 +6704,7 @@
     "pqe": "Eastern Malayo-Polynesian",
     "pqe-pro": "Proto-Eastern Malayo-Polynesian",
     "pqm": "Malecite-Passamaquoddy",
+    "pra": "Prakrit",
     "pra-abh": "Abhiri",
     "pra-ard": "Ardhamagadhi Prakrit",
     "pra-ava": "Avanti",
@@ -9815,7 +9816,7 @@
     "zyp": "Zyphe",
     "zza": "Zazaki",
     "zzj": "Zuojiang Zhuang",
-}  # 9,810
+}  # 9,811
 # END
 
 # Missings since 2024-02-28 (see #1999 and keep synced with https://en.wiktionary.org/wiki/Module:languages/data#L-196)


Test patch:
diff --git a/tests/test_en.py b/tests/test_en.py
index 5dae1f13..d9f15cd8 100644
--- a/tests/test_en.py
+++ b/tests/test_en.py
@@ -368,6 +368,10 @@ def test_parse_word(
         ("{{sub|KI}}", "<sub>KI</sub>"),
         ("{{sup|KI}}", "<sup>KI</sup>"),
         ("{{synonym of|en|drip tip}}", "<i>Synonym of</i> <b>drip tip</b>"),
+        (
+            "{{taxfmt|Gadus macrocephalus|species|ver=170710}}",
+            "<i>Gadus macrocephalus</i>",
+        ),
         (
             "{{taxlink|Gadus macrocephalus|species|ver=170710}}",
             "<i>Gadus macrocephalus</i>",