ó
    �®žj8  ã                   óT   • S r SSKrSSKr\R
                  " \5      rSS jr\" 5         g)zDdocling-parse: Extract text with coordinates from programmatic PDFs.é    Nc                  ó\  •  [         R                  " [         R                  5      n [         R                  " 5       nUR	                  SS5      S:w  a<  [         R
                  " [         R                  S5        [        R                  SU 5        gg! [         R                  [        4 a     gf = f)ue  Ensure LC_NUMERIC uses a period as decimal separator.

PDF coordinate parsing (both in QPDF's C library and in this
package's C++ layer) relies on '.' as the decimal separator.
Locales that use ',' (French, German, Portuguese, etc.) silently
corrupt every floating-point value extracted from a PDF.

This function is called at import time as a defence-in-depth
measure.  The primary fix is in the C++ layer (from_chars), but
this protects against any locale-sensitive path we may have missed
â€” including QPDF's own atof() calls that we cannot patch.

See: https://github.com/docling-project/docling/issues/1455
Údecimal_pointÚ.ÚCzVdocling-parse: overrode LC_NUMERIC from %s to 'C' to prevent PDF coordinate corruptionN)
Ú_localeÚ	getlocaleÚ
LC_NUMERICÚ
localeconvÚgetÚ	setlocaleÚ_logÚinfoÚErrorÚ
ValueError)ÚcurrentÚconvs     ÚS/home/mande/repo/quber/.venv/lib/python3.13/site-packages/docling_parse/__init__.pyÚ_ensure_safe_numeric_localer   	   sŽ   € ðÜ×#Ò#¤G×$6Ñ$6Ó7ˆô ×!Ò!Ó#ˆØ�8‰8�O SÓ)¨SÓ0Ü×Òœg×0Ñ0°#Ô6Ü�I‰Ið7àõð 1øô �M‰Mœ:Ð&ó ñ 	ðús   ‚B
B ÂB+Â*B+)ÚreturnN)	Ú__doc__Úlocaler   ÚloggingÚ_loggingÚ	getLoggerÚ__name__r   r   © ó    r   Ú<module>r      s,   ðÙ Jã Û à×Ò˜(Ó#€ôñB Õ r   