
    khQ                     .    d dl mZ d dl mZ d dl mZ d Zy)   )lists)	documents)resultsc                 *    fd}fd ||       S )Nc                 x    | j                  d      }t        j                  t        j                  |            S )Nz	w:comment)find_childrenr   combiner   map)elementcomment_elements_read_comment_elements     U/var/www/teggl/fontify/venv/lib/python3.12/site-packages/mammoth/docx/comments_xml.pyread_comments_xml_elementz<read_comments_xml_element.<locals>.read_comments_xml_element   s0    "00=uyy)>@PQRR    c                 n      fdj                   j                        j                   fd      S )Nc                 `    j                   j                  | d      j                         xs d S )N )
attributesgetstrip)namer   s    r   read_optional_attributezYread_comments_xml_element.<locals>._read_comment_element.<locals>.read_optional_attribute   s*    %%))$399;CtCr   c                 h    t        j                  j                  d   |  d       d            S )Nzw:idzw:authorz
w:initials)
comment_idbodyauthor_nameauthor_initials)r   commentr   )r   r   r   s    r   <lambda>zJread_comments_xml_element.<locals>._read_comment_element.<locals>.<lambda>   s7    "--f53J? 7 E	 r   )read_allchildrenr
   )r   r   body_readers   `@r   r   z8read_comments_xml_element.<locals>._read_comment_element   s4    	D ##G$4$4599 ;  	r    )r   r"   r   r   s    ` @r   r   r      s    S

 %W--r   N)r   r   r   r   r   r#   r   r   <module>r$      s      .r   