Author SHA1 Message Date
klemek 16b52e8fc7 chore: 1.0.2
Python Lint CI / ruff (push) Successful in 5m58s
Python Lint CI / ty (push) Successful in 3m51s
Python Lint CI / ruff-format-check (push) Successful in 3m54s
2026-11-11 17:59:29 +01:00
klemek a9d250944b fix: sentences generation with spaces
Python Lint CI / ruff-format-check (push) Canceled after 2m36s
Python Lint CI / ty (push) Canceled after 2m37s
Python Lint CI / ruff (push) Canceled after 2m39s
2026-11-11 17:59:23 +01:00
klemek 14230bd489 fix: print correct sentences output
Python Lint CI / ruff (push) Successful in 6m7s
Python Lint CI / ty (push) Successful in 6m9s
Python Lint CI / ruff-format-check (push) Failing after 6m14s
2026-11-08 18:53:09 +01:00
4 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "glsl-glyphs"
version = "1.0.1"
version = "1.0.2"
description = "Generate GLSL ready glyph maps and usable functions "
readme = "README.md"
requires-python = ">=3.14"
+4 -2
View File
@@ -102,9 +102,11 @@ class Generator:
try:
self.target_sentences_path.parent.mkdir(parents=True, exist_ok=True)
self.target_sentences_path.write_text(content)
self.log.info("Wrote sentences output to %s", self.target_path)
self.log.info("Wrote sentences output to %s", self.target_sentences_path)
except OSError as e:
self.log.error(
"Could not write sentences output file at: %s (%s)", self.target_path, e
"Could not write sentences output file at: %s (%s)",
self.target_sentences_path,
e,
)
sys.exit(1)
+6 -6
View File
@@ -49,15 +49,15 @@ class Sentence:
@classmethod
def from_text(cls, src_text: str, names: list[str]) -> Sentence:
text = src_text
if "EMPTY" in names:
text = text.replace(" ", "{EMPTY}")
else:
log.warning("No EMPTY tile in names, removing spaces in '%s'", src_text)
text.replace(" ", "")
changed = True
data = []
remaining_text = ""
while changed:
while changed and len(text):
if text[0] == " " and "EMPTY" in names:
text = text[1:]
data += [names.index("EMPTY")]
continue
changed = False
min_name = None
min_pattern = None
Generated
+1 -1
View File
@@ -4,7 +4,7 @@ requires-python = ">=3.14"
[[package]]
name = "glsl-glyphs"
version = "1.0.1"
version = "1.0.2"
source = { editable = "." }
dependencies = [
{ name = "pillow" },