Find unreferenced resources/ links in SVG files

Are you missing a feature? Request it's implementation here.
annetteb
Posts: 20

Find unreferenced resources/ links in SVG files

Tue May 10, 2016 12:13 pm

Hello,
To clean up my project, I'm using the "Find unreferenced resources" feature. It works pretty well. The only drawback I see is that if an SVG file includes a link to a bitmap file, this bitmap file is seen as "unreferenced" and I could remove it inadvertently which would not cause any transformation error. If there is a possibility to track linked files in SVG and add this improvement to a feature release, that'd be great :)
Best regards,
Annette Bouillin
Radu
Posts: 5376

Re: Find unreferenced resources/ links in SVG files

Tue May 10, 2016 2:09 pm

Hi Annette,

Indeed the action looks for dependencies only in DITA topics, it will not go through SVGs or other non-DITA resources and find dependencies to other resources. What you could do would be to also refer to those BMP images in the DITA Map as resource-only resources like:

Code: Select all

  <topicref href="path/to/image.bmp" format="bmp" processing-role="resource-only"/>


The first advantage for doing this would be that the action would consider the bitmap image as used.
The second advantage would be that the publishing stage would also know that the bitmap is used and it should automatically copy it to the output folder.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
annetteb
Posts: 20

Re: Find unreferenced resources/ links in SVG files

Tue May 10, 2016 2:33 pm

Hi Radu,
I didn't understand it was only for DITA files, the dialog box shows filters to include or exclude files so I thought it worked for any xml file.
Your suggestion is interesting but that would mean an extra step for the writers when they include a file and I'm pretty sure they'll forget to do it from time to time (I'm sure I would forget to do it when republishing is urgent for example). I'd rather recommend to include the bitmap in the SVG instead of a link.
Best regards,
Annette Bouillin
Radu
Posts: 5376

Re: Find unreferenced resources/ links in SVG files

Tue May 10, 2016 4:05 pm

Hi Annette,

Sure, I already an internal issue with your use case and we'll try to handle it in a future version.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
annetteb
Posts: 20

Re: Find unreferenced resources/ links in SVG files

Tue May 10, 2016 4:19 pm

:D
Great, thanks!

Return to “Feature Request”

Who is online

Users browsing this forum: No registered users and 0 guests