Re: ePUB Generator
Posted: Mon Jun 20, 2016 2:54 am
hmmm, well, the last novel I haven't got any issues was Leviathan v4, so I guess I'll start from the novels I dl'd after that and check
I'm afraid I don't have the knowledge needed to contribute to the code myself, but I tried the extension and it ended up fetching lower resolution versions of the images which I had to manually replace with full resolution versions using Sigil. Was this by design?Index wrote:So you guys know, i am actively working on development from the chrome extension.
Originally opened an issue for an enhancement to add general wayback machine support for all sites
https://github.com/dteviot/WebToEpub/issues/2
Which i then escalated later to a pull request which both me and the author discussed.
https://github.com/dteviot/WebToEpub/pull/3
Then someone asked about fixing the epub formating (including making images that are dups be removed and improving resolution of files and a few other things.) i Fixed the first part of his issue and said i would deal with the other 2 parts as well.
https://github.com/dteviot/WebToEpub/issues/4
Anyone that knows javascript that wants to beat me to the pie on this one is welcome to do so. This is low priority for me right now.
https://github.com/dteviot/WebToEpub/issues/5
And ah yes adding firefox compatibility using WebExtensions. This is extremely Low priority for me since WebExtensions are still in beta and are not mainlined yet.
https://github.com/dteviot/WebToEpub/issues/6
Yes, it was by design. However, due to overwhelming complaints, the latest version (0.0.0.4) now fetches the highest resolution images. My thanks to Index.Guest wrote:I tried the extension and it ended up fetching lower resolution versions of the images which I had to manually replace with full resolution versions using Sigil. Was this by design?
Code: Select all
https://www.baka-tsuki.org/project/index.php?title=The_Zashiki_Warashi_of_Intellectual_Village:Volume9
Code: Select all
https://www.baka-tsuki.org/project/images/3/31/Zashiki_v09_000.jpg
Code: Select all
https://www.baka-tsuki.org/project/index.php?title=The_Zashiki_Warashi_of_Intellectual_Village
Code: Select all
https://www.baka-tsuki.org/project/images/3/30/Zashiki_Volume_9_Cover.jpg
Code: Select all
<div class="svg_outer svg_inner">
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 x y" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
<image height="y" width="x" xlink:href="../Images/filename.jpg"></image>
</svg>
</div>
Code: Select all
<ul class="gallery mw-gallery-traditional">
<div class="gallerytext">
<p><b>(caption)</b>
</p>
</div>
</div></li>
<li class="gallerybox"><div>
<div class="svg_outer svg_inner"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" width="100%" version="1.1" preserveAspectRatio="xMidYMid meet" viewBox="0 0 x y"><image xlink:href="../Images/filename.jpg" height="y" width="x"></image></svg>
</div>
<!--And so on and so forth with the rest of the illustrations-->
</ul>
I managed to fix the bullet points and duplicate images here https://github.com/dteviot/WebToEpub/pull/10 which when accepted should make it into 0.0.0.5Astral Cat wrote:First of all thanks for your work on the Chrome extension, it's been a godsend since BTE-GEN started acting up after the server move.
Could I make a couple of suggestions that would introduce more parity with the design EPUBs created by BTE-GEN?
Firstly, as far as I see using the extension creates a EPUB wherein all the images are renamed to image(number).jpg, would it be at all possible to preserve the Baka-Tsuki filenames instead?
Secondly, the way the old generator was set up, the color illustrations sections would have illustrations set up like so
This creates a nice clean page with just an illustration.Code: Select all
<div class="svg_outer svg_inner"> <svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 x y" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink"> <image height="y" width="x" xlink:href="../Images/filename.jpg"></image> </svg> </div>
The extension on the other hand packs in the whole gallery's HTML, wherein all the illustrations are part of an unordered list
This results in some unsightly bullet points attached to each and every one of the images when viewed in an epub viewer, which for those images that lack captions are simply bullet points with nothing attached to them.Code: Select all
<ul class="gallery mw-gallery-traditional"> <div class="gallerytext"> <p><b>(caption)</b> </p> </div> </div></li> <li class="gallerybox"><div> <div class="svg_outer svg_inner"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" width="100%" version="1.1" preserveAspectRatio="xMidYMid meet" viewBox="0 0 x y"><image xlink:href="../Images/filename.jpg" height="y" width="x"></image></svg> </div> <!--And so on and so forth with the rest of the illustrations--> </ul>
If there was any way for the extension to strip out the list code and just leave the images in that would go a long way to making a more aesthetically pleasing outcome.
As for this one refer here https://github.com/dteviot/WebToEpub/issues/9Guest wrote:On the topic of cover issues with the extension, could I make a suggestion, to allow the setting of covers using an image from any URL instead of just those available on the page?
For example, take this page
As visible on that page itself (and therefore available for packing by the extension), the closest one can get to a cover would beCode: Select all
https://www.baka-tsuki.org/project/index.php?title=The_Zashiki_Warashi_of_Intellectual_Village:Volume9
However, this is too wide as it includes the front cover, the spine, and the back cover as well.Code: Select all
https://www.baka-tsuki.org/project/images/3/31/Zashiki_v09_000.jpg
If on the other hand one were to check the main series page,
there is a much better option available to act as a cover, not present on the volume's full text page.Code: Select all
https://www.baka-tsuki.org/project/index.php?title=The_Zashiki_Warashi_of_Intellectual_Village
As-is, the extension does not allow for setting this as the cover, and therefore the epub needs to be manually tweaked after the fact to replace the cover.Code: Select all
https://www.baka-tsuki.org/project/images/3/30/Zashiki_Volume_9_Cover.jpg
Since I'm uncertain if there is any practical easy one-size-fits-all fix to somehow magically detect the presence of a cover image on a page other than the one being viewed, then a solution could be to allow entering an image URL to fetch a specific image to act as cover.
It's whenever a chapter is complete, I think, not specifically volumes, but the BT twitter and FB community list updates.HoennSquall wrote:idiot question but where do I check which volumes are recently finished? been using the epub gen's update page for that, but since it's now gone.....
Well the WebToEpub extension is really just a web page. (It's just HTML and javascript) and it only uses a tiny bit of Chrome specific stuff to find the URL of the user's current page when it starts.amit34521 wrote:Can someone add a similar generator for the mobile users or some other option for the mobile users who used the epub generator before???
Side note i have a dedicated server so i honestly don't mind hosting it at webtoepub.ilp.moedteviot wrote:Well the WebToEpub extension is really just a web page. (It's just HTML and javascript) and it only uses a tiny bit of Chrome specific stuff to find the URL of the user's current page when it starts.amit34521 wrote:Can someone add a similar generator for the mobile users or some other option for the mobile users who used the epub generator before???
I think it could easily converted into an ordinary web page that you just browse to, type in the URL you want processed and then hit load. I'd just need a Web server that's willing to host the HTML and javascript.
Do you want to talk to the Baka-Tsuki admins? Maybe could be hosted here?
Another possibility is this:
http://lifehacker.com/chrome-for-ios-ad ... 1637664312
Note, given the enormous "pain in the ass" getting Apple to approve an app is, I'm not prepared to do this. But the code is open source, so if you want to go to the pain and expense of trying to get Apple approval, you have my blessing. Incidentally, someone told me a literal interpretation of Apple's approval process strictly forbids open source.
dteviot wrote:Well the WebToEpub extension is really just a web page. (It's just HTML and javascript) and it only uses a tiny bit of Chrome specific stuff to find the URL of the user's current page when it starts.amit34521 wrote:Can someone add a similar generator for the mobile users or some other option for the mobile users who used the epub generator before???
I think it could easily converted into an ordinary web page that you just browse to, type in the URL you want processed and then hit load. I'd just need a Web server that's willing to host the HTML and javascript.
Do you want to talk to the Baka-Tsuki admins? Maybe could be hosted here?
Another possibility is this:
http://lifehacker.com/chrome-for-ios-ad ... 1637664312
Note, given the enormous "pain in the ass" getting Apple to approve an app is, I'm not prepared to do this. But the code is open source, so if you want to go to the pain and expense of trying to get Apple approval, you have my blessing. Incidentally, someone told me a literal interpretation of Apple's approval process strictly forbids open source.