Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-13-2014, 03:55 PM   #1
pete6055
Connoisseur
pete6055 began at the beginning.
 
Posts: 74
Karma: 10
Join Date: Nov 2012
Device: none
A Suggested Feature for ebook-edit.exe

Is it possible to add the Structure Detection dialogue to EBOOK-EDIT.EXE? I use the editor as a standalone product most of the time, much as I do Sigil.

It would be handy if I could insert page-breaks before an Xpath expression within the editor proper. I might add a new box to the Create ToC from Xpath dialogue, if another button is inconvenient.

Thanks...

Last edited by pete6055; 09-13-2014 at 03:57 PM.
pete6055 is offline   Reply With Quote
Old 09-13-2014, 09:34 PM   #2
jackie_w
Grand Sorcerer
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: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
To some extent it's there already. If you open an epub and one of its content html files, you can right-click in its code view area and choose 'Split at multiple locations'.

Unless something has changed recently, I don't know of a way to split every html file in the whole epub in one pass.

Or, I suppose, if you don't want to actually split the files but only want to force the reading device to do a page break, then using Regex to insert a set of dummy paragraphs
<p class="breakhere"></p>
plus something like
p.breakhere {page-break-before:always}
in the css file, should work across the whole epub.

Last edited by jackie_w; 09-13-2014 at 09:43 PM.
jackie_w is offline   Reply With Quote
Advert
Old 09-13-2014, 11:01 PM   #3
BetterRed
null operator (he/him)
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: 21,730
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@jackie_w - that's two things I learnt from you today, the other was ATM - Automatic Teller Machine Asynchronous Transfer Mode At The Money - aah - At The Moment

I only knew about spitting in the Preview pain, momentarily I thought you'd mistyped, luckily I checked before embarrassing myself - yet again

BR
BetterRed is offline   Reply With Quote
Old 09-14-2014, 06:58 AM   #4
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
There is a way to split at all locations at once using x-path. Right click in editing window, split at multiple locations.
mrmikel is offline   Reply With Quote
Old 09-14-2014, 07:34 AM   #5
jackie_w
Grand Sorcerer
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: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by BetterRed View Post
@jackie_w - that's two things I learnt from you today
We Poms aim to please
Quote:
Originally Posted by BetterRed View Post
I only knew about spitting in the Preview pain
No, please, this is a civilised forum!

Quote:
Originally Posted by mrmikel View Post
There is a way to split at all locations at once using x-path. Right click in editing window, split at multiple locations.
Isn't that what I already said in post #2? But it won't help for splitting the whole epub in one pass, will it?
jackie_w is offline   Reply With Quote
Advert
Old 09-14-2014, 08:47 AM   #6
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
If you tell it to split at every chapter heading, won't that do or am I missing something?
mrmikel is offline   Reply With Quote
Old 09-14-2014, 08:59 AM   #7
jackie_w
Grand Sorcerer
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: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by mrmikel View Post
If you tell it to split at every chapter heading, won't that do or am I missing something?
Last time I tried it was current html file only. Which works well if you've just imported your whole book as a single html file, but can be a bit time consuming if your epub is already split, but in all the wrong places.

I suppose you could try using Merge files to join everything back into a single file before trying 'Split at multiple locations'. I'll try that next time I have a badly split epub.
jackie_w is offline   Reply With Quote
Old 09-14-2014, 09:04 AM   #8
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
The merge works pretty well and doesn't take over long if you don't have over 30 files or so. Then you can split them where they ought to be.

My problem with the merge is to make sure I do it consistently so things merge in the right order and so that there isn't unintentional overwriting. After the 20th merge I am inclined to get a little rummy. That is a reason for a backup before which I always advocate but don't always remember to do if I have been at it for HOURS.
mrmikel is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
(Suggestion) Move ebook-viewer.exe to the main directory next to calibre-portable.exe avid01 Library Management 6 07-03-2014 03:55 AM
Update tags only using ebook-convert.exe boredsilly Library Management 2 03-16-2012 05:10 PM
Suggested feature Saliadarunavuelt Calibre 4 01-08-2011 01:24 PM
Feature Request - Edit File Option fcoulter Calibre 10 07-22-2010 12:56 AM
Suggested future feature ekaser Astak EZReader 18 09-06-2009 06:59 PM


All times are GMT -4. The time now is 01:31 AM.


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