Skip to content

release: 0.0.2 (iOS/iPadOS fixes + version bump) - #13

Merged
DNTOF merged 9 commits into
mainfrom
release/v0.0.2-ios
Nov 22, 2026
Merged

DNTOF merged 9 commits into
mainfrom
release/v0.0.2-ios

Conversation

@DNTOF

@DNTOF DNTOF commented Nov 22, 2026

Copy link
Copy Markdown
Owner

This branch starts from origin/wip/ios-ipa-ci (36c93ff) and cherry-picks the 0.0.2 version bump (2c197cc → f5c683f). The two source branches had diverged; this PR brings both sides together without changing release/v0.0.2 or wip/ios-ipa-ci.

相对 main 多出的提交:

  • c1ea66d wip(ink): port ink-feel prototype behind off-by-default flags
  • 99f26b2 wip(ink): English labels in the hidden ink debug panel (i18n smoke)
  • 6f50aaf ios: unsigned IPA path for TrollStore/jailbreak sideload; no MCP listener on mobile
  • 28cc882 icons: rounded-corner desktop and web icons; iOS keeps the opaque square master
  • b025535 ci: change-aware package workflow with iOS, combined checksums and a ci-ok gate
  • 63413a8 ios: support iPadOS 15 (arm64); OCR reports unavailable without WASM SIMD
  • f671890 ocr: non-SIMD fallback for WebKit before iOS 16.4 (iPadOS 15)
  • 36c93ff ink: pen/touch never open the composer; no text selection or callout while writing
  • f5c683f release: prepare 0.0.2 (version bump and draft notes)

Ink prototype flags stay off by default. The unsigned IPA path is for TrollStore / jailbreak sideload only. Release notes: docs/releases/v0.0.2.md.

DNTOF and others added 9 commits November 13, 2026 09:38
Ports src/ink and experiments/2026-11-12-ink-prediction from the local ink prototype onto origin/main. Board.tsx merges main's capsule eraser, abort-on-interrupt and guarded setLive with the experiment hooks. Every ink flag defaults to false; with flags off the board keeps main's behaviour.
…ener on mobile

package-ios.sh --unsigned runs tauri ios build --no-sign, optionally ldid fake-signs, and writes MathScrap-<v>-ios-unsigned.ipa plus SHA256SUMS. The signed --device path is unchanged. The generated AppIcon set is replaced with the committed opaque square icons. package-ios.yml defaults to unsigned and is callable from package.yml. The loopback MCP hub is cfg(desktop) only.
…ci-ok gate

scope classifies docs / version / packaging / full. checks (versions, classifier regression, script syntax, workflow YAML) always run. The math suite runs only for full changes. Packaging-only PRs build packages instead of the math suite. Docs-only pushes skip packaging. Added docs files such as CONTRIBUTING.md no longer force the full suite. package.yml calls package-ios.yml for an unsigned IPA and a checksums job writes one SHA256SUMS across Android, Windows and iOS. ci-ok is the single required status.
…SIMD

bundle.iOS.minimumSystemVersion 15.0 so an iPad Air 2 on iPadOS 15 can install. onnxruntime-web 1.22 ships only SIMD builds, so a SIMD probe disables CoMER before any model download and the Recognize action shows a message instead; ink and the mathcore WASM (no SIMD; bulk-memory, sat-conversions, sign-ext only) still work. iOS builds lower JS and CSS to Safari 15 via TAURI_ENV_PLATFORM; other platforms keep Vite's default target. package-ios.sh checks the slice is plain arm64.
onnxruntime-web 1.22 ships only SIMD WebAssembly (its wasm uses 0xfd opcodes), so iPadOS 15
could not run CoMER. When the SIMD probe fails, the page now loads onnxruntime-web 1.18.0
(npm alias onnxruntime-web-nosimd, pinned exactly; the last release with a plain ort-wasm.wasm,
which validates with SIMD and threads disabled) from /ort-compat/. 1.18 has no Trilu kernel, so
the compat path loads decoder_int8_compat.onnx: the same decoder with its one causal-mask Trilu
replaced by ConstantOfShape/CumSum/Greater (scripts/make-compat-decoder.py; weights unchanged).

Desktop/Android/iOS 16.4+ keep the SIMD runtime and original decoder. ?ocr-compat=1 or
localStorage mathscrap.ocr-compat=1 forces the fallback for testing. Only a WebView without
WebAssembly reports OCR unavailable. In compat mode automatic reading is paused (seconds per
formula on the main thread would stall the pen); Recognize / R reads ink, with a one-time toast.

ocr-real-smoke now checks the compat runtime reads the fixtures exactly like the SIMD one;
ocr:live takes MATHSCRAP_OCR_COMPAT=1. About 4-8x slower than SIMD on x86.
…while writing

On iPad a capacitive stylus is pointerType 'touch'. iOS turned two quick taps or short marks
(a dot, the bars of "=") into a dblclick, and the board's dblclick handler opened the formula
composer even with the pen tool. With an ink tool (pen/marker/eraser) only a mouse double-click
opens it now; the type tool, toolbar and shortcuts are unchanged.

The board cancels the native touchstart/move/end of touches that draw, erase or pinch (non-passive
listeners; pointer events have already fired), which stops click synthesis, selection, the
callout and the loupe. Buttons, links, text fields and [data-no-board] keep their defaults.
selectstart is cancelled on the board, and document-wide while a stroke is active, except in
text fields. The board and ink SVG get user-select/-webkit-user-select none,
-webkit-touch-callout none and touch-action none.

scripts/e2e-ipad-compat.ts (Chromium, against vite preview) covers the no-SIMD OCR path and these
gestures; with the old Board it fails the tap, dblclick and selection checks.
@DNTOF
DNTOF merged commit 2c3fcb5 into main Nov 22, 2026
9 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