
    kh                         d dl Z ddlmZ ddlmZ ddlmZ d Z e j                  ed      Z e j                  ed      Zy)	    N   )lists)	documents)resultsc                 :      fd}d  fd ||      S )Nc                     t        j                  | j                  dz               }t        j                  t        j
                  |            S )Nzw:)r   filterfind_childrenr   combinemap)elementnote_elements_is_note_element_read_note_element	note_types     R/var/www/teggl/fontify/venv/lib/python3.12/site-packages/mammoth/docx/notes_xml.pyread_notes_xml_elementz+_read_notes.<locals>.read_notes_xml_element	   sD    !!$"23
 uyy);]KLL    c                 <    | j                   j                  d      dvS )Nzw:type)continuationSeparator	separator)
attributesget)r   s    r   r   z%_read_notes.<locals>._is_note_element   s    !!%%h/7]]]r   c                 b     j                   j                        j                   fd      S )Nc                 N    t        j                  j                  d   |       S )Nzw:id)r   note_idbody)r   noter   )r   r   r   s    r   <lambda>z9_read_notes.<locals>._read_note_element.<locals>.<lambda>   s(    NN#**62 r   )read_allchildrenr   )r   body_readerr   s   `r   r   z'_read_notes.<locals>._read_note_element   s,    ##G$4$4599 ;  	r    )r   r   r"   r   r   r   s   ` ` @@r   _read_notesr$      s!    M^ "'**r   footnoteendnote)		functools r   r   r   r$   partialread_footnotes_xml_elementread_endnotes_xml_elementr#   r   r   <module>r,      sB       +. /Y..{JG -I--k9E r   