1
0
forked from GitHub/gf-core

Clarify description for vt

This commit is contained in:
Inari Listenmaa
2024-04-29 20:42:51 +08:00
committed by GitHub
parent 2f31bbab23
commit b855a094f8

View File

@@ -1265,10 +1265,16 @@ Human eye may prefer to see a visualization: ``visualize_tree = vt``:
> parse "this delicious cheese is very Italian" | visualize_tree > parse "this delicious cheese is very Italian" | visualize_tree
``` ```
The tree is generated in postscript (``.ps``) file. The ``-view`` option is used for The tree is generated in postscript (``.ps``) file. The ``-view`` option is used for
telling what command to use to view the file. Its default is ``"open"``, which works telling what command to use to view the file.
on Mac OS X. On Ubuntu Linux, one can write
This works on Mac OS X:
```
> parse "this delicious cheese is very Italian" | visualize_tree -view=open
```
On Linux, one can write either of
``` ```
> parse "this delicious cheese is very Italian" | visualize_tree -view="eog" > parse "this delicious cheese is very Italian" | visualize_tree -view="eog"
> parse "this delicious cheese is very Italian" | visualize_tree -view=xdg-open
``` ```