Skip to content

Commit

Permalink
Merge pull request #579 from xxyzz/de
Browse files Browse the repository at this point in the history
Minor changes to de and en edition code
  • Loading branch information
xxyzz authored Apr 11, 2024
2 parents e77dfb6 + 2427d21 commit f2bddeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/wiktextract/extractor/de/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def parse_page(
if subtitle_template.template_name == "Sprache":
lang_name = subtitle_template.template_parameters.get(1, "")
lang_code = name_to_code(lang_name, "de")
if lang_code == "":
if lang_code == "" and lang_name != "Umschrift":
wxr.wtp.warning(
f"Unknown language: {lang_name}",
sortid="extractor/de/page/parse_page/76",
Expand Down
4 changes: 2 additions & 2 deletions src/wiktextract/extractor/en/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -3356,7 +3356,7 @@ def skip_template_fn(name, ht):
if "pos" not in pos_data:
pos_data["pos"] = "soft-redirect"
else:
new_page_data = base_data.copy()
new_page_data = copy.deepcopy(base_data)
new_page_data["redirects"] = redirect_list
if "pos" not in new_page_data:
new_page_data["pos"] = "soft-redirect"
Expand Down Expand Up @@ -3996,7 +3996,7 @@ def process_soft_redirect_template(
if title != "":
redirect_pages.append(title)
return True
elif template_node.template_name == "ja-see":
elif template_node.template_name in ["ja-see", "ja-see-kango"]:
# https://en.wiktionary.org/wiki/Template:ja-see
for key, value in template_node.template_parameters.items():
if isinstance(key, int):
Expand Down

0 comments on commit f2bddeb

Please sign in to comment.