View Single Post
Old 06-19-2018, 09:59 AM   #1
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,816
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Issue with drop caps under the .kfx format

Hi friends;

As all you know, Amazon has developed a new ebook format, .kfx. Supposly, that new format, among others things, would deliver perfect drop caps for all kindle devices with support for .kfx. However things not to seem being so. Many times, before the drop cap there is a symbol (an "em" dash, a quotation mark, a question mark, etc.) and when that is the case, then things look awfull under .kfx (but they look fine under .kf8).

Watch the picture below:

Click image for larger version

Name:	Image1.png
Views:	1060
Size:	117.4 KB
ID:	164557

In Kindle for Android, the page break after the drop cap is not present, but the cap (—L) looks tiny and there is a big gap before starting the text. I made a lot of trials but I couldn't fix the issue. The code I'm employing now (and works fine with .kf8) is the following:

Code:
<p><span class="dropcap"><span class="sm">—</span>L</span>orem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac tellus nunc.
and the css styles are:

Code:
.dropcap {
  float: left;
  font-size: 3em;
  font-weight: bold;
  margin: -0.2em 5px -0.3em 0;
}

.sm {
  vertical-align: 40%;
  font-size: 40%;
}
Attached to this post, you can find the respective .epub.

I will appreciate any tip you can give me about how to solve this problem. Many thanks in advance.

Regards
Rubén
Attached Files
File Type: epub Drop for KFX.epub (2.6 KB, 494 views)
RbnJrg is offline   Reply With Quote