niklasgollenstede / epub-creator Goto Github PK
View Code? Open in Web Editor NEWFirefox add-on that creates .epub books from the about:reader and overdrive books
License: Mozilla Public License 2.0
Firefox add-on that creates .epub books from the about:reader and overdrive books
License: Mozilla Public License 2.0
Hi
Would be nice to have the original url and date of conversion to be inserted into the contents. Maybe as a footer on the last page.
The url to always be able to go back to the original text and website. The date helps to get a sense when the article was relevant, which is useful for newspaper articles.
That might also be a good opportunity to additionally add a reference to this addon ;-)
Thanks for this really useful extension, I was happy to see it's being actively maintained!
It would be great to have some kind of append mode that lets me collect multiple pages and eventually create a single epub with individual chapters for each page.
For example, an article from the guardian newspaper shows right on the reader view but they don't show in different ebooks readers I tried.
Inspecting the created ebook shows they've been downloaded, however, there may be something wrong with the file names or that they don't have a "clear" extension.
i.e., the files are stored as:
2984.jpg?width=300&quality=45&auto=format&fit=max&dpr=2&s=268d9ccc054b66a94f0317ca4bf130ca
but if they are renamed to 2984.jpg
(and changed in the content.opf
and content.xhtml
) then it works fine.
Is that something that could be fixed on loadResources?
Firefox 106.0.1 on Ubuntu - As of a few days ago (I think possibly the latest Firefox update) epub-creator no longer downloads anything, whether it's just a plain webpage or a book on Overdrive. I click the button and nothing visibly changes. No activity in the debugging console or Firefox's network log.
I tried to convert this webpage, with the following markup:
<HTML><HEAD><TITLE>Rsync + Stunnel 4.x</TITLE></HEAD>
<BODY>
<H1>Rsync + Stunnel 4.x</H1>
<H2>Contents</H2>
<UL>
<LI><a href="#purpose">Purpose / Overview</a></LI>
<LI><a href="#source1">Building the Sources I</a></LI>
<LI><a href="#cert">Generating Certs</a></LI>
<LI><a href="#source2">Building the Sources II</a></LI>
<LI><a href="#stunnel">Configuring Stunnel</a></LI>
<LI><a href="#rsync">Configuring Rsync</a></LI>
<LI><a href="#firewall">Firewall</a></LI>
<LI><a href="#testing">Testing</a></LI>
<LI><a href="#credits">Credits</a></LI>
<LI><a href="#todo">TODO</a></LI>
</UL>
<H2><a name="purpose">Purpose / Overview</H2>
<blockquote>
<P>
A while back I went to a great <a href="http://www.tclug.org/">TCLUG<a/> meeting with Mick Bauer giving the main presentation.
I was impressed enough with his presentation to purchase a copy of his book: <a href="http://www.oreilly.com/catalog/bssrvrlnx/">Building Secure Servers
with Linux</a>. I also enjoy his Paranoid Penguin security related columns in the <a href="http://www.linuxjournal.com/">Linux Journal</a>.
<p>
One of Mick's columns and a portion of his book deal with setting up stunnel to tunnel rsync over
an SSL encrypted connection. Unfortunately, I had a heck of a hard time getting this to work because
Mick's documentation examples rely heavily on tcp-wrappers and Stunnel version 3.x syntax. Stunnel 4.x
has been stable for a long time and I always like to have my software up to date, so I wrote this
documentation to record my solution to this problem in the hopes that someone may find it useful and so I can
remember exactly what I did when I need to set this up again. If you find any errors or omissions, please
feel free to <a href="http://www.netbits.us/contact.php">contact</a> me.
<p>
All right then, it's go time.
</blockquote>
<H2><a name="source1">Building the Sources I</H2>
<blockquote>
As much as I like certain un-named Linux distros
which ends up like this in the converted file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Rsync + Stunnel 4.x</title>
</head>
<body>
<div xmlns="http://www.w3.org/1999/xhtml" class="container">
<div class="header reader-header">
<a class="domain reader-domain" href="http://www.netbits.us/docs/stunnel_rsync.html">netbits.us</a>
<h1 class="reader-title">Rsync + Stunnel 4.x</h1>
<div class="credits reader-credits"></div>
</div>
<hr /><div class="content"><div class="page"><div><a>
As much as I like certain un-named Linux distros
A significant part of the text is missing.
Version: 0.5.5
Sometimes there is text that is not included in the epub file, such as the "About the Author" text at the bottom of an article.
Could a "save selection" option be added? This would allow all the selected text to be included in the epub file.
Thank you very much!
hay posibilidad de que descargue un libro completo y no solo la pagina que este abierta?
Hi,
When I print preview this page:
I can see the images in the print preview. But when I save it as a epub, no images are saved.
Please help. Thanks.
Nice Addon but right now all generated epubs are empty...
Firefox 62.0.3 (64-Bit)
Hi,
nice plugin, but it didn't create the pictures.
I can provide the generated epub file but as it contains sensitive material I won't be uploading it here.
When I try to use this plugin to convert the Kanban Guide web page to an ePUB document, then it silently fails.
The plugin raises a prompt for the author. I confirm an author. But then no ePUB download occurs.
https://kanbanguides.org/english/
As a workaround, I am using a similar browser plugin, dotepub.
Thanks for the effort!
I tried in v0.5.4b8 (style setting = on) to convert some illustrated books, that typically have a large image all over the page, and the text rendering highly depending on the original font, being placed onto the appropriate places, and font settings such as colour (white font over dark illustration).
In the converted ebook, the images are in the middle, but the text is unstyled in the left upper corner of the page.
Thanks for this effort. You gave new life old ereader.
I have issues converting epub from this ebook format
https://alephdigital.publica.la/reader/the-myth-of-piers-plowman
The epub produced has only the follow message:
"Cookies required"
"Cookies are not enabled in your browser. Some features may not work properly"
I'm testing with FF's reader-mode. When I click to create epub:
.epub
which makes the "open with" or saving without changing name fail to open correctly with the ebook reader app from CalibreIdeally, .epub should be appended automatically, the save dialogue should have the portion excluding .epub
selected for name-change, and that portion should default to either a sanitized version of the URL or to the HTML title of the page being saved. That way, I could just click save and the default would be functional enough most of the time.
Otherwise, thanks for the great tool!
Greetings,
I think I have found a little "quality of life" issue (for a lack of better term) with this otherwise excellent addon. I save articles in multiple languages, but it seems that Epub Creator defaults to "English" on the epub metadata. This means that Pocketbook (both the reader I use and their Android app) and similar readers that support hyphenation on epub files will hyphenate e.g. finnish text with English ruleset and the results look quite strange for reading.
One way to remedy this issue is to use calibre to switch the language from English to finnish, but this is an extra step I need to repeat for every non-english epub created with Epub Creator.
I'm curious if you think it could be feasible to allow setting the language for the exported file manually within the extension, perhaps in similar way to how it prompts for "author" every time.
epub-creator has been failing to download from Overdrive for me recently.
Error message copied from the Firefox console, in case it's helpful:
GET
https://ofs-odread-authentication.api.overdrive.com/overdriveread/authenticate?book=c3b1fd73dc6bafd6c98645a109718963&code=D202&mime=text/html&p=T0SchYN6adzi2uTqSZl-3A&path=/_d/record_access_violation
[HTTP/2 400 162ms]
GET
https://ofs-odread-authentication.api.overdrive.com/overdriveread/authenticate?book=c3b1fd73dc6bafd6c98645a109718963&code=D202&mime=text/html&p=T0SchYN6adzi2uTqSZl-3A&path=/_d/record_access_violation
Status
400
VersionHTTP/2
Transferred946 B (737 B size)
Referrer Policyno-referrer-when-downgrade
DNS ResolutionSystem
cache-control
private
content-length
737
content-type
text/html; charset=utf-8
date
Mon, 27 May 2024 20:07:12 GMT
x-aspnet-version
4.0.30319
X-Firefox-Spdy
h2
x-powered-by
ASP.NET
Accept
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Encoding
gzip, deflate, br, zstd
Accept-Language
en-US,en;q=0.5
Connection
keep-alive
Cookie
_ga_K0KB8V5TMY=GS1.1.1707089600.1.1.1707089737.48.0.0; _ga=GA1.1.1792460112.1707089600; ga-client-id=5ce55a9c-574c-4b22-8897-1d64eb2c3e61; _ga_J0LSZC8WRK=GS1.1.1707090164.1.1.1707090488.60.0.0; _ga_2TBJKFXBXR=GS1.1.1707090174.1.0.1707090488.0.0.0
DNT
1
Host
ofs-odread-authentication.api.overdrive.com
Priority
u=4
Referer
https://ofs-c3b1fd73dc6bafd6c98645a109718963.read.overdrive.com/?d=eyJvdXRsZXQiOiJyZWFkIiwidG9rZW4iOiJtdWx0bm9tYWhjdHlvci01MDg2MTE4IiwiYWNjZXNzIjoiZiIsImV4cGlyZXMiOjE3MTg2NDg3NTYsInRoZW1lIjoiZGVmYXVsdCIsInN5bmMiOjEsInBwYXJhbSI6IlQwU2NoWU42YWR6aTJ1VHFTWmwtM0EiLCJ0ZGF0YSI6eyJDUklEIjoiMGNiNGE4NzgtOTQwMS00YzY1LThlODktN2RkZTYwOTlkNThkIiwiZm9ybWF0IjoiNjEwIn0sInRpbWUiOjE3MTY4MzQzNTksImJ1aWQiOiJjM2IxZmQ3M2RjNmJhZmQ2Yzk4NjQ1YTEwOTcxODk2MyIsIl9jIjoiMTcxNjgzNDM2NDQ5NCJ9--470a15c2d8d0dd4b61b44e731c3c422756b6c0fa&p=T0SchYN6adzi2uTqSZl-3A
Sec-Fetch-Dest
iframe
Sec-Fetch-Mode
navigate
Sec-Fetch-Site
same-site
Sec-GPC
1
TE
trailers
Upgrade-Insecure-Requests
1
User-Agent
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
I found that Firefox reader mode works with posts in Discourse, for example https://meta.discourse.org/t/discourse-moderation-guide/63116
However, trying to export an epub of that gives: "TypeError: parsed is null"
getting an error that says global.crypto.subtle
is undefined on some pages
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.