Skip to content

Support for some private docx hyperlink text format #161

@athlum

Description

@athlum

I found a hyperlink text format is not math r'\s*HYPERLINK "(.*)"'. The origin xml looks like:

<w:r>
	<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
	<w:instrText xml:space="preserve">HYPERLINK https://www.google.com normalLink \tdft \tdfe -10 \tdfid \tddp \tdop \tdlt inline \tdds \tdfvi \tdlf \tdtf \l \tdsub normalLink \tdkey edited \tdkey edited</w:instrText>
</w:r>
<w:r>
	<w:fldChar w:fldCharType="separate"/>
</w:r>
<w:r>
	<w:rPr>
		<w:rStyle w:val="10"/>
		<w:color w:val="auto"/>
	</w:rPr>
	<w:t>Click me!</w:t>
</w:r>
<w:r>
	<w:fldChar w:fldCharType="end"/>
</w:r>

It seems to be a private link format, so it would be great if I could have an option to customize the handling of HYPERLINK within the parse_instr_text function.
Thank you for any response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions