Repository navigation
Releases
KoMahjong Solitaire v1.34
Automated release for commit 841a031.
v1.34: typography, overlay lifecycle and install fixes
A full review pass over the plugin, its test suite and the install tooling.
No gameplay rules or saved-game formats changed; existing saves load as before.
Fixed
- High-DPI typography no longer scales twice. KOReader's
Font:getFace
already appliesScreen:scaleBySize, so pre-scaled sizes rendered text up to
~2x too large on 1072px/1448px canvases. Every font size is now raw, layout
dimensions stay scaled, font sizes derived from a scaled dimension go through
the newMahjongUI.scaledToRaw(), and help-tile icons use the same path
(the old/Screen:scaleBySize(1)un-scale rounded the factor up). - A dead-board shuffle can no longer corrupt a replaced board. The
candidate search is bound to the board it started on; New Game, a layout
change and close cancel it, and board-mutating input (taps, undo, hint,
auto-solve) is ignored while it runs. - Floating overlays can no longer outlive a restart. The layout picker,
help, settings, stats, win summary and Home-key exit card are tracked on the
owner and dismissed on relaunch/close. Open methods are idempotent (no
stacked pickers or cards), owner close hooks fire exactly once, and a
framework-driven settings close resumes the clock/Awake it paused. - Third-party layouts no longer leak
layout.<id>. The picker, the stats
card and the win summary fall back to the layout's registered name when no
catalog entry exists. - Board geometry cache now follows a re-registered layout (the bounds were
stale afterregisterLayouton an existing id). - Help close hook ran twice (dialog close plus
CloseWidget); it now runs
once.
Tests and CI
- Regression coverage added for the stale shuffle, overlay lifecycle (including
the exit card), raw font requests, thefitTextFaceshrink loop, custom
layout labels, bounds-cache invalidation, and icon scaling on a rounding
canvas. - The test mock's
Font:getFacenow mirrors KOReader: it scales once and
exposesorig_size, so a call site that pre-scales a font fails the suite. - New
Testsworkflow (pushes to main and pull requests).release.ymlnow
runs the suite before publishing and serialises releases. - Removed the committed
preview.png; extended.gitignore.
Install tooling
install_plugin.shauto-detects the Kindle's Windows drive letter (it is not
alwaysD:), supports--drive E:,KINDLE_DRIVEandKINDLE_MOUNT,
reuses an existing mount, cleans up a mount it created when the copy fails,
and no longer mounts an unrelatedD:.
Docs
- Corrected chain-scoring rules (only identical faces chain, plus any two
flowers / any two seasons), Spanish support, the 24-id layout registry and
picker ordering, and marked US-51/US-52 complete.
Installation
- Download the
mahjong.koplugin-v1.34.zipasset from this release. - Extract the ZIP file directly into KOReader's
plugins/directory. The archive already contains the completemahjong.koplugin/folder, so it should createplugins/mahjong.koplugin/. - Do not copy only the Lua files; keep the entire plugin folder and its
icons/directory intact. - Fully restart KOReader, because plugins are loaded during startup.
- Open Tools -> Mahjong Solitaire from the KOReader menu.
KoMahjong Solitaire v1.33
Automated release for commit 25a5fb3.
Fix responsive action counters
- Keep PW12 Hint and Shuffle counters compact.
- Preserve readable native sizing on Kindle Touch.
- Reserve fixed counter slots and add responsive regressions.
Installation
- Download the
mahjong.koplugin-v1.33.zipasset from this release. - Extract the ZIP file directly into KOReader's
plugins/directory. The archive already contains the completemahjong.koplugin/folder, so it should createplugins/mahjong.koplugin/. - Do not copy only the Lua files; keep the entire plugin folder and its
icons/directory intact. - Fully restart KOReader, because plugins are loaded during startup.
- Open Tools -> Mahjong Solitaire from the KOReader menu.
KoMahjong Solitaire v1.32
Automated release for commit 43687b2.
Pause timer during device suspend
Installation
- Download the
mahjong.koplugin-v1.32.zipasset from this release. - Extract the ZIP file directly into KOReader's
plugins/directory. The archive already contains the completemahjong.koplugin/folder, so it should createplugins/mahjong.koplugin/. - Do not copy only the Lua files; keep the entire plugin folder and its
icons/directory intact. - Fully restart KOReader, because plugins are loaded during startup.
- Open Tools -> Mahjong Solitaire from the KOReader menu.
KoMahjong Solitaire v1.31
Automated release for commit b6295dc.
Fix PW12 win headline overflow
Installation
- Download the
mahjong.koplugin-v1.31.zipasset from this release. - Extract the ZIP file directly into KOReader's
plugins/directory. The archive already contains the completemahjong.koplugin/folder, so it should createplugins/mahjong.koplugin/. - Do not copy only the Lua files; keep the entire plugin folder and its
icons/directory intact. - Fully restart KOReader, because plugins are loaded during startup.
- Open Tools -> Mahjong Solitaire from the KOReader menu.
KoMahjong Solitaire v1.30
Automated release for commit 6a22e03.
Fix PW12 HUD chip sizing
Installation
- Download the
mahjong.koplugin-v1.30.zipasset from this release. - Extract the ZIP file directly into KOReader's
plugins/directory. The archive already contains the completemahjong.koplugin/folder, so it should createplugins/mahjong.koplugin/. - Do not copy only the Lua files; keep the entire plugin folder and its
icons/directory intact. - Fully restart KOReader, because plugins are loaded during startup.
- Open Tools -> Mahjong Solitaire from the KOReader menu.
KoMahjong Solitaire v1.29
Automated release for commit 385f024.
Fix PW12 win summary sizing
- Bound the results card to the runtime canvas.
- Fit typography and constrain result markers, values, and buttons.
- Add long-text PW12 responsive regression coverage.
- Document the responsive win-summary behavior.
Installation
- Download the
mahjong.koplugin-v1.29.zipasset from this release. - Extract the ZIP file directly into KOReader's
plugins/directory. The archive already contains the completemahjong.koplugin/folder, so it should createplugins/mahjong.koplugin/. - Do not copy only the Lua files; keep the entire plugin folder and its
icons/directory intact. - Fully restart KOReader, because plugins are loaded during startup.
- Open Tools -> Mahjong Solitaire from the KOReader menu.
KoMahjong Solitaire v1.28
Automated release for commit 64b8ea3.
Fix Fold HUD sizing
-
Cap Android HUD stat text to chip geometry
-
Raise Fold layout captions above card borders
-
Add responsive Fold HUD regression coverage
Installation
- Download the
mahjong.koplugin-v1.28.zipasset from this release. - Extract the ZIP file directly into KOReader's
plugins/directory. The archive already contains the completemahjong.koplugin/folder, so it should createplugins/mahjong.koplugin/. - Do not copy only the Lua files; keep the entire plugin folder and its
icons/directory intact. - Fully restart KOReader, because plugins are loaded during startup.
- Open Tools -> Mahjong Solitaire from the KOReader menu.
KoMahjong Solitaire v1.27
Automated release for commit 428dd58.
fixed kindle design regression
Installation
- Download the
mahjong.koplugin-v1.27.zipasset from this release. - Extract the ZIP file directly into KOReader's
plugins/directory. The archive already contains the completemahjong.koplugin/folder, so it should createplugins/mahjong.koplugin/. - Do not copy only the Lua files; keep the entire plugin folder and its
icons/directory intact. - Fully restart KOReader, because plugins are loaded during startup.
- Open Tools -> Mahjong Solitaire from the KOReader menu.
KoMahjong Solitaire v1.26
Automated release for commit ca4c790.
Fix high-DPI picker sizing
-
Bound layout captions to card geometry
-
Scale picker chips and help glyphs independently of raw DPI
-
Add Fold-like responsive regression coverage
Installation
- Download the
mahjong.koplugin-v1.26.zipasset from this release. - Extract the ZIP file directly into KOReader's
plugins/directory. The archive already contains the completemahjong.koplugin/folder, so it should createplugins/mahjong.koplugin/. - Do not copy only the Lua files; keep the entire plugin folder and its
icons/directory intact. - Fully restart KOReader, because plugins are loaded during startup.
- Open Tools -> Mahjong Solitaire from the KOReader menu.
KoMahjong Solitaire v1.25
Automated release for commit 879052f.
Improve responsive UI sizing
Installation
- Download the
mahjong.koplugin-v1.25.zipasset from this release. - Extract the ZIP file directly into KOReader's
plugins/directory. The archive already contains the completemahjong.koplugin/folder, so it should createplugins/mahjong.koplugin/. - Do not copy only the Lua files; keep the entire plugin folder and its
icons/directory intact. - Fully restart KOReader, because plugins are loaded during startup.
- Open Tools -> Mahjong Solitaire from the KOReader menu.