A hyperlink whose text an alphabetical index entry covers exported a link annotation with no tag around it, so PDF/UA checkers reject the file: Link annotation is not nested inside a Link structure element that is ISO 14289-1 7.18.5. The same happens under a reference mark or an RDF metadata field. Each of the three lays its run out as its own portion type, a SwTextPortion whose only addition is a shading that never reaches an export. BeginInlineStructureElements listed Text, Lay and Para, so the run matched no case and got no element at all - not even the Span carrying its language. Handle the three with the other text portions. Signed-off-by: Mike Kaganski <mike.kaganski@collabora.com> Change-Id: Ie38193f64923cd6a0a3afa509691fb29a007f272 Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/12104 Tested-by: Jenkins CPCI <releng@collaboraoffice.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com> (cherry picked from commit 409e0cc615e191a0392ee080717bb84eb61e4724) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211027 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
30 lines
2.6 KiB
XML
30 lines
2.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<office:document xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" office:version="1.3" office:mimetype="application/vnd.oasis.opendocument.text">
|
|
<office:meta><dc:title>Link with an RDF metadata field</dc:title></office:meta>
|
|
<office:font-face-decls>
|
|
<style:font-face style:name="Liberation Serif" svg:font-family="'Liberation Serif'" style:font-family-generic="roman" style:font-pitch="variable"/>
|
|
</office:font-face-decls>
|
|
<office:styles>
|
|
<style:default-style style:family="paragraph">
|
|
<style:text-properties style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:font-name-asian="Liberation Serif" style:font-size-asian="12pt" style:font-name-complex="Liberation Serif" style:font-size-complex="12pt"/>
|
|
</style:default-style>
|
|
<style:style style:name="Standard" style:family="paragraph" style:class="text"/>
|
|
<style:style style:name="Internet_20_link" style:display-name="Internet link" style:family="text">
|
|
<style:text-properties fo:color="#000080" style:text-underline-style="solid" style:text-underline-width="auto" style:text-underline-color="font-color"/>
|
|
</style:style>
|
|
</office:styles>
|
|
<office:automatic-styles>
|
|
<style:page-layout style:name="pm1">
|
|
<style:page-layout-properties fo:page-width="21cm" fo:page-height="29.7cm" style:print-orientation="portrait" fo:margin-top="2cm" fo:margin-bottom="2cm" fo:margin-left="2cm" fo:margin-right="2cm" style:writing-mode="lr-tb"/>
|
|
</style:page-layout>
|
|
</office:automatic-styles>
|
|
<office:master-styles>
|
|
<style:master-page style:name="Standard" style:page-layout-name="pm1"/>
|
|
</office:master-styles>
|
|
<office:body>
|
|
<office:text>
|
|
<text:p text:style-name="Standard"><text:a xlink:type="simple" xlink:href="https://www.example.com/" office:name="before the mark" text:style-name="Internet_20_link">alpha</text:a><text:meta xml:id="meta1"><text:a xlink:type="simple" xlink:href="https://www.example.com/" office:name="inside the mark" text:style-name="Internet_20_link">beta</text:a></text:meta><text:a xlink:type="simple" xlink:href="https://www.example.com/" office:name="after the mark" text:style-name="Internet_20_link">gamma</text:a></text:p>
|
|
</office:text>
|
|
</office:body>
|
|
</office:document>
|