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 04-04-2016, 10:58 AM   #1051
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: 19,032
Karma: 17319056
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Astak Pocket Pro, K4NT,Galaxy Tab 2
Quote:
Originally Posted by BetterRed View Post
You can select an arbitrary number of saved searches in the 'usual' way (ctrl+left mouse button click) and execute them - Find/Replace/Replace All.

I don't think there's a way to save the multi item selection so you can reuse.

BR
I just gleaned this.
The simple difference between Calibre and Sigils way, is you could run the group in Sigil.

The (chain) Order in which replaces are done can be important in many cases. Does the selection list ALWAYS run from top to bottom?
theducks is offline   Reply With Quote
Old 04-04-2016, 12:06 PM   #1052
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 29,068
Karma: 7373157
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can re-order the entries in that list and filter them by any string, which means the functionality is a strict superset of groups. It is less discoverable than groups however.
kovidgoyal is offline   Reply With Quote
Old 04-05-2016, 03:41 AM   #1053
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: 696
Karma: 214138
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Quote:
Originally Posted by Rev. Bob View Post
Could you expand on that a bit?
As Kovid and BetterRed already answered thats the way I do it. In addition I collect similar S&R definitions together and export/import it as S&R sets. This give me the opportunity to have a more or less clean set of actions available what can be used when ever I need a suitable set for S&R.

Edit:
Maybe this pic will give you aa example how I use S&R with the editor
Attached Thumbnails
Click image for larger version

Name:	S&R.JPG
Views:	84
Size:	300.0 KB
ID:	147608  

Last edited by Divingduck; 04-05-2016 at 04:00 AM.
Divingduck is offline   Reply With Quote
Old 04-08-2016, 04:39 AM   #1054
Francois_C
Connoisseur
Francois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipse
 
Francois_C's Avatar
 
Posts: 98
Karma: 8300
Join Date: Jul 2012
Location: France
Device: Kobo Aura H2O, Kobo Touch, Kobo Mini
Quote:
Originally Posted by theducks View Post
I also use a unique, class for clarity when it encompasses the whole paragraph,
Code:
<p class="foo">Stuff</p>
instead of
Code:
<p class="foo"><span class="bold"><span class=:big">Stuff</span></span></p>
Bigger CSS, but smaller TEXT section files
I often redefine <p> this way:
Code:
p {font-size:1em;text-align:justify;text-indent:0;margin:0 0 0 0}
p + p {text-indent:1em}
and replace all occurrences of:
Code:
<p class="foo"><span class="bold"><span class=:big">
with <p> and remove the unused classes. This may considerably reduce the HTML size.

French editors often use such delirious class names as
Code:
<p class="texte_courant_avec_indentation">
and this tag is repeated, say, 3,000 times in the text: if you replace it with <p>, you spare 39*3,000=117,000 characters.
Francois_C is offline   Reply With Quote
Old 04-08-2016, 05:36 AM   #1055
chrisridd
Evangelist
chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.
 
chrisridd's Avatar
 
Posts: 410
Karma: 56114
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura
@Francois_C The zip compression used in epubs is likely to compress all those crazy_long_class_names down anyway, so I doubt you're saving space in the epub. Similarly all those slightly wordy <span class="bold"> ....things - any time you have repeated text that gets compressed really well.

You might save some RAM when the ereader has to open and uncompress the chapter though.
chrisridd is offline   Reply With Quote
Old 04-08-2016, 08:00 AM   #1056
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: 43,555
Karma: 29094515
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by chrisridd View Post
@Francois_C The zip compression used in epubs is likely to compress all those crazy_long_class_names down anyway, so I doubt you're saving space in the epub. Similarly all those slightly wordy <span class="bold"> ....things - any time you have repeated text that gets compressed really well.

You might save some RAM when the ereader has to open and uncompress the chapter though.
You are saving space removing those long class names.
JSWolf is offline   Reply With Quote
Old 04-08-2016, 10:29 AM   #1057
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 9,541
Karma: 13421865
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD
Quote:
Originally Posted by JSWolf View Post
You are saving space removing those long class names.
Yes, but as the file is compress, it probably isn't very much. Giving the classes easily understood names helps me a lot more than the small space saving that short names would give.
davidfor is online now   Reply With Quote
Old 04-09-2016, 12:48 AM   #1058
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: 2,713
Karma: 7781036
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura HD, Glo, Nexus 7 HD, iPad Air
Quote:
Originally Posted by JSWolf View Post

Quote:
Originally Posted by chrisridd View Post
@Francois_C The zip compression used in epubs is likely to compress all those crazy_long_class_names down anyway, so I doubt you're saving space in the epub. Similarly all those slightly wordy <span class="bold"> ....things - any time you have repeated text that gets compressed really well.

You might save some RAM when the ereader has to open and uncompress the chapter though.
You are saving space removing those long class names.
I just tried an experiment removing my favoured way of managing paragraph styles (as an example, <p class="para"> for default body indented paragraphs) and replacing them with <p>. This did save some space (~ 21Kbytes) in the uncompressed file sizes reported when I opened the epub using 7Zip. OTOH, the size of the compressed epub file changed by a massive 8 bytes. As usual, ASCII text files compress rather well as the attached screen shot shows though the already compressed images are almost incompressible.

Personally, I didn't find the change enough to make changing my default stylesheet a worthwhile project.

The great tragedy of Science — the slaying of a beautiful hypothesis by an ugly fact. — Thomas Henry Huxley
Attached Thumbnails
Click image for larger version

Name:	Silence.jpg
Views:	68
Size:	74.1 KB
ID:	147705  

Last edited by DNSB; 04-09-2016 at 12:54 AM.
DNSB is offline   Reply With Quote
Old 04-09-2016, 05:15 AM   #1059
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: 696
Karma: 214138
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Quote:
Originally Posted by davidfor View Post
Yes, but as the file is compress, it probably isn't very much. Giving the classes easily understood names helps me a lot more than the small space saving that short names would give.
Also true. I think the main issue is as more complex a file is, as more it will tend to be slow. On a reader it is an issue to solve the use of resources anyway. This do not means to use cryptic expressions but to use everything with care and only where it is really necessarily.
There are arguments like on today's reader the issue is not as big as on older readers. True, but that's as well not all the time true too. Have a book with huge files within, complex styles and extensive usage of spans. Then you will find, that a high-end Reader also tend to be slow in navigation within the book. I (sometimes) do not recognize it reading a book page by page but when I navigate within the book it isn't really enjoying me and latest when I'm looking in the coding I see why that happen so often...
Divingduck is offline   Reply With Quote
Old 04-09-2016, 05:45 AM   #1060
chrisridd
Evangelist
chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.chrisridd actually enjoys Vogon poetry.
 
chrisridd's Avatar
 
Posts: 410
Karma: 56114
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura
How complex do you think these files are, @Divingduck? You may be right about them taking more resource to render/navigate, but it would be interesting to try and quantify that.

@DNSB's test showing an 8 byte saving was a good example :-)

I'd imagine more complex pages would require more energy, so you could count the number of page turns per battery charge, but that's such an enormous number already this would be practically difficult.

Could any of the desktop browser performance test suites be used on an ePub?
chrisridd is offline   Reply With Quote
Old 04-09-2016, 07:18 PM   #1061
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: 43,555
Karma: 29094515
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by davidfor View Post
Yes, but as the file is compress, it probably isn't very much. Giving the classes easily understood names helps me a lot more than the small space saving that short names would give.
But it does add to the page number ADE gives you. I like minimal code for more accurate page numbers with ADE.
JSWolf is offline   Reply With Quote
Old 04-09-2016, 07:44 PM   #1062
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: 2,713
Karma: 7781036
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura HD, Glo, Nexus 7 HD, iPad Air
Quote:
Originally Posted by JSWolf View Post
But it does add to the page number ADE gives you. I like minimal code for more accurate page numbers with ADE.
Jon, perhaps you might want to review the Adobe page number synthesis algorithm? Step one is quoted below:

Determine a compressed byte length of each resource which is referenced in the spine, subtracting any known encryption overhead (IV size)
DNSB is offline   Reply With Quote
Old 04-09-2016, 10:58 PM   #1063
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 18,691
Karma: 78399997
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
The wordiness of nested spans is not an issue so much as the additional effort required to render a more complex DOM.

But I suspect this conversation has outlived its usefulness.
Modify EPUB does not seem likely to include a tool for manipulating default font sizes, that is all that matters for the purpose of this thread -- let's not continue plaguing people with new post notifications for this thread and tricking them into thinking something interesting happened.
eschwartz 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] Open With kiwidude Plugins 284 07-17-2016 10:22 PM
[GUI Plugin] Quality Check kiwidude Plugins 846 05-19-2016 08:30 AM
[GUI Plugin] Manage Series kiwidude Plugins 117 02-14-2015 06:42 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 01:25 AM.


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