Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 05:11 PM   #1
Musrar
Member
Musrar began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Sep 2024
Device: Kindle Oasis
EPUB->AZW3 doesnt show first pages with title and author on Kindle

As the title says, when I converted an EPUB I made from scratch to AZW3 the first two pages (part0000.html and part0001.html if you edit the azw3 file in Calibre) won't display correctly on my kindle. A blank page appears instead.

The cover page displays fine, and the start of the book (part0002.html onwards) as well, but I don't get why the first two pages don't display correctly.

I attached the two files if you have time to fiddle with them. You'll see they are very simple in terms of structure and css, especially the epub file (since I made it from scratch).
Attached Files
File Type: epub sairentouitchi 01 - I Sora matsuri.epub (103.6 KB, 4 views)
File Type: azw3 sairentouitchi 01 - I Sora matsuri.azw3 (171.6 KB, 5 views)
Musrar is offline   Reply With Quote
Old Yesterday, 05:37 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 81,148
Karma: 150263703
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Musrar View Post
As the title says, when I converted an EPUB I made from scratch to AZW3 the first two pages (part0000.html and part0001.html if you edit the azw3 file in Calibre) won't display correctly on my kindle. A blank page appears instead.

The cover page displays fine, and the start of the book (part0002.html onwards) as well, but I don't get why the first two pages don't display correctly.

I attached the two files if you have time to fiddle with them. You'll see they are very simple in terms of structure and css, especially the epub file (since I made it from scratch).
In the ePub, edit the OPF and replace <guide/> with...
Code:
  <guide>
    <reference href="start.xhtml" title="Start" type="start"/>
  </guide>
It may work.
JSWolf is online now   Reply With Quote
Advert
Old Today, 03:37 PM   #3
Musrar
Member
Musrar began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Sep 2024
Device: Kindle Oasis
Quote:
Originally Posted by JSWolf View Post
In the ePub, edit the OPF and replace <guide/> with...
Code:
  <guide>
    <reference href="start.xhtml" title="Start" type="start"/>
  </guide>
It may work.
Thanks for the input. Sadly, your solution didn't work, nor did the fiddling I did based on your suggestion. In the end, what I did is remove the text type from the azw3, leaving only the toc and the cover (and I suspect neither the toc appears at the beginning, but it's less of an issue):

Code:
  <guide>
    <reference type="toc" href="text/part0009.html#8IL21-a0e11e7239964d8e9cbd1281b95542bb" title="Table of Contents"/>
    <reference type="cover" href="images/00001.jpeg"/>
    <reference type="other.ms-coverimage-standard" href="images/00001.jpeg"/>
    <reference type="other.ms-coverimage" href="images/00001.jpeg"/>
  </guide>
However, the issue wasn't here. The issue was in the css class Calibre assigns converted azw3. In my case my book has a vrtl class I created to display vertical text.
Here are all the styles of my epub:
Code:
@charset "utf-8";
/* Styles for 不明 */

html,
.hltr {
-webkit-writing-mode: horizontal-tb;
-webkit-writing-mode: horizontal-tb;
}
.vrtl {
-webkit-writing-mode: vertical-rl;
-webkit-writing-mode: vertical-rl;
}
body {
margin-left: 1em;
margin-right: 1em;
writing-mode:tb-rl;
-webkit-writing-mode: vertical-rl;
line-break: normal;
-epub-line-break: normal;
-webkit-line-break: normal;
}


p{
      font-size: 1em;
    line-height: 1.5;
    text-align: justify;
    text-indent: 1em;
    vertical-align: baseline;
    white-space: normal;
    word-spacing: normal;
    word-wrap: break-word;
    padding: 0;
    margin: 0 0
  
  }
  
.title{
      text-align: center;
          page-break-before: always;
  }
  
  .author{
      text-align: center;
  }
In the converted azw3, each html file has a vrtl class which looks like this:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" class="vrtl">
Code:
.vrtl {
  -webkit-writing-mode: vertical-rl;
}
But in the first pages for the title calibre assigns a newly created class named calibre:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" class="vrtl">
  <head><meta charset="UTF-8"/>
    <title>サイレントウイッチ 01</title>
    <link rel="stylesheet" type="text/css" href="../styles/0003.css"/>
    <link rel="stylesheet" type="text/css" href="../styles/0002.css"/>
    
  </head>
  <body class="calibre1">
<h1 class="title" id="calibre_pb_0">サイレントウイッチ 01</h1>
    <h3 class="author">依空まつり</h3>
  </body>
</html>
Code:
.calibre {
  -webkit-writing-mode: horizontal-tb;
}
which apparently makes the first pages not display at all. It seems to be this mix of vertical and horizontal writing mode. When I wrote the vertical class to the first pages, they displayed correctly in the kindle.

Last edited by Musrar; Today at 03:51 PM.
Musrar is offline   Reply With Quote
Old Today, 06:11 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 81,148
Karma: 150263703
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Try downloading a copy of Kindlegen and convert the ePub. It will convert to a dual-format mobi. You can then use KindleUnpack to split that and get the KF8 which you can then add back to calibre to then add to your Kindle and see if this works.
JSWolf is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some AZW3 books don't show proper chapter title C4thie Amazon Kindle 3 02-16-2025 04:35 PM
Kindle doesnt show other files in library (epub...) nivekkumar Kindle Developer's Corner 1 02-10-2020 01:46 PM
Help: How to change how title, series, author show in kindle Fred95901 Library Management 4 12-19-2014 02:40 PM
Calibre doesnt remember (Title.Author,Series,Metadata) changes?! Rafaelo4 Calibre 9 08-19-2010 08:23 AM
RTF to EPUB - jpg images doesnt show klamarth Calibre 3 10-15-2009 09:40 AM


All times are GMT -4. The time now is 06:13 PM.


MobileRead.com is a privately owned, operated and funded community.