![]() |
#1 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 516
Karma: 2268308
Join Date: Nov 2015
Device: none
|
Chapter splitting broken?
I tried to use the "Split at Chapter Breaks" function, and it doesn't seem to work. The chapter markers are in the text:
Code:
<hr class="sigilChapterBreak" xmlns="http://www.w3.org/1999/xhtml"/> |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,723
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
The split marker class name has changed in recent versions. If you're using a clip, you'll need to change it to:
Code:
<hr class="sigil_split_marker" /> |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 516
Karma: 2268308
Join Date: Nov 2015
Device: none
|
Is it possible to add the compatibility with the older syntax?
|
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,703
Karma: 5703586
Join Date: Nov 2009
Device: many
|
According to the code, it should still work:
From: XHtmlDoc.cpp in Sigil/src/BookManipulation/ const QString BREAK_TAG_SEARCH = "(<div>\\s*)?<hr\\s*class\\s*=\\s*\"[^\"]*(sigil_split_marker|sigilChapterBreak)[^\"]*\"\\s*/>(\\s*</div>)?"; So it should still work as either string is looked for. |
![]() |
![]() |
![]() |
#5 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,703
Karma: 5703586
Join Date: Nov 2009
Device: many
|
What platform and Sigil version are you using?
Have you tried without the unneeded xmlns attribute? That attribute is typically set on the html tag and then inherited and is not needed or included when Sigil itself generates the split marker. And from the regex would make that split marker undetectable. Try removing the xmlns attribute with a search and replace leaving just the one on the html tag itself. xmlns="http://www.w3.org/1999/xhtml" Last edited by KevinH; 08-23-2020 at 10:25 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,723
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Does “7 min left in chapter” learn how fast you read? Or based on the chapter itself? | kindledude20 | Amazon Kindle | 4 | 08-02-2020 08:12 PM |
chapter splitting | failure1 | Editor | 5 | 08-20-2019 11:16 PM |
File Splitting-->Rename Files-->Link filenames broken | GrannyGrump | Sigil | 19 | 01-24-2014 04:39 PM |
Automating splitting at Chapter Breaks | John Everett | Sigil | 9 | 06-01-2010 02:53 AM |
html2epub: chapter splitting on more than 1 heading level | Portnull | Calibre | 1 | 06-25-2009 09:17 AM |