plugin:asciisvg
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:asciisvg [2011-06-23 16:44] – [plugin codes] atronoush | plugin:asciisvg [2022-07-29 23:27] (current) – Klap-in | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : m.rahmani@aut.ac.ir | email : m.rahmani@aut.ac.ir | ||
type : Syntax | type : Syntax | ||
- | lastupdate : 2008-08-05 | + | lastupdate : 2011-06-25 |
- | compatible : version 2010-11-07|version 2011-05-25|version 2011-05-25a(also compatible with older version 2009-05-08) | + | compatible : Lemming, Anteater, Rincewind |
depends | depends | ||
- | conflicts | + | conflicts |
similar | similar | ||
tags : media, images, diagram, svg | tags : media, images, diagram, svg | ||
Line 171: | Line 171: | ||
</ | </ | ||
- | ===== Usage/ | ||
- | * Make sure you have enabled '' | ||
- | < | ||
- | |||
- | < | ||
- | |||
- | < | ||
- | script=' | ||
- | > | ||
- | |||
- | </ | ||
- | |||
- | </ | ||
- | |||
- | This is the syntax for the tag that inserts the pictures on the wiki page. The ASCIIsvg commands are put between single quotes in the script attribute. The width and height are measured in pixels. For detailed discussion take a look at [[http:// | ||
- | There are many examples under [[http:// | ||
===== Samples ===== | ===== Samples ===== | ||
Line 193: | Line 177: | ||
== Example 1 == | == Example 1 == | ||
- | < | + | < |
- | + | <asvg 117/117> | |
- | <html> | + | |
- | <embed width=" | + | initPicture(-2.2,2.2,-2.2) |
- | script=' | + | line([-2,-2],[2,2]) |
- | axes() | + | marker = ' |
- | a = [0,0] | + | line([-2,2],[2,-2]) |
- | b = [5,5] | + | |
- | | + | </asvg> |
- | line(a,b) | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | path([a,[0,5],b,[5,0]]) | + | |
- | stroke = " | + | |
- | marker = " | + | |
- | curve([a, | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | marker = " | + | |
- | | + | |
- | </html> | + | |
</ | </ | ||
- | See the result here [[http:// | + | |
== Example 2 == | == Example 2 == | ||
- | < | + | < |
- | + | <asvg 250/250> | |
- | <html> | + | initPicture(-1,6,-1,6) |
- | <embed width=" | + | |
- | script=' | + | |
- | axes() | + | b = [5,5] |
- | a = 1 | + | marker = ' |
- | stroke | + | line(a,b) |
- | update()'> | + | |
- | < | + | text(b,' |
- | function update() { | + | text(b,' |
- | plot(function | + | text(b,' |
- | | + | text(b,' |
- | } | + | |
- | </ | + | |
- | + | | |
- | </html> | + | |
+ | | ||
+ | | ||
+ | stroke = ' | ||
+ | | ||
+ | curve([a,[.25, | ||
+ | stroke = ' | ||
+ | circle([5, | ||
+ | ellipse([0, | ||
+ | stroke = ' | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
</ | </ | ||
- | See the result here [[http:// | + | |
- | + | * Asciisvg in use, see this image: [[http:// | |
- | More examples in [[http:// | + | |
===== ToDo ===== | ===== ToDo ===== | ||
- | * The ASCIIsvg was implemented as a pseudo plugin here. It seems the plugin simply adds the ASCIIsvg.js into DokuWiki. It is better to add the script as a real plugin to support a syntax without enabling the embeded HTML. | ||
- | * The addition of ASCIIsvg.js into DokuWiki can be implemented in a more secure and safer way. | ||
* Interested developers are invited to correct/ | * Interested developers are invited to correct/ | ||
* This plugin supports ASCIIsvg 1.2.7. The newer version is included in [[http:// | * This plugin supports ASCIIsvg 1.2.7. The newer version is included in [[http:// | ||
===== Issues ===== | ===== Issues ===== | ||
- | - It seems there is a minor conflict with [[plugin: | + | |
- | | + | |
===== Discussion ===== | ===== Discussion ===== | ||
- | It doesnt work with the newest Version it seems. Its 2009-02-14b. | ||
- | I installed the newest plugin version, copied an example to a page but it doesnt show anything. FIXME |
plugin/asciisvg.1308840258.txt.gz · Last modified: 2011-06-23 16:44 by atronoush