[rfc-i] No, constraining to a custom SVG profile is not trivial

Leonard Rosenthol lrosenth at adobe.com
Thu Jan 16 06:36:50 PST 2020

Have you folks looked at the SVG Native proposal from the W3C - https://w3c.github.io/svgwg/specs/svg-native/index.html?

While it doesn't address all issues (like color), it should cover most/all of the other key issues that are of concern.  And it would give you a standard profile to target.


On 1/15/20, 11:33 PM, "rfc-interest on behalf of Doug Royer" <rfc-interest-bounces at rfc-editor.org on behalf of douglasroyer at gmail.com> wrote:

    On 1/15/20 8:21 PM, Brian E Carpenter wrote:
    >> Attached is a simple XSLT script that I created that simply rips out invalid elements.
    > The problem with colour/greyscale is that this isn't enough. If you have very dark blue text on a very pale pink background, what happens? svgcheck makes this black on black; my heuristic makes it black on white. What would your script do?
    I use this tool with SVG files that I planned to use in this way.
    I have not needed to solve contrast problems yet. When I do, my plan is to make anything more than 50% black, else white.  It can not handle complex SVG with shades of darkness or complex attribute values (like style). If I get energetic, I could do some contrast computation. Never tried anything that complex with XSLT, might have to do some scripting for that.
    The next rev, I am going to tackle the style attribute. I do not know if it is solvable with XSLT. More of an intellectual exercise than a needed goal. If it gets complex, scripting will do.
    > But I do agree with Phill, this is a non-trivial issue. Currently I think doing new drawings with a simple tool like DIA is the only practical way.
    Yea, DIA and the DOT tools just make stick drawings. You can make nice flow and protocol state drawings with the dot tools (and with PIC for those of you that are troff experts).
    Doug Royer - (https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2FDougRoyer.US&data=02%7C01%7Clrosenth%40adobe.com%7Ce472955bdf344aea564908d79a3d3c1a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637147460109168558&sdata=j7fkjiq8qMlb1bCvQ98ghu5eHBCgj5kMwsZkE7%2FvAK0%3D&reserved=0)
    Douglas.Royer at gmail.com
    rfc-interest mailing list
    rfc-interest at rfc-editor.org

More information about the rfc-interest mailing list