Skip to main content

Module fmt

Module fmt 

Source
Expand description

Shared primitives for mapping binary formatting structures (colors, borders, shading) onto their OOXML equivalents, plus XML string helpers.

Structs§

Border
A border ready for OOXML emission.
Shading

Functions§

colorref_to_hex
COLORREF ([MS-DOC] 2.9.39): bytes R, G, B, fAuto. Returns hex or None for auto.
escape_xml
ico_to_hex
ico_to_highlight
kul_to_val
Underline kind (kul) to w:u value.
nfc_to_num_fmt
Page-number format (nfc) to w:pgNumType w:fmt value.
parse_brc80
BRC80 ([MS-DOC] 2.9.16): dptLineWidth, brcType, ico, dptSpace:5 fShadow:1 …
parse_brc97
Brc ([MS-DOC] 2.9.17, Word 2000+): cv COLORREF, dptLineWidth, brcType, dptSpace:5 fShadow:1 fFrame:1.
parse_shd80
Shd80 ([MS-DOC] 2.9.245): icoFore:5 icoBack:5 ipat:6.
parse_shd_operand
SHDOperand ([MS-DOC] 2.9.249): cvFore COLORREF, cvBack COLORREF, ipat u16.