§
    ‚Ûg�  ã                   óF   — 	 dd„Z edk    rd dlZ ej        ¦   «          dS dS )é    Nc                 ó  — | |v r||          S |�|€J ‚|�|€J ‚|€]i }i }|                      ¦   «         D ]D\  }}|                     d¦  «        r|D ]}|||<   ŒŒ%|                     d¦  «        r
|D ]}|||<   ŒŒE| \  }	}
dx}}|	                     d¦  «        r|	}d}	n|                     |	¦  «        }|
                     d¦  «        r|
}d}
n|                     |
¦  «        }|	|
f|	|f||
f||fg}|D ]} | |v r
||          c S Œ|S )aµ  
    Note: This expects kerning to be a flat dictionary
    of kerning pairs, not the nested structure used
    in kerning.plist.

    >>> groups = {
    ...     "public.kern1.O" : ["O", "D", "Q"],
    ...     "public.kern2.E" : ["E", "F"]
    ... }
    >>> kerning = {
    ...     ("public.kern1.O", "public.kern2.E") : -100,
    ...     ("public.kern1.O", "F") : -200,
    ...     ("D", "F") : -300
    ... }
    >>> lookupKerningValue(("D", "F"), kerning, groups)
    -300
    >>> lookupKerningValue(("O", "F"), kerning, groups)
    -200
    >>> lookupKerningValue(("O", "E"), kerning, groups)
    -100
    >>> lookupKerningValue(("O", "O"), kerning, groups)
    0
    >>> lookupKerningValue(("E", "E"), kerning, groups)
    0
    >>> lookupKerningValue(("E", "O"), kerning, groups)
    0
    >>> lookupKerningValue(("X", "X"), kerning, groups)
    0
    >>> lookupKerningValue(("public.kern1.O", "public.kern2.E"),
    ...     kerning, groups)
    -100
    >>> lookupKerningValue(("public.kern1.O", "F"), kerning, groups)
    -200
    >>> lookupKerningValue(("O", "public.kern2.E"), kerning, groups)
    -100
    >>> lookupKerningValue(("public.kern1.X", "public.kern2.X"), kerning, groups)
    0
    Nzpublic.kern1.zpublic.kern2.)ÚitemsÚ
startswithÚget)ÚpairÚkerningÚgroupsÚfallbackÚglyphToFirstGroupÚglyphToSecondGroupÚgroupÚgroupMembersÚglyphÚfirstÚsecondÚ
firstGroupÚsecondGroupÚpairss                 úN/granary/edev/quantum/lib/python3.11/site-packages/fontTools/ufoLib/kerning.pyÚlookupKerningValuer      s±  € ðT ˆw€€Ø�tŒ}ÐàÐ$Ø!Ð-Ð-Ð-ØÐ%Ø Ð,Ð,Ð,ØÐ ØÐØÐØ#)§<¢<¡>¤>ð 	6ð 	6ÑˆE�<Ø×Ò Ñ0Ô0ð 6Ø)ð 5ð 5�EØ/4Ð% eÑ,Ð,ð5à×!Ò! /Ñ2Ô2ð 6Ø)ð 6ð 6�EØ05Ð& uÑ-Ð-øà�M€Eˆ6Ø#Ð#€J�Ø×Ò˜Ñ(Ô(ð 2Øˆ
Øˆˆà&×*Ò*¨5Ñ1Ô1ˆ
Ø×Ò˜Ñ)Ô)ð 5ØˆØˆˆà(×,Ò,¨VÑ4Ô4ˆð 
�ˆØ	�ÐØ	�VÐØ	�[Ð!ð	€Eð ð !ð !ˆØ�7ˆ?ˆ?Ø˜4”=Ð Ð Ð ð ð €Oó    Ú__main__)r   NN)r   Ú__name__ÚdoctestÚtestmod© r   r   ú<module>r      sU   ðàRVðTð Tð Tð Tðn ˆzÒÐØ€N€N€Nà€G„OÑÔÐÐÐð Ðr   