Answers.Body: <p>Look in the epub OPF file (open it in Calibre, Sigil, or a text editor) to see if any foreign language code is added that uses a RTL setting. For you the correct setting should be 'en-us' or 'en' (if that is your country where epub is published and read [LTR]). You might find that when it exported from InDesign that it mistakenly included other languages such as:</p>
  <pre><code>&lt;dc:language&gt;en-us&lt;/dc:language&gt;
  &lt;dc:language&gt;de-DE&lt;/dc:language&gt;
  &lt;dc:language&gt;ar-SE&lt;/dc:language&gt;
  </code></pre>
  <p>Read the following.
  <a href="https://community.adobe.com/t5/indesign-discussions/inverted-pages-left-right-while-viewing-epub-in-adobe-digital-editions/m-p/9683899" rel="nofollow noreferrer">Adobe1</a> and
  <a href="https://community.adobe.com/t5/indesign-discussions/epub-displaying-right-to-left/td-p/9572440" rel="nofollow noreferrer">Adobe2</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-09-11T13:54:58.020Z
Answers.Text: That was it.  Thanks.  Do you know *why* InDesign would generate  `<dc:language>ar-SA</dc:language>` in the generated EPUB?  There is no Arabic anywhere in the InDesign document.
Answers.UserDisplayName: Bob Brown
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-09-11T23:23:43.457Z
Answers.Text: Possibly a human coded programming bug. 
  Then later today ... I tested exporting my InDesign book to Epub format and it did NOT have any additional languages in the Epub OPF file (my default ID book language is preset to EN-US). So...per this web link it suggests setting the default language in InDesign in the 'Character Panel'; this may resolve keeping your exported Epub in your default language (without adding additional languages).  
  
  https://www.accessiblepublishing.ca/working-with-indesign/#primary-lang
Answers.UserDisplayName: granite
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-09-12T12:33:29.293Z
Answers.Text: Thanks!  I'll set the language.
Answers.UserDisplayName: Bob Brown
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-09-11T00:55:00.253Z
Answers.LastActivityDate: 2023-09-11T00:55:00.253Z
Answers.UserDisplayName: granite
Body: <p>I am working, not to say struggling, with an EPUB3 book exported from InDesign 2023.</p>
  <p>The dedication page looks like this in Sigil:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;en-US&quot; xml:lang=&quot;en-US&quot; xmlns:epub=&quot;http://www.idpf.org/2007/ops&quot;&gt;
  &lt;head&gt;
      &lt;title&gt;Dedication&lt;/title&gt;
      &lt;link href=&quot;css/idGeneratedStyles_0.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt;
      &lt;link href=&quot;css/idGeneratedStyles_1.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt;
  &lt;/head&gt;
  &lt;body id=&quot;dedication&quot;&gt;
     &lt;p class=&quot;FRONT-MATTER_Dedication&quot;&gt;To the hundreds of&lt;br/&gt;Southern Polytechnic State University &lt;br/&gt;
  students who helped me refine&lt;br/&gt;my approach to this material,&lt;br/&gt;thank you! &lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>When I upload to Google Play Books and look at it with the Web book viewer, it looks like this:
  <a href="https://i.sstatic.net/3lqG8.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/3lqG8.png" alt="Image of text with punctuation moved" /></a></p>
  <p>The punctuation on the last two lines has been moved to the beginning of the line!</p>
  <p>It looks right in Sigil, in the Google Play Books viewer for Android, and in Calibre, but I'm reluctant to just say &quot;aberration&quot; and forget about it. A little time with Google finds one similar case that appears to be confusion of  <code>dir=&quot;rtl&quot;</code>.  To test, I added <code>dir=&quot;ltr&quot;</code> to the <code>&lt;p&gt;</code> element, and that fixed it.  My question is <strong>why</strong> would I need to do that?</p>
  <p>For the record, the CSS for FRONT-MATTER_Dedication looks like this:</p>
  <pre><code>p.FRONT-MATTER_Dedication {
    -epub-hyphens: none;
    color: #000000;
    font-family: &quot;Minion Pro&quot;, serif;
    font-size: 1.333em;
    font-style: italic;
    font-variant: normal;
    font-weight: normal;
    line-height: 1.5;
    margin-bottom: 9px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 126px;
    orphans: 1;
    page-break-after: auto;
    page-break-before: auto;
    text-align: center;
    text-decoration: none;
    text-indent: 0;
    text-transform: none;
    widows: 2;
  }
  </code></pre>
  <p>It was generated by InDesign, so there's some useless stuff in there, but I can see nothing harmful.</p>
  
Tags: <epub><indesign><sigil>
Title: Punctuation Moved to Beginning of Line?
UserDisplayName: Bob Brown
ThreadText: # Punctuation Moved to Beginning of Line?
  
  (Asked by: username_0 on 2023-09-10)
  
  I am working, not to say struggling, with an EPUB3 book exported from InDesign 2023.
  The dedication page looks like this in Sigil:
  
  
  
  
      Dedication
      
      
  
  
     To the hundreds ofSouthern Polytechnic State University 
  students who helped me refinemy approach to this material,thank you! 
  
  
  
  When I upload to Google Play Books and look at it with the Web book viewer, it looks like this:
  
  The punctuation on the last two lines has been moved to the beginning of the line!
  It looks right in Sigil, in the Google Play Books viewer for Android, and in Calibre, but I'm reluctant to just say "aberration" and forget about it. A little time with Google finds one similar case that appears to be confusion of  dir="rtl".  To test, I added dir="ltr" to the  element, and that fixed it.  My question is why would I need to do that?
  For the record, the CSS for FRONT-MATTER_Dedication looks like this:
  p.FRONT-MATTER_Dedication {
    -epub-hyphens: none;
    color: #000000;
    font-family: "Minion Pro", serif;
    font-size: 1.333em;
    font-style: italic;
    font-variant: normal;
    font-weight: normal;
    line-height: 1.5;
    margin-bottom: 9px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 126px;
    orphans: 1;
    page-break-after: auto;
    page-break-before: auto;
    text-align: center;
    text-decoration: none;
    text-indent: 0;
    text-transform: none;
    widows: 2;
  }
  
  It was generated by InDesign, so there's some useless stuff in there, but I can see nothing harmful.
  
  **Tags:** epub, indesign, sigil
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-09-11. Score: 1 | Accepted answer
  
  Look in the epub OPF file (open it in Calibre, Sigil, or a text editor) to see if any foreign language code is added that uses a RTL setting. For you the correct setting should be 'en-us' or 'en' (if that is your country where epub is published and read [LTR]). You might find that when it exported from InDesign that it mistakenly included other languages such as:
  en-us
  de-DE
  ar-SE
  
  Read the following.
  Adobe1 and
  Adobe2
  
  > **Comments:**
  > **username_0**: That was it.  Thanks.  Do you know *why* InDesign would generate  `<dc:language>ar-SA</dc:language>` in the generated EPUB?  There is no Arabic anywhere in the InDesign document.  
  > **username_1**: Possibly a human coded programming bug.  Then later today ... I tested exporting my InDesign book to Epub format and it did NOT have any additional languages in the Epub OPF file (my default ID book language is preset to EN-US). So...per this web link it suggests setting the default language in InDesign in the 'Character Panel'; this may resolve keeping your exported Epub in your default language (without adding additional languages).    https://www.accessiblepublishing.ca/working-with-indesign/#primary-lang  
  > **username_0**: Thanks!  I'll set the language.  
  
  ---
  
  