<div dir="ltr"><div>Hi Regina</div><div><br></div><div>Thanks for bringing this up.</div><div><br></div><div>What would be nice to have is an equivalent feature of the "between" border element, as described in [1] <br></div><div><br></div><div>An example document using this is in bug
#104345 [2]

and we currently don't seem to have a similar feature neither on the UI nor in ODF.</div><div><br></div><div>So, if we could have a copy of this, that could be good for interoperability.<br></div><div><br></div><div>[1] 
<a href="http://officeopenxml.com/WPborders.php">http://officeopenxml.com/WPborders.php</a>

<br></div><div>[2] <a href="https://bugs.documentfoundation.org/show_bug.cgi?id=104345">https://bugs.documentfoundation.org/show_bug.cgi?id=104345</a> <br></div><div><br></div><div>Best Regards</div><div>Gabor Kelemen<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-07-30 0:36 GMT+02:00 Regina Henschel <span dir="ltr"><<a href="mailto:rb.henschel@t-online.de" target="_blank">rb.henschel@t-online.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
you can draw borders on portions of text in Writer. This is currently in loext namespace. I'm working to get this feature to ODF.<br>
<br>
I have noticed the problems described below, when looking what would be needed for interoperability with Word and what would be needed for EPUB export.<br>
<br>
I would be happy to hear some suggestions from you.<br>
<br>
Problem line height<br>
-------------------<br>
EPUB: EPUB uses XHTML and CSS3. Border, margin and padding does not influence the line-height calculation in CSS. Therefore the margin-, border- and padding-box might overlap previous or next lines. But the text inside the box is always regularly visible. Overlapping happens in document order. The border will be painted on top of the previous line and the next line will be painted on top of the border.<br>
<br>
MS Word: Word acts different. If the line-height is proportional (e.g. 1.5 lines) the distance between lines is increased, so that the entire box fits into the line. The additional space is distributed so that the text in the box has the same baseline as the text outside the box. If the line-height is fixed (e.g. 24pt), the height of the box is reduced (not the border width) so that the border might overlap the text inside the box. The border is drawn on top of the text.<br>
<br>
LibreOffice's line height implementation has currently bug <a href="https://bugs.documentfoundation.org/show_bug.cgi?id=69647" rel="noreferrer" target="_blank">https://bugs.documentfoundatio<wbr>n.org/show_bug.cgi?id=69647</a><br>
<br>
Problem line break<br>
------------------<br>
EPUB: If the text portion, which has got border, margin, padding is split so that the start of the text portion is in line A and the end is in the next line B, then the border box is split in CSS. That means, that the box in line A has no right border and the box in line B has not left border (in ltr script).<br>
<br>
MS Word: Word acts different. It enclosed the text porting in line A with a complete box and encloses the text porting in line B with a complete box too.<br>
<br>
Currently LibreOffice follows the way Word does it.<br>
<br>
Kind regards<br>
Regina<br>
<br>
______________________________<wbr>_________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org" target="_blank">LibreOffice@lists.freedesktop.<wbr>org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/libreoffice" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/libreoffice</a><br>
</blockquote></div><br></div>