Repository navigation
release: 0.0.2 (iOS/iPadOS fixes + version bump) - #13
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 changingrelease/v0.0.2orwip/ios-ipa-ci.相对
main多出的提交:c1ea66dwip(ink): port ink-feel prototype behind off-by-default flags99f26b2wip(ink): English labels in the hidden ink debug panel (i18n smoke)6f50aafios: unsigned IPA path for TrollStore/jailbreak sideload; no MCP listener on mobile28cc882icons: rounded-corner desktop and web icons; iOS keeps the opaque square masterb025535ci: change-aware package workflow with iOS, combined checksums and a ci-ok gate63413a8ios: support iPadOS 15 (arm64); OCR reports unavailable without WASM SIMDf671890ocr: non-SIMD fallback for WebKit before iOS 16.4 (iPadOS 15)36c93ffink: pen/touch never open the composer; no text selection or callout while writingf5c683frelease: 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.