Skip to content

Latest commit

 

History

History
187 lines (137 loc) · 5.83 KB

File metadata and controls

187 lines (137 loc) · 5.83 KB

Operators: T, U, V, W, X, Y

  1. timeout: Typically related to setting or handling timeouts, but not a standard operator itself.

  2. token: Parses the next token from a string.

    (123 /name) token  % Might return 123 and leave "/name" in the string
  3. transform: Transforms a coordinate (x, y) using the current transformation matrix.

    10 20 transform  % Transforms point (10, 20) according to the current matrix
  4. translate: Translates the current coordinate system by (tx, ty).

    100 200 translate  % Moves the origin of the coordinate system to (100, 200)
  5. true: Pushes the boolean value true onto the stack.

    true  % The stack now has the boolean value true
  6. truncate: Truncates a real number to an integer.

    3.9 truncate  % Returns 3
  7. type: Returns the type of the object.

    /x type  % Returns /nametype if x is a name
  8. typecheck: Typically used to indicate a type mismatch error, not an operator to invoke.

  9. uappend: Not a standard PostScript operator. Similar functionality might be achieved through string concatenation.

  10. ucache: Not a standard PostScript operator.

  11. ucachestatus: Not a standard PostScript operator.

  12. ueofill: Not a standard PostScript operator.

  13. ufill: Not a standard PostScript operator.

  14. undef: Removes a name from the current dictionary.

    /x undef  % Removes the name 'x' from the current dictionary
  15. undefined: Used to signal an undefined error, not typically an operator.

  16. undefinedfilename: Indicates an error when a filename is not found or undefined.

  17. undefinedresource: Used to signal when a requested resource is not available.

    /Font /NonexistentFont undefinedresource  % Error if NonexistentFont is not defined
  18. undefinedresult: Indicates an operation yielded an undefined result.

  19. undefinefont: Removes a font from the font dictionary.

    /MyFont undefinefont  % Removes 'MyFont' from the font dictionary
  20. undefineresource: Removes a resource from a category.

    /Category /ResourceName undefineresource  % Removes 'ResourceName' from 'Category'
  21. undefineuserobject: Not a standard PostScript operator.

  22. unmatchedmark: Indicates a stack imbalance involving mark.

  23. unregistered: Not a standard PostScript operator.

  24. upath: Not a standard PostScript operator.

  25. userdict: Returns the user dictionary, where users can define their own entries.

    userdict  % Accesses the user dictionary
  26. usertime: Returns the amount of time the current job has been processing in milliseconds.

    usertime  % Returns processing time in milliseconds
  27. ustroke: Not a standard PostScript operator.

  28. ustrokepath: Not a standard PostScript operator.

  29. version: Returns the version number of the PostScript interpreter.

    version  % Might return '2017.1' or similar
  30. viewclip: Sets the view clipping path to a rectangle.

    0 0 100 100 viewclip  % Sets view clipping path to specified rectangle
  31. viewclippath: Restores the view clipping path to what it was before the last viewclip.

  32. vmreclaim: Manually triggers the garbage collection process.

    1 vmreclaim  % Force immediate garbage collection
  33. vmstatus: Returns information about the virtual memory usage.

    vmstatus  % Returns current VM usage
  34. wait: Pauses execution for a specified amount of time.

    1000 wait  % Waits for 1000 milliseconds
  35. wcheck: Checks if an object is writable.

    /x wcheck  % Returns true if 'x' is writable
  36. where: Searches the dictionary stack for

a name and returns true if found. postscript /x where % Checks if 'x' exists in any accessible dictionary

  1. widthshow: Shows a string and adjusts the position of one character.

    (string) 100 200 50 widthshow  % Shows 'string' and adjusts the 50th character
  2. write: Writes data to a file.

    (data) file write  % Writes 'data' to 'file'
  3. writehexstring: Writes data as a hexadecimal string to a file.

    (data) file writehexstring  % Writes 'data' to 'file' in hexadecimal form
  4. writeobject: Writes an object to a file.

    /obj file writeobject  % Writes 'obj' to 'file'
  5. writestring: Writes a string to a file.

    (Hello) file writestring  % Writes 'Hello' to 'file'
  6. wtranslation: Not a standard PostScript operator.

  7. xcheck: Checks if an object is executable.

    {1 2 add} xcheck  % Returns true as the block is executable
  8. xor: Performs a logical exclusive OR on two boolean values.

    true false xor  % Returns true
  9. xshow: Adjusts the horizontal displacement of each character when showing a string.

    (Hello) [1 2 3 4 5] xshow  % Adjusts spacing between characters in 'Hello'
  10. xyshow: Adjusts the position of each character in both x and y directions.

    (Hello) [1 0 2 0 3 0 4 0 5 0] xyshow  % Adjusts x-position of each character
  11. yield: Gives up processor time, useful in multitasking environments.

  12. yshow: Adjusts the vertical displacement of each character when showing a string.

    (Hello) [0 1 0 2 0 3 0 4 0 5] yshow  % Adjusts y-position of each character