Word2DITA: Fails to handle content in paragraphs with explicit font setting
Brought to you by:
drmacro
A paragraph like this:
<w:p w:rsidR="001B522A" w:rsidRPr="00FF5D92" w:rsidRDefault="001B522A" w:rsidP="001B522A"><w:pPr><w:spacing w:line="360" w:lineRule="auto"/><w:ind w:firstLine="360"/><w:jc w:val="both"/><w:rPr><w:rFonts w:ascii="Times New Roman" w:hAnsi="Times New Roman"/></w:rPr></w:pPr><w:r w:rsidRPr="00FF5D92"><w:rPr><w:rFonts w:ascii="Times New Roman" w:hAnsi="Times New Roman"/></w:rPr><w:t xml:space="preserve">A senior guard for so many years at the mall, he thought he’d seen just about everything—shoplifters, gangbangers, lost kids, vandals, stalkers—but never had he experienced anything like what he’d lived through the last year. This was the year of years in bizarre world and he could feel the </w:t></w:r><w:r w:rsidRPr="00FF5D92"><w:rPr><w:rFonts w:ascii="Times New Roman" w:hAnsi="Times New Roman"/></w:rPr><w:lastRenderedPageBreak/><w:t>tension rising, as if the whole planet were in a giant pressure cooker that was just about to blow its lid off, along with the whole human race, right out of earth’s orbit.</w:t></w:r><w:r w:rsidR="00DF094F"><w:rPr><w:rFonts w:ascii="Times New Roman" w:hAnsi="Times New Roman"/></w:rPr><w:cr/></w:r><w:r w:rsidRPr="00FF5D92"><w:rPr><w:rFonts w:ascii="Times New Roman" w:hAnsi="Times New Roman"/></w:rPr><w:t>He clutched his phone from his shirt pocket and dialed the first three numbers of the local police station—he certainly knew everybody there—but then, he thought it over for a moment, and hung up. With everything that was going on out there, on the streets of Los Angeles, they weren’t about to investigate petty vandalism – not even as a favor to him. And of course he wasn’t insured for anything like this anyway – so, what was the point?</w:t></w:r></w:p>
Gets the text suppressed because the current code assumes any w:rFonts are for symbols, which is not the case.
Fix is to only apply this logic for symbol and wingdings fonts.
Anonymous