Skip to main content
August 13, 2021
Answered

Drop Caps with two characters gets reversed in epub

  • August 13, 2021
  • 1 reply
  • 273 views

I though I posted about this before, but I can't find it. When I do a dropcap with two characters the characters get reversed in the epub.

So a quote and letter ("T) will look like this: T". I have a ¶ style created for a single character dropcap and another ¶ style created for a two character dropcap. They look normal in the Indesign doc and in PDF, but in the epub they are reversed. I can't figure it out. My fix has been to fix the HTML. 

The weird thing is they are in the right order in the HTML, but it inserts another instance of the span class for each character:

<p class="Body1st2DC"><span class="DC _idGenCharOverride-2">“</span><span class="_idGenDropcap-1">J</span><span class="italic _idGenCharOverride-1">uli.”</span></p>
<p class="Body">He heard the first whisper but waited for the second.</p>

 

So if I take that out: 

<p class="Body1st2DC"><span class="_idGenDropcap-1">“J</span><span class="italic _idGenCharOverride-1">uli.”</span></p>

 

Then it's right. Any idea why this might be happening? Or how to prevent it. 

Also, I have "Preserve Overrides" turned OFF. But I still see lots of overrides in my html. I don't understand this either!

 

 

This topic has been closed for replies.
Correct answer Mike Witherell

The quote mark in your example XHTML code seems sketchy. 

These are codes for quote marks:

&ldquo; &rdquo

or also

&#8220; &#8221

 

 

1 reply

Mike Witherell
Community Expert
Mike WitherellCommunity ExpertCorrect answer
Community Expert
August 14, 2021

The quote mark in your example XHTML code seems sketchy. 

These are codes for quote marks:

&ldquo; &rdquo

or also

&#8220; &#8221

 

 

Mike Witherell