Comments (11)
The problem is less about building the epubs and more about filtering certain problems that appear on some pages within baka-tsuki that may cause issues with certain readers.
We already know the common formats for an epub in fact i was the one who suggested we adopt the more common format (we made slight changes to prevent issues on some OS cough_windows_cough)
from webtoepub.
@typhoon71
Not a bad suggestion. The problem is finding what really are "well formatted epubs".
What would also be useful is a list of what changes you need to manually make to the epubs that WebToEpub generates? Then I can look at automating that. Similar to Belldandu's comment, what are the "oddball cases" we run into on Baka-Tsuki?
from webtoepub.
I think the extension is doing pretty great. Just need to fix a few errors here and there and it will work almost perfectly with Baka-Tsuki. Not sure about other sites, since there haven't been any feedback from their users for a while...
As for formatting, I'd suggest adding a few more rules in the default stylesheet. (I can help with that if you decide to do that).
from webtoepub.
I'd suggest adding a few more rules in the default stylesheet. (I can help with that if you decide to do that).
Someone already sent me some suggestions. However, I seem to have mislaid them. If that was you, I apologise. That said, sure, please post your recommendations. Note: I don't promise to include them, but I will give them serious consideration.
from webtoepub.
This is the general css I throw in for epubs made from BT pages.
(Apparently I can't upload css files, so saved it as text)
stylesheet.txt
from webtoepub.
You can do it like this, I think.
/*Style for svg images. I got this from BTE-Gen epunbs. Works nicely.*/
div.svg_outer {
display: block;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
text-align: left;
}
div.svg_inner {
display: block;
text-align: center;
}
/*Centered headings and some margin to make sure it's not too close to the content.*/
h1, h2 {
text-align: center;
page-break-before: always;
margin-bottom: 10%;
margin-top: 10%;
}
h3, h4, h5, h6 {
text-align: center;
margin-bottom: 15%;
margin-top: 10%;
}
/*Style for lists. Calibre sometimes has issues with the placement of lists, this fixes it.*/
ol, ul {
padding-left: 8%;
}
/*In case there are images in img tags. It's up to you.*/
img {
display: block;
max-height: 100%;
max-width: 100%;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
margin-left: auto;
margin-right: auto;
margin-bottom: 2%;
margin-top: 2%;
}
/* To make hr tags more visible. BT doesn't use them very often but other sites might.*/
hr {
color: black;
background-color: black;
height: 2px;
}
/*Styling all links.*/
a:link {
text-decoration: none;
color: #0B0080;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: underline;
}
from webtoepub.
Well there is one issue @dteviot when i tried to place everything in OEBPS/Styles/stylesheet.css
and then include that file everywhere i got some annoying complaints from epubcheck about the link tag not being allowed (not sure if this is still a problem or not since the dirty hack for doctype was implemented).
I will be looking into it tomorrow though.
EDIT:
I also tried this before too <?xml-stylesheet href="../Style/style.css" type="text/css"?>
while epubcheck didn't complain NONE of the epub readers including calibre understood this (which means lots of bug reports are needed for all epub readers about this).
Literally all the readers ignored the stylesheet
EDIT 2: After looking i noticed that you already added the link tag in so i guess its now just a matter of checking if epubcheck complains.
from webtoepub.
epubcheck likes it now :D
from webtoepub.
@toshiya44
You've probably noticed, but in case you haven't, the default Stylesheet now uses the settings you've suggested.
from webtoepub.
Yup, I've noticed :D
from webtoepub.
I now run epubcheck against output to check for issues.
And stylesheet has been added.
So closing.
from webtoepub.
Related Issues (20)
- Please add site https://www.novelsquare.com/book/spoiled-by-mr-russell/?page=4
- RoyalRoad issue when downloading HOT 4
- Failed to get images in forum.questionablequesting.com HOT 4
- Cannot find all the chapters on noveldrama.com HOT 10
- not able to download from panda. HOT 2
- Please add site https://www.lightsnovel.com HOT 4
- AO3 doesnt work HOT 7
- Firefox Mobile - Mark as Android Compatible HOT 12
- Please add site https://www.inkitt.com/stories/romance/1045211 HOT 2
- Is it possible to create a Universal Default Parser to automatically work for all similarly configured free Wordpress sites? HOT 1
- Error on line 1 at column 1106: error parsing attribute name HOT 1
- Please add site https://novelmax.net HOT 3
- Please add site https://www.chereads.com/novel/27556758508010405-immortality-my-cultivation-has-no-bottleneck/chapter1-74462948461957471 HOT 1
- Wrong Language in EPUB causes ‘Send To Kindle’ to fail HOT 1
- Plz add this one. https://novelsparadise.net/ HOT 2
- fails to get epub from volarenovels.com HOT 1
- Please add site webnovel HOT 2
- Get chapter list using WordPress API HOT 2
- Please add site https://bato.to HOT 1
- Please add site https://libread.com/ HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webtoepub.