feat: generate sentences

This commit is contained in:
2026-11-08 00:16:58 +01:00
parent 9ae7ea1f1c
commit 402f5c1405
9 changed files with 248 additions and 16 deletions
+8 -3
View File
@@ -7,8 +7,9 @@
## Usage
```txt
usage: glsl-glyphs [-h] -i INPUT_FILE [-n NAME] -o OUTPUT_FILE [-g NAMES_FILE] [-s SETS_FILE] [-f | --functions | --no-functions]
[-v | --verbose | --no-verbose] [-q | --quiet | --no-quiet]
usage: glsl-glyphs [-h] -i INPUT_FILE [-n NAME] [-o OUTPUT_FILE] [-g NAMES_FILE] [-s SETS_FILE] [-f | --functions | --no-functions]
[--sentences-input SENTENCES_FILE] [--sentences-output OUTPUT_FILE] [-v | --verbose | --no-verbose]
[-q | --quiet | --no-quiet]
options:
-h, --help show this help message and exit
@@ -16,12 +17,16 @@ options:
png 8x8 glyph map
-n, --name NAME target derived name for GLSL constants and functions (default: glyph)
-o, --output OUTPUT_FILE
output glsl file
output glyphs glsl file (default: build/{name}.glsl}
-g, --glyph-names NAMES_FILE
glyphs names, one line each
-s, --sets SETS_FILE defined sets in CSV: index,length,name
-f, --functions, --no-functions
add GLSL functions to output
--sentences-input SENTENCES_FILE
generate sentences from file and names
--sentences-output OUTPUT_FILE
output sentences glsl file (default: build/{name}_sentences.glsl)
-v, --verbose, --no-verbose
more verbose logging
-q, --quiet, --no-quiet