I've gone and wasted two days to see what it would take to put out a lousy, low-tech SVG browser in Perl based on tkweb.

So....

Another SVG browser. and it's less good than all the others out there.

It's really, really primitive but it is getting closer to usable. Given a bit of time and coding it should support most of the mobile SVG dtds and should not fail on any valid SVG.

screenshots and source here

The application uses the Perl/Tk GUI, LWP, SVG::Parser, and the source code is less than 300 lines long (130 statements, of which 20-30 are GUI housekeeping. The intended userbase for this application is bored people with too much time on their hands.

Main flaws:
-Colour/linetypes broken (still).
-still no zooming/panning
-still full of bugs.
-javascript support highly unlikely.
-Currently does not support external refs.
-Currently pretty much useless except as a proof of capability.
-No SVG font support yet (ever?)
-Essentially have to restart the application for each new page until I implement screen refreshing.

If anyone bothers to download it and give it a try, they will need to make sure they have the required underlying modules including SVG; SVG::Parser, LWP, and TK (all on CPAN). LWP has a number of dependencies.

I would be quite interested in hearing if anyone has any success with it.

Hackmare


In reply to YASB: Yet Another SVG Browser by hackmare

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.