https://github.com/cmroanirgo/pl-ebook
https://github.com/cmroanirgo/pl-ebook
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cmroanirgo/pl-ebook
- Owner: cmroanirgo
- Created: 2016-06-12T22:42:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-12T23:08:35.000Z (about 9 years ago)
- Last Synced: 2025-03-21T08:46:29.769Z (3 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pl-ebook
===========This utility program makes use of the command line of the [calibre ebook application](http://calibre-ebook.com/) and [pl-copyfind](https://github.com/cmroanirgo/pl-copyfind), a javascript library for detecting similarities between texts. The end result is that you can place ebooks of any supported format[^*] in one of two folders to cross compare them for similarities.
Note that DRM enabled titles will fail to work using this utility and neither calibre, nor this utility provide any direct mechanism to automatically remove DRM, nor will this policy change.
The results of the comparison are written to an HTML file (report.html) for visual analysis.
[^*]: Anything that calibre can understand, can be used. This includes all Amazon formats (mobi, azw, etc), epub, pdf, etc, etc.
Installation
----------------1. Install [calibre](http://calibre-ebook.com/)
2. download this package and place it in a folder somewhere (eg pl-ebook)
3. run `node update` from the command line in that folder. This will download all dependenciesThis application assumes that calibre is installed to either `C:\Program Files (x86)\Calibre2\` (windows) or `/Applications/calibre.app` (mac). If your installation appears somewhere else you'll need to either:
1. hack the code (at the top of index.js)
2. specify the location of the [calibre command line tool (calibre-ebook)](https://manual.calibre-ebook.com/generated/en/ebook-convert.html) as a parameter.eg:
node index.js "./path1" "./path2" "--calibre=c:\utils\ebook-convert.exe"The good news is that this is largely untested, and you may end up choosing the first option (hack the script) anyway.
Usage
----------You will most likely wish to wrap this in a batch file (/shell script) for day to day use.
node index.js "./path/to/source/files/with/ebooks" "./path/to/compare" [name_of_result.html]
Disclaimer
-----------This project is supplied 'as is' is not likely to be actively supported. It was quickly knocked together for some friends.
The code is poorly designed and is highly procedural. In short, the code is not production worthy and certainly not worthy of a developer's attention. For that I apologise.