Hello,
We are translating an english RH project to german now, and
since I'm about to produce german versions of the included
screenshots/images, I've come across a bit of a problem. Maybe
someone can help.
When placing an image in a RoboHelp X5 topic, the HTML code
by default specifies the exact pixel size of the image. See example
below:
<p class=Base><img
src="../images/dxp_user_interface.png"
x-maintain-ratio=TRUE
style="border: none;
width: 465px;
height: 356px;
float: none;
border-style: none;
border-style: none;"
width=465
height=356
border=0></p>
What I want to do is just replace the english original image
with a german image using the identical filename. However, the
exact pixel size may vary somewhat from the english original.
When building a CHM from RoboHelp, this new image will be
rescaled to the exact pixel size specified in the HTML. This causes
the image to look bad.
Now, in RoboHelp I can double-click on each image, click on
the Size button, and uncheck the "Preferred width" and "Preferred
height" check boxes. This causes the german image to return to its
real pixel size without being rescaled.
However! This does not mean that the HTML code removes the
information about exact pixel size (which is what I would like), it
instead just replaces the pixel-information with the exact values
of the new german image.
So, I don't wanna double-click on my 400 images and manually
fix them each time we do a translation.
Questions:
a) Is there a way to make RoboHelp NOT write down the
pixelsize in the HTML code, but rather let each image just appear
like it is?
b) Is there a way to automatize or somehow make all my german
images not rescale, without going through my entire project and
double-clicking on each image?
I tried to investigate editing the HTML and removing the
width/height statements in hope of running a script to do this for
all HTML pages, but I got scary results as RoboHelp tried to fix
itself automagically and things got real wacky. Odd bits of code
appeared in the RoboHelp truecode, like RH didn't like me messing
with the HTML code on my own.