From 038886e07458576a042441246ebc16d50a4011c7 Mon Sep 17 00:00:00 2001 From: Jens Schweikhardt Date: Mon, 25 Aug 2025 23:23:08 +0200 Subject: Provide images for blocks. --- .gitignore | 1 + Images/Alphabetic-Presentation-Forms.png | Bin 0 -> 14990 bytes Images/Arrows.png | Bin 0 -> 28648 bytes Images/BasicLatin.png | Bin 0 -> 20766 bytes Images/Block-Elements.png | Bin 0 -> 8214 bytes Images/Box-Drawing.png | Bin 0 -> 27629 bytes Images/Braille-Patterns.png | Bin 0 -> 31127 bytes Images/Combining-Diacritical-Marks-for-Symbols.png | Bin 0 -> 12005 bytes Images/Combining-Diacritical-Marks.png | Bin 0 -> 26988 bytes Images/Control-Pictures.png | Bin 0 -> 14017 bytes Images/Currency-Symbols.png | Bin 0 -> 9253 bytes Images/Cyrillic.png | Bin 0 -> 54949 bytes Images/Dingbats.png | Bin 0 -> 55112 bytes Images/Enclosed-Alphanumerics.png | Bin 0 -> 29275 bytes Images/General-Punctuation.png | Bin 0 -> 31735 bytes Images/Geometric-Shapes.png | Bin 0 -> 23386 bytes Images/Greek-Extended.png | Bin 0 -> 50145 bytes Images/Greek-and-Coptic.png | Bin 0 -> 33330 bytes Images/IPA-Extensions.png | Bin 0 -> 23695 bytes Images/Katakana.png | Bin 0 -> 13281 bytes Images/Latin-1-Supplement.png | Bin 0 -> 21288 bytes Images/Latin-Extended-A.png | Bin 0 -> 24189 bytes Images/Latin-Extended-Additional.png | Bin 0 -> 50466 bytes Images/Latin-Extended-B.png | Bin 0 -> 46164 bytes Images/Letterlike-Symbols.png | Bin 0 -> 20460 bytes Images/Mathematical-Operators.png | Bin 0 -> 69406 bytes Images/Miscellaneous-Mathematical-Symbols-A.png | Bin 0 -> 17336 bytes Images/Miscellaneous-Symbols.png | Bin 0 -> 66773 bytes Images/Miscellaneous-Technical.png | Bin 0 -> 75606 bytes Images/Misclellaneous-Symbols-and-Arrows.png | Bin 0 -> 77157 bytes Images/Number-Forms.png | Bin 0 -> 14226 bytes Images/Optical-Character-Recognition.png | Bin 0 -> 4956 bytes Images/Private-Use-Area.png | Bin 0 -> 6822 bytes Images/Spacing-Modifier-Letters.png | Bin 0 -> 20148 bytes Images/Specials.png | Bin 0 -> 3129 bytes Images/Superscripts-and-Subscripts.png | Bin 0 -> 9311 bytes Images/Supplemental-Arrows-A.png | Bin 0 -> 4565 bytes Images/Supplemental-Arrows-B.png | Bin 0 -> 37935 bytes Images/Supplemental-Mathematical-Operators.png | Bin 0 -> 82206 bytes Images/UTF-8-demo-Markus-Kuhn-2002.png | Bin 0 -> 49597 bytes make-images.sh | 47 +++++++++++++++++++++ txttopng.c | 3 +- 42 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 Images/Alphabetic-Presentation-Forms.png create mode 100644 Images/Arrows.png create mode 100644 Images/BasicLatin.png create mode 100644 Images/Block-Elements.png create mode 100644 Images/Box-Drawing.png create mode 100644 Images/Braille-Patterns.png create mode 100644 Images/Combining-Diacritical-Marks-for-Symbols.png create mode 100644 Images/Combining-Diacritical-Marks.png create mode 100644 Images/Control-Pictures.png create mode 100644 Images/Currency-Symbols.png create mode 100644 Images/Cyrillic.png create mode 100644 Images/Dingbats.png create mode 100644 Images/Enclosed-Alphanumerics.png create mode 100644 Images/General-Punctuation.png create mode 100644 Images/Geometric-Shapes.png create mode 100644 Images/Greek-Extended.png create mode 100644 Images/Greek-and-Coptic.png create mode 100644 Images/IPA-Extensions.png create mode 100644 Images/Katakana.png create mode 100644 Images/Latin-1-Supplement.png create mode 100644 Images/Latin-Extended-A.png create mode 100644 Images/Latin-Extended-Additional.png create mode 100644 Images/Latin-Extended-B.png create mode 100644 Images/Letterlike-Symbols.png create mode 100644 Images/Mathematical-Operators.png create mode 100644 Images/Miscellaneous-Mathematical-Symbols-A.png create mode 100644 Images/Miscellaneous-Symbols.png create mode 100644 Images/Miscellaneous-Technical.png create mode 100644 Images/Misclellaneous-Symbols-and-Arrows.png create mode 100644 Images/Number-Forms.png create mode 100644 Images/Optical-Character-Recognition.png create mode 100644 Images/Private-Use-Area.png create mode 100644 Images/Spacing-Modifier-Letters.png create mode 100644 Images/Specials.png create mode 100644 Images/Superscripts-and-Subscripts.png create mode 100644 Images/Supplemental-Arrows-A.png create mode 100644 Images/Supplemental-Arrows-B.png create mode 100644 Images/Supplemental-Mathematical-Operators.png create mode 100644 Images/UTF-8-demo-Markus-Kuhn-2002.png create mode 100755 make-images.sh diff --git a/.gitignore b/.gitignore index 88c12cc..562fade 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *.o *.pdf *.vim +[A-Z]*.txt .indent.pro hextobdf diff --git a/Images/Alphabetic-Presentation-Forms.png b/Images/Alphabetic-Presentation-Forms.png new file mode 100644 index 0000000..cb6d611 Binary files /dev/null and b/Images/Alphabetic-Presentation-Forms.png differ diff --git a/Images/Arrows.png b/Images/Arrows.png new file mode 100644 index 0000000..2f4c5cf Binary files /dev/null and b/Images/Arrows.png differ diff --git a/Images/BasicLatin.png b/Images/BasicLatin.png new file mode 100644 index 0000000..8ce7c02 Binary files /dev/null and b/Images/BasicLatin.png differ diff --git a/Images/Block-Elements.png b/Images/Block-Elements.png new file mode 100644 index 0000000..c0e54a8 Binary files /dev/null and b/Images/Block-Elements.png differ diff --git a/Images/Box-Drawing.png b/Images/Box-Drawing.png new file mode 100644 index 0000000..0c3c458 Binary files /dev/null and b/Images/Box-Drawing.png differ diff --git a/Images/Braille-Patterns.png b/Images/Braille-Patterns.png new file mode 100644 index 0000000..1d2c973 Binary files /dev/null and b/Images/Braille-Patterns.png differ diff --git a/Images/Combining-Diacritical-Marks-for-Symbols.png b/Images/Combining-Diacritical-Marks-for-Symbols.png new file mode 100644 index 0000000..e662b9d Binary files /dev/null and b/Images/Combining-Diacritical-Marks-for-Symbols.png differ diff --git a/Images/Combining-Diacritical-Marks.png b/Images/Combining-Diacritical-Marks.png new file mode 100644 index 0000000..c2a3538 Binary files /dev/null and b/Images/Combining-Diacritical-Marks.png differ diff --git a/Images/Control-Pictures.png b/Images/Control-Pictures.png new file mode 100644 index 0000000..e9f4e1b Binary files /dev/null and b/Images/Control-Pictures.png differ diff --git a/Images/Currency-Symbols.png b/Images/Currency-Symbols.png new file mode 100644 index 0000000..d18a5ec Binary files /dev/null and b/Images/Currency-Symbols.png differ diff --git a/Images/Cyrillic.png b/Images/Cyrillic.png new file mode 100644 index 0000000..3fbeedc Binary files /dev/null and b/Images/Cyrillic.png differ diff --git a/Images/Dingbats.png b/Images/Dingbats.png new file mode 100644 index 0000000..f64e231 Binary files /dev/null and b/Images/Dingbats.png differ diff --git a/Images/Enclosed-Alphanumerics.png b/Images/Enclosed-Alphanumerics.png new file mode 100644 index 0000000..d162528 Binary files /dev/null and b/Images/Enclosed-Alphanumerics.png differ diff --git a/Images/General-Punctuation.png b/Images/General-Punctuation.png new file mode 100644 index 0000000..89799c4 Binary files /dev/null and b/Images/General-Punctuation.png differ diff --git a/Images/Geometric-Shapes.png b/Images/Geometric-Shapes.png new file mode 100644 index 0000000..30b3c84 Binary files /dev/null and b/Images/Geometric-Shapes.png differ diff --git a/Images/Greek-Extended.png b/Images/Greek-Extended.png new file mode 100644 index 0000000..b53cf04 Binary files /dev/null and b/Images/Greek-Extended.png differ diff --git a/Images/Greek-and-Coptic.png b/Images/Greek-and-Coptic.png new file mode 100644 index 0000000..7847def Binary files /dev/null and b/Images/Greek-and-Coptic.png differ diff --git a/Images/IPA-Extensions.png b/Images/IPA-Extensions.png new file mode 100644 index 0000000..a6a8fe8 Binary files /dev/null and b/Images/IPA-Extensions.png differ diff --git a/Images/Katakana.png b/Images/Katakana.png new file mode 100644 index 0000000..7cba9d3 Binary files /dev/null and b/Images/Katakana.png differ diff --git a/Images/Latin-1-Supplement.png b/Images/Latin-1-Supplement.png new file mode 100644 index 0000000..83d5138 Binary files /dev/null and b/Images/Latin-1-Supplement.png differ diff --git a/Images/Latin-Extended-A.png b/Images/Latin-Extended-A.png new file mode 100644 index 0000000..09556ca Binary files /dev/null and b/Images/Latin-Extended-A.png differ diff --git a/Images/Latin-Extended-Additional.png b/Images/Latin-Extended-Additional.png new file mode 100644 index 0000000..b44f7d8 Binary files /dev/null and b/Images/Latin-Extended-Additional.png differ diff --git a/Images/Latin-Extended-B.png b/Images/Latin-Extended-B.png new file mode 100644 index 0000000..408bdc9 Binary files /dev/null and b/Images/Latin-Extended-B.png differ diff --git a/Images/Letterlike-Symbols.png b/Images/Letterlike-Symbols.png new file mode 100644 index 0000000..4a7f835 Binary files /dev/null and b/Images/Letterlike-Symbols.png differ diff --git a/Images/Mathematical-Operators.png b/Images/Mathematical-Operators.png new file mode 100644 index 0000000..4b46e97 Binary files /dev/null and b/Images/Mathematical-Operators.png differ diff --git a/Images/Miscellaneous-Mathematical-Symbols-A.png b/Images/Miscellaneous-Mathematical-Symbols-A.png new file mode 100644 index 0000000..c1594a2 Binary files /dev/null and b/Images/Miscellaneous-Mathematical-Symbols-A.png differ diff --git a/Images/Miscellaneous-Symbols.png b/Images/Miscellaneous-Symbols.png new file mode 100644 index 0000000..81d9031 Binary files /dev/null and b/Images/Miscellaneous-Symbols.png differ diff --git a/Images/Miscellaneous-Technical.png b/Images/Miscellaneous-Technical.png new file mode 100644 index 0000000..f93c703 Binary files /dev/null and b/Images/Miscellaneous-Technical.png differ diff --git a/Images/Misclellaneous-Symbols-and-Arrows.png b/Images/Misclellaneous-Symbols-and-Arrows.png new file mode 100644 index 0000000..cf85022 Binary files /dev/null and b/Images/Misclellaneous-Symbols-and-Arrows.png differ diff --git a/Images/Number-Forms.png b/Images/Number-Forms.png new file mode 100644 index 0000000..3295fb1 Binary files /dev/null and b/Images/Number-Forms.png differ diff --git a/Images/Optical-Character-Recognition.png b/Images/Optical-Character-Recognition.png new file mode 100644 index 0000000..4d4e5b9 Binary files /dev/null and b/Images/Optical-Character-Recognition.png differ diff --git a/Images/Private-Use-Area.png b/Images/Private-Use-Area.png new file mode 100644 index 0000000..f407d70 Binary files /dev/null and b/Images/Private-Use-Area.png differ diff --git a/Images/Spacing-Modifier-Letters.png b/Images/Spacing-Modifier-Letters.png new file mode 100644 index 0000000..998a190 Binary files /dev/null and b/Images/Spacing-Modifier-Letters.png differ diff --git a/Images/Specials.png b/Images/Specials.png new file mode 100644 index 0000000..666930a Binary files /dev/null and b/Images/Specials.png differ diff --git a/Images/Superscripts-and-Subscripts.png b/Images/Superscripts-and-Subscripts.png new file mode 100644 index 0000000..dacff91 Binary files /dev/null and b/Images/Superscripts-and-Subscripts.png differ diff --git a/Images/Supplemental-Arrows-A.png b/Images/Supplemental-Arrows-A.png new file mode 100644 index 0000000..36d7493 Binary files /dev/null and b/Images/Supplemental-Arrows-A.png differ diff --git a/Images/Supplemental-Arrows-B.png b/Images/Supplemental-Arrows-B.png new file mode 100644 index 0000000..2cbfb3e Binary files /dev/null and b/Images/Supplemental-Arrows-B.png differ diff --git a/Images/Supplemental-Mathematical-Operators.png b/Images/Supplemental-Mathematical-Operators.png new file mode 100644 index 0000000..e939567 Binary files /dev/null and b/Images/Supplemental-Mathematical-Operators.png differ diff --git a/Images/UTF-8-demo-Markus-Kuhn-2002.png b/Images/UTF-8-demo-Markus-Kuhn-2002.png new file mode 100644 index 0000000..8c39770 Binary files /dev/null and b/Images/UTF-8-demo-Markus-Kuhn-2002.png differ diff --git a/make-images.sh b/make-images.sh new file mode 100755 index 0000000..b616fa5 --- /dev/null +++ b/make-images.sh @@ -0,0 +1,47 @@ +#!/bin/sh + +while read -r name first last; do + ./lscp "0x$first" "0x$last" > "$name.txt" + ./txttopng -f gallant.hex -t "$name.txt" -p "Images/$name.png" +done << EOF +BasicLatin 0000 007F +Latin-1-Supplement 00A0 0100 +Latin-Extended-A 0100 0180 +Latin-Extended-B 0180 0250 +IPA-Extensions 0250 02B0 +Spacing-Modifier-Letters 02B0 0300 +Combining-Diacritical-Marks 0300 0370 +Greek-and-Coptic 0370 0400 +Cyrillic 0400 0500 +Latin-Extended-Additional 1E00 1F00 +Greek-Extended 1F00 2000 +General-Punctuation 2000 2070 +Superscripts-and-Subscripts 2070 20A0 +Currency-Symbols 20A0 20D0 +Combining-Diacritical-Marks-for-Symbols 20D0 2100 +Letterlike-Symbols 2100 2150 +Number-Forms 2150 2190 +Arrows 2190 2200 +Mathematical-Operators 2200 2300 +Miscellaneous-Technical 2300 2400 +Control-Pictures 2400 2440 +Optical-Character-Recognition 2440 2460 +Enclosed-Alphanumerics 2460 2500 +Box-Drawing 2500 2580 +Block-Elements 2580 25A0 +Geometric-Shapes 25A0 2600 +Miscellaneous-Symbols 2600 2700 +Dingbats 2700 27C0 +Miscellaneous-Mathematical-Symbols-A 27C0 27F0 +Supplemental-Arrows-A 27F0 2800 +Braille-Patterns 2800 2900 +Supplemental-Arrows-B 2900 2980 +Supplemental-Mathematical-Operators 2A00 2B00 +Misclellaneous-Symbols-and-Arrows 2B00 2C00 +Katakana 30A0 3100 +Private-Use-Area E0A0 E0F0 +Alphabetic-Presentation-Forms FB00 FB50 +Specials FFF0 10000 +EOF + +./txttopng -f gallant.hex -t "$HOME/UTF-8-demo.txt" -p "Images/UTF-8-demo-Markus-Kuhn-2002.png" diff --git a/txttopng.c b/txttopng.c index a9649c9..bac5900 100644 --- a/txttopng.c +++ b/txttopng.c @@ -378,9 +378,10 @@ void parse_font_hexdata(FILE *aFile) { if (line[0] == '#') continue; parse_font_line(line, line_no, &gGlyphset[glyphs]); + ++glyphs; } if (gGlyphs != glyphs) - errx("glyph count changed unexpectedly\n"); + errx("glyph count changed unexpectedly (%zu != %zu)\n", gGlyphs, glyphs); qsort(gGlyphset, gGlyphs, sizeof *gGlyphset, compare_glyphs); set_replacement_character(); } -- cgit v1.2.3