Last modified: 2012-10-26 09:52:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T34197, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32197 - SVG renderer text layout problems with nested attributes
SVG renderer text layout problems with nested attributes
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
SVG rendering (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: upstream
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-04 03:05 UTC by Liangent
Modified: 2012-10-26 09:52 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Comment 1 Brion Vibber 2011-11-04 17:46:48 UTC
Looks fine offhand; can you point out what's wrong specifically?
Comment 2 Liangent 2011-11-04 22:21:10 UTC
(In reply to comment #1)
> Looks fine offhand; can you point out what's wrong specifically?

1. Line 3 in headlines: "维基百科" and "," after it are swapped
2. Line 5 in "不是程序员?" box: "支持" and "其他用户" are swapped
3. Line 6 in "不是程序员?" box: "传播" and "消息" are swapped
Comment 3 Brion Vibber 2011-11-04 22:34:50 UTC
Looks like something's going awry with the nested <tspan> elements. Trimmed down:

<text>
  <tspan>
    MediaWiki
    <tspan>
      ,
    </tspan>
    维基百科
    <tspan>
      上
    </tspan>
  </tspan>
  <tspan>
    <tspan>
      运行的软件,正在寻找
    </tspan>
    贡献者
  </tspan>
</text>

I'm seeing the same buggy mislayout using rsvg on my local dev box: Ubuntu 11.10 with rsvg 2.34.1.
Comment 4 Liangent 2011-11-04 22:36:59 UTC
I don't know much about XML structure of SVG files but Iceweasel generated that file. Is it a bug there?
Comment 5 Liangent 2011-11-04 22:38:44 UTC
ie. Are nested <tspan>s invalid?
Comment 6 Brion Vibber 2011-11-04 22:43:59 UTC
No, they're perfectly valid -- there's an upstream bug in Gnome bugzilla on what looks like the same issue seen in other files:
<https://bugzilla.gnome.org/show_bug.cgi?id=581108>
Comment 7 Brion Vibber 2011-11-04 23:20:46 UTC
Upstream bug has a provisional patch someone posted in 2010, which with a slight update appears to resolve the issue.

librsvg maintainers seem to not be very active, I'll see if we can find someone to push it...
Comment 8 Brion Vibber 2011-11-04 23:47:39 UTC
I've posted updates on the bug & emailed the original patch author and one of the current librsvg maintainers; hopefully we'll get a good communication channel going for this & other svg bugs... \o/
Comment 9 Brion Vibber 2011-11-08 00:04:26 UTC
Patch has been committed to master upstream; if it holds ok ought to make it into the Gnome 3.4 release but not promised yet. :)
Comment 10 Derk-Jan Hartman 2012-10-26 09:52:31 UTC
This problem is fixed now.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links