knock/readme.md

63 lines
2.4 KiB
Markdown
Raw Normal View History

2021-07-21 22:03:58 +00:00
# Knock
2022-06-05 03:14:43 +00:00
Convert ACSM files to PDF/EPUBs with one command on Linux ([and MacOS very soon](https://github.com/BentonEdmondson/knock/issues/58)).
2021-07-21 22:03:58 +00:00
*This software does not utilize Adobe Digital Editions nor Wine. It is completely free and open-source software written natively for Linux.*
2022-06-05 03:14:43 +00:00
## Installation
2022-06-05 03:14:43 +00:00
* Download the latest [release](https://github.com/BentonEdmondson/knock/releases). Make sure it is the correct version for your architecture (run `uname -m` to check).
* Rename the binary and make it executable.
* Run `knock /path/to/book.acsm` to perform the conversion.
2021-07-21 22:03:58 +00:00
2022-06-07 02:39:14 +00:00
## Dependencies
There are no userspace runtime dependencies.
2021-07-21 22:03:58 +00:00
## Verified Book Sources
2022-06-05 03:14:43 +00:00
Knock should work on any ACSM file, but it has been specifically verified to work on ACSM files purchased [eBooks.com](https://www.ebooks.com/en-us/) and [Kobo](https://www.kobo.com/us/en), among others.
2021-08-02 20:43:28 +00:00
2022-06-05 03:14:43 +00:00
Before buying your ebook, check if it is available for free on [Project Gutenberg](https://gutenberg.org/).
2021-07-21 22:03:58 +00:00
2022-06-05 20:21:12 +00:00
## Contributing
2022-06-05 03:14:43 +00:00
2022-06-05 20:21:12 +00:00
Install [Nix](https://github.com/NixOS/nix) if you don't have it. Enable [flakes](https://nixos.wiki/wiki/Flakes) if you haven't.
### Building
2022-06-05 03:14:43 +00:00
```
nix build
```
2022-06-05 20:21:12 +00:00
### Updating
2022-06-05 03:14:43 +00:00
```
nix flake update
```
2022-06-05 20:21:12 +00:00
### Testing
```
2022-06-06 01:20:38 +00:00
nix run .#tests -- ./tests/workspace
2022-06-05 20:21:12 +00:00
```
2022-06-05 03:14:43 +00:00
Test books can be found [here](https://www.adobe.com/solutions/ebook/digital-editions/sample-ebook-library.html).
2022-06-07 02:39:14 +00:00
## The Name
The name comes from the [D&D 5e spell](https://roll20.net/compendium/dnd5e/Knock#content) for freeing locked items:
> ### Knock
> *2nd level transmutation*\
> **Casting Time**: 1 action\
> **Range**: 60 feet\
> **Components**: V\
> **Duration**: Instantaneous\
> **Classes**: Bard, Sorcerer, Wizard\
> Choose an object that you can see within range. The object can be a door, a box, a chest, a set of manacles, a padlock, or another object that contains a mundane or magical means that prevents access. A target that is held shut by a mundane lock or that is stuck or barred becomes unlocked, unstuck, or unbarred. If the object has multiple locks, only one of them is unlocked. If you choose a target that is held shut with arcane lock, that spell is suppressed for 10 minutes, during which time the target can be opened and shut normally. When you cast the spell, a loud knock, audible from as far away as 300 feet, emanates from the target object.
## License
2022-06-05 03:14:43 +00:00
This software is licensed under GPLv3. The linked libraries have various licenses.