Commit Graph
10 Commits
Author SHA1 Message Date
helgehelge123 2547cf1308 Merge remote-tracking branch 'origin/main' into hebrew-glyph-fallback
# Conflicts:
#	.github/workflows/freebsd.yml
#	.github/workflows/release.yml
#	NOTICE
#	assets/ATTRIBUTION.md
#	docs/releasing.md
#	flake.lock
#	flake.nix
#	packaging/fonts.sh
#	packaging/windows/fonts.ps1
2026-10-25 23:49:02 +01:00
skylartaylor c057ccc23f Migrate LightCraft to egui 0.37 and reconcile dependency and font locks
Preserve current main, adapt frame/input and IME handling, and keep library
check results stable across layout passes. Include the matching Nix font lock
and reviewed attribution changes.
2026-10-25 02:54:42 +01:00
helgehelge123andClaude Opus 5.5 7eece8e81e LR-BEHAV-LOCALIZE: Hebrew file and folder names get glyphs (#1915)
Hebrew folder and file names drew as boxes: no face in the UI fallback
chain (Inter, egui's default faces, the craft-fonts faces) has Hebrew
letters. theme::font_definitions already falls back on every craft-fonts
face of a non-CJK script, so the glyphs come from Noto Sans Hebrew, added
to craft-fonts in storytold/craft-fonts#12:

- Pin craft-fonts to 1466a88, the head of that PR (release and FreeBSD
  workflows, flake.nix/flake.lock, local packaging scripts). Re-pin to its
  merge commit once it lands.
- CRAFT_FONTS_REQUIRED rejects a font input without Noto Sans Hebrew
  Regular, so a release can't ship boxes with an older pin.
- The web build embeds Noto Sans Hebrew Regular (~65 KiB) next to Noto
  Sans Thai, for Hebrew file and folder names in every UI language.
- The Thai folder-name test becomes a helper; a Hebrew test (letters,
  final forms, maqaf, geresh, gershayim, niqqud) runs it through every UI
  family, and the engine checks that the shipped face draws Hebrew and the
  shekel sign. They fail with a craft-fonts input without Hebrew and skip
  without CRAFT_FONTS_DIR. The egui check leaves out the shekel sign: Inter
  and Hack draw it before the Hebrew face, and in monospace Hack also holds
  the replacement glyph, where egui 0.36's has_glyph answers false
  (resolve_face(c) == replacement face) although the sign draws.

Reading direction, measured on the laid-out galley: egui 0.36 shapes
each run of one face with harfrust, which orders a Hebrew run right to
left, so each word reads correctly. Nothing reorders the runs, and the
space between words comes from Inter, so a multi-word name shows its
words in logical order, left to right (documented in
docs/localization-parity.md and docs/web.md).

Part of #1915.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 07:32:13 +02:00
Brandon ThomasandClaude Opus 5.5 fd9d045c75 CI: the packaging scripts check out the craft-fonts revision release.yml pins (3d9ab3a, with Noto Sans Thai)
Windows ARM64 on main failed since batch 36: #1479's scripts pinned 8dcdacd, which predates the Thai face #1311
made required.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 02:57:33 -04:00
draco892 eec4746a56 build: automatically include craft-fonts in desktop packages
Detect ../craft-fonts or use CRAFT_FONTS_DIR on macOS, Linux and Windows.
Download the pinned release revision when the checkout is missing
and require Chinese and Japanese fonts during the build.

Document font setup and preserve skip-build behavior.
2026-10-13 11:01:40 +02:00
Brandon ThomasandClaude Opus 5.5 9e6c4c6fc9 Release prep: 0.6.0 and Linux riscv64 release build (#844)
- release.yml: new linux-riscv64 job (ported from GridCraft): cross-compiles on
  ubuntu-24.04 against ports.ubuntu.com riscv64 libs, packages a tar.gz with
  package.sh --formats tar, smoke-tests lightcraft-cli under QEMU. The release
  job needs it, so its tarball lands in the draft and SHA256SUMS.
- packaging/linux/package.sh: CROSS_ARCH/CROSS_TARGET/CROSS_COMPILE/EMULATOR
  support (target dir, cross strip, emulated --version).
- README Downloads and docs/releasing.md list the riscv64 tarball.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 19:38:10 -04:00
supper_yijie bf35a3c6c5 fix #425: Restore Simplified Chinese font rendering
1.Added Simplified Chinese font support for web and desktop builds.
2.Kept Inter as the default font, with Chinese used only as a fallback.
3.Verified Chinese glyph tests and a macOS universal build.

Signed-off-by: supper_yijie <syj794844854@163.com>
2026-10-09 15:12:33 +08:00
Claude 8b70d33d0f Fix #319: release builds pin craft-fonts with Noto Sans CJK SC
release.yml (five jobs) and freebsd.yml pinned craft-fonts abb83316, from
before Noto Sans CJK SC landed there, so v0.4.0 embedded only the Japanese
faces and most of the Simplified Chinese UI was tofu. The pin is now
8dcdacd5 (craft-fonts HEAD: Noto Sans CJK SC and Noto Sans Arabic), which
the Noto CJK exception merged from #203 allows. docs/releasing.md says when
to bump the pin and how to check it before a release.

flake.nix / flake.lock (community-maintained, not in CI) still pin the old
revision: the lock's narHash needs nix to recompute.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01912WaK6Rmew3wxZuPyX7E8
2026-10-08 17:32:09 +00:00
ebe54f934e Release: FreeBSD, Flatpak x86_64/aarch64, AppImage zsync updates; README Downloads (#302)
* Release: FreeBSD x86_64, Flatpak x86_64/aarch64, AppImage zsync updates; README Downloads

- linux: appimagetool -u embeds gh-releases-zsync update information; the .AppImage.zsync is
  published beside each AppImage (zsync installed; checked in the job).
- flatpak: new job per arch repackages the Linux tarball into a single-file .flatpak
  (packaging/linux/flatpak-bundle.sh + ai.storyteller.lightcraft.bundle.yml); the Flathub
  manifest gets the CLI and the same commented finish-args; packaging-lint checks they agree.
- freebsd: new job builds lightcraft-<ver>-freebsd-x86_64.tar.gz in a FreeBSD 14.3 VM with the
  freebsd.yml packages (packaging/freebsd/package.sh; layout dry run in packaging-lint).
- version, linux and web no longer use the release environment (they sign nothing), so a
  branch dispatch dry-runs every unsigned job; the release job still needs macOS and Windows.
- README: Downloads section listing every build; docs/releasing.md updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Linux packages: describe LightCraft, not PhotoCraft, in the deb/rpm description

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Brandon Thomas <shared2@storyteller.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 09:45:26 -04:00
Alex GorevskiandCopilot 6aebd48eec Docs: fix release and command references
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 73897efc-ca9e-48b7-8b5a-50be0a930b09
2026-10-07 15:18:44 -07:00