I am doing a resume with inkscape. Is there a way to do a multi-language document? I tried to used the xml:lang attribute modifying the xml inkscape document. I couldn't have anything working.
Now I have another idea. For all text to translate, I will put the following kind of id: trFlowRoot2985. Then in my inkscape file, I'll have that kind of thing:
Code: Select all
<flowRoot
xml:space="preserve"
id="trIdFlowRoot2985"
style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
inkscape:label="#trFlowRoot2985"><flowRegion
id="flowRegion2987"><rect
id="rect2989"
width="218.69801"
height="64.649765"
x="36.870567"
y="224.03709" /></flowRegion><flowPara
id="flowPara2991">first text</flowPara></flowRoot> <rect
style="opacity:0.98879998999999996;fill:#000000;fill-opacity:0.86274510000000004;stroke:#000000;stroke-opacity:0.32156863000000002"
id="rect2993"
width="75.761444"
height="37.880722"
x="35.860416"
y="297.77823" />
Then with a python script, every time I will parse the xml/svg document and everytime I find out a label with an id starting with tr, I know I have to translate it. What do you thing of this solution? May be there is an easier one? Escpecially since the indentation seems to be important. If I had new end line characters, inkscape is not always able to open my file properly.
Thanks in advance,
Cédric