def transliterate(args):
  """Transliterate words according to the target language."""
  t = Transliterator(source_lang=args.lang,
                     target_lang=args.target)
  for l in args.input:
    words = l.strip().split()
    line_annotations = [u"{:<16}{:<16}".format(w, t.transliterate(w)) for w in words]
    _print(u"\n".join(line_annotations))
    _print(u"")
def transliterate ( args ) : t = Transliterator ( source_lang = args . lang , target_lang = args . target ) for l in args . input : words = l . strip ( ) . split ( ) line_annotations = [ u"{:<16}{:<16}" . format ( w , t . transliterate ( w ) ) for w in words ] _print ( u"\n" . join ( line_annotations ) ) _print ( u"" )
Transliterate words according to the target language.