Expand description
Shared primitives for mapping binary formatting structures (colors, borders, shading) onto their OOXML equivalents, plus XML string helpers.
Structs§
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.