Page MenuHomePhabricator

[BUG] File does not render correctly and no text labels are visible
Closed, ResolvedPublicBUG REPORT

Description

File on Commons
File on SVG Translate

The file does not render as it should and the text labels are not available for translating.

To do: Figure out what's going wrong and either a) fix the file or b) fix the tool.

Event Timeline

Niharika triaged this task as Medium priority.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Hi,

Could you tell the expected behaviour of the rendering ? how it is supposed to look.

I tried testing one - File on SVG translate

Hi,

Could you tell the expected behaviour of the rendering ? how it is supposed to look.

I tried testing one - File on SVG translate

It should look exactly like it looks on Commons. There is a problem with this file though, which is why this ticket exists. Try using the tool with other files like this one or this one.

The file has deeply nested tspan element: <text><tspan><tspan>Not to scale</tspan></tspan></text>.

I removed the deep nesting, but must await a cache timeout to see if that is the problem.

Restricted Application changed the subtype of this task from "Task" to "Bug Report". · View Herald TranscriptApr 20 2021, 10:53 PM

I removed the nested tspan, waited for the cache to clear overnight, clicked the SVG Translate link above, and SVG Translate found no text to translate.

There's a problem with the job description:

If I invoke SVG Translate on my recent BirdBeaksA.svg, it works fine.

So the nested tspan may have been the problem, the problem has been fixed, or the initial report was invalid.

If the tspan was the problem, SVG Translate should have issued a better warning (e.g., the text element is too complicated to translate).

Otherwise, this report should be closed.

I returned BirdBeaksA.svg to the state where it had a nested tspan and ran SVG Translate.

That produced an error message:

  • This file can not be translated with this tool because it contains unsupported SVG (nested tspan in #tspan2482) in the following text: Not to scale

So SVG Translate gives a warning for bad input.

File fixed.

Problem resolved.

Glrx claimed this task.
Glrx updated the task description. (Show Details)