Eamcs ditaa generates an Image Based on the character image,
Ditta and artist mode are good brothers. Artist mode helps me quickly create a character image. ditta is a java program that can read and generate an image.
Ditta's website: http://ditaa.sourceforge.net/
After the download, decompress the package to the local directory and run it using the java-jar command. The first parameter received is a text file containing a character image. By default, a png image with the same name is generated and saved in the current directory.
Since I often use muse to write and publish documents, I have come up with a good solution:
1. Use artist mode to create character graphics in an independent text file
2. Use ditta to generate a png file based on characters in the text file
3. Use the [[] label in the muse document to introduce the png file.
The following is a character chart:
+----------------+ +----------------+ +----------------+ | zookeeper 1 | | zookeeper 1 | | zookeeper 1 | | 10.100.50.1 | | 12.100.54.121 | | 90.100.54.121 | | hbase region | | hbase region | | hbase region |+---------------+ | MR task tracker| | MR task tracker| | MR task tracker||127.121.54.167 | | HDFS datanode | | HDFS datanode | | HDFS datanode ||nginx, tomcat| | | | | | ||| +----------------+ +----------------+ +-----.----------++---------------+ . .. . ..+---------------+ +---------------+ ..............................................|217.121.54.170 | | |............ .|nginx, tomcat | ======) +11.100.54.137 + .. .| | |Kafka | ... .+---------------+ +---------------+ . . ..+---------------+ ...|153.125.89.231 | ..|nginx, tomcat | +---------------+...............| | +17.100.54.136 | ..........+---------------+ =======) |kafka | ..... + + ....+---------------+ +---------------+...|129.125.89.232 ||nginx, tomcat || |+---------------+
After ditta is converted into an image, it is directly embedded into the muse document.
For internal information not exposed, the png image will not be displayed directly.