Skip to content

orhnk/Annot2CFI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

35e71d8 · Feb 9, 2025

History

8 Commits
Feb 9, 2025
Feb 2, 2025
Nov 22, 2024
Nov 22, 2024
Feb 9, 2025
Feb 9, 2025
Feb 9, 2025
Feb 2, 2025
Feb 2, 2025
Feb 2, 2025
Nov 22, 2024

Repository files navigation

Annot2CFI
========

A tool to convert annotations to CFI by searching the e-book. Easily portable any other e-reader or program than kobo and foliate (PR).

Usage
-----

  node index.js <KoboReader.sqlite> # Kobo

  node search-epub.js <mybook.epub> <query> # Shell Query (May be outdated)


Algo
----

1. Generate CFI for each paragraph using epub-cfi-generator
2. Search from the paragrahs and find the corresponding CFI


Problems
--------

- The CFI generator used for this project is not fully compatible with foliate e-book reader program: CFI generator is treating every text node as /1 to be more specific.

About

EpubCFI Generator For E-Reader Annotations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published