graphicsText.praat 1.1 KB

12345678910111213141516171819202122232425262728
  1. # graphicsText.praat
  2. # Paul Boersma 2017-09-19
  3. Erase all
  4. Select outer viewport: 0, 6, 0, 9
  5. Axes: 0, 100, 50, 100
  6. Times
  7. 12
  8. Text: 0, "left", 99, "half", "Getting graphical text right is not a trivial task:"
  9. Text: 0, "left", 98, "half", "many types of glitches are possible."
  10. Text: 0, "left", 95, "half", "Code might be misaligned as in: $$< > <> <= = >=$, you see?"
  11. Courier
  12. text$ = "Code might be misaligned as in: $$< > <> <= = >=$, you see?"
  13. Text: 0, "left", 94, "half", text$
  14. width = Text width (world coordinates): text$
  15. Text: width, "left", 94, "half", "... and here it continues"
  16. Text: 0, "left", 93, "half", "a / b, a/b, a / b, a/b, a / b, a/b, a / b, a /b, a/ b"
  17. Times
  18. Text: 0, "left", 92, "half", "a / b, a/b, a / b"
  19. Courier
  20. Text: 0, "left", 90, "half", "The space might be too small in: Now %%you% try."
  21. Times
  22. Text: 0, "left", 89, "half", "The space might be too small in: Now %%you% try."
  23. Text: 0, "left", 88, "half", "A lot of normal text might cause ##misalignment# misalignment misalignment of the f in: (%%false%)"
  24. Text: 0, "left", 87, "half", "(%%false%) now at the beginning of the line"