code: def convert(
      word, dialect, chao, eight, nosuper, glottal, phonemic, delimit
  ):
      """Convert a single orthographic string to IPA."""
  
      ons = ""
      gli = ""
      nuc = ""
      cod = ""
      ton = ""
      seq = ""
  
      try:
          (ons, gli, nuc, cod, ton) = trans(
              word, dialect, chao, eight, nosuper, glottal, phonemic
          )
          if None in (ons, gli, nuc, cod, ton):
              seq = "[" + word + "]"
          else:
              seq = (
                  delimit
                  + delimit.join(
                      filter(None, (ons, gli, nuc, cod, ton))
                  )
                  + delimit
              )
      except TypeError:
          pass
  
      return seq
  
file_path: underthesea/examples/text_normalize/tools/vphone.py
imports: from __future__ import absolute_import
  import sys, re, io, string, argparse
  from os.path import join, dirname
  from types import SimpleNamespace
  from underthesea.utils.vietnamese_ipa import vietnamese_sort_key
  from vphone_rules import *
label_desc: Use image node_id 2 for calling a global function with example usage: convert(word, dialect, chao, eight, nosuper, glottal, phonemic, delimit) and returns: seq