On Sun, Nov 4, 2012 at 1:25 PM, klo uo <klo...@gmail.com> wrote:
> Insert equation / diagram / ditaa, plugins all share similar structure. Even
> more ditaa plugins has left comments from diagram plugin ;)
> I want to suggest allowing all these plugins to accept additional options on
> insertion (on runtime).
> For example for what I used ditaa plugin I changed the source and added `-E`
> option to be by default (--no-separation). Maybe it could be handy to set
> addtional parameters on insertion, without changing plugin source code for
> the task.
> Similarly, for equations inserted inline I want to use different dpi option,
> then for those that aren't inlined, as inserting regular equation in text
> will change vertical line spacing, and it won't look good as it could.
> Yet graphviz...
> Changing plugins source may be some kind o workaround, but then editing
> named item, will reflect current plugin setting.
> And then if something like this gets accepted, where to store this options?
> Probably it won't be too much complicated, as setting additional parameters
> would not be something that user would do often, but again.
Such options can easily be stored in the plugin preferences. However,
if you want to set them per diagram, they should go as a special field
in the stored source, e.g. hiding in a comment.
Feel free to give it a try, open to new patches.
Mailing list: https://launchpad.net/~zim-wiki
Post to : email@example.com
Unsubscribe : https://launchpad.net/~zim-wiki
More help : https://help.launchpad.net/ListHelp