TEIC / Stylesheets

TEI XSL Stylesheets
231 stars 124 forks source link

Internal links (w:fldChar and w:instrText) do disappear in docx conversion #523

Open skurzinz opened 2 years ago

skurzinz commented 2 years ago

This happens in a footnote such as

<w:footnote w:id="9">
    <w:p w14:paraId="45C0B508" w14:textId="4138E849" w:rsidR="004928E1" w:rsidRPr="00F16005"
        w:rsidRDefault="004928E1" w:rsidP="007445F2">
        <w:pPr>
            <w:pStyle w:val="Funotentext"/>
            <w:rPr>
                <w:rFonts w:cstheme="minorHAnsi"/>
                <w:lang w:val="de-AT"/>
            </w:rPr>
        </w:pPr>
        <w:r w:rsidRPr="00F16005">
            <w:rPr>
                <w:rStyle w:val="Funotenzeichen"/>
                <w:rFonts w:cstheme="minorHAnsi"/>
            </w:rPr>
            <w:footnoteRef/>
        </w:r>
        <w:r w:rsidRPr="00F16005">
            <w:rPr>
                <w:rFonts w:cstheme="minorHAnsi"/>
                <w:lang w:val="de-AT"/>
            </w:rPr>
            <w:t xml:space="preserve">Siehe den Abschnitt </w:t>
        </w:r>
        <w:r w:rsidRPr="00F16005">
            <w:rPr>
                <w:rFonts w:cstheme="minorHAnsi"/>
                <w:i/>
                <w:lang w:val="de-AT"/>
            </w:rPr>
            <w:fldChar w:fldCharType="begin"/>
        </w:r>
        <w:r w:rsidRPr="00F16005">
            <w:rPr>
                <w:rFonts w:cstheme="minorHAnsi"/>
                <w:i/>
                <w:lang w:val="de-AT"/>
            </w:rPr>
            <w:instrText xml:space="preserve"> REF _Ref50621960 \h  \* MERGEFORMAT </w:instrText>
        </w:r>
        <w:r w:rsidRPr="00F16005">
            <w:rPr>
                <w:rFonts w:cstheme="minorHAnsi"/>
                <w:i/>
                <w:lang w:val="de-AT"/>
            </w:rPr>
            <w:fldChar w:fldCharType="separate"/>
        </w:r>
        <w:r w:rsidRPr="00F16005">
            <w:rPr>
                <w:rFonts w:cstheme="minorHAnsi"/>
                <w:color w:val="000000" w:themeColor="text1"/>
            </w:rPr>
            <w:t>.</w:t>
        </w:r>
    </w:p>
</w:footnote>

With the stuff pointed to being present.

Desired TEI output would be along the lines of ref/@target pointing to the correct xml:id of the referenced section.

Currently being unable to attempt a fix on the stylesheets level, I'll notify my users that internal links are currently unsupported by our pipeline (which relies on the TEI stylesheets in a first pass), and adding this here for reference and for future improvement.