Ejemplo n.º 1
0
def _check_zwj_sequences(sorted_seq_to_filepath, unicode_version):
  """Verify that zwj sequences are valid for the given unicode version."""
  for seq, fp in sorted_seq_to_filepath.iteritems():
    if ZWJ not in seq:
      continue
    age = unicode_data.get_emoji_sequence_age(seq)
    if age is None or unicode_version is not None and age > unicode_version:
      print('check zwj sequences: undefined sequence %s' % fp)
def _check_zwj_sequences(sorted_seq_to_filepath, unicode_version):
    """Verify that zwj sequences are valid for the given unicode version."""
    for seq, fp in sorted_seq_to_filepath.iteritems():
        if ZWJ not in seq:
            continue
        age = unicode_data.get_emoji_sequence_age(seq)
        if age is None or unicode_version is not None and age > unicode_version:
            print('check zwj sequences: undefined sequence %s' % fp)