|
|
#1 |
|
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Nov 2023
Device: none
|
How do I specify the split point when converting TXT into EPUB?
I tried adding the <h1> tag on my chapter headers while still in txt format, filling the first two boxes in Structure Detection with the XPath //h:h1, and making sure the 'Do not split on page breaks' in EPUB output remain unchecked; but the converted output rarely recognize my tag (it did work like once every five conversions).
More often than not it read the <h1> tag as <h1&rt;. The only other thing I messed around was changing the input character encoding in the Look & Feel to utf-8 because otherwise the unicodes wouldn't be recognized and would only be replaced with � My workaround so far is by editing via calibre-edit, merge the html files, and then split them with //h:h1 but sometimes I convert web-novels with over a thousand chapters and it gets my PC buggy while waiting for that workaround process to finish. |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use a text markup language such as markdown, set the option in the txt input settings in calibre to use markdown and in your text file use markdown syntax for headings.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,788
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Converting UTF-8 TXT to Epub | ij26 | Conversion | 8 | 02-21-2017 11:49 AM |
| Error converting Txt to epub | chronomaster5042 | Conversion | 2 | 06-02-2013 11:23 PM |
| Split words when converting epub to mobi | guspasho | Conversion | 2 | 05-09-2012 07:33 PM |
| Issue with converting TXT to Epub | druntar | Conversion | 1 | 05-02-2011 07:45 AM |
| Converting from txt to epub using defaults | p3aul | Calibre | 7 | 10-09-2009 08:23 PM |