
     h$                     t    d Z ddlZdZ ej                         d   xs dZ ed dD              Zd Zd Zd	 Z	y)
z1
Helpers related to SVG conditional processing.

    Nz"http://www.w3.org/TR/SVG11/feature c              #   4   K   | ]  }t         d z   |z     yw)#N)ROOT).0features     m/home/developers/rajanand/mypropertyqr-fmb-refixing-v2/venv/lib/python3.12/site-packages/cairosvg/features.py	<genexpr>r
   
   s       $D3J s   )SVGz
SVG-staticCoreAttribute	StructureBasicStructureConditionalProcessingImageStyleViewportAttributeShape	BasicTextBasicPaintAttributeOpacityAttributeBasicGraphicsAttributeMarkerGradientPatternClip	BasicClipMaskc                 `    t         t        | j                         j                  d            k\  S )z5Check whether ``features`` are supported by CairoSVG. )SUPPORTED_FEATURESsetstripsplit)featuress    r	   has_featuresr%   #   s$    X^^%5%;%;C%@!AAA    c                     | j                  d      D ],  }|j                         }|st        j                  |      s, y y)z?Check whether one of ``languages`` is part of the user locales.,TF)r#   r"   LOCALE
startswith)	languageslanguages     r	   support_languagesr-   (   s>    OOC( >>#))(3 r&   c                     | j                   j                  d      }| j                   j                  d      }d| j                   v ry|t        |      sy|t        |      syy)z;Check the node match the conditional processing attributes.requiredFeaturessystemLanguagerequiredExtensionsFT)attribgetr%   r-   )noder$   r+   s      r	   match_featuresr5   1   s[    {{12H 01It{{*L$:%6y%Ar&   )
__doc__localer   	getlocaler)   	frozensetr    r%   r-   r5    r&   r	   <module>r;      sX   
 +				A		$"  )   2B

r&   