DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:format

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
plugin:format [2009-01-02 23:44] 70.103.232.219plugin:format [2010-10-10 14:50] – downloadurl lupo49
Line 11: Line 11:
 conflicts  conflicts 
 similar    : graphviz, gnuplot, latex similar    : graphviz, gnuplot, latex
-tags       : externalprogrammedia+tags       : mediaembedprogram 
 + 
 +downloadurl: http://math.byu.edu/~grout/format.zip
 ---- ----
  
Line 36: Line 38:
 After setting up the external programs in the conf/default.php file, you can call an external program like: After setting up the external programs in the conf/default.php file, you can call an external program like:
 <code> <code>
-<format programname>+<format program-name>
 text to feed into the program text to feed into the program
 </format> </format>
Line 132: Line 134:
  
 I've put a short page up demonstrating this plugin at [[http://math.byu.edu/~grout/software/dokuwiki/format-plugin]].  I've put a short page up demonstrating this plugin at [[http://math.byu.edu/~grout/software/dokuwiki/format-plugin]]. 
 +
 +I've put an other short page up demonstrating this plugin generating sequence diagrams. Look at [[http://astade.homeip.net/wiki/doku.php?id=howto:trace2uml_in_dokuwiki|my Wiki page]].\\
 +This demonstrates how to use it with Trace2UML [[http://trace2uml.tigris.org]]
 +<code php>
 +  'command' => 'xvfb-run /usr/bin/Trace2UML -i @INFILE@ -o @MEDIAFILE@'))
 +</code>
  
  
Line 148: Line 156:
  
 On my machine, compiling dpic in safe mode and renaming it to dpic-safe had the consequence that it would not On my machine, compiling dpic in safe mode and renaming it to dpic-safe had the consequence that it would not
-produce output when called by php. Therefore, the command had to be+produce output when called by PHP. Therefore, the command had to be
 <code php> <code php>
                     'command' => '/usr/local/bin/dpic -r @INFILE@ | /usr/local/bin/convert -density 200 - png:- > @MEDIAFILE@'));                     'command' => '/usr/local/bin/dpic -r @INFILE@ | /usr/local/bin/convert -density 200 - png:- > @MEDIAFILE@'));
Line 159: Line 167:
 dpic still is compiled for safe mode, so security is not broken. dpic still is compiled for safe mode, so security is not broken.
  
-gnuplot has a problem also, because how gnuplot handles PNG output depends on the libraries avaiulable at compile time.+gnuplot has a problem also, because how gnuplot handles PNG output depends on the libraries available at compile time.
  
 It the command It the command
Line 193: Line 201:
  --- //[[garlicbready@googlemail.com|Richard Westwell]] 2008-03-09 14:48//  --- //[[garlicbready@googlemail.com|Richard Westwell]] 2008-03-09 14:48//
  
 +\\
 +For Windows (at least) installations, I found some changes were necessary; in particular, the @MEDIAFILE@ and @INFILE@ items in the default.php had to be quoted. (Otherwise, the c:\Program Files\... path would cause problems, among others.)\\
 +\\
 +Here's my working mscgen section from default.php.  (mscgen is c:\usr\bin\mscgen.exe)\\
 +<code>
 +  /*  mscgen setup */
 +  foreach (array('mscgen') as $key => $prog) {
 +    $conf[$prog]=array('name' => "MSCGen",
 +     'xhtml' => array('ext' => 'png',
 +           'pre' => "msc{",
 +           'post' => "}",
 +           'command' => '/usr/bin/'.$prog.' -Tpng -o "@MEDIAFILE@" "@INFILE@"'));
 +  }
 +</code>
 + --- // bchartrand, 2010-02-25//
 +\\
 +I have just completed a comment for the [[plugin:chain]] plugin that will apply wiki formatting to syntax text. Since these two plugins are very similar, it should work here too. If you've been interested in bringing in external wiki-formatted text, check it out.\\
 +- Jared Meeker (jaredm@tni.com)  25Aug2010
plugin/format.txt · Last modified: 2023-12-21 19:04 by Aleksandr

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki