![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
|
HTML files split on the basis of chapters
Hi, I am trying to split HTML files in an EPUB file on the basis of subchapters in the TOC so that I can effectively convert the file to a KEPUB. Each chapter is included in a single HTML file, but subchapters are in the same file (attachment). Each subchapter has <h2 id="sigil_toc_id_[number]"> tag. Is there a way to split the files automatically so that each HTML file refers to a single (sub)chapter?
Last edited by Buhaj47; 11-08-2016 at 01:15 PM. |
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,633
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
If you right-click in the code-view, there is an option on the menu to split the file. This uses a search to do the split. There are several common examples and you can enter your own. One of the examples is to split on the h2 tag.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
split html files not updating links | ni_c | Editor | 4 | 11-24-2015 11:48 PM |
Split an EPUB into more HTML files | 1v4n0 | Sigil | 7 | 10-24-2015 12:57 PM |
Is there a quick way to split large html files? | cager | Editor | 4 | 04-08-2014 08:10 AM |
[Old Thread] mergin split html files with Calibre? | NASCARaddicted | Conversion | 13 | 12-03-2011 01:19 PM |
Managing PDF files that are split into chapters | grep | Library Management | 3 | 11-08-2011 07:02 AM |