Copy link to clipboard
Copied
Hello Everyone,
I would like to ask. Because I have a problem with aligning text in the Epub fix-layout file (Indesign program).
Setting Text Paragraph to Alignment is Left Justify, and it will display normally in the program.
But when Preview Epub in the program or Export.
Open in the "Books" app, the text will be aligned to the left. Some spaces between words are stuck, some are overlapping, and some words are cut off strangely (as shown in the attached image and circled in red).
I'm not sure if I made a mistake somewhere, so I would like to ask if there is a way to fix it.
Please help.
Thank you 🙂
Copy link to clipboard
Copied
Tagging @James Gifford—NitroPress
Copy link to clipboard
Copied
The InDesign fixed-layout export positions each word individually. And that position is abolute — not matter the word spacing. So if, say, the embedded fonts aren't working as expected, then you will have display issues. What's very likely happening here is that you have tracking applied in the InDesign layout. Tracking doesn't preserved as expected in HTML and CSS and will throw off how the content displays.
Finally, I would strongly suggest that given the amount of text in your examples, that fixed-layout isn't the right format for this EPUB. FXL is meant for image-heavy content like graphic novels, manga, and children's picture books only. It's not a very nice reading experience for text-heavy content.
Copy link to clipboard
Copied
Is there some FXL mode or model that does not position words using absolute methods?
Copy link to clipboard
Copied
In a way, yes. InDesign's FXL export applies spans with positioning information at the word level. This is a bonkers ways to do it and almost inevitably leads to rendering issues, no matter the reading system. It's much more agile to apply positioning CSS at the <div> or <p> level — far fewer display issues as a result. And better for accessibility as well. There are plugins and scripts that allow for this kind of export — CircularFlo, most notably. This blog post may be of interest.
Copy link to clipboard
Copied
Noted, thanks.
But we seem to be in agreement that FXL of any stripe should be avoided for 'text' books. 🙂
Copy link to clipboard
Copied
And (would be an ETA but for further posts), I'd recommend against using ID's FXL export for anything of any desired end result, even the few things that are nominally better in fixed format.
It's not what the OP wants to hear, but I'd go as far as suggesting a (dismissible) pop-up for FXL exports along the line of "Dear Newcomer, Fixed-Layout EPUB is probably not a good choice for your project unless you fully understand its demands and limitations. It doesn't work anything like a variation of PDF. Back up and reconsider reflowable export." 🙂
Copy link to clipboard
Copied
Looks like I really need to finally finalise ePUB export in my tool 😉 it's almost possible even right now - including Anchoring objects in the text - but a few dedicated rules would be much better for the end user.
Copy link to clipboard
Copied
Thanks for reply. I understand.
But I only want the text to be alignment text is Left Justify.
I saw some people can do this. If you know how to fix it please tell me. Thanks.
Copy link to clipboard
Copied
Make sure that the font you are using is OTF or TTF, not postscript. And take any tracking or kerning off in the source InDesign file. Then try exporting again to see what happens.
Copy link to clipboard
Copied
This file Demo Epub
Copy link to clipboard
Copied
A couple of things:
Copy link to clipboard
Copied
There's been very little change in FXL export for quite some time, AFAIK. For that matter, there were hardly any changes in reflowable until the round of accessibility-focused ones in v20.x.
Copy link to clipboard
Copied
That's not true. Many of the changes we have engineered for more accessible EPUBs affect how the FXL exports as well.