From: Nathan Williams Date: Mon, 27 Mar 2023 02:23:35 +0000 (-0700) Subject: [Knowledge] Remove unreferenced image (#6106) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=213074add7770d16cb9b92e4f551afdbff16af70;p=thirdparty%2Fgoogle%2Ffonts.git [Knowledge] Remove unreferenced image (#6106) * Improve knowledge_graph.py FILE_TOO_LARGE msgs * Delete unreferenced SVG file from GFK --- diff --git a/.github/workflows/knowledge_graph.py b/.github/workflows/knowledge_graph.py index b226771172..e159719735 100644 --- a/.github/workflows/knowledge_graph.py +++ b/.github/workflows/knowledge_graph.py @@ -252,9 +252,10 @@ def _check_image_files(knowledge: KnowledgeContent) -> bool: result = True image_files = list(knowledge.knowledge_dir.glob("**/images/*")) for image_file in image_files: + st_size = image_file.stat().st_size if _is_svg(image_file): - if image_file.stat().st_size > MAX_VECTOR_IMAGE_SIZE_KB * 1024: - print("File exceeds max size of %s KB:" % MAX_VECTOR_IMAGE_SIZE_KB, image_file.relative_to(knowledge.knowledge_dir)) + if st_size > MAX_VECTOR_IMAGE_SIZE_KB * 1024: + print("File exceeds max size of %s KB (%s KB):" % (MAX_VECTOR_IMAGE_SIZE_KB, st_size // 1024), image_file.relative_to(knowledge.knowledge_dir)) result = False root = minidom.parseString(image_file.read_text()).documentElement if root.tagName != "svg": @@ -270,8 +271,8 @@ def _check_image_files(knowledge: KnowledgeContent) -> bool: print("Must specify offset on :", image_file.relative_to(knowledge.knowledge_dir)) result = False else: - if image_file.stat().st_size > MAX_RASTER_IMAGE_SIZE_KB * 1024: - print("File exceeds max size of %s KB:" % MAX_RASTER_IMAGE_SIZE_KB, image_file.relative_to(knowledge.knowledge_dir)) + if st_size > MAX_RASTER_IMAGE_SIZE_KB * 1024: + print("File exceeds max size of %s KB (%s KB):" % (MAX_RASTER_IMAGE_SIZE_KB, st_size // 1024), image_file.relative_to(knowledge.knowledge_dir)) result = False return result diff --git a/cc-by-sa/knowledge/modules/the_syllabics_writing_system_of_north_america/lessons/an_introduction_to_syllabics_typography/content.md b/cc-by-sa/knowledge/modules/the_syllabics_writing_system_of_north_america/lessons/an_introduction_to_syllabics_typography/content.md index 019c48e1ad..72716c8933 100644 --- a/cc-by-sa/knowledge/modules/the_syllabics_writing_system_of_north_america/lessons/an_introduction_to_syllabics_typography/content.md +++ b/cc-by-sa/knowledge/modules/the_syllabics_writing_system_of_north_america/lessons/an_introduction_to_syllabics_typography/content.md @@ -1,4 +1,4 @@ -The Syllabics—sometimes referred to as the Canadian Aboriginal Syllabics—is a [writing system](/glossary/script_writing_system) used by several Indigenous language communities in Canada and the United States, including nêhiyawêwin (Cree), Anishinaabemowin (Ojibwe), Inuktut (Inuktitut), Dakelh (Carrier), iyuw iyimuun (Naskapi), and Saı́yısı́ dëne (Sayisi Dene). +The Syllabics—sometimes referred to as the Canadian Aboriginal Syllabics—is a [writing system](/glossary/writing_system) used by several Indigenous language communities in Canada and the United States, including nêhiyawêwin (Cree), Anishinaabemowin (Ojibwe), Inuktut (Inuktitut), Dakelh (Carrier), iyuw iyimuun (Naskapi), and Saı́yısı́ dëne (Sayisi Dene). Before we start looking at the construction of the script, let’s first look at the geographic distribution of the various groups and sub-groups of the Syllabics: @@ -381,4 +381,4 @@ Jean Baptiste Thibault, *ᐊᔭᒥᐁ ᓀᐃᔭᐁᐧᒪᓯᓇᐃᑲᐣ ᐊᔭ [Wawatay News], *ᐗᐗᑌ ᐊᒋᒧᐎᓇᐣ / Wawatay News*, 17 July, 2020 Vol.47, No. 7, PM#0382659799 -Arok Wolvengrey, *ᐊᐎᔹᑖᒋᐏᓂᓴ / wawiyatācimowinisa / Funny little stories*. University of Regina Press, 2007. \ No newline at end of file +Arok Wolvengrey, *ᐊᐎᔹᑖᒋᐏᓂᓴ / wawiyatācimowinisa / Funny little stories*. University of Regina Press, 2007. diff --git a/cc-by-sa/knowledge/modules/the_syllabics_writing_system_of_north_america/lessons/an_introduction_to_syllabics_typography/images/article_01_figure_02.svg b/cc-by-sa/knowledge/modules/the_syllabics_writing_system_of_north_america/lessons/an_introduction_to_syllabics_typography/images/article_01_figure_02.svg deleted file mode 100644 index 49396892da..0000000000 --- a/cc-by-sa/knowledge/modules/the_syllabics_writing_system_of_north_america/lessons/an_introduction_to_syllabics_typography/images/article_01_figure_02.svg +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -