Skip to content

New package: annotation-library - #311

Open
kevin-v96 wants to merge 6 commits into
vellum-dev:mainfrom
kevin-v96:annotation-library
Open

New package: annotation-library#311
kevin-v96 wants to merge 6 commits into
vellum-dev:mainfrom
kevin-v96:annotation-library

Conversation

@kevin-v96

Copy link
Copy Markdown

A xovi / qmldiff mod that adds a Kobo-style highlights index to the native reMarkable Paper Pro reader.

Comment thread packages/annotation-library/VELBUILD Outdated
Comment thread packages/annotation-library/VELBUILD Outdated
@kevin-v96
kevin-v96 requested a review from Eeems July 31, 2026 07:34
Comment thread packages/annotation-library/VELBUILD Outdated
@Eeems

Eeems commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Have you done any testing with other packages in vellum that affect similar areas to make sure they don't conflict?

@kevin-v96

Copy link
Copy Markdown
Author

Have you done any testing with other packages in vellum that affect similar areas to make sure they don't conflict?

@Eeems

Yes. My test device runs Annotation Library alongside 25 other Vellum mods, including every one that patches the same components:

  1. Reader toolbar (Toolbar.qml): betterToc, floating, gestik, hideDocumentClose, navHistory
  2. DocumentView: betterToc, betterTocCollapse, collapseToolbarOnOpen, defaultTemplate, dictionaryWikiTranslator, floating, navHistory, penLayerMemory
  3. Homescreen dock (CreateMenu.qml): dockButtons — which appends buttons to the same RowLayout mine does
  4. Navigator: betterToc, dockButtons, linkFromSelection, navHistory

They all load and apply together with no qmldiff conflicts (no Cannot build errors), and the mod works normally with them active — toolbar button → highlights list → jump-to-page, and the dock button → library view. In particular it coexists cleanly with dockButtons on the homescreen dock (both append buttons; separate signal names, no clash) and with the toolbar mods (floating/betterToc).

One thing that might be contentious is that I was not able to add the sidebar icon for the mod to the top of the secondary icons, so it's at the very bottom of the bar, with the three dots menu thus lifted up to the penultimate one - let me know if this is a problem that needs fixing.

@kevin-v96
kevin-v96 requested a review from Eeems July 31, 2026 08:47
@kevin-v96

Copy link
Copy Markdown
Author

Also applied the same Paper-Pro device restriction here to match #312: added !rm1 !rm2 !rmppm !rmppure to depends. This package is aarch64 (ships a Paper-Pro helper binary) with Paper-Pro-hashed QML, so the Paper Pro is the only supported/tested device. Pushed.

@Eeems

Eeems commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

!rm1 and !rm2 can be removed as this is aarch64 only, which rM1/2 are not.

@kevin-v96

Copy link
Copy Markdown
Author

Applied the same simplification here: depends trimmed to !rmppm !rmppure (this one is already aarch64, so rM1/rM2 are excluded by arch). Pushed.

Comment on lines +13 to +32
source="
https://raw.githubusercontent.com/$upstream_author/annotation-library/$_commit/3.27/allHighlights.qmd
https://github.com/$upstream_author/annotation-library/releases/download/v$pkgver/allhighlights-aarch64
https://raw.githubusercontent.com/$upstream_author/annotation-library/$_commit/LICENSE
"

package() {
install -Dm644 "$srcdir"/allHighlights.qmd \
"$pkgdir"/home/root/xovi/exthome/qt-resource-rebuilder/allHighlights.qmd
install -Dm755 "$srcdir"/allhighlights-aarch64 \
"$pkgdir"/home/root/.vellum/bin/allhighlights
install -Dm644 "$srcdir"/LICENSE \
"$pkgdir"/home/root/.vellum/licenses/$pkgname/LICENSE
echo "$url" > "$pkgdir"/home/root/.vellum/licenses/$pkgname/SOURCES
}
sha512sums="
d9ead9d9a0b830fb1a13661bc26f3be7eada0e9c6bffdd15cb1e947770cc8185ae9c0b3c961a5b40c38f2801bf0210fb48d88882e73cc6da31eb57eaa63babba allHighlights.qmd
901ca37d0271b8733b3d7eb6b9030b35b9b293e4ee6875afc4ab141033ae61983637c4d897faa3e00cea76b3379f33982a36b5576e7c500b45ac2441ed83d54b allhighlights-aarch64
900ef9b1d0e1435fb3aad32f035edf8890538292ebb3104af2feb386fb25df134ed0172a0ec542b2c25ff69a39ae62b34ad17e01b3522067a7328abb25aa4fff LICENSE
" No newline at end of file

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the Go build to Vellum, something like:

Suggested change
source="
https://raw.githubusercontent.com/$upstream_author/annotation-library/$_commit/3.27/allHighlights.qmd
https://github.com/$upstream_author/annotation-library/releases/download/v$pkgver/allhighlights-aarch64
https://raw.githubusercontent.com/$upstream_author/annotation-library/$_commit/LICENSE
"
package() {
install -Dm644 "$srcdir"/allHighlights.qmd \
"$pkgdir"/home/root/xovi/exthome/qt-resource-rebuilder/allHighlights.qmd
install -Dm755 "$srcdir"/allhighlights-aarch64 \
"$pkgdir"/home/root/.vellum/bin/allhighlights
install -Dm644 "$srcdir"/LICENSE \
"$pkgdir"/home/root/.vellum/licenses/$pkgname/LICENSE
echo "$url" > "$pkgdir"/home/root/.vellum/licenses/$pkgname/SOURCES
}
sha512sums="
d9ead9d9a0b830fb1a13661bc26f3be7eada0e9c6bffdd15cb1e947770cc8185ae9c0b3c961a5b40c38f2801bf0210fb48d88882e73cc6da31eb57eaa63babba allHighlights.qmd
901ca37d0271b8733b3d7eb6b9030b35b9b293e4ee6875afc4ab141033ae61983637c4d897faa3e00cea76b3379f33982a36b5576e7c500b45ac2441ed83d54b allhighlights-aarch64
900ef9b1d0e1435fb3aad32f035edf8890538292ebb3104af2feb386fb25df134ed0172a0ec542b2c25ff69a39ae62b34ad17e01b3522067a7328abb25aa4fff LICENSE
"
source="
$pkgname-$pkgver.tar.gz::https://github.com/$upstream_author/annotation-library/archive/$_commit.tar.gz
"
builddir="$srcdir/annotation-library-$_commit"
image="ghcr.io/toltec-dev/golang:v4.0"
build() {
cd "$builddir"/extractor
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build \
-trimpath -ldflags="-s -w" -o build/allhighlights .
}
package() {
install -Dm644 "$builddir"/3.27/allHighlights.qmd \
"$pkgdir"/home/root/xovi/exthome/qt-resource-rebuilder/allHighlights.qmd
install -Dm755 "$builddir"/extractor/build/allhighlights \
"$pkgdir"/home/root/.vellum/bin/allhighlights
install -Dm644 "$builddir"/LICENSE \
"$pkgdir"/home/root/.vellum/licenses/$pkgname/LICENSE
echo "https://github.com/$upstream_author/annotation-library/archive/$_commit.tar.gz" > \
"$pkgdir"/home/root/.vellum/licenses/$pkgname/SOURCES
}
sha512sums="
1ad6980318600f7061e5347330a730074092b1460bbee7a3a7ff2bf14ba43a349c773547f62ce9ca290dfaa40aed2174db25a0e2389af5538e46243264e0517e annotation-library-1.0.0.tar.gz
"

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.

3 participants