--
You received this message because you are subscribed to the Google Groups "anthemion-jutoh" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anthemion-jut...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/anthemion-jutoh/97d8e30f-3928-4283-991c-2afb031ca38an%40googlegroups.com.
There may well be better ways to do it that I haven’t thought of, perhaps with more custom CSS.
Paragraph styles: Speech Bubble Left Outer Paragraph, Speech Bubble Right Outer Paragraph should be applied to the paragraph containing the text box. Speech Bubble Inner Paragraph should be applied to the paragraph within the text box.
Note that there is custom CSS in the style sheet to set the left margin for the right-aligned text box, which you can edit via Project Properties/Styles, third icon. This is necessary because Kindle (at least) doesn’t obey right-alignment for the paragraph containing the text box. But setting the left margin pushes the box to the right. Right-alignment is still enabled for the paragraph style ‘Speech Bubble Outer Paragraph Right’ so it looks correct in Jutoh.
If you want to change aspects of the boxes such as colour, padding around the text, and so on, edit the box styles, not the individual boxes. Changes will be applied automatically.
Width: this is the biggest problem. It’s not possible to reproduce the situation where the bubble is the correct width for a small message, but it is still right-aligned; Kindle in particular ignores right-alignment for a text box, so the alignment has to be fixed with a percentage box margin. So I have chosen a 50% text box width. You could use a different size, but you should also then change the CSS specifying the left margin width for Speech Bubble Right, which you need to do by editing the custom CSS in the style sheet properties as Jutoh doesn’t allow percentage margin values.
A workaround might be to have, say, three different sizes of box for large, medium and small messages, and use those as appropriate.
Spacing: for some reason Kindle isn’t honouring the outer text paragraph bottom margin so adjust the bottom margin in the text box styles to change spacing.
Font: I have added an embedded font. Currently message text is marked as Calibri in Jutoh (via the inner paragraph style) but mapped to the DejaVu Sans embedded font. You can find a font that is better for text messages.
Hyphenation: unfortunately it doesn’t seem possible to turn hyphenation off for individual paragraph styles in Kindle, or (AFAIK) the whole book, so that’s not ideal. It’s possible that some Epub readers will respond to the ‘hyphen: none’ CSS so you could add this to the custom CSS for the inner paragraph style (via the style sheet custom CSS), but it made no difference on Kindle when I tried it.
To view this discussion, visit https://groups.google.com/d/msgid/anthemion-jutoh/d7ae5cd4-8c5b-4b8d-bdb7-19bf598c0904n%40googlegroups.com.