ooodev.format.inner.direct.write.para.align.writing_mode module

Module for managing paragraph Writing Mode.

New in version 0.9.0.

class ooodev.format.inner.direct.write.para.align.writing_mode.WritingMode(mode=None)[source]

Bases: AbstractWritingMode

Paragraph Writing Mode

Any properties starting with prop_ set or get current instance values.

All methods starting with fmt_ can be used to chain together properties.

New in version 0.9.0.

fmt_mode(value)[source]

Gets copy of instance with writing mode set or removed

Parameters:
  • value (WritingMode2Enum | None) – mode value

  • self (_TWritingMode) –

Returns:

WritingMode instance

Return type:

WritingMode

property bt_lr: _TWritingMode

Gets instance.

Text within a line is written bottom-to-top. Lines and blocks are placed left-to-right.

Return type:

TypeVar(_TWritingMode, bound= WritingMode)

property context: _TWritingMode

Gets instance.

Obtain actual writing mode from the context of the object.

Return type:

TypeVar(_TWritingMode, bound= WritingMode)

property lr_tb: _TWritingMode

Gets instance.

Text within lines is written left-to-right. Lines and blocks are placed top-to-bottom. Typically, this is the writing mode for normal alphabetic text.

Return type:

TypeVar(_TWritingMode, bound= WritingMode)

property page: _TWritingMode

Gets instance.

Obtain writing mode from the current page. May not be used in page styles.

Return type:

TypeVar(_TWritingMode, bound= WritingMode)

property rl_tb: _TWritingMode

Gets instance.

Text within a line are written right-to-left. Lines and blocks are placed top-to-bottom. Typically, this writing mode is used in Arabic and Hebrew text.

Return type:

TypeVar(_TWritingMode, bound= WritingMode)

property tb_lr: _TWritingMode

Gets instance.

Text within a line is written top-to-bottom. Lines and blocks are placed left-to-right. Typically, this writing mode is used in Mongolian text.

Return type:

TypeVar(_TWritingMode, bound= WritingMode)

property tb_rl: _TWritingMode

Gets instance.

Text within a line is written top-to-bottom. Lines and blocks are placed right-to-left. Typically, this writing mode is used in Chinese and Japanese text.

Return type:

TypeVar(_TWritingMode, bound= WritingMode)