On 10/14/2017 01:26 AM, Jeff Hooker wrote:
JRH>>: We've been using XMLmind up until now, and "addressed" the problem by 
removing *all* sizing information functions from the XSL. I've finally got the OT producing 
acceptable Javahelp, however, and wanted a better solution now that I can automate the bulk 
extraction of content and its compilation into Javahelp. Previously I just told the engineers 
to import the files in the size they wanted them reproduced, but this is a poor system since we 
publish to multiple targets.


FYI, we have added a workaround for this JavaHelp limitation in forthcoming XMLmind DITA Converter v3.2.1 (http://www.xmlmind.com/ditac/). It works just fine now when a single image dimension is specified for the <image> DITA element.




What I'm going to end up doing is adding a java class to the OT to extract file 
dimension information

We have this Java utility function in XMLmind DITA Converter since v1.0, that's why adding the above workaround was so simple.




and access it from XSLT, but I'll still need to understand the relevance of the single 
width value so that I can scale the height and width appropriately. I was expecting the 
default XMLmind assigned value to be just an arbitrary value like "1000" and 
then expand or reduce that depending on the user's actions, but that does not appear to 
be the case.

What a strange idea! No, it's much simpler than this.




How is the value set when an author first "tweaks" the size of a figure?


No interactive resizing of the image by the user ==> no width or height attributes whatsoever set by XXE.

Interactive resizing of the image by the user ==> width attribute set by XXE; no height attribute. The value of the width attribute is the width of the image in pixels as displayed in the styled view.

Interactive resizing of the image by the user while pressing Ctrl (Cmd on the Mac; means image aspect ratio NOT preserved) ==> width and height attributes both set by XXE.




--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to