diff --git a/src/wiktextract/extractor/de/page.py b/src/wiktextract/extractor/de/page.py index 9bc83173..0030da67 100644 --- a/src/wiktextract/extractor/de/page.py +++ b/src/wiktextract/extractor/de/page.py @@ -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", diff --git a/src/wiktextract/extractor/en/page.py b/src/wiktextract/extractor/en/page.py index 076ba944..d173b934 100644 --- a/src/wiktextract/extractor/en/page.py +++ b/src/wiktextract/extractor/en/page.py @@ -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" @@ -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):