Page MenuHomePhabricator

Perform workaround for SVG files larger than 256K which can have their <switch> element undetected by the MW metadata extractor
Open, Needs TriagePublic

Description

There is a very good chance that SVG files larger than 256K can have their <switch> element undetected by the MW metadata extractor. Since the SVG translate tool is perfectly aware of the file size and the file content, it can add a workaround <def> element to signal these languages, similar to (what I just did to File:Escadre allemande d'Extrême-Orient 1914 1915-de.svg):

<defs>
  <switch id="fakeswitch"><!-- This is for the Wikimedia server to detect language switches. You must add languages here each time you make a new translation, since the actual language-using stuff is too far away. -->
    <g systemLanguage="hu,en"></g>
  </switch>
</defs>

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I disagree with the merge. This report is related but not identical, since the SVG Tool is not part of MW proper. Instead there should just be a reference to each other.

Ah, I see. Thanks (and sorry!)

Aklapper renamed this task from Perform workaround for large files to Perform workaround for SVG files larger than 256K which can have their <switch> element undetected by the MW metadata extractor.Jan 4 2021, 7:51 PM