svg-android icon indicating copy to clipboard operation
svg-android copied to clipboard

Exception on parsing transform with exponent notation

Open vicctor opened this issue 12 years ago • 3 comments

I noticed such problem when parsing this file: https://commons.wikimedia.org/wiki/File:G-clef.svg

The library is unable to parse numbers like 2.00e-1

vicctor avatar Jun 08 '13 22:06 vicctor

Above commit fixes the problem and it looks like the clef SVG is parsed correctly. But because I'm new with the SVG specification, I'm not really sure if the current approach good at all. I will place some comments in source tree to let discuss the meaning of the code.

vicctor avatar Jun 08 '13 22:06 vicctor

@pents90 I'm wondering what is the big case in line 213 (see commit above) good for? SVG spec does not say anything about these chars in the transform element. The list of number shall ends with ) always. Is this a workaround for some special-undocumented feature?

vicctor avatar Jun 08 '13 22:06 vicctor

I realised today that the clef.svg image is not rendered even with my fix.

vicctor avatar Jun 09 '13 09:06 vicctor