home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 June / PCWorld_2007-06_cd.bin / temacd / wikipad / WikidPad-1.9beta2.exe / {app} / WikidPadHelp / data / ExternalGraphicalApplications.wiki < prev    next >
Encoding:
Text File  |  2006-12-23  |  4.0 KB  |  113 lines

  1. ∩╗┐++ External Graphical Applications
  2.  
  3. WikidPad allows access to some graphical applications which take some sort of script to generate images. You can include the script in a wiki and let the applications generate the appropriate image to show it in HTML preview and export.
  4.  
  5. The supported applications are:
  6.  
  7.     * MimeTeX to generate mathematical formulas
  8.     * GraphViz which is a set of applications to generate directed and nondirected graphs
  9.     * Ploticus to generate plots and charts (as you might have seen in your favorite spreadsheet program)
  10.  
  11.  
  12. +++ Download and installation
  13.  
  14. The mentioned applications are not part of the WikidPad release itself, you must download it separately. The URLs are:
  15.  
  16. <<|
  17.     Appl.| Download| Docs
  18.     MimeTeX| http://www.forkosh.com/mimetex.html | http://www.forkosh.com/mimetex.html
  19.     GraphViz| http://graphviz.org/Download.php | http://graphviz.org/Documentation.php
  20.     Ploticus| http://ploticus.sourceforge.net/doc/download.html | http://prdownloads.sourceforge.net/ploticus/pl233site.tar.gz?download
  21. >>
  22.  
  23. You can download all or only some of them as you like.
  24.  
  25. Put the binaries in an arbitrary folder on your computer. If you do not plan to use them outside of WikidPad you can create a folder in the WikidPad installation directory and put them therein.
  26.  
  27. Now start WikidPad and open the "Options" dialog. Below the "Plugin options" entry in the list on the left you see three entries, each for one of the programs. Clicking on them leads to the appropriate options page.
  28.  
  29. For MimeTeX and Ploticus just enter the full path to the executable, for GraphViz only set the path to the directory containing the executables in the first text field. You can change the names of the executables itself in the fields below the first.
  30.  
  31.  
  32. +++ Usage
  33.  
  34. The programs are called using [Insertions]. The keys for the insertions are:
  35.     
  36.     * eqn: MimeTeX
  37.     * dot, neato, twopi, circo, fdp: GraphViz
  38.     * ploticus: Ploticus
  39.  
  40.  
  41. The values must follow the syntax of the respective program, please see the documentation of the applications for details.
  42.  
  43. The values should be quoted (enclosed by quotation symbols) if they shall contain special characters or newlines. A quotation symbol is an arbitrary number of one of the quotation characters ", ', / or \ (double quotation mark, single quotation mark, slash or backslash). The starting and ending symbols must be the same. Examples for quotation symbols are:
  44.  
  45. "
  46. '''
  47. //
  48. /////
  49. \\
  50.  
  51. When exporting HTML, the rendered image files are put in the same directory where the HTML files are.
  52.  
  53. If the GraphViz or Ploticus applications return errors or warnings, you see these instead of the rendered images. To suppress warnings/errors use the appendix "noerror" after the main value of the insertion.
  54.  
  55.  
  56. +++ Example
  57.  
  58. If you have downloaded and installed all applications you can see here how the graphics look like:
  59.  
  60.  
  61. *MimeTeX*: You should know that [:eqn:"a^2 + b^2 = c^2"] is important!
  62.  
  63.  
  64. *GraphViz (Dot, with "noerror" appendix)*
  65. [:dot:"
  66. digraph {
  67. a -> b
  68. b -> c
  69. b -> d
  70. d -> a
  71. }
  72. "; noerror]
  73.  
  74.  
  75. *Ploticus*
  76. [:ploticus:"
  77. #proc areadef
  78.   title: Annual Revenues, in thousands
  79.   rectangle: 1 1 5 2
  80.   xrange: 0 4
  81.   yrange: -5000 15000
  82.   yaxis.stubs: incremental 5000
  83.   yaxis.grid: color=pink
  84.   xaxis.stubs: text
  85. ABC Corp
  86. NetStuff
  87. MicroMason
  88.  
  89. #proc getdata
  90.   rotate: yes
  91.   data: 6430 -780 13470
  92.  
  93. #proc bars
  94.   lenfield: 1
  95.   color: dullyellow
  96.   labelword: $ @@N
  97.   crossover: 0
  98. "]
  99.  
  100.  
  101. +++ For programmers
  102.  
  103. If you want to create your own plugin to handle insertions, look in the "extensions" directory in the WikidPad installation directory. The plugins "MimeTexCGIBridge.py", "GraphvizClBridge.py" and "PloticusClBridge.py" control the external applications. The plugin "ExampleInsertion.py" handles the insertion key "testexample" and is another example how to handle insertions by a plugin.
  104.  
  105. [:testexample:"this";is;//a simple//;test]
  106.  
  107.  
  108.  
  109. [alias: Ploticus]
  110. [alias: MimeTeX]
  111. [alias: GraphViz]
  112. [camelCaseWordsEnabled: false]
  113.