View Single Post
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, 213 views)
Rev. Bob is offline   Reply With Quote