Skip to content

ink2tex: handwritten math to LaTeX, fully on-device#963

Open
Mx0FFFF wants to merge 1 commit into
toltec-dev:testingfrom
Mx0FFFF:package/ink2tex
Open

ink2tex: handwritten math to LaTeX, fully on-device#963
Mx0FFFF wants to merge 1 commit into
toltec-dev:testingfrom
Mx0FFFF:package/ink2tex

Conversation

@Mx0FFFF

@Mx0FFFF Mx0FFFF commented Jul 12, 2026

Copy link
Copy Markdown

Adds ink2tex (rm2 only): draw a math symbol with the pen and get the LaTeX command, or write a line of math and get LaTeX back. Runs on the tablet CPU; reads the pen via evdev and prints to stdout over SSH, so no launcher and no rm2fb dependency.

Upstream is dual-licensed MIT OR Apache-2.0, licensee's choice (clarified in the upstream README). Weights are trained on Detexify and HWRT, both ODbL; the attribution notice installs with the package. rm2 only because that is the only hardware verified.

@Eeems

Eeems commented Jul 12, 2026

Copy link
Copy Markdown
Member

Holy LLM PR batman.

The description is obvious LLM prose, adding more information than is needed, or even relevant, and the recipe itself is full of LLM level comments that do not match the format of recipes in the rest of this repository. The upstream repository also lists two licenses but doesn't provide guidelines for when one is required over the other, the recipe unilaterally chooses the more permissive license. As you are the copyright holder, you have the right to choose the license, but it's not clear to me how our distribution is allowed to use MIT over Apache 2.0.

This also has only rm2 as the supported arch, which is way more relevant than anything about no cloud/network/launcher/rm2fb.

Draw a symbol with the pen to get the LaTeX command, or write a line of
math to get LaTeX back. Runs on the tablet CPU; reads the pen via evdev
and prints to stdout over SSH, so no launcher and no rm2fb.

Upstream is dual-licensed MIT OR Apache-2.0 (licensee's choice; see the
upstream README). Weights are trained on Detexify and HWRT, both ODbL;
the attribution notice is installed with the package.
@Mx0FFFF

Mx0FFFF commented Jul 13, 2026

Copy link
Copy Markdown
Author

Fair points, all three taken:

  • Recipe rewritten to match the repo's format (65 → 41 lines, comments cut).
  • License: upstream is the standard Rust dual license, MIT OR Apache-2.0 at
    the licensee's option — the README now says so explicitly rather than
    leaving you to guess, and the recipe's license field now carries the full
    SPDX expression instead of picking one.
  • rm2-only now leads the description and pkgdesc.

Description above rewritten too. Happy to trim further if it's still not
in line.

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