def latin(s):
 if (not isinstance(s, unicode)):
  s = s.decode('utf-8')
 return all((unicodedata.name(ch).startswith('LATIN') for ch in s if ch.isalpha()))

def latin ( s ) : if ( not isinstance ( s , unicode ) ) : s = s . decode ( 'utf-8' ) return all ( ( unicodedata . name ( ch ) . startswith ( 'LATIN' ) for ch in s if ch . isalpha ( ) ) )
returns true if the string contains only latin-1 characters .