Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-28-2020, 06:41 AM   #1
gennaro
Junior Member
gennaro began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Apr 2013
Device: kindle
can I split a file at headings?

Can I automatically split a long file at chapters (say before h1 or h2 elements) without putting the marks by hand?
Thank you
gennaro is offline   Reply With Quote
Old 12-28-2020, 06:51 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by gennaro View Post
Can I automatically split a long file at chapters (say before h1 or h2 elements) without putting the marks by hand?
Simply search for heading start tags and replace them sigil split marker <hr> tags. For example:

Find:<h1
Replace:<hr class="sigil_split_marker" /><h1

Then select Split at markers.
Doitsu is offline   Reply With Quote
Old 12-28-2020, 12:24 PM   #3
gennaro
Junior Member
gennaro began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Apr 2013
Device: kindle
Quote:
Originally Posted by Doitsu View Post
Simply search for heading start tags and replace them sigil split marker <hr> tags. ….
Thanks a lot
gennaro is offline   Reply With Quote
Old 12-28-2020, 04:42 PM   #4
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Quote:
Originally Posted by Doitsu View Post
Simply search for heading start tags and replace them sigil split marker <hr> tags.
So, just in case you follow instructions meticulously, don't replace <h1> tags with split markers, rather use Search & Replace to preface them with split markers. (The example given is then correct.)

Pedantic, I know. But computer code takes no prisoners :-)
exaltedwombat is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
File split sometimes shows more split lines DrChiper Editor 1 12-23-2013 05:38 PM
When you split a file does Sigil update links? JimmyG Sigil 2 10-31-2013 01:02 PM
Can I split one epub into more than one file? ChrisKaos ePub 10 04-05-2012 06:05 AM
[Request] Optional 'No File Split' Michael_ZZ Writer2ePub 2 02-04-2011 12:32 PM
After split pdf file, use Rasterfarian. harpum Sony Reader 0 07-14-2007 01:20 AM


All times are GMT -4. The time now is 07:40 PM.


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