Answers.Body: <p>The problem with this book in particular is that the person who created the AWZ3 file used <code>&lt;div&gt;</code> blocks for every paragraph instead of <code>&lt;p&gt;</code> blocks. Apparently the word-count plugin skips <code>&lt;div&gt;</code> text, so it only counts a few words in the Titles, etc.</p>
  <p>I used Calibre to edit the book, as follows:</p>
  <p>Tools &gt; Transform HTML &gt; Add rule</p>
  <p>From there select &quot;matches CSS Selector&quot; and I filled in <code>div.fmtx1</code>. Then I selected &quot;Change tag name&quot; and set it to <code>p</code>. I made a second rule for <code>div.ftmx</code> as well. See screen shots:</p>
  <p><a href="https://i.sstatic.net/rsUeO.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/rsUeO.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.sstatic.net/Bl3rr.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Bl3rr.png" alt="enter image description here" /></a></p>
  <p>Then I hit &quot;OK&quot;. I also had to add a rule to the CSS to make the <code>&lt;p&gt;</code> tags render the same:</p>
  <pre><code>p {
    margin: 0;
    line-height: 1.3;
  }
  </code></pre>
  <p>Then I saved the book, loaded it on the Kindle again, and the page count is fixed:</p>
  <p><a href="https://i.sstatic.net/EhVnR.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/EhVnR.jpg" alt="enter image description here" /></a></p>
  <p>The exact steps above won't work for every book (if they're using something other than a <code>div</code>, or a different class name other than <code>fmtx</code> and <code>fmtx1</code>), but knowing that you need <code>&lt;p&gt;</code> tags to get the text counted correctly should get you most of the way there.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-03-13T01:33:46.303Z
Answers.LastActivityDate: 2024-03-13T01:33:46.303Z
Answers.UserDisplayName: Alex
Body: <p>I bought <em>Excession</em> in AZW3, but the page numbers show up wrong on my Kindle Paperwhite when I load it from Calibre. The book shows as having only 4 pages.</p>
  <p>The following did not help:</p>
  <ul>
  <li>Device &gt; Configure this device &gt; Check &quot;Send page number information when sending books&quot;</li>
  <li>Editing the file to remove NCX (there was none as far as I can tell)</li>
  <li>Editing the file to recreate the table of contents.</li>
  </ul>
  <p>A screenshot of what I see on my Kindle:</p>
  <p><a href="https://i.sstatic.net/TMV4A.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/TMV4A.jpg" alt="enter image description here" /></a></p>
  
Tags: <calibre><kindle-paperwhite>
Title: DRMless AZW3 sent to Kindle Paperwhite from Calibre shows as having a very small number of pages
UserDisplayName: Alex
ThreadText: # DRMless AZW3 sent to Kindle Paperwhite from Calibre shows as having a very small number of pages
  
  (Asked by: username_0 on 2024-03-13)
  
  I bought *Excession* in AZW3, but the page numbers show up wrong on my Kindle Paperwhite when I load it from Calibre. The book shows as having only 4 pages.
  
  The following did not help:
  
  * Device > Configure this device > Check "Send page number information when sending books"
  * Editing the file to remove NCX (there was none as far as I can tell)
  * Editing the file to recreate the table of contents.
  
  A screenshot of what I see on my Kindle:
  
  [![enter image description here](https://i.sstatic.net/TMV4A.jpg)](https://i.sstatic.net/TMV4A.jpg)
  
  **Tags:** calibre, kindle-paperwhite
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2024-03-13. Score: 1
  
  The problem with this book in particular is that the person who created the AWZ3 file used `<div>` blocks for every paragraph instead of `<p>` blocks. Apparently the word-count plugin skips `<div>` text, so it only counts a few words in the Titles, etc.
  
  I used Calibre to edit the book, as follows:
  
  Tools > Transform HTML > Add rule
  
  From there select "matches CSS Selector" and I filled in `div.fmtx1`. Then I selected "Change tag name" and set it to `p`. I made a second rule for `div.ftmx` as well. See screen shots:
  
  [![enter image description here](https://i.sstatic.net/rsUeO.png)](https://i.sstatic.net/rsUeO.png)
  
  [![enter image description here](https://i.sstatic.net/Bl3rr.png)](https://i.sstatic.net/Bl3rr.png)
  
  Then I hit "OK". I also had to add a rule to the CSS to make the `<p>` tags render the same:
  
  ```
  p {
    margin: 0;
    line-height: 1.3;
  }
  
  ```
  
  Then I saved the book, loaded it on the Kindle again, and the page count is fixed:
  
  [![enter image description here](https://i.sstatic.net/EhVnR.jpg)](https://i.sstatic.net/EhVnR.jpg)
  
  The exact steps above won't work for every book (if they're using something other than a `div`, or a different class name other than `fmtx` and `fmtx1`), but knowing that you need `<p>` tags to get the text counted correctly should get you most of the way there.
  
  
  ---
  
  