Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 03-10-2025, 02:53 AM   #1
chbla
Member
chbla began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2025
Device: Inkpalm, Supernote
Per-Device layout on synced devices?

Hi there,

I am using Koreader on two E-Ink Devices: Supernote Manta and Inkpalm Mini Pro.

I've synced the books folder in order to have highlights on both devices. I'm also using the Progress Plugin to sync reading progress.

I noticed that if I adapt the layout (margins, font-size) on my Supernote, it seems to get synced to my Inkpalm - resulting in narrow columns and too small fonts.

The settings get saved in the metadata.epub.lua file, along with the highlights. Is there any way I can have global, and per-device settings and remove these custom settings from the file? The only thing I want to share is annotations and reading progress...

Thank you!
chbla is offline   Reply With Quote
Old 03-10-2025, 03:30 AM   #2
hius07
Wizard
hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.
 
Posts: 1,137
Karma: 3592801
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
With the tomorrow nightly build you will be able to sync the annotations separately of the layout settings.
See https://github.com/koreader/koreader/pull/13372.
hius07 is offline   Reply With Quote
Advert
Old 03-10-2025, 03:34 AM   #3
chbla
Member
chbla began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2025
Device: Inkpalm, Supernote
Quote:
Originally Posted by hius07 View Post
With the tomorrow nightly build you will be able to sync the annotations separately of the layout settings.
See https://github.com/koreader/koreader/pull/13372.
Oh, that's great, thank you very much!
Is it possible to set this globally? Or do I need to set it per book?
chbla is offline   Reply With Quote
Old 03-10-2025, 04:21 AM   #4
hius07
Wizard
hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.
 
Posts: 1,137
Karma: 3592801
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
Folder setting is global: a book metadata folder (sdr folder near the book) or one dedicated folder for all annotations export files.
hius07 is offline   Reply With Quote
Old 03-10-2025, 05:12 AM   #5
chbla
Member
chbla began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2025
Device: Inkpalm, Supernote
Quote:
Originally Posted by hius07 View Post
Folder setting is global: a book metadata folder (sdr folder near the book) or one dedicated folder for all annotations export files.
Nice, thank you!
chbla is offline   Reply With Quote
Advert
Old 03-11-2025, 03:40 PM   #6
chbla
Member
chbla began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2025
Device: Inkpalm, Supernote
Quote:
Originally Posted by hius07 View Post
With the tomorrow nightly build you will be able to sync the annotations separately of the layout settings.
See https://github.com/koreader/koreader/pull/13372.
Quick question - in general this is working, but I noticed two problems:

1) I'm getting sync conflicts because ["pageno"] = 40 is different with different devices. Probably because of the layout.

2) How can I prevent the layout info get synced? I always have to execute a 'profile' because the layout from my Supernote is synced to my Inkpalm...
chbla is offline   Reply With Quote
Old 03-11-2025, 03:53 PM   #7
hius07
Wizard
hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.
 
Posts: 1,137
Karma: 3592801
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
1) Where do you see incorrect pageno? It's not shown in the interface, and it is updated when exporting highlights.
2) Don't sync the whole sdr folder, sync the annotations file only.
hius07 is offline   Reply With Quote
Old 03-11-2025, 04:25 PM   #8
chbla
Member
chbla began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2025
Device: Inkpalm, Supernote
@hius07

regarding 1)
I see it in the files, syncthing is creating a conflict file, see attachment.

I assume that the page numbers differ between my supernote and the inkpalm because they have different sizes - no?
At least the total/current page number at the bottom of Koreader is different, in both.
Also, the filename in the file (as above, results in a conflict.

regarding 2) I'll add a regex then to sync only the annotations file, thanks!
Attached Thumbnails
Click image for larger version

Name:	2025-03-11_21-26.png
Views:	17
Size:	6.8 KB
ID:	214282  

Last edited by chbla; 03-11-2025 at 04:27 PM.
chbla is offline   Reply With Quote
Old 03-11-2025, 04:46 PM   #9
hius07
Wizard
hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.
 
Posts: 1,137
Karma: 3592801
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
You are right, pageno are different depending on text layout. But KOReader itself doesn't use them, they are calculated specially for export and for KoHighlights program.
And they don't affect annotations syncing.
hius07 is offline   Reply With Quote
Old 03-11-2025, 04:49 PM   #10
chbla
Member
chbla began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2025
Device: Inkpalm, Supernote
I see... :/
Unfortunately, then it's still not possible to sync annotations across devices... I thought this might finally work.
chbla is offline   Reply With Quote
Old 03-11-2025, 05:00 PM   #11
hius07
Wizard
hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.
 
Posts: 1,137
Karma: 3592801
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
Just don't analyze the file content. Put the file to another device and annotations are synced.
hius07 is offline   Reply With Quote
Old 03-11-2025, 05:05 PM   #12
chbla
Member
chbla began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2025
Device: Inkpalm, Supernote
Quote:
Originally Posted by hius07 View Post
Just don't analyze the file content. Put the file to another device and annotations are synced.
This only works if you copy over the file manually. It doesn't work if you open the book on both devices (I sometimes read on the inkpalm in the train, and on the supernote at home
- a very common usecase).

It results in two different files that cannot be synced because of the conflict caused by the included filename and page number - although they are not relevant.

Kindle handles this flawlessly...

I don't know anything about book formats, it probably would need to be bound to an absolute, not relative position.
chbla is offline   Reply With Quote
Old 03-11-2025, 05:40 PM   #13
chbla
Member
chbla began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2025
Device: Inkpalm, Supernote
@hius07, I noticed that the pos number are actually absolute.
So the only thing preventing syncing annotations between multiple devices (if not used at the same time) is the pageno and filename, which is not used...
Is there a way around this?
chbla is offline   Reply With Quote
Old 03-12-2025, 12:04 AM   #14
hius07
Wizard
hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.
 
Posts: 1,137
Karma: 3592801
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
Can you explain in details why pageno/filename prevent syncing?
hius07 is offline   Reply With Quote
Old 03-12-2025, 02:49 AM   #15
chbla
Member
chbla began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2025
Device: Inkpalm, Supernote
@hius07,

I will test this again today, from my point of view it should only happen if you do something simultaneously. But somehow syncthing detects conflicts of the files even if timestamps differ.

It seems as this might be a syncthing problem.

I'm wondering though - what other tools use pageno and the filename reference, and if it shouldn't be a device specific label, to avoid problems...
chbla is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I get the Cover Grid layout while viewing books on my device? droopy Library Management 3 09-09-2020 01:14 PM
Best way to have mobile devices synced to PC Giuseppe Chillem Android Devices 0 09-15-2019 06:02 PM
FR: Folder device and other devices at the same time loviedovie Calibre 3 06-18-2016 09:59 PM
Need a device/app that will keep books synced between Phone and E-Reader josh05magnum Which one should I buy? 19 05-29-2014 06:09 PM
Add tag when book is synced to device Stampercam Calibre 4 10-09-2011 03:49 AM


All times are GMT -4. The time now is 06:28 AM.


MobileRead.com is a privately owned, operated and funded community.