auto_detect_rtl_direction property

auto_detect_rtl_direction property

The auto_detect_rtl_direction property determines whether paragraphs and runs with predominantly right-to-left text have their bidi flags repaired before conversion.

When set to True (default), the property applies a heuristic used by Microsoft Word and LibreOffice, fixing rendering of Arabic/Hebrew documents generated by tools such as Google Docs that emit OOXML without <w:bidi/> and with <w:rtl w:val="0"/> on runs containing only RTL script. Set to False to preserve the strict OOXML interpretation of the source markup.

Definition:

@property
def auto_detect_rtl_direction(self):
    ...
@auto_detect_rtl_direction.setter
def auto_detect_rtl_direction(self, value):
    ...

See Also