Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 10-02-2014, 08:26 AM   #841
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,785
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I like the smaller reorganized windows that can also have scroll bars. Thank you both.
JSWolf is offline   Reply With Quote
Old 10-02-2014, 08:58 PM   #842
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by Rev. Bob View Post
However, I do have the merge downloaded (surprisingly easy on the same platform) and should be able to post the unified update tomorrow. Or, depending on your perspective, later today. It's in the mix, is what I'm saying.
Apologies for the delay, but I took the opportunity to track down and address a couple of minor bugs. The complete changelog entry for this version reads:

Quote:
Version 1.3.12 - 02 Oct 2014
Fixed minor bug in "stripkobo" option that missed some Kobo artifacts inside the HEAD element.
Fixed minor spacing bugs in "unpretty" option.
Enhancement to "stripkobo", "stripspans", and "unpretty" options: All three now remove </br> and </hr> tags and always make BR and HR self-closing elements. (This fixes invalid <br> and <hr> markup, if such is present.)
Moved "stripkobo", "stripspans", and "unpretty" into the "Known artifacts" category to balance the dialog box better.
Added some code to dialogs.py to make the dialog box scrollable on smaller screens.
Help file: Filled in how one can detect the need to smarten punctuation. (Was previously blank.)
I have deleted the two earlier 1.3.12 betas from those posts and attached the new one here; that way, infrequent visitors here won't pick up the wrong one.

In case anyone's curious about the need (or lack thereof) for the self-closing BR/HR enhancement, here's my reasoning:

Some software, such as LibreOffice Writer, treats those two elements as being standalone with no closing tag. That is, when saving a document as HTML, it will render a line break as <br> instead of the <br/> required by XHTML (and therefore EPUB). The fix I came up with is to always remove </br> and </hr> tags (to address the rare but valid <br></br> construction in the even rarer event that there is a LF between the open and close), then always force BR and HR to end with /> instead of >.

If you gather from the above that I may have wrangled with that issue recently, you just might be on to something...
Attached Files
File Type: zip Modify ePub 1.3.12.zip (67.0 KB, 209 views)
Rev. Bob is offline   Reply With Quote
Advert
Old 10-02-2014, 09:04 PM   #843
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by AlanHK View Post
In its "Help", under "Smarten punctuation" the "How to detect" column is blank; however that is detected by the Quality Check plugin option "Check smarten punctuation".
As noted immediately above, since I had to patch a couple of bugs anyway, I've fixed this oversight in the newest beta. (I didn't forget...)
Rev. Bob is offline   Reply With Quote
Old 10-03-2014, 08:52 AM   #844
readx
Connoisseur
readx 's ceiling is 100% spider-free.readx 's ceiling is 100% spider-free.readx 's ceiling is 100% spider-free.readx 's ceiling is 100% spider-free.readx 's ceiling is 100% spider-free.readx 's ceiling is 100% spider-free.readx 's ceiling is 100% spider-free.readx 's ceiling is 100% spider-free.readx 's ceiling is 100% spider-free.readx 's ceiling is 100% spider-free.readx 's ceiling is 100% spider-free.
 
Posts: 94
Karma: 118402
Join Date: Jul 2009
Device: Cybook Gen3

It looks great and works even better
readx is offline   Reply With Quote
Old 10-10-2014, 02:14 PM   #845
fernando2112
Member
fernando2112 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2014
Device: Kindle Paperwhite 2015
Hi,

I am new to this forum and ebook readers world, just bought a Kobo Glo, and already have a few issues with css rules.

When converting to kepub, things like text-align center on <div> or <p> tags just don't work anymore, and a few others rules.

So I searched this forum and found this plugin, and some people talking about the kobo hacking style code that it adds to the kepub and mess with our css rules, and this plugin can remove it, so the kepub works more like the epub version.

I tried the plugin, but my book still fail to recognize simple rules like text-align center on <div> or <p>.

I must admit that I still don't understand all the options in the plugin, and don't know if I am doing something wrong, or if I didn't understand the functionality of it. As I said, I am new to all of this, still learning about all those tweaks.

I appreciate any advice you can give.
Thank you very much
fernando2112 is offline   Reply With Quote
Advert
Old 10-10-2014, 07:01 PM   #846
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by fernando2112 View Post
When converting to kepub, things like text-align center on <div> or <p> tags just don't work anymore, and a few others rules.

So I searched this forum and found this plugin, and some people talking about the kobo hacking style code that it adds to the kepub and mess with our css rules, and this plugin can remove it, so the kepub works more like the epub version.
That sounds like you're starting with a regular EPUB, then using a plugin to make it a kepub, and that's where you get problems. In that situation, you should report the problem as a bug in that plugin's thread, as it sounds to me from your description as if that conversion is introducing problems.
Rev. Bob is offline   Reply With Quote
Old 10-10-2014, 08:38 PM   #847
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by fernando2112 View Post
I tried the plugin, but my book still fail to recognize simple rules like text-align center on <div> or <p>.
Check that you have the justification button set to "Off" in the device's font menu, otherwise the kepub reader sets the text-alignment for <div> and <p> elements to left/justify in the device's built-in stylesheet, which overrides the book's stylesheet.
GeoffR is offline   Reply With Quote
Old 10-11-2014, 04:04 PM   #848
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,730
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
v1.3.12 Released

I have uploaded Rev. Bob's version to the first post - all thanks to him for making the changes.
kiwidude is offline   Reply With Quote
Old 10-11-2014, 10:36 PM   #849
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,785
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kiwidude View Post
I have uploaded Rev. Bob's version to the first post - all thanks to him for making the changes.
Thank you both Kiwidude and Rev. Bob. This is a very useful plugin and the latest additions make it even better.
JSWolf is offline   Reply With Quote
Old 10-14-2014, 01:26 AM   #850
fernando2112
Member
fernando2112 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2014
Device: Kindle Paperwhite 2015
Quote:
Originally Posted by Rev. Bob View Post
That sounds like you're starting with a regular EPUB, then using a plugin to make it a kepub, and that's where you get problems. In that situation, you should report the problem as a bug in that plugin's thread, as it sounds to me from your description as if that conversion is introducing problems.
Sorry for taking long to answer.

Yes, I am using a plugin on Calibre to conver to kepub.
But the tip from GeoffR on the next quote below solved the problem partially. Don't know if it is kobo related, or the convert plugin, as you said.

Quote:
Originally Posted by GeoffR View Post
Check that you have the justification button set to "Off" in the device's font menu, otherwise the kepub reader sets the text-alignment for <div> and <p> elements to left/justify in the device's built-in stylesheet, which overrides the book's stylesheet.
Thanks for the advice, it solved my problem.

The only catch is that I can't change alignments for the whole text when I want, without messing up with specific parts of text that are aligned center.

If someone likes left and someone likes full justify, when they set the alignment, the parts which were centered, reset again.

But like Rev. Bob said, probably it's not related with Modify ePub plugin, maybe it's an issue with kobo rendering the css.

Thanks both of you for the answers
fernando2112 is offline   Reply With Quote
Old 10-14-2014, 03:59 AM   #851
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by fernando2112 View Post
The only catch is that I can't change alignments for the whole text when I want, without messing up with specific parts of text that are aligned center.

If someone likes left and someone likes full justify, when they set the alignment, the parts which were centered, reset again.
Edit: I thought I knew how to get around this, but after testing it doesn't work with kepubs. One more to add to my ever-growing list of reasons to read epub instead of kepub I guess.

Last edited by GeoffR; 10-14-2014 at 04:40 AM. Reason: doesn't work.
GeoffR is offline   Reply With Quote
Old 10-14-2014, 12:00 PM   #852
fernando2112
Member
fernando2112 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2014
Device: Kindle Paperwhite 2015
Quote:
Originally Posted by GeoffR View Post
Edit: I thought I knew how to get around this, but after testing it doesn't work with kepubs. One more to add to my ever-growing list of reasons to read epub instead of kepub I guess.
Yeah, ePub works way better on Kobo than kepub. And I have the Kobo Glo for a week now, I am still testing and learning about all the issues.

With ePubs, a lot of the formatting that works on iPad's iBooks (I used to have one) and works on Sigil book view, when converted to kepub, does not work anymore. It is making me have a hard time, because I have to modify a lot of things that usually works fine with other readers.

The only thing that is making me use kepub right now, is because of title bar and bottom page numbers, which seems not to work with ePub the way I wanted.
fernando2112 is offline   Reply With Quote
Old 10-15-2014, 09:38 PM   #853
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Consider this a public service non-announcement...

I'm still making some touch-ups and tweaks to the "unpretty" function, but I'm deliberately dragging my feet on releasing those changes. Part of it is that I want to run some more tests, but I also don't consider this enough of an improvement to justify an update.

Now, if a bug needs fixed or some other enhancement comes along and an update is justified on those grounds, naturally I'm prepared to bundle these changes in at the same time...but otherwise, my stance is that 1.3.12 works fine and I don't want to bug kiwidude (or the rest of the community) over such a minor change.

One such change is something that's been brought up to me: one user has reported that some of the older code in the plugin doesn't seem to do anything, and he speculates that it may be legacy code that could be safely stripped out. I can't properly assess that, as I haven't studied all the dependencies...but if it's true and kiwi (or one of the other devs here) wants to look into that, I would ask that they give me a heads-up before releasing an update, so the unpretty update can tag along.
Rev. Bob is offline   Reply With Quote
Old 10-15-2014, 11:16 PM   #854
Kaetrin
Connoisseur
Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.
 
Kaetrin's Avatar
 
Posts: 82
Karma: 9402
Join Date: Jul 2009
Location: Adelaide, South Australia
Device: Kobo Libra Colour
@Rev. Bob I've installed the [deleted] and modify ePub plugins. There are a lot of settings in the modify ePub plugin - which do you recommend to fix kepubs as a general rule?

Last edited by pdurrant; 10-28-2014 at 05:08 AM.
Kaetrin is offline   Reply With Quote
Old 10-16-2014, 12:04 AM   #855
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by Kaetrin View Post
@Rev. Bob I've installed the [deleted] and modify ePub plugins. There are a lot of settings in the modify ePub plugin - which do you recommend to fix kepubs as a general rule?
When I'm cleaning my own, I apply stripkobo and stripspans, as well as unpretty and a few other bits...but stripkobo alone is the "surgical" option. That's exactly what that routine exists to do; anything else is gravy.

Last edited by pdurrant; 10-28-2014 at 05:08 AM.
Rev. Bob is offline   Reply With Quote
Reply

Tags
modify epub


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Quality Check kiwidude Plugins 1251 07-07-2025 09:13 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Manage Series kiwidude Plugins 167 07-28-2024 03:07 PM
Modify ePub plugin dev thread kiwidude Development 346 09-02-2013 05:14 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 08:50 PM.


MobileRead.com is a privately owned, operated and funded community.