py/gadict_srs_anki.py
changeset 647 6ae5399c8087
parent 646 2d488cfc4c0c
child 650 b13c09aaa9a3
equal deleted inserted replaced
646:2d488cfc4c0c 647:6ae5399c8087
   307         builder.add_note("singular", identity, warnmsg, warnmsg+" singular", "del")
   307         builder.add_note("singular", identity, warnmsg, warnmsg+" singular", "del")
   308         builder.add_note("plural", identity, warnmsg, warnmsg+" plural", "del")
   308         builder.add_note("plural", identity, warnmsg, warnmsg+" plural", "del")
   309 
   309 
   310     for (headwords, translations) in DOM[1:]:
   310     for (headwords, translations) in DOM[1:]:
   311         identity = headwords[0].headword
   311         identity = headwords[0].headword
       
   312         if 'rare' in identity.attrs:
       
   313             continue
   312         freqtags = []
   314         freqtags = []
   313         for (freqtag, freqset) in FREQ_SOURCES:
   315         for (freqtag, freqset) in FREQ_SOURCES:
   314             if identity in freqset:
   316             if identity in freqset:
   315                 freqtags.append(freqtag)
   317                 freqtags.append(freqtag)
   316         freqmsg = None
   318         freqmsg = None