Default extension for docbook graphic fileref attribute
Are you missing a feature? Request its implementation here.
-
- Posts: 20
- Joined: Wed Feb 09, 2005 10:15 pm
Default extension for docbook graphic fileref attribute
Hi,
My docbook processing software doesn't expect the graphic element's fileref attribute to have an extension because it will add one itself (.eps because my software is producing PS/PDF files) - I believe that (certainly used to be) quite a common thing to do.
It would be great if author mode could support an option to specify a default extension for graphics files that would be added if the filename doesn't have an extension. I could then set that option to, say, .png and provide some alternative graphics that could be viewed when using author mode.
Even better would be the capability to specify a list of extensions that could be tried in order, e.g: "svg png gif".
Cheers,
Mark
My docbook processing software doesn't expect the graphic element's fileref attribute to have an extension because it will add one itself (.eps because my software is producing PS/PDF files) - I believe that (certainly used to be) quite a common thing to do.
It would be great if author mode could support an option to specify a default extension for graphics files that would be added if the filename doesn't have an extension. I could then set that option to, say, .png and provide some alternative graphics that could be viewed when using author mode.
Even better would be the capability to specify a list of extensions that could be tried in order, e.g: "svg png gif".
Cheers,
Mark
-
- Posts: 9473
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Default extension for docbook graphic fileref attribute
Hi Mark,
I don't know if the described scenario is such an usual one. This is the first report so far. We will discuss it.
Anyway, Oxygen does not support rendering "eps" images in the Author mode so even if there was an option for appending a certain extension the images would still not be displayed in your case.
Regards,
Radu
I don't know if the described scenario is such an usual one. This is the first report so far. We will discuss it.
Anyway, Oxygen does not support rendering "eps" images in the Author mode so even if there was an option for appending a certain extension the images would still not be displayed in your case.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 20
- Joined: Wed Feb 09, 2005 10:15 pm
Re: Default extension for docbook graphic fileref attribute
Hi Radu,
Thanks for the reply.
support other image types so I would provide, say, PNG versions of my EPS graphics and they would be displayed by Oxygen while the document is being edited.
Like I said before, the ideal solution would be if Oxygen could be told a list of graphics file extensions to try when the fileref doesn't include an extension.
Mark
Thanks for the reply.
Well if you google for 'docbook fileref extension' you will see that I am not alone in using extension-less filerefs. It is quite normal for docbook processing software to add a default extension.Radu wrote: I don't know if the described scenario is such an usual one. This is the first report so far. We will discuss it.
Yes, that's the whole point - Oxygen doesn't support EPS but it doesAnyway, Oxygen does not support rendering "eps" images in the Author mode so even if there was an option for appending a certain extension the images would still not be displayed in your case.
Regards,
Radu
support other image types so I would provide, say, PNG versions of my EPS graphics and they would be displayed by Oxygen while the document is being edited.
Like I said before, the ideal solution would be if Oxygen could be told a list of graphics file extensions to try when the fileref doesn't include an extension.
Mark
-
- Posts: 9473
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Default extension for docbook graphic fileref attribute
Hi Mark,
There seems to be a solution for your problem.
If you open the OXYGEN_INSTALL_DIR/frameworks/docbook/css/docbook.css in Oxygen, there is a selector like:
you can replace it with something like:
to append an extension to the end of the file name specified in the fileref attribute.
Regards,
Radu
There seems to be a solution for your problem.
If you open the OXYGEN_INSTALL_DIR/frameworks/docbook/css/docbook.css in Oxygen, there is a selector like:
Code: Select all
graphic,
inlinegraphic,
imagedata{
content: attr(fileref, url);
}
Code: Select all
graphic,
inlinegraphic,
imagedata{
content: url(base-uri(),concat(attr(fileref) ".png"));
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service