![]() |
#1 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
txt > epub conversion question
I had this problem before:
https://www.mobileread.com/forums/sh...d.php?t=348081 I have some saved walkthroughs from GameFAQs and Neoseeker and other sites. Here's a few examples: [1] [2] [3]. These often have ASCII art and specific fixed-width alignment which causes them to misbehave if I open them directly in ebook-viewer. If I convert them to ePub, the fixed-width alignment also tends to get messed up (I've tried different paragraph & formatting styles but had no luck). So instead, here's what I do: 1. Convert to ePub. (Unlike 'add an empty file,' this generates structure and OPF data.) Open in ebook-editor. 2. Replace this to stylesheet.css: Code:
pre { font-family: "courier new", courier, monospace; font-size: 10px; white-space: pre-wrap; Code:
<body> <pre> [the text copied from the original .txt] </pre> </body> But this isn't really the proper way and I can't do things like add a ToC. Does anybody else have a suggestion of what to do? ![]() Last edited by ownedbycats; 04-27-2023 at 09:53 PM. |
![]() |
![]() |
![]() |
#2 |
Bibliophist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,003
Karma: 7173892
Join Date: Dec 2021
Location: England
Device: none
|
Have you tried txt>docx>epub with appropriate headings in docx to generate TOC?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
That's not what I meant. I wanted to manually create the ToC, but since there isn't any proper line breaks with my method, it doesn't know where to put them.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Txt->EPUB Conversion Issue | nrich61 | Conversion | 7 | 07-07-2011 06:03 PM |
TXT to EPUB conversion issue | rockeh | Conversion | 2 | 03-18-2011 10:50 AM |
Preserving <br /> on epub -> txt conversion | billingd | Calibre | 1 | 08-11-2010 06:24 AM |
Conversion: EPUB to TXT | Starson17 | Calibre | 11 | 05-29-2010 12:31 PM |
Newbie Question re txt File Conversion | GJN | Calibre | 7 | 09-04-2009 07:40 AM |