Welcome to the in5 Answer Exchange! This a place to get answers about in5 (InDesign to HTML5) and make requests.
0 votes

When generating styles for text with an override applied, it would probably be better, at least from my developer perspective, to add a second override class in addition to the original class instead of creating a whole new autoParaStyle, then the override class only contains the affected overrides in the style. 

for example, given a bullet paragraph style 'Num-List' with a right indent of 45px, if overridden to 30px, the generated HTML would look like:

<ol class="Num-List autoOverride1" start="1"> 
     <li>List Text.</li>
</ol>

instead of:

<ol class="autoParaStyle1" start="1"> 
     <li>List Text.</li>
</ol>

so that any styles or js that select for the 'Num-List' style would still apply

in feature_requests by (270 points)
  

1 Answer

0 votes

I'd recommend clearing any style overrides. The in5 export will take less time.
When you export with Text Rendering set to either of the HTML text options, in5 uses the Character, Paragraph, and Object Styles to create the CSS. If there are overrides, then in5 goes through a series of checks to try to "guess" what the style should be. Those guesses are what create the autoParaStyles.
Here's a video that shows how to clear the style overrides:
I'll pass your suggestion along to Justin. Thanks. :)
by (29.9k points)
Oh i know, thank you though. the overrides are kind of necessary for the layouts we work with, particularly in lists where we need to adjust the right margins.

You're welcome. :)

Also, any of the text content with overrides could be converted to images while the rest of the content remains as HTML text using either Object Export Options or grouped with the Render Groups as Images option:

Use Object Export Options

  1. Select the text frame
  2. Go to Object > Object Export Options
  3. Select the EPUB and HTML tab
  4. Set Preserve Appearance From Layout to Rasterize Content
  5. Set the Format (PNG will maintain transparency)
  6. Set the Resolution to 150 for High Definition or 72 for Standard
  7. When you export (in5 > Export HTML5 with in5...), go to the Advanced section of the export dialog
  8. Set Image Quality to Use Object Export Settings

or

Use Render Groups as Images (which will turn any other group in your document into an image)

  1. Group the content that you want to turn into an image (if there's nothing to group with it, you can use an invisible rectangle--one with no stroke and no fill)
  2. When you export (in5 > Export HTML5 with in5...), go to the Advanced section of the export dialog
  3. Select Render Groups as Images

Here's more information on converting text to images including how to set the Object Export Options as an Object Style so that it can be more efficiently applied to other objects: