def get_upper_case_list(char_list):
  """Return the upper case versions where they differ.
  If no char in the list is a lower case variant, the result is empty."""
  # keep in same order as input list.
  upper_case_chars = []
  for cp in char_list:
    upcp = unicode_data.to_upper(cp)
    if upcp != cp:
      upper_case_chars.append(upcp)
  return upper_case_chars
def get_upper_case_list(char_list):
    """Return the upper case versions where they differ.
  If no char in the list is a lower case variant, the result is empty."""
    # keep in same order as input list.
    upper_case_chars = []
    for cp in char_list:
        upcp = unicode_data.to_upper(cp)
        if upcp != cp:
            upper_case_chars.append(upcp)
    return upper_case_chars
def addcase(sample, script):
  cased_sample = []
  for cp in sample:
    ucp = unicode_data.to_upper(cp)
    if ucp != cp and ucp not in sample: # Copt has cased chars paired in the block
      cased_sample.append(ucp)
  if cased_sample:
    cased_sample = ' '.join(cased_sample)
    if _VERBOSE:
      print 'add case for %s' % script
    return sample + '\n' + cased_sample
  return sample
def addcase(sample, script):
    cased_sample = []
    for cp in sample:
        ucp = unicode_data.to_upper(cp)
        if ucp != cp and ucp not in sample:  # Copt has cased chars paired in the block
            cased_sample.append(ucp)
    if cased_sample:
        cased_sample = ' '.join(cased_sample)
        if _VERBOSE:
            print 'add case for %s' % script
        return sample + '\n' + cased_sample
    return sample