Home Β» Forum Β» Author Hangout

Forum: Author Hangout

Calibre question - blockquote

Switch Blayde 🚫

I want a blockquote to offset a letter from the rest of the text in a novel. In Word, I defined both the Left and Right Indents to be 0.5" to make it a blockquote (my normal paragraph first line indent is 0.3").

It looks great in Word. When I used the .docx as the input to Calibre to create the .epub it looked just as good. But not when I created the .mobi. With .mobi, the left indent is huge and there is no right indent (basically no blockquote, just a large shift from the left). When I converted to .mobi I chose left justified in the Look & Feel (Calibre's default for .mobi is justified).

I don't know if it's related, but the first line paragraph indent for .mobi is larger than I want and there's another place I use the Left Indent as 0.3" and it's also much bigger than the .epub version.

I don't know what KDP would do when converting my .epub to .mobi, but right now I'm working on Bookapy. With Bookapy, I upload the .mobi version and right now that version is ugly.

Any ideas?

Switch Blayde 🚫

@Switch Blayde

When I convert to .AZW3 instead of .mobi it's perfect.

But I can't publish on Bookapy as .AZW3. It needs to be .mobi.

helmut_meukel 🚫

@Switch Blayde

You know Calibre can convert books from one format to another format?
Try to convert the .epub to .mobi, maybe it's just the conversion from .docx to .mobi that causes the problem.

HTH,

HM.

Replies:   Switch Blayde
Switch Blayde 🚫

@helmut_meukel

Try to convert the .epub to .mobi,

That gave me a glimmer of hope. But it didn't work. Either did converting from .AZW3 to .mobi.

There must be a bug in Calibre converting to .mobi.

Vincent Berg 🚫

@Switch Blayde

Blockquote is very different than indenting (i.e. it doesn't indent both sides, and it's a fixed number of characters). However, if you're using ePub conversions, you can easily define the necessary style (I do it all the time) that's do exactly what you want. However, that's particular to Amazon, in that they force a one-character inset that you can't override, and Calibre defaults to Amazon's standards, unless you reset when exiting your ePub file to override the defaults (which I also do). Amazon will still stick with their single indent, but it'll preserved with every non-Amazon format.

Replies:   Switch Blayde
Switch Blayde 🚫

@Vincent Berg

that's particular to Amazon, in that they force a one-character inset that you can't override

Actually, the indent in the .mobi is larger than it is in the .epub from the same source. Much more than one character.

Replies:   Vincent Berg
Vincent Berg 🚫

@Switch Blayde

Actually, the indent in the .mobi is larger than it is in the .epub from the same source. Much more than one character.

Sorry, but I was thinking of those for backquotes, but then again, maybe Amazon finally relented and removed their previous, long-standing one-character space indent limitation.

Ernest Bywater 🚫

@Switch Blayde

I suspect the issue may be more to do with the base code in the .docx as I have no problems with a blockquote style paragraph in my .mobi files of my stories. However, I create them from the same .html code I use for making my .epub files - both done in Calibre.

In my code I use a CSS of:

.quote {
color: blue;
display: block;
font-size: 1.0em;
font-style: italic;
font-weight: normal;
line-height: 1.0em;
text-align: justify;
text-indent: 0;
padding-top: 1.0em;
margin: 0 2.2em 0 2.2em
}

Also, from my memory of when I used to use MS Word, back in the days of Win XP the MS code for Blockquote was different to the MS Code for margins and indents.

Switch Blayde 🚫

@Switch Blayde

Well, Amazon didn't have a problem converting the .epub I uploaded to KDP. At least their Previewer had it perfect.

But they probably didn't convert it to MOBI. There was a note that said that as of August 1, 2021 there will no longer be support for files in MOBI.

I'm waiting to hear back from Lazeez if I can upload the .AZW3 file to Bookapy for their Kindle version (I've always uploaded .mobi).

Replies:   Vincent Berg
Vincent Berg 🚫

@Switch Blayde

I'm waiting to hear back from Lazeez if I can upload the .AZW3 file to Bookapy for their Kindle version (I've always uploaded .mobi).

When I first saw that, I wondered the same thing. Of course, the reason is that the ONLY difference between the two is that the AZ is the inclusion of DRM (Digital Rights Management copying restrictions). However, there are various tools available to strip the DRM restrictions from AZW3 files anyway, so ...

It's one thing to say 'You can ONLY submit DRM free stories' and it's another entirely to say 'We'll STRIP any DRM restrictions from your submissions'!

Replies:   Switch Blayde
Switch Blayde 🚫

@Vincent Berg

It's one thing to say 'You can ONLY submit DRM free stories' and it's another entirely to say 'We'll STRIP any DRM restrictions from your submissions'!

I just published the novel on Bookapy (waiting on the moderators). I was going to only publish the .epub and PDF versions on Bookapy since the .mobi version is bad and a Kindle version will be on Amazon, but I want to support Bookapy over Amazon so I uploaded the AZW3 version. We'll see what the moderator does.

Switch Blayde 🚫

@Switch Blayde

I found this on the kboards:

If you are converting from ePub to the Kindle, best use the AZW3 (KF8) format. AFAIK, It allows many of the more complex formatting options that ePub has had for a long time to be transferred to the Kindle. Such as indenting block quotes, proper table formatting, etc.

Notice the "Such as indenting block quotes."

Switch Blayde 🚫

@Switch Blayde

And another user on kboards said:

Don't download MOBI! Download EPUB and use Calibre to convert to AZW3, or whatever format you may need to use now or in the future.
AZW3 has better performance than MOBI, is much smaller, and shows up on your Kindle as a book and not a personal document.

Replies:   Vincent Berg
Vincent Berg 🚫

@Switch Blayde

And another user on kboards said:

Don't download MOBI! Download EPUB and use Calibre to convert to AZW3

Only, there's the bit about Lazeez accepting it. For all we know, he'll just convert it back to MOBI. I suspect issue is DRM, or maybe there are other triggers which cause conversion complications, but it's basically in his hands.

Replies:   Switch Blayde
Switch Blayde 🚫

@Vincent Berg

Only, there's the bit about Lazeez accepting it. For all we know, he'll just convert it back to MOBI.

He never replied to my question so I published it as .AZW3 and it's out there. Did he change it to .mobi? I have no idea. And since the problem is in Chapter 43, it's way beyond the sample pages so I can't see it.

Dominions Son 🚫
Updated:

@Switch Blayde

Which book is it?

What I see in Bookappy under S.W. Blayde has the latest as published last November.

Replies:   Switch Blayde
Switch Blayde 🚫

@Dominions Son

Which book is it?

"Lonely War Widows."

It's the first book on Bookapy's home page.

Lazeez Jiddan (Webmaster)
Updated:

@Switch Blayde

He never replied to my question so I published it as .AZW3 and it's out there. Did he change it to .mobi? I have no idea. And since the problem is in Chapter 43, it's way beyond the sample pages so I can't see it.

No. I didn't convert it. Actually, I had to change the submission code in order for it to allow you to submit it, otherwise it would have rejected it as an unacceptable filetype.

I guess I overlooked replying. These days with too many things going on, I'm not keeping proper track of what I did and didn't do.

So I modified the code to allow it as a test and see what the readers say. If they complain I may have to change my mind about accepting azw3 files.

Switch Blayde 🚫

@Lazeez Jiddan (Webmaster)

So I modified the code to allow it as a test and see what the readers say. If they complain I may have to change my mind about accepting azw3 files.

Thanks.

Vincent Berg 🚫

@Lazeez Jiddan (Webmaster)

So I modified the code to allow it as a test and see what the readers say. If they complain I may have to change my mind about accepting azw3 files.

As far as this is concerned, I don't mind submitting the mobi file separately for Bookapy (unlike AWZ3 for everywhere else), but as Switch noted, that option is going away due to changes in Calibre.

If you want to preserve the MOBI format requirement, let us know soon. I can easily maintain two separate versions (desktop and laptop), though that'll get difficult in the long run as Calibre continue churning out changes. Also, I've kept a VERY complete list of previous versions, retaining all of the relevant Apple dmg installation files, if anyone needs on for Bookapy postings.

Vincent Berg 🚫

@Switch Blayde

And since the problem is in Chapter 43, it's way beyond the sample pages so I can't see it.

We've had this discussion before, and I'm pretty sure that Lazeez told me that authors can download copies of their own books, free of charge, although the form never suggests it. Instead, when you click on "Purchase", the mechanism is the same except it doesn't actually charge you anythingβ€”allowing you to confirm formattingβ€”which is particularly handy for those authors who aren't comfortable formatting their own ePubs, AZW3s or Mobis.

Ernest Bywater 🚫

@Switch Blayde

Switch,

The more this is discussed, the more I'm convinced the cause of your problem is buried in the originating .DOCX code and is nothing to do with Calibre itself.

I have a checked a few of my story files where I used Calibre and the same source file to create an .EPUB, an .AZW3, and a .MOBI file with blockquoted text in it and text with different indents. In each case they all 3 appear the exact same way in the 3 different ebook readers I use with the indents and the blockquoting exactly the same.

However, my source file is a .HTML file with a detailed CSS code set at the start of it. Since, shows that Calibre converts to the 3 formats the same from .HTML. Mind you, the smallest file is the EPUB (0.173 MB) while the largest is the AZW3 (2.2 MB) with the MOBI (2.1 MB) just a hair smaller.

I also just tried making an .EPUB, .AZW3, and a .MOBI from the same docx file and got 3 files with different sets of idents and paragraph formats in them.

Switch Blayde 🚫

@Ernest Bywater

my source file is a .HTML file

I tried saving the .docx file as a filtered HTML in Word and using that as the input to Calibre. The results were the same for .mobi.

As long as Bookapy accepts .AZW3 for Kindle, I'm fine. It seems to be a .mobi problem.

Vincent Berg 🚫

@Ernest Bywater

I'm not sure, as I typically only use block quotes when creating SOL-bound SOL files. For every other format, I use the specific paragraph style definitions, which deftly avoid the problem altogether.

ePubs follow the html instructions fairly strictly (with a few glaring exceptions), while SOL strips ALL but a few in-text html commands, forcing the use of the kludgy < blockquote>< /blockquote> command.

Replies:   Switch Blayde
Switch Blayde 🚫

@Vincent Berg

I typically only use block quotes when creating SOL-bound SOL files. For every other format, I use the specific paragraph style definitions

I used the term blockquote as a block of text, not as the HTML blockquote. I do it with left and right indents in my paragraph definition (in Word). My need is for a letter the character is reading. The letter is set off from the rest of the page by deeper left and right indents and is in italics.

Replies:   Vincent Berg
Vincent Berg 🚫

@Switch Blayde

I used the term blockquote as a block of text, not as the HTML blockquote. I do it with left and right indents in my paragraph definition (in Word). My need is for a letter the character is reading.

I do the same, though it works equally well with news broadcasts, road signs or even telepathic messages. Basically, anything that's NOT normal dialogue or descriptive.

However, I normally separate 'indented text' for 'block quote'. Indented text is what you get via Style Definitions, whereas block quotes is what you get when you rely on SOL's automatic formatting (i.e. not my own), since SOL specifically strips out ALL non in-line formatting.

Switch Blayde 🚫

@Switch Blayde

I found this in Calibre's manual:

calibre has an integrated e-book editor that can be used to edit books in the EPUB and AZW3 (Kindle) formats. The editor shows you the HTML and CSS that is used internally inside the book files, with a live preview that updates as you make changes. It also contains various automated tools to perform common cleanup and fixing tasks.

You can use this editor by right clicking on any book in calibre and selecting Edit book.

Notice the editor is for EPUB and AZW3. Not MOBI. I thought that might be an error so I went into Calibre and checked. I could edit the EPUB and AZW3 ebooks, but not the MOBI one.

I'm not sure how much support Calibre has for MOBI. And based on what I read on the Amazon KDP site when uploading my novel, it sounds like MOBI is going away. The message was that as of August 1, 2021, it no longer supported files in MOBI (I assume they mean uploading a MOBI file β€” I upload an EPUB file).

Lazeez, something to be aware of. You changed the Bookapy code to accept .AZW3 for Kindle and are waiting to see if there are complaints, but maybe the Kindle format should be AZW3. Kindle is Amazon. Amazon said KDP support for it ended August 1, 2021. Calibre treats it as a second-class format. Maybe MOBI is dead.

Replies:   Vincent Berg
Vincent Berg 🚫

@Switch Blayde

Notice the editor is for EPUB and AZW3. Not MOBI.

Technically, you edit the source file, which transfers to the ePub and AZW3 formats, so it's possible it may (at some point) also transfer to the other formats if and when they adopt the functionality in future updates. But the idea is that you set it once, and it carries over. MOBI is inherently more limited (ex: number of available preset fonts, formatting options, etc.) That still, the 'open architecture' (i.e. no DRM) is still a major consideration, though it's hardly required (since anyone can manually remove the DRM protections whenever they want.

As far as MOBI going away, I don't know this for a fact, but I expect that simply means that the MOBI format will simply become unsupported going forward (i.e. no more updates of any kind), not that you won't be able to continue using it.

As for as SOL (Lazeez) is concerned, I agree with you. Given the added features both in the current standard and whatever they come up with in the future, AZW3 is the safer standard. Though I'd expect Lazeez to eventually develop his own anti-DRM for submission, or simply reject DRM submissions entirely. But beyond that, Bookapy supports ALL of my Amazon formatting (via ePub, at least), so I don't see it being an issue.

Switch Blayde 🚫

@Switch Blayde

Ernest, this is the CSS for both EPUB and AZW3:

For the blockquote paragraphs:

block_16 {
display: block;
font-style: italic;
margin: 0 36pt 6pt;
padding: 0
}

For the normal paragraphs with the first line indented:

block_12 {
display: block;
text-indent: 21.6pt;
margin: 0 0 6pt;
padding: 0
}

I don't have an HTML editor to see what it is for the MOBI. But I bet it's not the same.

Replies:   Ernest Bywater
Ernest Bywater 🚫

@Switch Blayde

Ernest, this is the CSS for both EPUB and AZW3:

For the blockquote paragraphs:

block_16 {
display: block;
font-style: italic;
margin: 0 36pt 6pt;
padding: 0
}

For the normal paragraphs with the first line indented:

block_12 {
display: block;
text-indent: 21.6pt;
margin: 0 0 6pt;
padding: 0
}

I don't have an HTML editor to see what it is for the MOBI. But I bet it's not the same.

I find having the measurements in pt (points) interesting as all of the documents I've seen said you should use ems for all types of e-book margins and indents. My default paragraph and blockquote styles are:

body {
color: black;
display: block;
font-size: 1.0em;
font-style: normal;
font-variant: normal;
font-weight: normal;
line-height: 1.0em;
text-align: left;
text-indent: 1.5em;
padding-top: 1.0em;
margin: 0
}

quote {
color: blue;
display: block;
font-size: 1.0em;
font-style: italic;
font-weight: normal;
line-height: 1.0em;
text-align: justify;
text-indent: 0;
padding-top: 1.0em;
margin: 0 2.2em 0 2.2em
}

Replies:   Keet  Vincent Berg
Keet 🚫

@Ernest Bywater

I find having the measurements in pt (points) interesting as all of the documents I've seen said you should use ems for all types of e-book margins and indents.

Agree with using em, not pt. For those who don't know why: em scales, pt is a fixed size. Nice explanation here: https://kyleschaeffer.com/css-font-size-em-vs-px-vs-pt-vs-percent

For images it is often handy to use % for width which of course also scales. Center an image:
< img style="margin-left:25%" src="..." width="50%";height="auto">. (left 25%, img 50%, right 25% = 100%)

Image left or right with centered text under it:
< p style="float:left;width:50%;text-align:center;padding-right:0.5em;">text
Define a css class for 'imgtext' that formats how you want the image text to look (usually a little smaller and sometimes bold, other color, or different font).
Change float and padding left/right as you want it. The p width % defines the width of the image and the image itself is always 100% 'within' the p %.

Switch Blayde 🚫
Updated:

@Keet

From your article: "As you can see, both the em and percent units get larger as the base font-size increases, but pixels and points do not."

Are you telling me that if pt is used, the reader can't change the font size on their e-reader? I doubt anyone with an e-reader would accept that.

ETA: Calibre's e-reader allows the font size to be changed.

Replies:   Keet  Vincent Berg  LupusDei
Keet 🚫

@Switch Blayde

Are you telling me that if pt is used, the reader can't change the font size on their e-reader? I doubt anyone with an e-reader would accept that.

It's not about changing the font size, of course that can be done. It's about scaling the complete layout independent from it being ebook or plain html/css and independent from the device used. pt is a fixed size that you can not change but you can change the number of pt's for a font. That will only resize the font though and not the rest of the layout which can cause a weird looking layout. If you scale up it's better to have the complete layout scale up and thus retain it's original look. The main advantage is that the base layout remains the same on different devices from phones to PC monitors.

Vincent Berg 🚫

@Switch Blayde

Are you telling me that if pt is used, the reader can't change the font size on their e-reader? I doubt anyone with an e-reader would accept that.

No, readers should be able to specify that (though it's easy enough to override, but with a limited number of available fonts for ANY eBook format, it really doesn't matter, as you really can't monkey with them much anyway, since they 'default' to a specific font anyway.

It just means that .05pt; means that the image will be exactly that small (i.e. 5 image pixels on your display, typically whatever HD image capabilities you have), whereas 1.1em; is always 1.1 the width of each font's character size.

LupusDei 🚫

@Switch Blayde

I don't have an e-reader and so, but by the definitions, the font size would increase, but the indent set in pt would not, staying exact same relative to the screen regardless of font size. While indent set in em would be proportional to the font size, increasing with it on screen.

I wouldn't be surprised if it's not how it works actually, but that's how it should logically be.

Vincent Berg 🚫

@LupusDei

I wouldn't be surprised if it's not how it works actually, but that's how it should logically be.

For many monitors, point sizes and pixels are relatively close, especially on newer high-definition, sublineal (unable to distinguish with the naked-eye) screens. However, font sizes vary considerable!

Switch Blayde 🚫

@LupusDei

the font size would increase, but the indent set in pt would not, staying exact same relative to the screen regardless of font size.

Yeah, that's what it seems to do.

Vincent Berg 🚫

@Keet

For images it is often handy to use % for width which of course also scales.

The nice thing about that is that, since it uses relative adjustments, you only need to stipulate one dimension, rather than both width and height. There's nothing worse than manually calculating an image size and screwing up how it displays!

As far as the image width argument, that's also how WORD documents submitted to Kindle are processed, as 'relative' sizes, where the image typically take up the full page unless you specify the percentage of the page (or the maximum image size limits it).

Vincent Berg 🚫

@Ernest Bywater

I find having the measurements in pt (points) interesting as all of the documents I've seen said you should use ems for all types of e-book margins and indents.

Yeah, I use the em; sizing for everything, as it allows users to modify their favorite fonts themselves, without you overwriting it with you own standards (though I tend to override them on my own, simply to ensure that a particular formatting won't screw up the 'look and feel' of my own internal formatting).

Back to Top

Close
 

WARNING! ADULT CONTENT...

Storiesonline is for adult entertainment only. By accessing this site you declare that you are of legal age and that you agree with our Terms of Service and Privacy Policy.