Very awesome writeup. I highly appreciate the time you took to write this detailed response. It works perfectly for me using the "%F" option when I select the fileref as you mentioned below.
You also gave me a good idea about the wrapper. About 2/3 of my images were created just from PNG screenshots. But about 1/3 were created from another vector based image program. I could have the helper application call a script that first check if the %F (minus extention) +.snag file exists. If so, I open that in one program. If it does not exist, I open the PNG in my other program. Very powerful software you have here :) Have a wonderful weekend. Best, Ken On 2012-09-14 04:27, Hussein Shafie wrote: > On 09/13/2012 10:54 PM, kkollin wrote: > >> I have a suggestion for a feature if it is not already included in the software. If it is in the software, please direct me to this feature. Here is my situation. I wrote 50 pages of documentation for some virtual LAMP servers of mine about a year ago with many images. Now that I have made changes to my LAMP stack, I have to update the images in the manual (as well as the text). What I am doing now is double-clicking an image to open the "Edit Fileref" dialog to see the image's file name. Then I have to open this file in an external image editing software that is also installed on my computer. The names get mangled to be website friendly (that is, %20 gets inserted anywhere i had a space, oops). > >> This makes things a bit more annoying, > > but this is my problem. > > * Attribute fileref is not meant to contain plain filenames but URLs. > > * XXE requires URLs to be ``mangled''. An URL which is not ``mangled'' > is incorrect and probably unusable by most softwares. > >> Anyway, what I would like to be able to do is right-click an image in my docbook manual that I have open in XXE and say "Open" or something to that effect. Then it would open with my default image editing program. Or, it could give me the option of selecting a program to open the images. This way I could very quickly edit my images. Please let me know what you think! > > --> You can do absolutely everything you want (to the smallest detail) > by ``simply'' writing a macro and customizing the DocBook configuration. > > --> Now, there is an even simpler solution: > > [1] Use Options|Preferences, Tool|Helper Applications. > > See > http://www.xmlmind.com/xmleditor/_distrib/doc/help/toolsOptions.html#helperApplicationsOptions > > [2] Associate an external application (e.g. The Gimp, Inkscape) to each > image format. > > See > http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.helperapps.HelperApplicationEditor.html > > Just make sure that the external application accepts URLs ("%U" > variable) and not just plain filenames ("%F" variable). If this is not > the case, > > * neverthless give it a try with "%F" (may be XXE is smart enough to > deal with this; don't remember); > > * otherwise, you'll have to wrap the external application in a script > invoking the application and a tool like wget or curl. > > Once this is done: > > [1] Click on an image to select it. > > [2] Use Tools|Helper Application|Edit Element or Attribute Content in > Helper Application. > > http://www.xmlmind.com/xmleditor/_distrib/doc/help/helperApplicationMenu.html > > [3] Select attribute fileref > > [4] This will let you edit the URL using the external application you > have declared. If the external application has modified the image, this > image should be automatically reloaded by XXE (or Press Ctrl-L -- > View|Redraw -- to force the refresh if XXE fails to automatically detect > the changes).
-- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

