MCPcopy Index your code
hub / github.com/python-openxml/python-docx / ui2internal

Method ui2internal

src/docx/styles/__init__.py:31–34  ·  view source on GitHub ↗

Return the internal style name corresponding to `ui_style_name`, such as 'heading 1' for 'Heading 1'.

(cls, ui_style_name: str)

Source from the content-addressed store, hash-verified

29
30 @classmethod
31 def ui2internal(cls, ui_style_name: str) -> str:
32 """Return the internal style name corresponding to `ui_style_name`, such as
33 'heading 1' for 'Heading 1'."""
34 return cls.internal_style_names.get(ui_style_name, ui_style_name)
35
36 @classmethod
37 def internal2ui(cls, internal_style_name: str) -> str:

Callers 5

__contains__Method · 0.80
__getitem__Method · 0.80
add_styleMethod · 0.80
__getitem__Method · 0.80
add_latent_styleMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected