Add AndBible bookmarks import (sqlite -> Xiphos bookmarks.xml) - #1351
Merged
Conversation
LAfricain
force-pushed
the
andbible-import
branch
from
July 27, 2026 08:36
5e5f108 to
f0ca5cc
Compare
karlkleinpaste
added a commit
that referenced
this pull request
Jul 29, 2026
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.
Import bookmarks from AndBible
Adds a way to bring bookmarks created in AndBible
(the Android Bible study app) into Xiphos, via its sqlite backup file.
What this does
"Import Bookmarks" (BibleTime) menu item.
BibleBookmark,Label,BibleBookmarkNotes,BibleBookmarkToLabeltables) and converts itinto a temporary
SwordBookmarksXML file, then merges it into thetree using the existing bookmark-parsing code.
named SWORD versification system (
KJVA,Catholic,Catholic2,...) rather than a plain verse reference. This is decoded back into
a real verse key using libsword's own
VerseKey/VersificationMgr, so no separate canon table needs to bemaintained on the Xiphos side - any versification SWORD already
knows about is supported automatically.
appended to the bookmark description.
sqlite3pkg-config dependency.Current behaviour: fully-managed folder, not an incremental sync
Every import wipes and rebuilds the whole "Import AndBible" folder
from the current backup, rather than trying to patch it in place.
This gives simple, duplicate-free, predictable behaviour - additions,
edits and label changes made in AndBible all show up correctly just
by reimporting - but at the cost of not preserving anything filed by
hand into that folder, and of no distinction between "what changed"
and "what didn't". The user is warned about this both before
(confirmation dialog if a previous import exists) and after
(summary dialog) each import.
This is a first step, not the end state
A few things are deliberately left out of this first version, to keep
it reviewable:
future version could diff the existing imported bookmarks against
the new backup (by matching verse key + module + folder) and only
add/update/remove what actually changed, instead of rebuilding
everything on every import.
native cloud sync feature (Nextcloud/Google Drive) that goes beyond
the simple backup file this PR reads. Being able to pull bookmarks
straight from that sync store - rather than requiring the user to
manually export/copy a sqlite backup file - would turn this from a
one-off import into something closer to a real sync. That's a
separate, bigger piece of work (different, and only partly
understood, on-disk/remote format) and out of scope here.