Skip to content

iPad port with Apple Pencil support#2

Open
18631665217 wants to merge 1 commit into
MaximeRivest:mainfrom
18631665217:ipad-port
Open

iPad port with Apple Pencil support#2
18631665217 wants to merge 1 commit into
MaximeRivest:mainfrom
18631665217:ipad-port

Conversation

@18631665217

Copy link
Copy Markdown

iPad Port of Tom Riddle's Diary

Hi! I loved your reMarkable riddle project so much that I ported it to iPad + Apple Pencil.

What's new

  • Complete Swift/SwiftUI implementation (original is Rust)
  • Apple Pencil input (replaces evdev pen input)
  • Surface pixel buffer (replaces reMarkable framebuffer)
  • Handwriting synthesis ported from script.rs (Zhang-Suen thinning + stroke tracing)
  • Ink dissolve with px_hash (ported from ink.rs)
  • In-app Settings screen for API configuration
  • Supports any OpenAI-compatible, vision-capable LLM (OpenAI, OpenRouter, Volcano Ark, Groq)

How it works

Same flow as the original: write with Apple Pencil → diary drinks the ink → LLM reads handwriting from PNG → reply appears stroke by stroke → dissolves away.

Credits

All core algorithms (dissolve, handwriting synthesis, persona prompt, state machine) are direct ports from your Rust source. DancingScript.ttf is from your repo.

Would love to hear your thoughts! Happy to make any changes you'd like.

Port of MaximeRivest/riddle for iPad + Apple Pencil.

- Swift/SwiftUI implementation (original is Rust)
- Apple Pencil input via UITouch (replaces evdev)
- Surface pixel buffer (replaces reMarkable framebuffer)
- Zhang-Suen thinning + stroke tracing (ported from script.rs)
- Ink dissolve with px_hash (ported from ink.rs)
- OpenAI-compatible API with in-app Settings screen
- Supports any vision-capable LLM (OpenAI, OpenRouter, Volcano Ark, Groq)
@aakshintala

Copy link
Copy Markdown

@18631665217 Heh! I did the same! https://github.com/aakshintala/riddle-ipad

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.

2 participants