original_docstring: 
          Compute language and rulesetName from name, which is either a language
          name or a delegate name.
          
docstring: Compute language and rulesetName from name, which is either a language
  name or a delegate name.
docstring_tokens: Compute language and rulesetName from name which is either a language name or a delegate name .
code: def nameToRulesetName(self, name):
          """
          Compute language and rulesetName from name, which is either a language
          name or a delegate name.
          """
          if not name:
              return ''
          name = name.lower()
              # #1334. Lower-case the name, regardless of the spelling in @language.
          i = name.find('::')
          if i == -1:
              language = name
              # New in Leo 5.0: allow delegated language names.
              language = g.app.delegate_language_dict.get(language, language)
              rulesetName = f"{language}_main"
          else:
              language = name[:i]
              delegate = name[i + 2 :]
              rulesetName = self.munge(f"{language}_{delegate}")
          return language, rulesetName
code_tokens: def nameToRulesetName ( self , name ) : if not name : return '' name = name . lower ( ) i = name . find ( '::' ) if i == - 1 : language = name language = g . app . delegate_language_dict . get ( language , language ) rulesetName = f"{language}_main" else : language = name [ : i ] delegate = name [ i + 2 : ] rulesetName = self . munge ( f"{language}_{delegate}" ) return language , rulesetName
short_docstring: Compute language and rulesetName from name, which is either a language
  name or a delegate name.
short_docstring_tokens: Compute language and rulesetName from name which is either a language name or a delegate name .
comment: """
          Compute language and rulesetName from name, which is either a language
          name or a delegate name.
          """$SEP$# #1334. Lower-case the name, regardless of the spelling in @language.$SEP$# New in Leo 5.0: allow delegated language names.