Hi,

This is a patch that removes the LyX-keywords for origin of rotation, and uses the
short LaTeX ones instead. This means there's no translation necessary between the
two. However, this implies a change in the graphics inset format.
For example:

    rotateAngle leftBottom

is now

    rotateAngle lb

I did this, because we were continuously translating between the GUI-keywords,
the LyX-keywords, and the LaTeX keywords. This complicated scheme is reduced
to the commen GUI - LyX/LaTeX conversion, using a Translator for that.

Patch attached.

The patch updates also Qt, but QGraphicsDialog.ui needs further modification
for the origin choice list.

-----------------------------

I'm very much tempted to simplify the graphics inset format even more. Why do
we use new LyX keywords that have a one-to-one overlap with the corresponding
LaTeX keywords? Why not staying as close to LaTeX as possible?

What I mean is:

use "bb" instead of "BoundingBox",
use "angle" instead of "rotateAngle" ,
use "origin" instead of "rotateOrigin",
use "keepaspectratio" instead of "keepAspectRatio"
etc.

No, reducing the readability of the lyx file should not be an issue.
Eventually the lyx file will be saved via a zip filter and is then
unreadable anyway.

And backward compatibility is dead easy!

Ah, just a thought.

Regards,
Rob.

Attachment: UseOriginTranslator.diff.gz
Description: application/gzip

Reply via email to