• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Drop Caps with two characters gets reversed in epub

Participant ,
Aug 13, 2021 Aug 13, 2021

Copy link to clipboard

Copied

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!

 

 

TOPICS
Bug , EPUB

Views

136

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 14, 2021 Aug 14, 2021

The quote mark in your example XHTML code seems sketchy. 

These are codes for quote marks:

&ldquo; &rdquo

or also

&#8220; &#8221

 

 

Votes

Translate

Translate
Community Expert ,
Aug 14, 2021 Aug 14, 2021

Copy link to clipboard

Copied

LATEST

The quote mark in your example XHTML code seems sketchy. 

These are codes for quote marks:

&ldquo; &rdquo

or also

&#8220; &#8221

 

 

Mike Witherell

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines