From 4304781942bfc7de745d4488ee5eec6d172104f1 Mon Sep 17 00:00:00 2001 From: Catus Phan Date: Fri, 15 Nov 2024 16:22:38 +0800 Subject: [PATCH] Adds fonts summary --- font_summary.md | 30 +++++++++++++++--------------- tools/summarize_fonts.py | 8 ++++---- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/font_summary.md b/font_summary.md index 7ba1e6d..75c70c4 100644 --- a/font_summary.md +++ b/font_summary.md @@ -1,17 +1,17 @@ # Font Summary -| Config File | Base Font Name | Ruby Font Name | Base Font Filepath | Ruby Font Filepath | -|-------------|----------------|----------------|--------------------|--------------------| -| catus.bottom.json | Noto Sans SC | LXGW WenKai Mono | resources/fonts/NotoSansSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | -| catus.left.json | Noto Sans SC | LXGW WenKai Mono | resources/fonts/NotoSansSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | -| catus.top.json | Noto Sans SC | LXGW WenKai Mono | resources/fonts/NotoSansSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | -| default.json | Noto Sans SC | LXGW WenKai Mono | resources/fonts/NotoSansSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | -| leo.bottom.json | LXGW WenKai Mono | LXGW WenKai Mono | resources/fonts/LXGWWenKaiMono-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | -| leo.left.json | LXGW WenKai Mono | LXGW WenKai Mono | resources/fonts/LXGWWenKaiMono-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | -| leo.top.json | LXGW WenKai Mono | LXGW WenKai Mono | resources/fonts/LXGWWenKaiMono-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | -| onca.bottom.json | Noto Serif SC | LXGW WenKai Mono | resources/fonts/NotoSerifSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | -| onca.left.json | Noto Serif SC | LXGW WenKai Mono | resources/fonts/NotoSerifSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | -| onca.top.json | Noto Serif SC | LXGW WenKai Mono | resources/fonts/NotoSerifSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | -| tigris.bottom.json | xiaolaiMonoSC | LXGW WenKai Mono | resources/fonts/XiaolaiMonoSC-without-Hangul-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | -| tigris.left.json | xiaolaiMonoSC | LXGW WenKai Mono | resources/fonts/XiaolaiMonoSC-without-Hangul-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | -| tigris.top.json | xiaolaiMonoSC | LXGW WenKai Mono | resources/fonts/XiaolaiMonoSC-without-Hangul-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | +| Config File | Font Name | Base Font Name | Ruby Font Name | Base Font Filepath | Ruby Font Filepath | +|-------------|-----------|----------------|----------------|--------------------|--------------------| +| catus.bottom.json | Pinyin Catus Bottom Sans | Noto Sans SC | LXGW WenKai Mono | resources/fonts/NotoSansSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | +| catus.left.json | Pinyin Catus Left Sans | Noto Sans SC | LXGW WenKai Mono | resources/fonts/NotoSansSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | +| catus.top.json | Pinyin Catus Top Sans | Noto Sans SC | LXGW WenKai Mono | resources/fonts/NotoSansSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | +| default.json | Pinyin Catus Top Sans | Noto Sans SC | LXGW WenKai Mono | resources/fonts/NotoSansSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | +| leo.bottom.json | Pinyin Leo Bottom Serif | LXGW WenKai Mono | LXGW WenKai Mono | resources/fonts/LXGWWenKaiMono-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | +| leo.left.json | Pinyin Leo Left Serif | LXGW WenKai Mono | LXGW WenKai Mono | resources/fonts/LXGWWenKaiMono-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | +| leo.top.json | Pinyin Leo Top Serif | LXGW WenKai Mono | LXGW WenKai Mono | resources/fonts/LXGWWenKaiMono-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | +| onca.bottom.json | Pinyin Onca Bottom Serif | Noto Serif SC | LXGW WenKai Mono | resources/fonts/NotoSerifSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | +| onca.left.json | Pinyin Onca Left Serif | Noto Serif SC | LXGW WenKai Mono | resources/fonts/NotoSerifSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | +| onca.top.json | Pinyin Onca Top Serif | Noto Serif SC | LXGW WenKai Mono | resources/fonts/NotoSerifSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | +| tigris.bottom.json | Pinyin Tigris Bottom Handwritten | xiaolaiMonoSC | LXGW WenKai Mono | resources/fonts/XiaolaiMonoSC-without-Hangul-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | +| tigris.left.json | Pinyin Tigris Left Handwritten | xiaolaiMonoSC | LXGW WenKai Mono | resources/fonts/XiaolaiMonoSC-without-Hangul-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | +| tigris.top.json | Pinyin Tigris Top Handwritten | xiaolaiMonoSC | LXGW WenKai Mono | resources/fonts/XiaolaiMonoSC-without-Hangul-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf | diff --git a/tools/summarize_fonts.py b/tools/summarize_fonts.py index 54c627c..9ef37d9 100644 --- a/tools/summarize_fonts.py +++ b/tools/summarize_fonts.py @@ -98,13 +98,13 @@ def save_summary_to_json(summary_list): def convert_summary_to_markdown(summary_list): markdown_content = "# Font Summary\n\n" - # Markdown table headers (changed order here) - markdown_content += "| Config File | Base Font Name | Ruby Font Name | Base Font Filepath | Ruby Font Filepath |\n" - markdown_content += "|-------------|----------------|----------------|--------------------|--------------------|\n" + # Markdown table headers (changed order here, fontName is second column) + markdown_content += "| Config File | Font Name | Base Font Name | Ruby Font Name | Base Font Filepath | Ruby Font Filepath |\n" + markdown_content += "|-------------|-----------|----------------|----------------|--------------------|--------------------|\n" # Add rows for each summary entry for summary in summary_list: - markdown_content += f"| {summary['config']} | {summary.get('baseFontName', 'N/A')} | {summary.get('rubyFontName', 'N/A')} | {summary.get('baseFontFilepath', 'N/A')} | {summary.get('rubyFontFilepath', 'N/A')} |\n" + markdown_content += f"| {summary['config']} | {summary.get('fontName', 'N/A')} | {summary.get('baseFontName', 'N/A')} | {summary.get('rubyFontName', 'N/A')} | {summary.get('baseFontFilepath', 'N/A')} | {summary.get('rubyFontFilepath', 'N/A')} |\n" return markdown_content