Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Ebookmaker is the tool used for format conversion at Project Gutenberg. It builds HTML5, EPUB2, EPUB3 and Kindle files (including KF8) from HTML. It builds builds thes formats and PDF files from reST sources.
If you are preparing HTML for use with Ebookmaker, the Usage Notes may be of interest.
java -jar /Applications/epubcheck-4.2.6/epubcheck.jar
, then add this line to ~/.ebookmaker or /etc/ebookmaker.conf: epub_validator: java -jar /Applications/epubcheck-4.2.6/epubcheck.jar
then turn on validation by adding --validate
to Ebookmaker's command line invocation or by setting validate to true in ~/.ebookmakerhtml_validator: [something for your install]/vnu-runtime-image/bin/vnu
then turn on validation by adding --validate
to Ebookmaker's command line invocation or by setting validate to true in ~/.ebookmakersudo xattr -r -d com.apple.quarantine /Users/eric/vnu-runtime-image/lib
yum install google-noto-sans-cjk-fonts; yum install google-noto-sans-fonts
apt-get install fonts-noto-cjk fonts-noto
fc-cache -f -v
Tested with Python 3.8
(master branch, editable install)
pipenv install ebookmaker
Use the ebookmaker.conf file to pass a path to your kindlegen, tex, and groff programs if they're not in your PATH. Edit the ebookmaker.conf and copy it to /etc/ebookmaker.conf to reset the paths. Copy ebookmaker.conf to ~/.ebookmaker to override settings in /etc/ebookmaker.conf or to set default command line options.
(From the directory where you ran pipenv install
)
pipenv shell
ebookmaker -v -v --make=epub.images --output-dir=/Documents/pg /Documents/library/58669/58669-h/58669-h.htm
or
pipenv run ebookmaker -v -v --make=epub.images --output-dir=/Documents/pg /Documents/library/58669/58669-h/58669-h.htm
Install pipenv (might be pip install --user pipenv
, depending on your default python)
$ pip3 install --user pipenv
The default install location is ${HOME}/.local/bin
, so add this to your login shell's ${PATH} if needed.
Change directories to where you want to have your ebookmaker environment. Then, to initialize a python 3 virtual environment, do
$ pipenv --three
Whenever you want to enter this environment, move to this directory and do:
$ pipenv shell
Install the gutenberg modules:
$ pipenv install ebookmaker
Check your install:
$ ebookmaker --version
EbookMaker 0.12.0
Since you're in the shell, you can navigate to a book's directory and convert it:
$ ebookmaker -v -v --make=epub.images --ebook 10001 --title "The Luck of the Kid" --author "Ridgwell Cullum" luck-kid.html
$ cd ebookmaker
to wherever you ran $ pipenv install ebookmaker
then:
$ pipenv update ebookmaker
Install, as above.
$ cd ebookmaker
to wherever you ran $ pip install ebookmaker
then:
$ git checkout master
$ pipenv install -e .
$ python setup.py test
Travis-CI will run tests on branches committed in the gutenbergtools org
;%PYTHON_HOME%\;%PYTHON_HOME%\Scripts\
python
. It should run your version of Python. Quit python with ^Z
& Enter.pip3 install --user pipenv
. Script may warn it has put scripts into a folder such as C:\Users\myname\AppData\Roaming\Python\Python37\Scripts
, and to add this to the Path environment variable. Do this – don't forget the semicolon before the new folder name! (Possibly might work instead to just copy the newly installed files from where they were installed into your main python scripts folder, i.e. %PYTHON_HOME%\Scripts
?)C:\DP\ebookmaker
pipenv install ebookmaker
– takes a while to install. It will also create a "virtual environment", with a new folder, something like C:\Users\myname\.virtualenvs\ebookmaker-cgaQuYhi
C:\DP\gtk
and add C:\DP\gtk\bin
to the Path environment variable.
Exit command window and start a new one to get new path
Go to the ebookmaker folder, C:\DP\ebookmaker
pipenv run python ebookmaker --version
to check ebookmaker version. If this doesn't work (it should, but didn't work for us) try:
C:\Users\myname\.virtualenvs\
and find the name of your virtualenv - it should be something like ebookmaker-cgaQuYhi
pipenv run python C:\Users\myname\.virtualenvs\<name of virtualenv>\Scripts\ebookmaker --version
to check ebookmaker version."
, like --output-dir="C:\your foldername"
. If pathname is quoted, it MUST NOT end with trailing \
or error will be raised. If running bat file from within Guiguts, this means you should use $d.
rather than $d
(i.e. a dot after $d so quoted pathname will end in \."
rather than \"
) when passing it as a value for the output-dir argument.c:\dp\ebookmaker\run_ebookmaker.bat $d. $f $d$f$e
FAQs
The Project Gutenberg tool to generate EPUBs and other ebook formats.
We found that ebookmaker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.