Highlighted

Epub fixed layout - every word contains span element

Participant ,
Mar 19, 2018

Copy link to clipboard

Copied

Hey Everyone,

I export Epub fixed layout from InDesign file, The XHTML file contains span element for every word in paragraphs(Refer below screenshot)

And an epub file size is too large. Any solutions available to export epub without/minimum count of span element?

Screen Shot 2018-03-19 at 3.30.42 PM.png

Thank you all for any help!

John..

TOPICS
EPUB

Views

387

Likes

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

Epub fixed layout - every word contains span element

Participant ,
Mar 19, 2018

Copy link to clipboard

Copied

Hey Everyone,

I export Epub fixed layout from InDesign file, The XHTML file contains span element for every word in paragraphs(Refer below screenshot)

And an epub file size is too large. Any solutions available to export epub without/minimum count of span element?

Screen Shot 2018-03-19 at 3.30.42 PM.png

Thank you all for any help!

John..

TOPICS
EPUB

Views

388

Likes

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
Mar 19, 2018 0
Adobe Community Professional ,
Mar 19, 2018

Copy link to clipboard

Copied

That's what a FXL ePub has (a span element for every word !)

If your document is simple and text heavy, consider producing a reflowable text ePub.

There is an InDesign ePub forum.

Likes

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
Reply
Loading...
Mar 19, 2018 1
New Here ,
Sep 14, 2020

Copy link to clipboard

Copied

This is not correct. In a fixed layout epub every element has a fixed position. But such an element (<div>) can contain more than one word. Every word in a span is Adobe's solution but it is not necessary following the epub standards and techniques. 

Likes

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
Reply
Loading...
Sep 14, 2020 1
Most Valuable Participant ,
Mar 19, 2018

Copy link to clipboard

Copied

Moved to EPUB forum.

As pointed out by Derek, that is how fixed layout epub works. What does too large mean? I did one a few months ago that came in at 750MB.

Likes

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
Reply
Loading...
Mar 19, 2018 0
Explorer ,
Mar 29, 2018

Copy link to clipboard

Copied

The number of SPAN tags is due to the incorrect way to apply character styles.
Changing characters within a paragraph, for example: overwriting an italic by adding bold, produces SPAN tags within the code.
Recommendation: Do not overwrite styles, use character styles over existing paragraph styles.

Likes

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
Reply
Loading...
Mar 29, 2018 0
Adobe Community Professional ,
Mar 29, 2018

Copy link to clipboard

Copied

This is a Fixed Layout ePub, so each word/element must have an absolute position, hence the span tags applied to each word. Maybe you’re getting mixed up with a Reflowable Text ePub.

Likes

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
Reply
Loading...
Mar 29, 2018 0
Community Beginner ,
Jul 23, 2020

Copy link to clipboard

Copied

I exlusively make fixed layout epubs (children's books) and I know from editing my epubs manually pretty frequently that it's totally possible to put each whole line of text into a single span and have that line remain fixed. I think you MAY need to seperate any individual words that have a diferent character style on them into a seperate span, but it may be possible to nest.

This is a lot of work to do manually however, and I usually only do this when I have to make an edit to a line of text because the line-ending was incorrect (compared to the print book). It would be great if inDesign exported epubs with line-by-line spans instead of word-by-word automatically, as the former is much better for accessibility (screenreaders for people with vision impairment, brail readers etc).

Likes

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
Reply
Loading...
Jul 23, 2020 0
New Here ,
Sep 14, 2020

Copy link to clipboard

Copied

You are absolutly right. There should be an option to choose how it should be exported. The other problem with the every-word-in-a-span think is that it is hardly possible to search in EPUBs which are produced like this.  

Likes

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
Reply
Loading...
Sep 14, 2020 1