![]() |
#31 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
![]() |
![]() |
![]() |
#32 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,072
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
Quote:
I am not sure how Kindle Create comes into this. Could you explain further? |
||
![]() |
![]() |
![]() |
#33 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
FWIW, I have always used a belt & suspenders approach to monospace, e.g.:
p.block { font-family: courier, monospace; text-indent: 1em; text-align:left; margin:0em 0em 0em 1em; } I don't recall where this originated, but it was the conventional wisdom on the KDP forums some years ago, say 2012. |
![]() |
![]() |
![]() |
#34 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,587
Karma: 14328510
Join Date: Nov 2019
Device: none
|
When converting from EPUB to MOBI, is there a way to format it so that it only displays something you've added if it's displaying the MOBI7 format? Some sort of debugging thing you can add to verify that you're seeing the MOBI7 format and not the AZW3 format if/when it's a dual MOBI (or whatever might use AZW3). That's assuming you don't have an old Kindle that only handles the old MOBI; if you're on a PC you could use the Mobi Pocket viewer.
|
![]() |
![]() |
![]() |
#35 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,787
Karma: 103362673
Join Date: Apr 2011
Device: pb360
|
Quote:
to split out the mobi7 and azw3 files and compare how all three look. |
|
![]() |
![]() |
![]() |
#36 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#37 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,072
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
I have attached a sample EPUB that will show which Kindle format is used to display it. |
|
![]() |
![]() |
![]() |
#38 | ||
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Feb 2020
Device: Kindle
|
Quote:
Test iiii OOOO TEST The second and third lines are formatted as monospace, so it's easy to tell visually if it really is being rendered in a monospace font. I converted my epub to mobi, and emailed it to my Kindle account. The doc looks fine -- I see my monospace fonts where they should be. Next, I used kindlegen to convert my epub to mobi, and again emailed it to my Kindle acocunt. Now, all the text is the same proportional font -- no monospace anywhere. I tried opening both mobi files with Kindle Previewer and saw the same result as on my iPhone -- monospace fonts correctly display in the mobi created by calibre, but no monospace fonts in the one created by kindlegen. This is the css for my monospace section: Code:
.class_s { display: block; font-family: "Source Code Pro", monospace } Quote:
Whoops, I meant to say kindlegen, not Kindle Create. |
||
![]() |
![]() |
![]() |
#39 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,072
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
The reason for the failure is that in MOBI7 format only the first font family name is retained by kindlegen, "Source Code Pro" in this case. But the MOBI7 renderer does not handle that font name, only "monospace" or "courier". It will work properly if you use "font-family: monospace" alone. (As NotJohn indicated using "font-family: courier, monospace;" also works.) The reason that calibre conversion works in this case is that, unlike kindlegen, it converts any monospace font family to the HTML <tt> tag which is rendered in MOBI7 with a monospace font. Last edited by jhowell; 02-10-2020 at 10:18 PM. |
|
![]() |
![]() |
![]() |
#40 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Well, as jhowell told you, you've wasted all that time. Emailing or sideloading a MOBI to your iOS device doesn't give you the correct file. You have to build an AZK file and then sideload it, hardwired via a USB cable, through iTunes, to the device. Once you've done that, the coding probably works or you can fix it as per the coding that you've been given in this thread. This--the iOS--is exactly why I asked what I asked. We once had a ridiculously long thread on this forum, with someone driving us and himself insane, about embedded fonts--until I noticed something he had said, and it turned out he was viewing the file on KCR--which displays ZERO embedded fonts. {sigh}. Hitch |
|
![]() |
![]() |
![]() |
#41 | ||
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Feb 2020
Device: Kindle
|
Quote:
1. Save epub with calibre 2. Use kindlegen to convert epub to mobi 3. Open mobi with Kindle Previewer I don't see my monospace fonts this way, but if I: 1. Save epub with calibre 2. Convert epub to mobi with calibre 3. Open mobi with Kindle Previewer then it works. Quote:
Thank you both very much for your assistance. |
||
![]() |
![]() |
![]() |
#42 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,072
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
You can fix the problem with devices and apps that use MOBI7 format by just dropping “Source Code Pro” from your font selection and going with just “monospace” or “courier, monospace”. That fails to display properly in the Kindle Previewer, but works in actual customer devices and apps except Kindle for PC. |
|
![]() |
![]() |
![]() |
#43 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
![]() |
![]() |
![]() |
#44 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,587
Karma: 14328510
Join Date: Nov 2019
Device: none
|
|
![]() |
![]() |
![]() |
#45 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,787
Karma: 103362673
Join Date: Apr 2011
Device: pb360
|
You seem to be confusing specifying some specific font not working with not being able to get monospace at all.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre suddenly not transferring AZW3 or MOBI with page numbers | talkingdog | Calibre | 1 | 06-25-2017 05:25 PM |
Problem with one book transferred from calibre (azw3 and mobi format) | lordofazeroth | Amazon Kindle | 7 | 04-26-2016 03:02 PM |
Converted to .azw3 - but KDP won't accept? | Austruck | Calibre | 3 | 12-20-2015 04:23 PM |
Calibre sends Newsfeeds as mobi instead of AZW3 to Kindle | syntaxis | Calibre | 2 | 06-07-2014 02:25 AM |
Why does Calibre open my AZW3 file as a MOBI? | Julius Caesar | Calibre | 1 | 08-27-2013 02:43 PM |