View Single Post
Old 04-22-2017, 02:29 AM   #2
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by teh603 View Post
When I try the Calibre trick (zipping the files, converting them to an ePUB with Calibre, and then opening the resulting file in Sigil) has gotten me inconsistent results. Calibre seems to only convert what it thinks is the first chapter, and then purges the rest.
This seems like a Calibre "issue" and doesn't really have anything to do with Sigil.

Quote:
Originally Posted by teh603 View Post
I write in .txt, with each chapter being a separate file. Chapter 001.txt, Chapter 002.txt, and so forth.

Anyone got a solution? Preferably an elegant one?
A:

Concatenate all of your text files into a single one using the commandline:

http://www.wikihow.com/Merge-Text-(....Command-Prompt

then convert that using Calibre?

B:

Use Calibre to batch convert each text file to EPUBs, then use the EPUB Merge plugin?

https://www.mobileread.com/forums/sh...d.php?t=169744

That will merge your Chapter 001 EPUB + Chapter 002 EPUB + [...] together into one.

C:

If using Microsoft Word, there is Import > Object > Text from File:

https://support.office.com/en-us/art...f-3d8b585e03f1

Then save as whatever format (DOCX) and have Calibre convert it for you.

Quote:
Originally Posted by teh603 View Post
I tried the OO import plugin, but it had some stylesheet problems.
Stylesheet? Aren't your input files just plain text files? What stylesheet are you talking about?

And since you know your input was plain text, you could just throw out all useless HTML and get yourself back down to this with some Search/Replace:

Code:
<p>Paragraph 1.</p>
<p>Paragraph 2.</p>

Last edited by Tex2002ans; 04-22-2017 at 02:36 AM.
Tex2002ans is offline   Reply With Quote