{"id":31880,"date":"2021-07-08T12:28:00","date_gmt":"2021-07-08T12:28:00","guid":{"rendered":"https:\/\/www.globalizationpartners.com\/?p=31880"},"modified":"2021-07-08T16:14:37","modified_gmt":"2021-07-08T16:14:37","slug":"preparing-rtl-indesign-files-for-epub","status":"publish","type":"post","link":"https:\/\/www.globalizationpartners.com\/2021\/07\/08\/preparing-rtl-indesign-files-for-epub\/","title":{"rendered":"Preparing RTL InDesign files for EPUB"},"content":{"rendered":"<p>Electronic Publication, also known as EPUB is an e-book file format with the extension: .epub, that can be downloaded and read on devices like smartphones, tablets, computers, or e-readers. It is a technical standard and published by the International Digital Publishing Forum (IDPF).<\/p>\n<p>EPUB defines a means of representing, packaging, and encoding structured and semantically enhanced web content \u2014 including XHTML, CSS, SVG, images, and other resources, for distribution in a single-file format.<\/p>\n<p>&nbsp;<\/p>\n<h2>EPUB Versions<\/h2>\n<p>EPUB 2 was initially standardized in 2007 as a successor to the Open eBook Publication Structure or \u201cOEB\u201d, which was originally developed in 1999. In October 2011, EPUB 3 superseded EPUB 2 when EPUB 3.0 was approved as a final recommended specification.<\/p>\n<p>&nbsp;<\/p>\n<h2>Preparing RTL InDesign file, to be exported as EPUB<\/h2>\n<p>Before you can export a high-quality ePUB file from InDesign you must prepare the files for export.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Organized Content Flow<\/strong><\/h3>\n<p>Organize your content into a one text flow, if possible, remember to set the story direction to be from right to left like below:<\/p>\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-31886 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/Organized-Content-Flow-EPUB.png\" alt=\"Organized Content Flow - EPUB\" width=\"421\" height=\"381\" \/><\/div>\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-31891 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/Right-to-Left-Story-Direction-EPUB.png\" alt=\"Right-to-Left Story Direction - EPUB\" width=\"445\" height=\"294\" \/><\/div>\n<p>&nbsp;<\/p>\n<h3>Set the Language Setting For the Document<\/h3>\n<p>Set the language for all the documents by assigning the language to all the paragraphs and character styles like below:<\/p>\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-31896 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/Advanced-Character-Formats-EPUB.png\" alt=\"Advanced Character Formats - EPUB\" width=\"462\" height=\"208\" \/><\/div>\n<p>&nbsp;<\/p>\n<h3>Use Latin Numbers Only<\/h3>\n<p>For the right to left documents, do not use Hindi or Farsi numbers, as only English and Arabic numbers (1, 2, 3,\u00a0 ..) will appear correctly in EPUB files.<\/p>\n<p>&nbsp;<\/p>\n<h3>Be Careful With Diacritic<\/h3>\n<p>Always give extra attention to the diacritic position and view especially if it is related to the right to left documents. You must adjust the diacritic setting and review it carefully before you publish.<\/p>\n<p>To set the diacritic setting, see below:<\/p>\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-31901 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/Diacritic-Settings-EPUB.png\" alt=\"Diacritic Settings - EPUB\" width=\"350\" height=\"250\" \/><\/div>\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-31911 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/Diacritic-Positioning-EPUB.png\" alt=\"Diacritic Positioning - EPUB\" width=\"350\" height=\"250\" \/><\/div>\n<p>&nbsp;<\/p>\n<p>There is no recommended combination of settings, just choose the best for your publication. Below you can see the most common setting, but you may need to change it depending on the publication nature.<\/p>\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-31916 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/Diacritic-Positioning-Settings-EPUB.png\" alt=\"Diacritic Positioning Settings - EPUB\" width=\"350\" height=\"250\" \/><\/div>\n<p>&nbsp;<\/p>\n<h3>Divide Long Documents Into Separate Files if Needed<\/h3>\n<p>If the document is too long or contains a lot of footnotes and\/or any other items that make the file slow, then it is recommended to split the document into many files based on logical order and then combine all the documents together in an InDesign book file (<strong>File &gt; New &gt; Book<\/strong>).<\/p>\n<p>To split the document at a certain level, you need to set the below option on the Paragraph Style Options \u2013 see below:<\/p>\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-31921 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/Export-Tagging-EPUB.png\" alt=\"Export Tagging - EPUB\" width=\"451\" height=\"189\" \/><\/div>\n<p>&nbsp;<\/p>\n<p>To complete the action, you need to select the below when exporting to EPUB.<\/p>\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-31926 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/Paragraph-Style-Export-Tags-EPUB.png\" alt=\"Paragraph Style Export Tags - EPUB\" width=\"519\" height=\"115\" \/><\/div>\n<p>&nbsp;<\/p>\n<h3>Anchor Graphics and Design Elements<\/h3>\n<p>Images and other document elements, such as sidebars and callouts, need to be anchored within the main body of the text, so they are incorporated with the text when it reflows.<\/p>\n<p>An anchored object is part of a paragraph, and will always appears in line with the specific paragraph when viewed in an eBook reader.<\/p>\n<p>&nbsp;<\/p>\n<h3>Apply Paragraph and Character Styles<\/h3>\n<p>The most reliable way to ensure that your formatted text is preserved in the exported EPUB file is to apply the paragraph and character styles to all the text in your document.<\/p>\n<p>When doing this please make sure to:<\/p>\n<ol>\n<li>Set the direction of the paragraph, character, and table style to match the right to left direction<\/li>\n<li>There must be NO overrides<\/li>\n<li>Style naming is particularly important, do not use Arabic letters as style names<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h3><strong>Create a table of contents<\/strong><\/h3>\n<p>A table of contents (TOC) is an essential element of any eBook because it allows a reader to quickly jump to specific sections. Two kinds of TOCs can be included in an eBook: a TOC located at the beginning of the eBook and one that functions as a navigation menu in an eBook reader.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Document TOC<\/strong><\/h3>\n<p>Creating an automatic TOC in InDesign depends on using styles to allow InDesign to recall to the TOC page. InDesign allows you to add the styles you want to include in the TOC, assign certain styles to each entry, add page numbers or exclude them, and many other options.<\/p>\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-31931 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/Document-TOC-EPUB.png\" alt=\"Document TOC - EPUB\" width=\"425\" height=\"396\" \/><\/div>\n<p>&nbsp;<\/p>\n<p><strong>Navigation TOC<\/strong><\/p>\n<p>To create a TOC that functions as a navigation menu, you must set up a TOC style by choosing <strong>Layout &gt; Table of Contents Styles<\/strong>. You can then specify the TOC style when you export the EPUB file, then InDesign uses it as the basis for generating the TOC.<\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>How to export to EPUB<\/strong><\/p>\n<p>After the file has been correctly formatted, it is time to export it to EPUB. To export a document, choose: <strong>File &gt; Export &gt;\u00a0 EPUB <\/strong>(Reflowable).<\/p>\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-31936 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/Export-to-EPUB.png\" alt=\"Export to EPUB\" width=\"339\" height=\"42\" \/><\/div>\n<p>&nbsp;<\/p>\n<p>Below a list of options that are included in this window:<\/p>\n<ul>\n<li><strong>Version<\/strong> &#8211; Choose either EPUB 2.0.1 or EPUB 3.0.<\/li>\n<\/ul>\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-31941 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/EPUB-Version.png\" alt=\"EPUB Version\" width=\"337\" height=\"107\" \/><\/div>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Cover &#8211; <\/strong>On the cover, you have three options:<\/li>\n<\/ul>\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-31946 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/EPUB-Cover.png\" alt=\"EPUB Cover\" width=\"248\" height=\"87\" \/><\/div>\n<p>&nbsp;<\/p>\n<ol>\n<li><strong>None<\/strong>: it is recommended to use this option and create the cover page at the start of your document<\/li>\n<li><strong>Rasterize the first Page<\/strong>: this will outline the first page of your document. It is OK if you are sure 100% that you will not need to change anything in your image because it will not be editable if you used any of the EPUB editors<\/li>\n<li><strong>Choose Image<\/strong>: this allows you to choose the image from any location on your device. This is like \u201cNone\u201d, except that you must be sure about the size of the image you choose<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Navigation TOC <\/strong>\u2014you have two options:<\/li>\n<\/ul>\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-31951 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/Navigation-TOC-EPUB.png\" alt=\"Navigation TOC - EPUB\" width=\"338\" height=\"97\" \/><\/div>\n<p>&nbsp;<\/p>\n<ol>\n<li><strong>File Name:<\/strong> this will show the file name only in the TOC Navigation Tab on the EPUB viewer<\/li>\n<li><strong>Multi-Level<\/strong>: (TOC Style): this means that you will have complete TOC of the document contents. Please refer to the \u201cCreate a table of contents\u201d section for more details<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-31956 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/TOC-Navigation-Tab-EPUB.png\" alt=\"TOC Navigation Tab - EPUB\" width=\"326\" height=\"88\" \/><\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>There are 3 options in the \u2018Content\u2019:<\/strong><\/h3>\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-31966 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/Content-Options-EPUB.png\" alt=\"Content Options - EPUB\" width=\"370\" height=\"126\" \/><\/div>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Split Document<\/strong> \u2014you have two options:<\/li>\n<\/ul>\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-31971 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/Split-Document-EPUB.png\" alt=\"Split Document - EPUB\" width=\"470\" height=\"104\" \/><\/div>\n<p>&nbsp;<\/p>\n<ol>\n<li><strong>Single Paragraph Style:<\/strong> For this option, you can choose the specific paragraph style from its drop-down, however, in this case, only one paragraph style can be chosen.\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-31976 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/Single-Paragraph-Style-EPUB.png\" alt=\"Single Paragraph Style - EPUB\" width=\"349\" height=\"150\" \/><\/div>\n<p>&nbsp;<\/li>\n<li><strong>Based on Paragraph Style export tags<\/strong>: using this option you can choose more than one style to split the document into the required sections.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><strong>Remove Forced Line Breaks<\/strong> \u2014forced line breaks can cause problems when a document is converted to EPUB. Problems can occur when we leave the line breaks in the document, but also when we simply remove them to understand the issue clearly.<\/p>\n<p>After exporting to EPUB there is still some work to be done in the CSS and HTML files to set the fonts, unicode, direction to match the RTL language needs.<\/p>\n<p>For Unicode use: &lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<\/p>\n<p>For direction use:\u00a0 &lt;div id=&#8221;_idContainer009&#8243; class=&#8221;Basic-Text-Frame&#8221; dir=&#8221;rtl&#8221;&gt;<\/p>\n<p>For Language use: &lt;dc:language&gt;ar&lt;\/dc:language&gt;<\/p>\n<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-31981 aligncenter\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2021\/07\/Remove-Forced-Line-Breaks-EPUB.png\" alt=\"Remove Forced Line Breaks - EPUB\" width=\"501\" height=\"101\" \/><\/div>\n<div align=\"center\"><\/div>\n<div align=\"center\"><\/div>\n<div align=\"center\"><\/div>\n<p>&nbsp;<\/p>\n<p><strong>Conclusion<\/strong><\/p>\n<p>ePUB is the preferred format for a broad range of publications. It is considered essential for creating documents adhering to the best practices regarding accessibility. Today, \u00a0ePub formats are embedded in many systems and workflows for document authoring and publishing and it is not just a distribution file format.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Electronic Publication, also known as EPUB is an e-book file format with the extension: .epub, that can be downloaded and read on devices like smartphones, tablets, computers, or e-readers. It is a technical standard and published by the International Digital Publishing Forum (IDPF). EPUB defines a means of representing, packaging, and encoding structured and semantically [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":31881,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[203,81,310,1781],"_links":{"self":[{"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/posts\/31880"}],"collection":[{"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/comments?post=31880"}],"version-history":[{"count":19,"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/posts\/31880\/revisions"}],"predecessor-version":[{"id":32234,"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/posts\/31880\/revisions\/32234"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/media\/31881"}],"wp:attachment":[{"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/media?parent=31880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/categories?post=31880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/tags?post=31880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}