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

Urgent: ID 17.2.1 English LTR book with any RTL text wrongly exports as RTL epub

New Here ,
May 05, 2022 May 05, 2022

I consider this urgent; until this is fixed I am stuck, and I cannot export books to epub. I have two waiting now, with more soon.

 

When exporting an epub 3.0 from an academic book written in English with some RTL text sections, typically tables with Hebrew and English text, the epub exports in reverse order. That is, the title page is at the end of the epub, and the last page of the text is the first in the epub. So far it seems that the presence of any RTL elements causes the epub to export as if it were an RTL book.

 

Exporting an English-only epub works properly.

 

I only need to do this every month or two, so I do not know for certain, but I think this bug was in introduced around 17.2. Historically such epubs have always exported properly in LTR.

 

The epub export General tab has the Content -> Order set to "Based on Page Layout". That is the only option available.

 

To reproduce, simply export to epub a document or book with a few RTL elements.

 

I made a 50 page ID file full of lorem ipsum placeholder text, then added three Hebrew words to the top of the file. That was sufficient to cause it to export an RTL epub, with the first page at the end of the epub.

 

The attached screen snap shows the epub pages running right to left. The only RTL characters in the 50+ page document are the three Hebrew words in the first sentence.

TOPICS
Bug , EPUB , Import and export
1.4K
Translate
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 , May 07, 2022 May 07, 2022

Hi Michael,

now I did a quick test with your document.

More details after the weekend.

 

At first glance I cannot see the issue.

 

I'm with the German InDesign 17.2.1 on Windows 10. EPUB viewer was my default viewer for EPUBs on Windows 10, the calibre e-book viewer. Also have the Thorium reader installed.

 

The reflowable EPUB with the Thorium Reader on Windows. No issue as far as I can see:

 

Reflowing-EPUB-Viewer-Thorium-on-Windows.PNG

 

Here the result for an fixed layout  ( FXL ) version of the EPUB where spreads are defined.

My setu

...
Translate
Community Expert ,
May 05, 2022 May 05, 2022

"I only need to do this every month or two, so I do not know for certain, but I think this bug was in introduced around 17.2. Historically such epubs have always exported properly in LTR."

 

Hi nmb52,

if the bug was introduced with 17.2 what is your exact version of InDesign? 17.2.0 or the recent update to 17.2.1 ?

//EDIT: Answered in your title. You are using 17.2.1. ( I obviously need more coffee this morning. )

 

Could you go back to 17.1.0 or 17.0.1 to get this project out?

 

What's the paragraph composer of your main text that does not have entries with Hebrew text?

I would test if it helps to work with the Adobe Paragraph Composer for all text but the one that contains Hebrew.

 

What is the EPUB viewing software for your tests?

Could you attach your sample InDesign document for some tests I like to do?

 

Thanks,
Uwe Laubender

( ACP )

Translate
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
New Here ,
May 06, 2022 May 06, 2022

Hello Uwe, and thanks for your response.

 

The epub viewer is the Mac Books app, latest Big Sur. I delete the epub from the viewer each time I try a new export to be sure that the viewer has no residual content from the previous test.

 

The attached test file uses Ezra SIL SR, available freely here: https://software.sil.org/ezra/

 

I downgraded to 17.1, then to 17.0.1. The test file uses Paragraph Composer for all except the short paragraph with the three Hebrew words, which uses World Ready Composer. I tried removing two of the Hebrew words, then tried with a single Hebrew letter. It exports as an RTL epub in all these configurations, with the first page of the book at the end of the file.

 

The only way I could make it export as an LTR book was to remove all Hebrew characters.

 

Now I don't know why previous exports worked or when it started exporting RTL epubs. As long as things work I give no attention to details such as version number, etc.

 

Thanks again...

Translate
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
Community Expert ,
May 05, 2022 May 05, 2022

I had a similiar problem. I run into that bug. What I had: A biblical commentary with Hebrew groups in the text. Always, when a number was followed the hebrew text (or as space and a pranth between) all text got wired in that paragraph. I created then a Character Style with only Left to Richt text direction, I applied this characterstyle only to a little section before and after the Hebrew text. That solved any output problems.

Translate
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
New Here ,
May 06, 2022 May 06, 2022

Thank you for your response. If I have understood your description, I have seen the same problem. Where there is Hebrew followed by a number, even if there is space or punctuation in between, the punctuation and number are thrown to the left of the Hebrew. So text that should look like this, where HHH… is any Hebrew text:

 

some text HHHH, 1 more text

 

is formatted like this:

 

some text 1 ,HHHH more text.

 

The way I fix that is to insert an 'i' – any small non-numeric character – in between the , and HHHH; the text then displays like this:

 

some text HHHHi, 1 more text

 

I then apply a character style to the i that makes it white (page color) and 0.1 point, so it effectively disappears.

 

I think this is what you are describing. There may be other ways to fix this layout problem, but this is what we worked out.

Translate
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
New Here ,
May 06, 2022 May 06, 2022

I wanted to edit my original post to remove the urgent notice; the publisher does not want to publish this book as an epub, so the time pressure is off. I could not find a way to edit my post, so I will reply to it.

 

In further testing I have found that 17.2.1, 17.1 and 17.0.1 all export the same way.

In my view this is a basic flaw in the epub export system. So far I have not found a way to manually control the RTL/LTR export process. ID appears to assume that the presence of any RTL text – three words, or even a single character, it seems – means that the epub should be exported as if the entire text were RTL, which is incorrect.

Translate
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
Community Expert ,
May 07, 2022 May 07, 2022

Hi Michael,

did not have the time for testing your document.

But you should report that bug to InDesign UserVoice:

https://indesign.uservoice.com/forums/601180-adobe-indesign-bugs

 

There is a category for epub. Did a little search with "Hebrew".

See if there is already a bug report for your issue:

https://indesign.uservoice.com/forums/601180-adobe-indesign-bugs?category_id=209104&query=Hebrew

 

Regards,
Uwe Laubender

( ACP )

Translate
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
Community Expert ,
May 07, 2022 May 07, 2022

Hi Michael,

now I did a quick test with your document.

More details after the weekend.

 

At first glance I cannot see the issue.

 

I'm with the German InDesign 17.2.1 on Windows 10. EPUB viewer was my default viewer for EPUBs on Windows 10, the calibre e-book viewer. Also have the Thorium reader installed.

 

The reflowable EPUB with the Thorium Reader on Windows. No issue as far as I can see:

 

Reflowing-EPUB-Viewer-Thorium-on-Windows.PNG

 

Here the result for an fixed layout  ( FXL ) version of the EPUB where spreads are defined.

My setup was "Convert Spread To Landscape Page":

FXL-EPUB-Spreads-SetUp.PNG

 

The result in the Calibre e-book reader showing spread 2. No issue as far as I can see:

FXL-EPUB-Spreads-SetUp-EXPORTED-CalibreView.PNG

 

With Thorium reader:

FXL-EPUB-Spreads-SetUp-EXPORTED-ThoriumReaderView.PNG

 

Regards,
Uwe Laubender

( ACP )

Translate
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
New Here ,
May 07, 2022 May 07, 2022

Uwe, thank you very much for your work. I had already posted a bug report on Uservoice, but now I need to retract it.

 

This is embarrasing, but now that I look at the epub with the Calibre viewer and with Sigil, I see that the problem is really the Apple Books reader, not the ID export. That had never occurred to me; I did not step back far enough to think about the problem differently. In Sigil I see that the content.opf file has these lines,

 

<dc:language>en-US</dc:language>
<dc:language>he-IL</dc:language>

 

and it appears that from the language specs that the Apple Books app decides to interpret the epub as an RTL book. The Calibre viewer and Kindle Preview 3 apps show the book correctly.

 

So there is no problem with ID export. Thank you again for helping me see this!

Translate
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
Community Expert ,
May 08, 2022 May 08, 2022

Two thoughts to add: Did you try any other documents, or create a new one fresh to make sure it was not a document corruption issue?

 

Also, EPUB is just a tad dependent on reader. Any time you are seeing reading bugs, it's best to try it in other readers before spending too much time trying to fix a particular error. My touchstone is Thorium Reader; if an EPUB presents there without problems, it will probably read fine in every other non-wonky reader. (Defined as those that have quirky features because the developer/s thought they would be a good idea.) Apple Books is... not one of the more standard readers.

 

Translate
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
New Here ,
May 08, 2022 May 08, 2022

Hello, and thanks for your response.

 

The problem I saw was consistent across various ID documents and ID books. I did make a new test document, and it behaved the same way.

 

I have never given much time to epub readers; if a book looked okay in one or two readers I figured it was done. I am quickly discovering that the reader is an integral part of how an epub presents, at least when LTR and RTL languages are mixed.

 

Based on your and Uwe's comments I installed Thorium; I did not know of it before you both mentioned it. I found two problems immediatly: 1, it does not seem to respect page break styles, and 2, it is confused with mixed LTR/RTL languages.

 

Because ID exports epubs with the basic file structure of the book, there are places where I want to insert page breaks with css:  <div style="page-break-before:always"></div>   Thorium does not break the page display; it seems to ignore the style, and I did not quickly see an option to break the displayed pages on it.

 

Looking at an epub with four languages – primarily English with snippets of Hebrew, Greek, and Arabic – the text displays normally as LTR, but navigation by arrow keys or clicking on < > is reversed; I must use the left arrow key or click the < to move to the right, and vice-versa. English-only epubs interact normally.

 

Bottom line is that for mixed LTR/RTL epubs we will need to specify preferred epub readers, or it will not read properly.

Translate
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
Community Expert ,
May 08, 2022 May 08, 2022
LATEST

I'm surprised Thorium has issues with RTL. It's pretty much the most modern, standards-driven reader in the game. But I've seen enough problems with RTL EPUB that I'm not too surprised. It's such a fundamental layer of presentation that every layer above has to be sensitive to that one change, and I suspect a lot of features just assume LTR and never look back.

 

I have done a lot of work with page breaks (as well as space-at-page-top), and Thorium doesn't often disregard them. (ETA: Uh, shoot, I just did some direct testing and it's not as consistent as I thought. I'd like to kick app designers who still hold to the "HTML must be wild and free and flowing!" model of about 1985...)

 

CSS is usually absolute but readers (all readers) sometimes have their own algorithms. I suggest you try using Split Document wherever you need a hard page break; it can be done with paragraph styles if you need more than one style to insert breaks.

 

Translate
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