redsoxfan0219 / doc-app

0 stars 0 forks source link

Generate Hover Text #3

Open redsoxfan0219 opened 11 months ago

redsoxfan0219 commented 11 months ago

Goal

Context / Problem

I'm facing a problem where many simple definitions are gumming up the main text of a Word document. Word has a function that allows you to create hover text (doesn't retain when converted to .pdf unfortunately).

Sample XML

Here is the underlying XML that creates the hovertext Liquidity is blah blah blah something about money. for the word liqudity. The formatting details specify that the word is colored blue and underlined

<w:r w:rsidRPr="00A9621F">
                <w:rPr>
                    <w:color w:val="4472C4" w:themeColor="accent1" />
                    <w:u w:val="single" />
                </w:rPr>
                <w:instrText xml:space="preserve"> AUTOTEXTLIST   \s "Normal" \t "Liquidity is blah blah blah something about money." \* MERGEFORMAT </w:instrText>
            </w:r>

            <w:r w:rsidRPr="00A9621F">
                <w:rPr>
                    <w:color w:val="4472C4" w:themeColor="accent1" />
                    <w:u w:val="single" />
                </w:rPr>
                <w:fldChar w:fldCharType="separate" />
            </w:r>

            <w:r w:rsidRPr="00A9621F">
                <w:rPr>
                    <w:color w:val="4472C4" w:themeColor="accent1" />
                    <w:u w:val="single" />
                </w:rPr>
                <w:t>liquidity</w:t>
            </w:r>