Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-23-2017, 04:48 AM   #1111
oren64
I need a chapter break
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 3,256
Karma: 44606080
Join Date: Mar 2015
Location: Israel
Device: kobo glo
Request

Request to add a request function to remove the font size style.
It increase or decrease the book font size.

It show in every html part, for example:

Code:
<html xmlns="http://www.w3.org/1999/xhtml" style="font-size:1.111rem;">

Last edited by oren64; 10-23-2017 at 05:07 AM.
oren64 is offline   Reply With Quote
Advert
Old 10-23-2017, 01:46 PM   #1112
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,510
Karma: 7678924
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo Glo, Kobo H2O, Kindle Touch
Quote:
Originally Posted by oren64 View Post
Request to add a request function to remove the font size style.
It increase or decrease the book font size.

It show in every html part, for example:

Code:
<html xmlns="http://www.w3.org/1999/xhtml" style="font-size:1.111rem;">
It shows in every one? I haven't seen it in any of my thousands of ebooks. Where does your example come from?

Aside from that, I see four issues with this request.

First and foremost, there's already a way to do this - in calibre's "convert to EPUB" function, IIRC - so why reinvent the wheel in Modify? Second, there are so many ways to set a starting font size for the book (such as by attaching a class to the BODY element and defining that class's font size) that I'm bound to overlook one. Third, the Modify logic isn't really set up to do this, so doing it correctly would be a significant undertaking. Fourth, while the limited case of "remove the STYLE attribute from the HTML element, if present" is doable, I've never seen that, so I have to ask whether this is a genuine problem or just one weird book. If the latter, the optimal solution is to open the book in the editor and just do a global search-and-replace to fix it.

That's without even getting into the question of whether this would be a wise feature to add...
Rev. Bob is offline   Reply With Quote
Old 10-23-2017, 02:10 PM   #1113
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 21,066
Karma: 20800802
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab 2(RIP)
Rev Bob
I've only seen REM units used in Kindle books
and I don't remember seeing it in that declaration
theducks is offline   Reply With Quote
Old 10-24-2017, 05:05 AM   #1114
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,510
Karma: 7678924
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo Glo, Kobo H2O, Kindle Touch
Quote:
Originally Posted by theducks View Post
Rev Bob
I've only seen REM units used in Kindle books
and I don't remember seeing it in that declaration
I've gotten a lot of Kindle books, and although I occasionally see REMs, it's not even close to universal, and I've never seen it there.
Rev. Bob is offline   Reply With Quote
Old 10-24-2017, 06:00 AM   #1115
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 4,056
Karma: 8578453
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, Kobo AuraHD/Aura6"/AuraH2O/GloHD/AuraOne
Quote:
Originally Posted by Rev. Bob View Post
I've gotten a lot of Kindle books, and although I occasionally see REMs, it's not even close to universal, and I've never seen it there.
I've seen it often enough in AZW3 <html> tags to have set up a saved search/replace in the calibre Editor to get rid of the PITA.

It's quite a long time since I bought from Amazon (a small personal protest at the abomination which is KFX) so I don't know whether any recent AZW3s are still using it.
jackie_w is offline   Reply With Quote
Advert
Old 11-27-2017, 06:13 PM   #1116
deback
I love Calibre!
deback began at the beginning.
 
Posts: 108
Karma: 10
Join Date: May 2015
Device: Laptop
Is there a plugin to remove page-map.xml files?

Is there a Calibre plugin to remove page-map.xml files? I haven't been able to find one, so I decided to ask here. Thank you.
deback is offline   Reply With Quote
Old 11-27-2017, 06:52 PM   #1117
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 9,269
Karma: 7809999
Join Date: Mar 2012
Location: Sydney Australia
Device: none
None that I know of, maybe it could be added to the Modify plugin.
BetterRed is offline   Reply With Quote
Old 11-27-2017, 08:00 PM   #1118
deback
I love Calibre!
deback began at the beginning.
 
Posts: 108
Karma: 10
Join Date: May 2015
Device: Laptop
That would be great, if it could be added to the Modify EPUB plugin, which is a great plugin.
deback is offline   Reply With Quote
Old 11-27-2017, 11:29 PM   #1119
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 9,269
Karma: 7809999
Join Date: Mar 2012
Location: Sydney Australia
Device: none
In that case post a request in the Modify plug-in thread, someone might consider adding an option.

BR
BetterRed is offline   Reply With Quote
Old 11-28-2017, 11:50 AM   #1120
Divingduck
Guru
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 911
Karma: 1216240
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Quote:
Originally Posted by deback View Post
Is there a Calibre plugin to remove page-map.xml files? I haven't been able to find one, so I decided to ask here. Thank you.
Why will you delete this file from an ebook? It provide the page reference for the print version. There is nothing wrong with this file within ebooks.
Divingduck is offline   Reply With Quote
Old 11-29-2017, 09:18 AM   #1121
BeckyEbook
Member
BeckyEbook began at the beginning.
 
BeckyEbook's Avatar
 
Posts: 24
Karma: 10
Join Date: Jan 2017
Location: Poland
Device: Kindle (Key3, PW2, PW3), Nook (ST, GLP), Kobo Touch, Tolino Vision 2
Quote:
Originally Posted by deback View Post
That would be great, if it could be added to the Modify EPUB plugin, which is a great plugin.
Modified version of the Modify EPUB plugin with the added ability to delete page-map.xml files.
Attached Files
File Type: zip Modify ePub.zip (217.7 KB, 7 views)
BeckyEbook is offline   Reply With Quote
Old 11-29-2017, 10:29 AM   #1122
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,348
Karma: 13599903
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Moderator Notice
Moved discussion to the Modify epub thread.
DoctorOhh is offline   Reply With Quote
Old 11-30-2017, 06:08 AM   #1123
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,510
Karma: 7678924
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo Glo, Kobo H2O, Kindle Touch
Quote:
Originally Posted by Divingduck View Post
Why will you delete this file from an ebook? It provide the page reference for the print version. There is nothing wrong with this file within ebooks.
I'd like to see an answer for this question as well; I share DD's bafflement at the request. A page-map file is technically not part of the EPUB spec, but as a practical matter, it's a useful extension that the Adobe rendering engine actively uses.

It's also worth noting that this type of page reference can also take the form of an NCX pageList element; rather than eradicating the page-map file entirely, my inclination would be to use it to create a pageList section - either in addition to or instead of the page-map.
Rev. Bob is offline   Reply With Quote
Old 12-01-2017, 02:04 AM   #1124
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 3,784
Karma: 15026934
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air
Quote:
Originally Posted by BeckyEbook View Post
Modified version of the Modify EPUB plugin with the added ability to delete page-map.xml files.
The plugin does not work for me. I tested it on 6 books and the error log posted is pretty much the same for all of them. The KeyError: u'remove_page_map' error looks suspiciously like it relates to the changes for page-map.xml files.

Code:
calibre, version 3.12.0
ERROR: Modify ePub failed: No ePub files were updated

Modify ePubs
Logfile for book ID 4085 (Alphabet Soup / Ann Onymous)
4085
  Modifying:  C:\Users\David\AppData\Local\Temp\calibre_t_57ch\rcqvps_modify_epub\4085.epub
Parsing xml file: content.opf
Parsing xml file: toc.ncx
	Looking for files to remove: [u'iTunesMetadata.plist', u'iTunesArtwork']
	Looking for files to remove: [u'META-INF/calibre_bookmarks.txt']
	  Found file to remove: META-INF/calibre_bookmarks.txt
	Looking for files to remove: [u'.DS_Store', u'thumbs.db']
Alphabet Soup - ERROR: Traceback (most recent call last):
  File "calibre_plugins.modify_epub.modify", line 80, in process_book
  File "calibre_plugins.modify_epub.modify", line 133, in _process_book
KeyError: u'remove_page_map'

ePub not changed after 0.59 seconds
Edit: After updating to Calibre 3.13.0, I re-ran Modify Epub against the same files and no errors.

Last edited by DNSB; 12-01-2017 at 02:10 AM.
DNSB is offline   Reply With Quote
Old 12-01-2017, 02:31 AM   #1125
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 9,269
Karma: 7809999
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@Rev. Bob - This is in a closed consumer group situation.

We decided to remove page-maps from 'books' which were subject to a continuous update process. They weren't used for either for their intended or any nefarious purpose - so maintaining them was a waste of time. We removed them when we updated the content in Sigil.

The 'books' aren't books in the common parlance, more like rolling 'Live' articles that news sites have.

The person who instigated their use came from the traditional book publishing domain.

BR

Last edited by BetterRed; 12-01-2017 at 02:34 AM.
BetterRed is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Manage Series kiwidude Plugins 132 11-01-2017 12:51 PM
[GUI Plugin] Quality Check kiwidude Plugins 874 10-31-2017 10:34 PM
[GUI Plugin] Open With kiwidude Plugins 328 08-21-2017 12:34 AM
Modify ePub plugin dev thread kiwidude Development 346 09-02-2013 06:14 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


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


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