Graphvizã§æ¥æ¬èªã使ã (Graphviz version 2.26.3)
Graphvizã§æ¥æ¬èªã使ãå ´åã®æ³¨æç¹ãã¡ã¢ãã¦ããã¾ãã対象ãã¼ã¸ã§ã³ã¯ã2.26.3(ææ°ã®å®å®ç)ã§ããååã¯OSéä¾åã®è©±ãå¾åã¯ä¸»ã«Windowsã§ã®è©±ã§ãã
ã¨ã³ã³ã¼ãã£ã³ã°
ç¾å¨ãGraphvizããµãã¼ãããã¨ã³ã³ã¼ãã£ã³ã°ã¯ã
- UTF-8
- iso-8859-1 (Latin1)
ã®2ã¤ã§ãã*1 Graphvizã§æ¥æ¬èªããã¹ããæ±ãå ´åãå¿ ç¶çã«UTF-8ãé¸æãããã¨ã«ãªãã¾ãããªããUTF-8ã¯ããã©ã«ãã®ã¨ã³ã³ã¼ãã£ã³ã°ã§ãã®ã§ç¹ã«æå®ããå¿ è¦ã¯ãªãã®ã§ãããgraphã®å±æ§ã¨ãã¦æ示çã«æå®ãããã¨ãå¯è½ã§ãã
... graph [charset="UTF-8", ...]; ...
ãã©ã³ãåãæå®ãã対象
æ¥æ¬èªããã¹ãã使ç¨ããå ´åã¯ãæ¥æ¬èªãã©ã³ããæå®ããå ´åãå¤ãã¨æãã¾ããGraphvizã§ã¯ãã°ã©ãããã¼ããã¨ãã¸ã®ããããã«å¯¾ãã¦ãã©ã³ãæå®ãå¯è½ã§ããããã§æ³¨æãå¿ è¦ãªã®ã¯ããããã®ãã©ã³ãæå®ãç¬ç«ãã¦ããã¨ããç¹ã§ããä¾ãã°ãã°ã©ãã«å¯¾ãã¦ãã©ã³ããæå®ãã¦ãããã®ã°ã©ãå ã®ãã¼ããã¨ãã¸ã«ã¯å½±é¿ãä¸ãã¾ããããæ¥æ¬èªãã©ã³ããæå®ãã¦ããã¯ããªã®ã«ããªãããã¼ãã®æåãæååããããã¨ãããããªæã¯ããã¼ãã«å¯¾ãããã©ã³ãæå®ãå¿ãã¦ããªããããã§ãã¯ãã¦ã¿ãã¨ããã§ãããã
å©ç¨å¯è½ãªãã©ã³ãå
ããããã¯ã主ã«Windowsç°å¢ã®è©±ã«ãªãã¾ããWindowsçã®Graphvizã§æ¥æ¬èªããã¹ãã使ç¨ããå ´åãæ示çã«æ¥æ¬èªãã©ã³ãåãæå®ããªãã¨åºåãã¡ã¤ã«ã§æååãããããã§ãã*2
Windows XP SP3ã§ãããããªãã©ã³ãåã試ãã¦ã¿ãã¨ããã以ä¸ã®æ¥æ¬èªãã©ã³ãã使ç¨å¯è½ã§ããã
- MS UI Gothic
- ï¼ï¼³ ã´ã·ãã¯
- ï¼ï¼³ ææ
- IPA ã´ã·ã㯠(è¦ã¤ã³ã¹ãã¼ã«)
- IPA Pã´ã·ã㯠(è¦ã¤ã³ã¹ãã¼ã«)
- IPAææ (è¦ã¤ã³ã¹ãã¼ã«)
- IPA Pææ (è¦ã¤ã³ã¹ãã¼ã«)
ä¸è¨ã®ãã©ã³ãåãä¸éã使ã£ãå ¥åãã¼ã¿ã¨ããã®åºåç»åã§ãã
digraph G { graph [ranksep=0.0] node [shape=box, fontsize=18, sizefixed, width=3.0] edge [style=invis] n1->n2->n3->n4->n5->n6->n7 //MS UI Gothic n1 [label="æ¥æ¬èª (MS UI Gothic)", fontname="MS UI Gothic"] //ï¼ï¼³ ã´ã·ã㯠n2 [label="æ¥æ¬èª (ï¼ï¼³ ã´ã·ãã¯)", fontname="ï¼ï¼³ ã´ã·ãã¯"] //ï¼ï¼³ ææ n3 [label="æ¥æ¬èª (ï¼ï¼³ ææ)", fontname="ï¼ï¼³ ææ"] //IPA ã´ã·ã㯠(è¦ã¤ã³ã¹ãã¼ã«) n4 [label="æ¥æ¬èª (IPAGothic)", fontname="IPAGothic"] //IPA Pã´ã·ã㯠(è¦ã¤ã³ã¹ãã¼ã«) n5 [label="æ¥æ¬èª (IPAPGothic)", fontname="IPAPGothic"] //IPAææ (è¦ã¤ã³ã¹ãã¼ã«) n6 [label="æ¥æ¬èª (IPAMincho)", fontname="IPAMincho"] //IPA Pææ (è¦ã¤ã³ã¹ãã¼ã«) n7 [label="æ¥æ¬èª (IPAPMincho)", fontname="IPAPMincho"] }
ãï¼ï¼³ ã´ã·ãã¯ãã¨ãï¼ï¼³ ææãã¯ããï¼ï¼³ããå ¨è§ããã®å¾ã®ã¹ãã¼ã¹ãåè§ã§ããç¹ã«æ³¨æãã¦ãã ãããã¾ãããï¼ï¼³ ï¼°ã´ã·ãã¯ãã¨ãï¼ï¼³ ï¼°ææãã¯ä½¿ãã¾ããã§ããã
ä¸ã®4ã¤ã®ãã©ã³ãã¯ãIPA(æ å ±å¦çæ¨é²æ©æ§)ãé å¸ãã¦ãããIPAフォントã§ãã使ç¨ããå ´åã¯ã¤ã³ã¹ãã¼ã«ãå¿ è¦ã§ããfontnameã«æå®ããæååãããã©ã³ãåã¨ããã©ã³ããã¡ã¤ã«åã¨ãéã£ã¦ããã®ã§æ³¨æãå¿ è¦ã§ãã
太å(bold)ã¨æä½(italic)
fontnameã®æå¾ã«ãBoldãããItalicããä»ããã¨ã太åãæä½ã«ãããã¨ãã§ãã¾ããåºåãæåã¯ãåè§ã¹ãã¼ã¹ã§ãããã®ç¹ã¯ãæ¥æ¬èªãã©ã³ãã§ãåãã§ãã
digraph G { graph [ranksep=0.0] node [shape=box, fontsize=18, sizefixed, width=5.0] edge [style=invis] n1->n2->n3->n4 n1 [label="æ¥æ¬èª (ï¼ï¼³ ã´ã·ãã¯)", fontname="ï¼ï¼³ ã´ã·ãã¯"] n2 [label="æ¥æ¬èª (ï¼ï¼³ ã´ã·ã㯠Bold)", fontname="ï¼ï¼³ ã´ã·ã㯠Bold"] n3 [label="æ¥æ¬èª (ï¼ï¼³ ã´ã·ã㯠Italic)", fontname="ï¼ï¼³ ã´ã·ã㯠Italic"] n4 [label="æ¥æ¬èª (ï¼ï¼³ ã´ã·ã㯠Bold Italic)", fontname="ï¼ï¼³ ã´ã·ã㯠Bold Italic"] }
ãã§ãã¯ãªã¹ã
æå¾ã«ãGraphvizã§æ¥æ¬èªåºåããã¾ããããªãå ´åã®ãã§ãã¯ãªã¹ããã¾ã¨ãã¦ããã¾ãã
- DOTãã¡ã¤ã«ã®ã¨ã³ã³ã¼ãã£ã³ã°ãUTF-8ã«ãã¦ãããï¼
- ã°ã©ãããã¼ããã¨ãã¸ã®ããããã«å¯¾ããé©åãªãã©ã³ãåãæå®ããã¦ãããï¼
- 使ç¨å¯è½ãªãã©ã³ãåãæå®ãã¦ãããï¼
- ãã©ã³ãåã®æå®ãééãã¦ããªããï¼ (åè§ã»å ¨è§ã®éããã¹ãã¼ã¹ã®æç¡ãªã©)
*1:http://www.graphviz.org/doc/info/attrs.html#d:charset
*2:ã¡ãªã¿ã«ãUbuntu 8.0.4ã§ã¯æ¥æ¬èªãã©ã³ãåã®æå®ãä¸è¦ã§ããã詳細ã¯æªç¢ºèªã§ãã...ã