+
    ^eòj*(  ã                  ó  € R t ^ RIHt ^ RIHtHtHtHt ^ RIH	t	 ^ RI
Ht ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ R	IHt ^ R
IHt ^ RIHt ^ RIHt ]'       d   ^ RIHt ^ RIHt ^ RI H!t!H"t" ^ RIH#t#  ! R R]4      t$ ! R R4      t%R# )z=Run-related proxy objects for python-docx, Run in particular.)Úannotations)ÚIOÚTYPE_CHECKINGÚIteratorÚcast)ÚDrawing)ÚWD_STYLE_TYPE)ÚWD_BREAK)Ú
CT_Drawing)ÚCT_LastRenderedPageBreak)ÚInlineShape)Ú
StoryChild)ÚCharacterStyle)ÚFont)ÚRenderedPageBreakN)ÚWD_UNDERLINE)ÚCT_RÚCT_Text)ÚLengthc                  ó
  a € ] tR t^tRtR V 3R llt]P                  3R R lltR*R R llt	R R	 lt
R
 R lt]R R l4       t]P                  R R l4       tR t]R R l4       t]R R l4       t]R R l4       t]P                  R R l4       tR R ltR R lt]R R l4       t]P                  R R  l4       t]R! R" l4       t]P                  R# R$ l4       t]R% R& l4       t]P                  R' R( l4       tR)tV ;t# )+ÚRuna5  Proxy object wrapping `<w:r>` element.

Several of the properties on Run take a tri-state value, |True|, |False|, or |None|.
|True| and |False| correspond to on and off respectively. |None| indicates the
property is not specified directly on the run and its effective value is taken from
the style hierarchy.
c               ó    € V ^8„  d   QhRRRR/# )é   Úrr   Úparentzt.ProvidesStoryPart© )Úformats   "Ú„/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/docx/text/run.pyÚ__annotate__ÚRun.__annotate__"   s   € ÷ 3ñ 3˜$ð 3Ð(;ñ 3ó    c                	óP   <€ \         SV `  V4       V;V n        ;V n        V n        R # ©N)ÚsuperÚ__init__Ú_rÚ_elementÚelement)Úselfr   r   Ú	__class__s   &&&€r   r$   ÚRun.__init__"   s%   ø€ Ü‰Ñ˜Ô Ø12Ð2ˆŒÐ2�$”- $¦,r    c               ó   € V ^8„  d   QhRR/# )r   Ú
break_typer	   r   )r   s   "r   r   r   &   s   € ÷ ñ  Hñ r    c                ó<  € \         P                  R\         P                  R\         P                  R\         P                  R\         P
                  R\         P                  R/V,          w  r#V P                  P                  4       pVe   W$n	        Ve	   W4n
        R# R# )zéAdd a break element of `break_type` to this run.

`break_type` can take the values `WD_BREAK.LINE`, `WD_BREAK.PAGE`, and
`WD_BREAK.COLUMN` where `WD_BREAK` is imported from `docx.enum.text`.
`break_type` defaults to `WD_BREAK.LINE`.
N©NN)ÚpageN)ÚcolumnN)ÚtextWrappingÚleft)r1   Úright)r1   Úall)r	   ÚLINEÚPAGEÚCOLUMNÚLINE_CLEAR_LEFTÚLINE_CLEAR_RIGHTÚLINE_CLEAR_ALLr%   Úadd_brÚtypeÚclear)r(   r,   Útype_r=   Úbrs   &&   r   Ú	add_breakÚRun.add_break&   s„   € ô �M‰M˜<Ü�M‰M˜>Ü�O‰OÐ-Ü×$Ñ$Ð&>Ü×%Ñ%Ð'@Ü×#Ñ#Ð%<ð
ð õ‰ˆð �W‰W�^‰^ÓˆØÒØŒGØÒØŽHñ r    c               ó(   € V ^8„  d   QhRRRRRRRR/# )r   Úimage_path_or_streamzstr | IO[bytes]Úwidthzint | Length | NoneÚheightÚreturnr   r   )r   s   "r   r   r   ;   s2   € ÷ #ñ #à-ð#ð #ð#ð $ð	#ð
 
ñ#r    c                ó†   € V P                   P                  WV4      pV P                  P                  V4       \	        V4      # )a�  Return |InlineShape| containing image identified by `image_path_or_stream`.

The picture is added to the end of this run.

`image_path_or_stream` can be a path (a string) or a file-like object containing
a binary image.

If neither width nor height is specified, the picture appears at
its native size. If only one is specified, it is used to compute a scaling
factor that is then applied to the unspecified dimension, preserving the aspect
ratio of the image. The native size of the picture is calculated using the dots-
per-inch (dpi) value specified in the image file, defaulting to 72 dpi if no
value is specified, as is often the case.
)ÚpartÚnew_pic_inliner%   Úadd_drawingr   )r(   rC   rD   rE   Úinlines   &&&& r   Úadd_pictureÚRun.add_picture;   s8   € ð( —‘×)Ñ)Ð*>ÀvÓNˆØ�‰×Ñ˜FÔ#Ü˜6Ó"Ð"r    c               ó   € V ^8„  d   QhRR/# )r   rF   ÚNoner   )r   s   "r   r   r   S   s   € ÷ ñ ˜ñ r    c                ó:   € V P                   P                  4        R# )z[Add a ``<w:tab/>`` element at the end of the run, which Word interprets as a
tab character.N)r%   Úadd_tab©r(   s   &r   rQ   ÚRun.add_tabS   s   € ð 	�‰�‰Ör    c               ó   € V ^8„  d   QhRR/# ©r   ÚtextÚstrr   )r   s   "r   r   r   X   s   € ÷ ñ ˜Sñ r    c                óN   € V P                   P                  V4      p\        V4      # )zÞReturns a newly appended |_Text| object (corresponding to a new ``<w:t>``
child element) to the run, containing `text`.

Compare with the possibly more friendly approach of assigning text to the
:attr:`Run.text` property.
)r%   Úadd_tÚ_Text)r(   rV   Úts   && r   Úadd_textÚRun.add_textX   s   € ð �G‰G�M‰M˜$ÓˆÜ�Q‹xˆr    c               ó   € V ^8„  d   QhRR/# ©r   rF   úbool | Noner   )r   s   "r   r   r   c   s   € ÷ ñ �kñ r    c                ó.   € V P                   P                  # )zçRead/write tri-state value.

When |True|, causes the text of the run to appear in bold face. When |False|,
the text unconditionally appears non-bold. When |None| the bold setting for this
run is inherited from the style hierarchy.
©ÚfontÚboldrR   s   &r   rd   ÚRun.boldb   s   € ð �y‰y�~‰~Ðr    c               ó   € V ^8„  d   QhRR/# ©r   Úvaluer`   r   )r   s   "r   r   r   m   s   € ÷ ñ ˜+ñ r    c                	ó&   € WP                   n        R # r"   rb   ©r(   rh   s   &&r   rd   re   l   s   € à�	‰	Žr    c                ó:   € V P                   P                  4        V # )z_Return reference to this run after removing all its content.

All run formatting is preserved.
)r%   Úclear_contentrR   s   &r   r=   Ú	Run.clearp   s   € ð
 	�‰×ÑÔØˆr    c               ó   € V ^8„  d   QhRR/# )r   rF   Úboolr   )r   s   "r   r   r   y   s   € ÷ 
4ñ 
4 Tñ 
4r    c                ó@   € \        V P                  P                  4      # )a  `True` when one or more rendered page-breaks occur in this run.

Note that "hard" page-breaks inserted by the author are not included. A hard
page-break gives rise to a rendered page-break in the right position so if those
were included that page-break would be "double-counted".

It would be very rare for multiple rendered page-breaks to occur in a single
run, but it is possible.
)ro   r%   ÚlastRenderedPageBreaksrR   s   &r   Úcontains_page_breakÚRun.contains_page_breakx   s   € ô �D—G‘G×2Ñ2Ó3Ð3r    c               ó   € V ^8„  d   QhRR/# )r   rF   r   r   )r   s   "r   r   r   †   s   € ÷ #ñ #�dñ #r    c                ó,   € \        V P                  4      # )zsThe |Font| object providing access to the character formatting properties for
this run, such as font name and size.)r   r&   rR   s   &r   rc   ÚRun.font…   s   € ô �D—M‘MÓ"Ð"r    c               ó   € V ^8„  d   QhRR/# r_   r   )r   s   "r   r   r   Œ   s   € ÷  ñ  ˜ñ  r    c                ó.   € V P                   P                  # )zéRead/write tri-state value.

When |True|, causes the text of the run to appear in italics. When |False|, the
text unconditionally appears non-italic. When |None| the italic setting for this
run is inherited from the style hierarchy.
©rc   ÚitalicrR   s   &r   rz   Ú
Run.italic‹   s   € ð �y‰y×ÑÐr    c               ó   € V ^8„  d   QhRR/# rg   r   )r   s   "r   r   r   –   s   € ÷ !ñ !˜Kñ !r    c                	ó&   € WP                   n        R # r"   ry   rj   s   &&r   rz   r{   •   s   € à �	‰	Ör    c               ó   € V ^8„  d   QhRR/# )r   rF   z+Iterator[str | Drawing | RenderedPageBreak]r   )r   s   "r   r   r   ™   s   € ÷ *ñ *Ð$Oñ *r    c              #  ó  "  € V P                   P                   Fi  p\        V\        4      '       d   Vx € K  \        V\        4      '       d   \        W4      x € KD  \        V\        4      '       g   K\  \        W4      x € Kk  	  R# 5i)aÏ  Generate the content-items in this run in the order they appear.

NOTE: only content-types currently supported by `python-docx` are generated. In
this version, that is text and rendered page-breaks. Drawing is included but
currently only provides access to its XML element (CT_Drawing) on its
`._drawing` attribute. `Drawing` attributes and methods may be expanded in
future releases.

There are a number of element-types that can appear inside a run, but most of
those (w:br, w:cr, w:noBreakHyphen, w:t, w:tab) have a clear plain-text
equivalent. Any contiguous range of such elements is generated as a single
`str`. Rendered page-break and drawing elements are generated individually. Any
other elements are ignored.
N)r%   Úinner_content_itemsÚ
isinstancerW   r   r   r
   r   )r(   Úitems   & r   Úiter_inner_contentÚRun.iter_inner_content™   s^   é € ð —G‘G×/Ô/ˆDÜ˜$¤×$Ò$Ø”
Ü˜DÔ":×;Ò;Ü'¨Ó3Ô3Ü˜D¤*×-Ô-Ü˜dÓ)Ô)ó 0ùs   ‚A.BÁ5Bc               ó$   € V ^8„  d   QhRRRRRR/# )r   Úlast_runr   Ú
comment_idÚintrF   rO   r   )r   s   "r   r   r   °   s&   € ÷ 
Mñ 
M¨3ð 
M¸Cð 
MÀDñ 
Mr    c                ór   € V P                   P                  V4       VP                   P                  V4       R# )zšMark the range of runs from this run to `last_run` (inclusive) as belonging to a comment.

`comment_id` identfies the comment that references this range.
N)r%   Ú insert_comment_range_start_aboveÚ,insert_comment_range_end_and_reference_below)r(   r†   r‡   s   &&&r   Úmark_comment_rangeÚRun.mark_comment_range°   s*   € ð 	�‰×0Ñ0°Ô<ð 	�‰×@Ñ@ÀÖLr    c               ó   € V ^8„  d   QhRR/# )r   rF   r   r   )r   s   "r   r   r   ½   s   € ÷ 	\ñ 	\�~ñ 	\r    c                óž   € V P                   P                  p\        \        V P                  P                  V\        P                  4      4      # )a9  Read/write.

A |CharacterStyle| object representing the character style applied to this run.
The default character style for the document (often `Default Character Font`) is
returned if the run has no directly-applied character style. Setting this
property to |None| removes any directly-applied character style.
)r%   Ústyler   r   rH   Ú	get_styler   Ú	CHARACTER)r(   Ústyle_ids   & r   r�   Ú	Run.style¼   s5   € ð —7‘7—=‘=ˆÜ”N D§I¡I×$7Ñ$7¸Ä-×BYÑBYÓ$ZÓ[Ð[r    c               ó   € V ^8„  d   QhRR/# )r   Ústyle_or_namezstr | CharacterStyle | Noner   )r   s   "r   r   r   É   s   € ÷ !ñ !Ð#>ñ !r    c                	óz   € V P                   P                  V\        P                  4      pW P                  n        R # r"   )rH   Úget_style_idr   r’   r%   r�   )r(   r–   r“   s   && r   r�   r”   È   s'   € à—9‘9×)Ñ)¨-¼×9PÑ9PÓQˆØ �‰Žr    c               ó   € V ^8„  d   QhRR/# )r   rF   rW   r   )r   s   "r   r   r   Î   s   € ÷ ñ �cñ r    c                ó.   € V P                   P                  # )aÊ  String formed by concatenating the text equivalent of each run.

Each `<w:t>` element adds the text characters it contains. A `<w:tab/>` element
adds a `\t` character. A `<w:cr/>` or `<w:br>` element each add a `\n`
character. Note that a `<w:br>` element can indicate a page break or column
break as well as a line break. Only line-break `<w:br>` elements translate to
a `\n` character. Others are ignored. All other content child elements, such as
`<w:drawing>`, are ignored.

Assigning text to this property has the reverse effect, translating each `\t`
character to a `<w:tab/>` element and each `\n` or `\r` character to a
`<w:cr/>` element. Any existing run content is replaced. Run formatting is
preserved.
©r%   rV   rR   s   &r   rV   ÚRun.textÍ   s   € ð  �w‰w�|‰|Ðr    c               ó   € V ^8„  d   QhRR/# rU   r   )r   s   "r   r   r   à   s   € ÷ ñ ˜ñ r    c                	ó&   € WP                   n        R # r"   r›   )r(   rV   s   &&r   rV   rœ   ß   s   € à�‰Žr    c               ó   € V ^8„  d   QhRR/# )r   rF   úbool | WD_UNDERLINE | Noner   )r   s   "r   r   r   ä   s   € ÷ #ñ #Ð5ñ #r    c                ó.   € V P                   P                  # )a[  The underline style for this |Run|.

Value is one of |None|, |True|, |False|, or a member of :ref:`WdUnderline`.

A value of |None| indicates the run has no directly-applied underline value and
so will inherit the underline value of its containing paragraph. Assigning
|None| to this property removes any directly-applied underline value.

A value of |False| indicates a directly-applied setting of no underline,
overriding any inherited value.

A value of |True| indicates single underline.

The values from :ref:`WdUnderline` are used to specify other outline styles such
as double, wavy, and dotted.
©rc   Ú	underlinerR   s   &r   r£   ÚRun.underlineã   s   € ð$ �y‰y×"Ñ"Ð"r    c               ó   € V ^8„  d   QhRR/# )r   rh   r    r   )r   s   "r   r   r   ø   s   € ÷ $ñ $Ð9ñ $r    c                	ó&   € WP                   n        R # r"   r¢   rj   s   &&r   r£   r¤   ÷   s   € à#�	‰	Ör    )r&   r%   r'   r.   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r$   r	   r5   r@   rL   rQ   r\   Úpropertyrd   Úsetterr=   rr   rc   rz   rƒ   rŒ   r�   rV   r£   Ú__static_attributes__Ú__classcell__©r)   s   @r   r   r      sG  ø† ñ÷3ð 3ð 08¯}©}÷ ÷*#õ0õ
ð ôó ðð 
‡[�[ôó ðòð ô
4ó ð
4ð ô#ó ð#ð
 ô ó ð ð ‡]�]ô!ó ð!õ*õ.
Mð ô	\ó ð	\ð ‡\�\ô!ó ð!ð ôó ðð" 
‡[�[ôó ðð ô#ó ð#ð& ×Ñô$ó ö$r    r   c                  ó2   a € ] tR t^ütRtR V 3R lltRtV ;t# )rZ   z&Proxy object wrapping `<w:t>` element.c               ó   € V ^8„  d   QhRR/# )r   Út_elmr   r   )r   s   "r   r   Ú_Text.__annotate__ÿ   s   € ÷ ñ ˜gñ r    c                	ó8   <€ \         \        V `  4        Wn        R # r"   )r#   rZ   r$   Ú_t)r(   r³   r)   s   &&€r   r$   Ú_Text.__init__ÿ   s   ø€ ÜŒe�TÑ#Ô%ØŽr    )r¶   )r§   r¨   r©   rª   r«   r$   r®   r¯   r°   s   @r   rZ   rZ   ü   s   ø† Ù0÷ö r    rZ   )&r«   Ú
__future__r   Útypingr   r   r   r   Údocx.drawingr   Údocx.enum.styler   Údocx.enum.textr	   Údocx.oxml.drawingr
   Údocx.oxml.text.pagebreakr   Ú
docx.shaper   Údocx.sharedr   Údocx.styles.styler   Údocx.text.fontr   Údocx.text.pagebreakr   Ú
docx.typesÚtypesr[   r   Údocx.oxml.text.runr   r   r   r   rZ   r   r    r   Ú<module>rÇ      sW   ðÙ Cå "ç 4Ó 4å  Ý )Ý #Ý (Ý =Ý "Ý "Ý ,Ý Ý 1çÝÝ+ß0Ý"ô`$ˆ*ô `$÷Fó r    