Bold, Italic and a highlight colour on the format bar above the reMarkable Paper Pro's on-screen keyboard, right next to undo / redo. Turn Bold on, type, turn it off: the text you typed in between is bold, like in a word processor. With text selected, the buttons format the selection. The font itself stays the device's font. Runs without xovi and keeps working after a reboot.
Made for and tested on the reMarkable Paper Pro with OS 3.29.1. Other reMarkable models are not supported. Updates for newer OS versions may take some time to follow.
Part of the rmpp add-ons, built on rmpp-packages: it is installed by rmpp setup, loaded into xochitl at every boot by rmpp-preload (no xovi), and kept up to date with Vellum. How that differs from xovi: how it works.
Start at rmpp-packages: it explains developer mode and has rmpp setup, the installer for all rmpp add-ons.
- In rmpp setup (the desktop app or the script), tick Bold, italic, highlight (rmpp-format).
- It installs
rmpp-preloadwith it (all packages and dependencies). - After a reMarkable OS update: Restore in rmpp setup.
- Without rmpp setup, removing it, next to other mods, building it: docs/install.md.
Open the on-screen keyboard in a notebook (tap the text tool, or type). Three buttons sit on the black bar above the keys, right of redo:
- B and I: tap to turn the style on for the text you type next, tap again to turn it off. A button shows white while its style is on. With text selected, a tap formats the selection (as the B / I of the selection menu).
- Colour (an "A" over a colour bar): opens a row of highlight colours above the bar (none, yellow, green, pink, orange, blue, gray); tapping anywhere else closes it. With a colour on, what you type gets highlighted once you pause for a moment, move the cursor, change the colour or close the keyboard. With text selected, picking a colour highlights the selection.
Highlights are the highlighter pen's (they snap to whole words, like the pen's) and are erased or undone like pen highlights. On a narrow bar the three buttons get smaller.
librmpp-format.so is loaded into xochitl by rmpp-preload (/usr/lib/rmpp/preload.d/50-rmpp-format.so). It
finds xochitl's keyboard format bar (QML FormatMenuVirtualKeyboard) and adds the buttons (QML, no moc) right of
redo.
- Bold / Italic call xochitl's own
SceneController::setTextStyle(), the same call as the B / I buttons of the text selection menu. With a selection it toggles the style on the selected characters; without one it toggles the style at the cursor, so the next typed characters get it. These are xochitl's own per-character styles, saved in the document like formatting made with the selection menu. - Colour: xochitl's document model has no text colour, only highlights. With a colour on, the add-on remembers
where a stretch of typing starts; when it ends it selects the stretch for a moment to measure it (keys typed
meanwhile are held and sent afterwards) and calls
SceneController::highlightWithLine()with a highlighter stroke across it, one per line: the call the highlighter pen makes. The stroke is built in memory in xochitl'sLinelayout, which is checked at start-up; if it does not match, the colour button stays hidden.
Findings and what was tested: NOTES.md.
Building and the development install: docs/install.md.
GPL-3.0-only. See LICENSE.