Quantcast
Channel: MobileRead Forums - Conversion
Viewing all articles
Browse latest Browse all 3902

Converting EPUB to AZW3: TOC loses CSS

$
0
0
Using Calibre 2.69, I convert an EPUB with a Calibre-generated TOC to AZW3, and the TOC styles go missing. EPUB before:
Code:

<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<head>
  <title>Table of Contents</title>
  <style type="text/css">
      ... standard inline TOC styles
  </style>
</head>
<body id="calibre_generated_inline_toc">
  <h2>Table of Contents</h2>
  <ul>
    <li><a href="OEBPS/Text/ch01.html">Chapter One</a></li>
    <li><a href="OEBPS/Text/ch02.html">Chapter Two</a></li>

and so on. When converted, the AZW3 TOC looks like this:
Code:

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
  <head><meta charset="UTF-8"/>
    <title>Table of Contents</title>
    <link href="" rel="stylesheet" type="text/css"/>
    <link href="" rel="stylesheet" type="text/css"/>
</head>
  <body class="calibre1" id="calibre_generated_inline_toc">
  <h2 class="calibre2" id="UGI1-34fd63a1177c41c0ae1fdcf173149086">Table of Contents</h2>
  <ul class="calibre3">
    <li class="calibre4"><a class="calibre5" href="part0002.html#1T141-34fd63a1177c41c0ae1fdcf173149086">Chapter One</a></li>
    <li class="calibre4"><a class="calibre5" href="part0003.html#2RHM1-34fd63a1177c41c0ae1fdcf173149086">Chapter Two</a></li>

and so on.

Notice the stylesheet links have href="".

This seems to be a new bug since about 2.66...

Viewing all articles
Browse latest Browse all 3902

Trending Articles