Skip to content

release: 0.2.2 (LTB dashes, launcher port, '#' in DB path; TECH_DEBT cleanup) - #150

Merged
Ezo-mas merged 2 commits into
mainfrom
release/0.2.2
Nov 28, 2026
Merged

Ezo-mas merged 2 commits into
mainfrom
release/0.2.2

Conversation

@Ezo-mas

@Ezo-mas Ezo-mas commented Nov 28, 2026

Copy link
Copy Markdown
Member

Release 0.2.2 for the next service, plus three tech-debt fixes done before the bump.

Fixes

  • LTB dashes on screen. The LTB source (LTB.SQLite3, and our bible_ltb.sqlite) puts a soft hyphen (U+00AD) wherever a dash belongs, in 2,346 rows. A browser hides it, so the words ran together ("ganytojasaš", Psalm 23:1). clean_verse_text now turns it into a spaced en dash on the read path. bible_data/ is untouched, and future imports get the same cleanup. I checked every affected row: no soft hyphens or double spaces are left, and no dash is glued to a word. A sample reads as correct Lithuanian ("…rankas, – sako Viešpats", "Jo kūno – bažnyčios").
  • # in a database path. The read-only SQLite URIs now use Path.resolve().as_uri(), so #/? are percent-encoded and mode=ro is kept. The fix covers bible_lookup, bible_versions, book_names and the import_bible probe. verse_text.py already did this.
  • Windows launcher port. pywebview now gets a free loopback port on each launch instead of its fixed 42001. With 42001 held by another program, the old code loaded that program's /launcher.html (reproduced on Windows). The new code sent no request there and smoke-tested clean. Each launch already has its own WebView2 profile, so a new origin per launch loses nothing.

Docs

  • TECH_DEBT.md: the 10 resolved entries and the 3 fixed here are removed, and the header now says fixed entries go away in the change that fixes them. 2 open entries remain.
  • CHANGELOG.md: "Unreleased" becomes 0.2.2 (2026-11-28), with notes for the three fixes. backend/pyproject.toml is now 0.2.2.

Checks

  • ruff check / format-check: clean. mypy: no issues (122 files).
  • pytest: 2299 passed, 5 skipped: POSIX process groups ×3, Quartz (macOS), AVFoundation (macOS).
  • The new tests fail on the old code: # path, soft hyphen, free port, and http_port passed to webview.start.
  • Security review (launcher port, SQLite URIs): no findings. The probe-then-bind gap is the same pattern pywebview itself uses for random ports. A strict improvement over the fixed, squattable 42001.

After merge: tag v0.2.2 on the merge commit to build the installers.

- LTB dashes: clean_verse_text turns the source's soft hyphens (U+00AD, 2,346
  rows) into a spaced en dash, so words no longer run together on screen.
- SQLite read-only URIs use Path.as_uri(), so a '#' or '?' in the path no
  longer cuts it short and drops mode=ro (bible_lookup, bible_versions,
  book_names, import_bible).
- Windows launcher: pywebview gets a free loopback port per launch instead of
  its fixed 42001, which another program could hold and serve its own page
  into the launcher window (reproduced on Windows).
- TECH_DEBT.md: resolved and now-fixed entries removed; fixed entries go in
  the change that fixes them.
- Version 0.2.2, CHANGELOG section.
@Ezo-mas
Ezo-mas merged commit 76e23d7 into main Nov 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant