Giter Club home page Giter Club logo

pocketbook-sync's Introduction

pocketbook-sync

A CLI utility for synchronize the positions in the books between PocketBook 740 E-reader and zathura document viewer.

Building from source

Install Qt libraries and use:

cmake .
make -j$(nproc)

Usage

Usage: ./pbsync [options] mount-point zathura-history prefix
A CLI utility for syncing book positions between PocketBook e-reader and zathura.

Options:
  -h, --help     Displays help on commandline options.
  --help-all     Displays help including Qt specific options.
  -v, --version  Displays version information.

Arguments:
  mount-point     PocketBook mount point: path with "system" directory.
  zathura-history Zathura history file.
  prefix          Prefix to books location on this device.

Here is an example of usage in my environment.

I store books in ~/Documents on my desktop system. The same directory (including all files with the same paths) is located in MicroSD card on my PocketBook device.

The following command fetch the book positions from the E-reader database and updates them in the zathura history file:

$ pbsync /media/jubnzv/PB740 /home/jubnzv/.local/share/zathura/history /home/jubnzv/

Updated positions:
 "/home/jubnzv/Documents/C++/Stepanov_ From Mathematics to Generic Programming.pdf" page: 103

New zathura history was saved at /home/jubnzv/.local/share/zathura/history.new

Check the difference using:
 diff /home/jubnzv/.local/share/zathura/history{,.new}

To apply these changes use:
 mv /home/jubnzv/.local/share/zathura/history{,.new}

License

MIT

pocketbook-sync's People

Contributors

jubnzv avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

davide-qwe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.