+
    i*                    \   R t ^ RIHt ^ RIHtHt ^ RIHt ^ RIH	t	H
t
 ^ RIHt ^ RIHt ^ RIHtHtHtHt ^ RIHtHtHtHt ^ R	IHt ]'       d   ^ R
IHtHt ^ RIHt  ! R R]4      t ! R R]4      t  ! R R]4      t! ! R R]4      t" ! R R]4      t# ! R R]4      t$ ! R R]4      t%R# )z8Custom element classes related to run properties (font).)annotations)TYPE_CHECKINGCallable)MSO_THEME_COLOR)WD_COLOR_INDEXWD_UNDERLINE)nsdecls)	parse_xml)ST_HexColorST_HpsMeasure	ST_StringST_VerticalAlignRun)BaseOxmlElementOptionalAttributeRequiredAttribute	ZeroOrOne)RGBColor)CT_OnOff	CT_String)Lengthc                  T    ] tR t^ t$ Rt]! R]4      tR]R&   ]	! R]
4      tR]R&   RtR	# )
CT_ColorzL`w:color` element, specifying the color of a font and perhaps other objects.w:valzRGBColor | strvalzw:themeColorzMSO_THEME_COLOR | None
themeColor N)__name__
__module____qualname____firstlineno____doc__r   r
   r   __annotations__r   r   r   __static_attributes__r       Y/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/docx/oxml/text/font.pyr   r       s(    V+G[ACA):>?)[J&[r#   r   c                  T    ] tR t^'t$ Rt]! R]4      tR]R&   ]! R]4      t	R]R&   Rt
R# )	CT_FontszO`<w:rFonts>` element.

Specifies typeface name for the various language types.
zw:ascii
str | Noneasciizw:hAnsihAnsir   N)r   r   r   r   r    r   r   r(   r!   r)   r"   r   r#   r$   r&   r&   '   s+    
 *)Y?E:?))Y?E:?r#   r&   c                  8    ] tR t^1t$ Rt]! R]4      tR]R&   Rt	R# )CT_HighlightzE`w:highlight` element, specifying font highlighting/background color.r   r   r   r   N)
r   r   r   r   r    r   r   r   r!   r"   r   r#   r$   r+   r+   1   s    O+G^DCDr#   r+   c                  8    ] tR t^7t$ Rt]! R]4      tR]R&   Rt	R# )CT_HpsMeasurezJUsed for `<w:sz>` element and others, specifying font size in half-points.r   r   r   r   N)
r   r   r   r   r    r   r   r   r!   r"   r   r#   r$   r-   r-   7   s    T#G];C;r#   r-   c                     ] tR t^=t$ RtR]R&   R]R&   R]R&   R]R	&   R
]R&   R]R&   R]R&   R]R&   R]R&   R]R&   R]R&   R]R&   R]R&   R]R&   Rt]! R]R3,          R47      tR5]R6&   ]! R]R7,          R47      t	R8]R9&   ]! R]R:,          R47      t
R;]R<&   ]! R]R=,          R47      t]! R]R>,          R47      t]! R]R?,          R47      t]! R]R@,          R47      t]! R]RA,          R47      t]! R ]RB,          R47      t]! R!]RC,          R47      t]! R"]RD,          R47      t]! R#]RE,          R47      t]! R$]RF,          R47      t]! R%]RG,          R47      t]! R&]RH,          R47      t]! R']RI,          R47      t]! R(]RJ,          R47      t]! R)]RK,          R47      t]! R*]RL,          R47      tRM]RN&   ]! R+]RO,          R47      tRP]RQ&   ]! R,]RR,          R47      tRS]RT&   ]! R-]RU,          R47      tRV]RW&   ]! R.]RX,          R47      tRY]RZ&   ]! R/]R[,          R47      t]! R0]R\,          R47      t ]! R1]R],          R47      t!]! R2]R^,          R47      t"AR_ t#]$R` Ra l4       t%]%PL                  Rb Rc l4       t%]$Rd Re l4       t']'PL                  Rf Rg l4       t']$Rh Ri l4       t(](PL                  Rj Rk l4       t(]$Rl Rm l4       t)])PL                  Rn Ro l4       t)]$Rp Rq l4       t*]*PL                  Rr Rs l4       t*]$Rt Ru l4       t+]+PL                  Rv Rw l4       t+]$Rx Ry l4       t,],PL                  Rz R{ l4       t,]$R| R} l4       t-]-PL                  R~ R l4       t-R R lt.R R lt/Rt0R# )CT_RPrz7`<w:rPr>` element, containing the properties for a run.zCallable[[], CT_Color]get_or_add_colorzCallable[[], CT_Highlight]get_or_add_highlightzCallable[[], CT_Fonts]get_or_add_rFontszCallable[[], CT_HpsMeasure]get_or_add_szz!Callable[[], CT_VerticalAlignRun]get_or_add_vertAlignzCallable[..., CT_String]_add_rStylezCallable[[], CT_Underline]_add_uzCallable[[], None]_remove_color_remove_highlight_remove_rFonts_remove_rStyle
_remove_sz	_remove_u_remove_vertAlignw:rStylew:rFontsw:bw:bCsw:iw:iCsw:capsw:smallCapsw:strike	w:dstrike	w:outlinew:shadoww:emboss	w:imprint	w:noProofw:snapToGridw:vanishw:webHiddenw:colorw:szw:highlightw:uw:vertAlignw:rtlw:csw:specVanishw:oMath:   NN)
successorszCT_String | NonerStyle:   NNzCT_Fonts | NonerFonts:   NNzCT_OnOff | Noneb:   NN:   NN:   NN:   NN:   NN:	   NN:
   NN:   NN:   NN:   NN:   NN:   NN:   NN:   NN:   NN:   NNzCT_Color | Nonecolor:   NNzCT_HpsMeasure | Nonesz:   NNzCT_Highlight | None	highlight:   NNzCT_Underline | Noneu:    NNzCT_VerticalAlignRun | None	vertAlign:!   NN:"   NN:&   NN:'   NNc                8    \        R\        R4      ,          4      # )zGOverride metaclass method to set `w:color/@val` to RGB black on create.z<w:color %s w:val="000000"/>w)r	   r   )selfs   &r$   
_new_colorCT_RPr._new_color   s    7'#,FGGr#   c                   V ^8  d   QhRR/# )r\   returnWD_COLOR_INDEX | Noner   )formats   "r$   __annotate__CT_RPr.__annotate__   s      4 r#   c                >    V P                   pVf   R# VP                  # )zlValue of `./w:highlight/@val`.

Specifies font's highlight color, or `None` if the text is not highlighted.
N)rt   r   )r   rt   s   & r$   highlight_valCT_RPr.highlight_val   s      NN	}}r#   c                    V ^8  d   QhRRRR/# )r\   valuer   r   Noner   )r   s   "r$   r   r      s      #8 T r#   c                	^    Vf   V P                  4        R # V P                  4       pWn        R # N)r8   r1   r   )r   r   rt   s   && r$   r   r      s)    =""$--/	r#   c                   V ^8  d   QhRR/# r\   r   r'   r   )r   s   "r$   r   r      s     
 
j 
r#   c                >    V P                   pVf   R# VP                  # )zThe value of `w:rFonts/@w:ascii` or |None| if not present.

Represents the assigned typeface name. The rFonts element also specifies other
special-case typeface names; this method handles the case where just the common
name is required.
N)r]   r(   r   r]   s   & r$   rFonts_asciiCT_RPr.rFonts_ascii   s     >||r#   c                    V ^8  d   QhRRRR/# )r\   r   r'   r   r   r   )r   s   "r$   r   r      s      *  r#   c                	^    Vf   V P                  4        R # V P                  4       pWn        R # r   )r9   r2   r(   r   r   r]   s   && r$   r   r      s)    =!'')r#   c                   V ^8  d   QhRR/# r   r   )r   s   "r$   r   r      s      j r#   c                >    V P                   pVf   R# VP                  # )z:The value of `w:rFonts/@w:hAnsi` or |None| if not present.N)r]   r)   r   s   & r$   rFonts_hAnsiCT_RPr.rFonts_hAnsi   s     >||r#   c                   V ^8  d   QhRR/# )r\   r   r'   r   )r   s   "r$   r   r      s      * r#   c                	Z    Vf   V P                   f   R # V P                  4       pWn        R # r   )r]   r2   r)   r   s   && r$   r   r      s&    =T[[0'')r#   c                   V ^8  d   QhRR/# r   r   )r   s   "r$   r   r      s      z r#   c                >    V P                   pVf   R# VP                  # )zBString in `./w:rStyle/@val`, or None if `w:rStyle` is not present.N)r[   r   )r   r[   s   & r$   styleCT_RPr.style   s     >zzr#   c                    V ^8  d   QhRRRR/# )r\   r   r'   r   r   r   )r   s   "r$   r   r      s     
$ 
$: 
$$ 
$r#   c                    Vf   V P                  4        R# V P                  f   V P                  VR7       R# WP                  n        R# )zSet `./w:rStyle/@val` to `style`, adding the `w:rStyle` element if necessary.

If `style` is |None|, remove `w:rStyle` element if present.
N)r   )r:   r[   r5   r   )r   r   s   &&r$   r   r      s9     =![[ '#KKOr#   c                   V ^8  d   QhRR/# r\   r   bool | Noner   )r   s   "r$   r   r      s     	> 	>; 	>r#   c                `    V P                   pVf   R# VP                  \        P                  8H  # )z|True| if `./w:vertAlign/@w:val` is "subscript".

|False| if `w:vertAlign/@w:val` contains any other value. |None| if
`w:vertAlign` is not present.
N)rx   r   r   	SUBSCRIPTr   rx   s   & r$   	subscriptCT_RPr.subscript   s,     NN	}} 3 = ===r#   c                    V ^8  d   QhRRRR/# )r\   r   r   r   r   r   )r   s   "r$   r   r      s     % %{ %t %r#   c                	0   Vf   V P                  4        R # \        V4      RJ d&   \        P                  V P	                  4       n        R # V P                  e>   V P                  P
                  \        P                  8X  d   V P                  4        R # R # R # NT)r=   boolr   r   r4   r   rx   r   r   s   &&r$   r   r      sm    =""$%[D .A.K.KD%%'+^^'DNN,>,>BUB_B_,_""$ -`'r#   c                   V ^8  d   QhRR/# r   r   )r   s   "r$   r   r      s     	@ 	@[ 	@r#   c                `    V P                   pVf   R# VP                  \        P                  8H  # )z|True| if `w:vertAlign/@w:val` is 'superscript'.

|False| if `w:vertAlign/@w:val` contains any other value. |None| if
`w:vertAlign` is not present.
N)rx   r   r   SUPERSCRIPTr   s   & r$   superscriptCT_RPr.superscript   s,     NN	}} 3 ? ???r#   c                   V ^8  d   QhRR/# )r\   r   r   r   )r   s   "r$   r   r     s     % % %r#   c                	0   Vf   V P                  4        R # \        V4      RJ d&   \        P                  V P	                  4       n        R # V P                  e>   V P                  P
                  \        P                  8X  d   V P                  4        R # R # R # r   )r=   r   r   r   r4   r   rx   r   s   &&r$   r   r     sm    =""$%[D .A.M.MD%%'+^^'DNN,>,>BUBaBa,a""$ -b'r#   c                   V ^8  d   QhRR/# )r\   r   Length | Noner   )r   s   "r$   r   r     s       r#   c                >    V P                   pVf   R# VP                  # )z4The value of `w:sz/@w:val` or |None| if not present.N)rr   r   )r   rr   s   & r$   sz_valCT_RPr.sz_val  s     WW:vvr#   c                   V ^8  d   QhRR/# )r\   r   r   r   )r   s   "r$   r   r     s      M r#   c                	^    Vf   V P                  4        R # V P                  4       pWn        R # r   )r;   r3   r   )r   r   rr   s   && r$   r   r     s'    =OO!r#   c                   V ^8  d   QhRR/# )r\   r   WD_UNDERLINE | Noner   )r   s   "r$   r   r   "  s     	 	* 	r#   c                >    V P                   pVf   R# VP                  # )zValue of `w:u/@val`, or None if not present.

Values `WD_UNDERLINE.SINGLE` and `WD_UNDERLINE.NONE` are mapped to `True` and
`False` respectively.
N)rv   r   )r   rv   s   & r$   u_valCT_RPr.u_val!  s     FF9uur#   c                   V ^8  d   QhRR/# )r\   r   r   r   )r   s   "r$   r   r   .  s     & &. &r#   c                	Z    V P                  4        Ve   WP                  4       n        R # R # r   )r<   r6   r   r   s   &&r$   r   r   -  s#     %KKM r#   c                    V ^8  d   QhRRRR/# )r\   namestrr   r   r   )r   s   "r$   r   r   3  s      # + r#   c                <    \        W4      pVf   R# VP                  # )zIValue of boolean child with `name`, e.g. "w:b", "w:i", and "w:smallCaps".Ngetattrr   )r   r   elements   && r$   _get_bool_valCT_RPr._get_bool_val3  s    $%?{{r#   c                    V ^8  d   QhRRRR/# )r\   r   r   r   r   r   )r   s   "r$   r   r   :  s      # k r#   c                	~    Vf   \        V RV,          4      ! 4        R # \        V RV,          4      ! 4       pW#n        R # )Nz
_remove_%szget_or_add_%sr   )r   r   r   r   s   &&& r$   _set_bool_valCT_RPr._set_bool_val:  s5    =D,-.0$$ 679r#   r   N)'r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   z	w:spacingzw:wzw:kernz
w:positionrQ   zw:szCsrR   rS   zw:effectzw:bdrzw:shdz	w:fitTextrT   rU   rV   zw:emzw:langzw:eastAsianLayoutrW   rX   )1r   r   r   r   r    r!   _tag_seqr   r[   r]   r_   bCsiiCscaps	smallCapsstrikedstrikeoutlineshadowembossimprintnoProof
snapToGridvanish	webHiddenrp   rr   rt   rv   rx   rtlcs
specVanishoMathr   propertyr   setterr   r   r   r   r   r   r   r   r   r"   r   r#   r$   r/   r/   =   s   A,,44--..;;))&&%%))&&&&""!!))(HR  )MFM'
x|LFOL"5Xb\BAB
G
5C%HRL1A
G
5CX(2,7D-HRLAIzhrl;F>G>Gzhsm<Fzhsm<F>G>G>hsmDJzhsm<F-HSMBI&yXc]KE?K(HSMJBJ%.}RU%WI"W&u#GAG,5mPXY\P],^I)^
G
6C	6hsm	4B>hsmDJiHSM:EH     
 
         \\
$ 
$ 	> 	> % % 	@ 	@ % %   ]]  	 	 \\& &
 r#   r/   c                  8    ] tR tRt$ Rt]! R]4      tR]R&   Rt	R# )CT_UnderlineiB  z<`<w:u>` element, specifying the underlining style for a run.r   r   r   r   N)
r   r   r   r   r    r   r   r   r!   r"   r   r#   r$   r   r   B  s    F0,GC	Gr#   r   c                  8    ] tR tRt$ Rt]! R]4      tR]R&   Rt	R# )CT_VerticalAlignRuniH  z=`<w:vertAlign>` element, specifying subscript or superscript.r   r   r   r   N)
r   r   r   r   r    r   r   r   r!   r"   r   r#   r$   r   r   H  s    G *=>C>r#   r   N)&r    
__future__r   typingr   r   docx.enum.dmlr   docx.enum.textr   r   docx.oxml.nsr   docx.oxml.parserr	   docx.oxml.simpletypesr
   r   r   r   docx.oxml.xmlchemyr   r   r   r   docx.sharedr   docx.oxml.sharedr   r   r   r   r&   r+   r-   r/   r   r   r   r#   r$   <module>r      s    ? " * ) 7   &   !4"\ \@ @E? E<O <B_ BJH? H?/ ?r#   