Skip to content

Commit

Permalink
[zh] ignore "rfdef" no gloss template
Browse files Browse the repository at this point in the history
this template has Lua error and is used to indicate the word lacks
definition
  • Loading branch information
xxyzz committed Dec 23, 2024
1 parent 63373d9 commit 6095746
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wiktextract/extractor/zh/gloss.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def extract_gloss(
gloss_data = parent_gloss_data.model_copy(deep=True)
for node in list_item_node.children:
if isinstance(node, TemplateNode):
if node.template_name == "rfdef":
continue
raw_tag = clean_node(wxr, gloss_data, node)
if node.template_name in LABEL_TEMPLATES:
raw_tags.extend(raw_tag.strip("()").split(","))
Expand Down

0 comments on commit 6095746

Please sign in to comment.