View Single Post
Old 01-31-2023, 03:28 PM   #1
rosewood
Member
rosewood began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jan 2023
Device: fire hd 10
No Table of Contents and "This HTML file is larger than 260 KB" Error

Hello,
I'm trying to convert a 5.4 Mb plain text file to AZW3. There are 26 chapters in the file, which are of the form:

## Chapter 12 Hero's Return by Jack Straw

The Detect Chapters at XPATH expression in the Convert > Structure Detection is: //h:h2

I am using this same expression for the TOC > Level 1, Level 2 & Level 3 TOC filter in Convert >TOC.

The "Force use of auto-generated Table of Contents" option is ticked.

Unfortunately, no TOC is generated upon conversion.

When the book is opened in the Edit Book utility, one sees a single html file, part0000.html of size 6Mb. The Error check complains that:
"This HTML file is larger than 260 KB".

The html text for the chapter is :
<li class="calibre3"><span>CHAPTER</span> 12 Hero's Return by Jack Straw</li>

With the above information, here are my questions:

1) Is there a maximum size limit for a text file being input for conversion?
2) Is there a way to force the conversion to segment the html output into files of 260 Kb or less ?
3) What changes must I make to successfully generate the TOC?

Many thanks in advance!
rosewood is offline   Reply With Quote