parameters: (p)
docstring: text_action : text LPAREN keywordargument_list RPAREN SEMICOL
docstring_summary: text_action : text LPAREN keywordargument_list RPAREN SEMICOL
docstring_tokens: text_action : text LPAREN keywordargument_list RPAREN SEMICOL
function: def p_text_action(p) :
      'text_action : text LPAREN keywordargument_list RPAREN SEMICOL'
      # If text string is null ignore
      if p[3]['text'] == "" or p[3]['text'] == " " :
          p[0] = []
          return
      t = 'text ( text="'+p[3]['text']+'"'
      t = addValue(t,'size',p)
      t = addString(t,'spacing',p)
      t = addString(t,'font',p)
      t = addString(t,'direction',p)
      t = addString(t,'language',p)
      if "script" in p[3]:
          t = addString(t,'script',p)
      else:
          t += ', script="latin"'
      t = addString(t,'halign',p)
      t = addString(t,'valign',p)
      t = addValue(t,'$fn',p)
      t = addValue(t,'$fa',p)
      t = addValue(t,'$fs',p)
      t = t+');'
  
      FreeCAD.Console.PrintMessage("textmsg : "+t+"\n")
      p[0] = [processTextCmd(t)]
function_tokens: def p_text_action ( p ) : # If text string is null ignore if p [ 3 ] [ 'text' ] == "" or p [ 3 ] [ 'text' ] == " " : p [ 0 ] = [ ] return t = 'text ( text="' + p [ 3 ] [ 'text' ] + '"' t = addValue ( t , 'size' , p ) t = addString ( t , 'spacing' , p ) t = addString ( t , 'font' , p ) t = addString ( t , 'direction' , p ) t = addString ( t , 'language' , p ) if "script" in p [ 3 ] : t = addString ( t , 'script' , p ) else : t += ', script="latin"' t = addString ( t , 'halign' , p ) t = addString ( t , 'valign' , p ) t = addValue ( t , '$fn' , p ) t = addValue ( t , '$fa' , p ) t = addValue ( t , '$fs' , p ) t = t + ');' FreeCAD . Console . PrintMessage ( "textmsg : " + t + "\n" ) p [ 0 ] = [ processTextCmd ( t ) ]