https://bugzilla.wikimedia.org/show_bug.cgi?id=4688

--- Comment #5 from Papou <[email protected]> ---
This is an exerpt from bug 55768  which concurs with this one.

SVG layers can contain texts for different languages, the above rivers and
municipalities, layers to compose different types of  keyboards.  The layers to
display for a particular case could be specified with
File:filename|layers=layer1, layer2,...,layerN

I made an experiment that is NOT the way it should be done but that shows the
general idea.
I used a fun SVG made with inkscape and containing language text layers as
described above.
<g
   inkscape:groupmode="layer"
   id="g3001"
   inkscape:label="language=en"
   style="display:none"
   sodipodi:insensitive="true">
<text ...

<g
   inkscape:groupmode="layer"
   id="g3002"
   inkscape:label="language=fr"
   style="display:none"
   sodipodi:insensitive="true">
<text ...

<g
   inkscape:groupmode="layer"
   id="g3004"
   inkscape:label="language=ru"
   style="display:none"
   sodipodi:insensitive="true">
<text ...

...

Then I ran the following command with $svglan being the wanted language
parameter
svglan=ru
perl -pe "undef $/;
s/(\"layer\".*?language=$svglan.*?display:)none/\1inline/sg" source.svg |
rsvg-convert > displayed.png

Et voilĂ , rsvg converts only the turned on "display:inline" layers and the
result was a PNG in the chosen language.

In short, the SVG renderer receives parameters that turn various layers on
based on their names or some ID.

I have drawn keyboard layouts SVGs for Wikipedia and a similar problem raises.
For example, a Russian keyboard is nothing more than a QWERTY keyboard with
Cyrillic "stickers". Same for Greek.  Same for the additions that Unix makes.
Etc.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to