parameters: (self, command, pos)
return_statement: return upgreek
docstring: Parse the Greek \\up command..
docstring_summary: Parse the Greek \\up command..
docstring_tokens: Parse the Greek \\ up command ..
function: def parseupgreek(self, command, pos):
      "Parse the Greek \\up command.."
      if len(command) < 4:
        return None
      if command.startswith('\\up'):
        upcommand = '\\' + command[3:]
      elif pos.checkskip('\\Up'):
        upcommand = '\\' + command[3:4].upper() + command[4:]
      else:
        Trace.error('Impossible upgreek command: ' + command)
        return
      upgreek = self.parsewithcommand(upcommand, pos)
      if upgreek:
        upgreek.type = 'font'
      return upgreek
function_tokens: def parseupgreek ( self , command , pos ) : if len ( command ) < 4 : return None if command . startswith ( '\\up' ) : upcommand = '\\' + command [ 3 : ] elif pos . checkskip ( '\\Up' ) : upcommand = '\\' + command [ 3 : 4 ] . upper ( ) + command [ 4 : ] else : Trace . error ( 'Impossible upgreek command: ' + command ) return upgreek = self . parsewithcommand ( upcommand , pos ) if upgreek : upgreek . type = 'font' return upgreek