plugin:svg_pureinsert
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:svg_pureinsert [2012-01-30 14:48] – [Download] 195.49.23.226 | plugin:svg_pureinsert [2015-02-04 17:17] (current) – moved to correct place andi | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== svg pureinsert plugin ====== | ||
- | ---- plugin ---- | ||
- | description: | ||
- | author | ||
- | email : leszek_piatek@poczta.onet.pl | ||
- | type : syntax | ||
- | lastupdate : 2009-01-25 | ||
- | compatible : DokuWiki-2007-06-26b | ||
- | depends | ||
- | conflicts | ||
- | similar | ||
- | tags : media, images, diagram, svg | ||
- | downloadurl: | ||
- | ---- | ||
- | |||
- | ====== Download ====== | ||
- | < | ||
- | The download-link is broken. You can find the source-code in [[http:// | ||
- | ====== Installation | ||
- | Do normal remote installation (ctrl+c -> ctrl+v upper link in admin/ | ||
- | |||
- | Or manually after downloading plugin extract it and copy all the files to your DokuWiki / | ||
- | |||
- | To enable the " | ||
- | SVG image/ | ||
- | |||
- | If you want to disable cache for SVG files edit lib/ | ||
- | - define(' | ||
- | - delete folder: lib/ | ||
- | Caching is enabled by default: | ||
- | - folder lib/ | ||
- | |||
- | |||
- | ====== Overview ====== | ||
- | {{ http:// | ||
- | |||
- | == Features: == | ||
- | * image like syntax, so it supports uploading and inserting SVG as a media files | ||
- | * supports DokuWiki align syntax | ||
- | * **supports resizing !!** - and this is what SVG is about :) | ||
- | * caching enabled by default | ||
- | * XHTML 1.0 valid | ||
- | |||
- | == Known bugs/ | ||
- | * embedded as a iframe - no wiki url syntax support | ||
- | * tooltip caption is not working (syntax is available) but Firefox is not displaying it | ||
- | * SVG is supported by Firefox and Opera, NO IE (5.5, 6.0) support (IE 7.0 8.0 not tested) | ||
- | * There is a browser plugin for IE 6 to display SVG. To be tested with this plugin. | ||
- | |||
- | ====== How does it work? ====== | ||
- | - I've created syntax plugin which search for { {file_or_url.svg|description} } its getSort is lower than media files, so it catch up everything nicely. | ||
- | - Next step is search the base size of SVG | ||
- | - When we got base size, we can count the size we want to display, and insert iframe tag to DokuWiki renderer | ||
- | - We point iframe to svgpureInsert.php? | ||
- | - After that when - CACHING is enabled in lib/ | ||
- | |||
- | ====== Version History ====== | ||
- | |||
- | == svgpureInsert 1.05 == | ||
- | Thanks to **Konstantin** for sharing better code. Open Source rox! | ||
- | * fixed issue appeared when you use dokuwiki over https (SSL) | ||
- | * fixed issue with output of dia's SVGs | ||
- | |||
- | == svgpureInsert 1.04 == | ||
- | * changed name to svgpureInsert not to collide with svg plugin | ||
- | * some other stuff done by: **Goulven Guillard**, thanks for sharing better code!: | ||
- | * corrected the remote installation | ||
- | * corrected preg_match regular expressions which didn't work fine | ||
- | * set $_GET results into variables | ||
- | |||
- | == svg_pureInsert 1.03 == | ||
- | * some issues with " | ||
- | * other issues with resizing | ||
- | * now supports remote installation | ||
- | |||
- | == svg_pureInsert 1.02 == | ||
- | * svg_pureInstert do not disturb other media files (there was issue while using SVG and JPG images on the same page) | ||
- | * if no size of SVG file is given (e.g. {{egzm.svg|} }), we use default (written into SVG) image size - "You want to set not numeric width or height..." | ||
- | |||
- | |||
- | == svg_pureInsert 1.01 == | ||
- | * added namespace support, just forgot to test it before now: { {mcol: | ||
- | |||
- | ====== Comments ====== | ||
- | |||
- | I tried your plugin and found what follows: | ||
- | - the hardcoded '' | ||
- | - Even fixing the above problem, images are clipped to some arbitrary size (I used an inkscape-generated A4 size image): the embedded width and height data appear not be honored. | ||
- | |||
- | Cheers, | ||
- | Alessandro Forghieri (alf at orion dot it ). | ||
- | |||
- | ---- | ||
- | |||
- | Err404: | ||
- | |||
- | your plugin is **conflict** with another svg plugin: | ||
- | [[plugin: | ||
- | |||
- | but i want use theses two plugin, one to insert **SVG file image** (your plugin), and second to insert **SVG code in source page** (another plugin). | ||
- | |||
- | I think is a conflict name. | ||
- | |||
- | I propose you to rename //svg// folder to //svgfile// | ||
- | |||
- | ---- | ||
- | |||
- | **Re: Error404** | ||
- | Lechup | ||
- | >thanks, there is new name, just uninstall old plugin and install new one please | ||
- | |||
- | |||
- | |||
- | ---- | ||
- | |||
- | |||
- | **Media Support?** | ||
- | |||
- | To enable the “media” support //and not lose it on the next upgrade,// edit (or create) conf/ | ||
- | |||
- | |||
- | ---- | ||
- | |||
- | **Sadly, the plugin can not recognize chinese namespace, and can not find the svg file...** | ||
- | |||
- | ---- | ||
- | thx for the plugin, but if I want to use the plugin with the standard advanced image syntax like: | ||
- | {{wiki: | ||
- | it's not work. It is possible to include this option in the plugin to create a svg-file link? | ||
- | ---- | ||
- | Great plugin! SVGs from other sites worked great, but I couldn' | ||
- | |||
- | <code diff svgpureInsertpath.patch> | ||
- | diff -u svgpureInsert/ | ||
- | --- svgpureInsert/ | ||
- | +++ svgpureInsert_new/ | ||
- | @@ -59,7 +59,7 @@ | ||
- | | ||
- | |||
- | | ||
- | |||
- | | ||
- | |||
- | - $GLOBALS[' | ||
- | |||
- | + $GLOBALS[' | ||
- | |||
- | | ||
- | |||
- | | ||
- | |||
- | } | ||
- | </ | ||
- | --Andy | ||
- | |||
- | ---- | ||
- | besides the bug mentioned above by Andy, the whole thing does not work if the data path (" | ||
- | |||
- | --Sebastian |
plugin/svg_pureinsert.1327931315.txt.gz · Last modified: 2012-01-30 14:48 by 195.49.23.226