Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: SVG - what were they smoking?

by choroba (Cardinal)
on Mar 10, 2026 at 11:59 UTC ( [id://11167435]=note: print w/replies, xml ) Need Help??


in reply to SVG - what were they smoking?

That's awful.

This reminds me of the SSF or Shakti Standard Format. It looks like XML on the outside, but inside you find numbered lists in CDATA sections, nested parentheses, and when needed, values separated by colons and slashes and equal signs whenever someone felt they needed another level of a structure. If I remember correctly, there were 8 different types of markup, one of them even using < without quoting, making the files ill-formed XML.

<Sentence id="8"> 1 (( NP <drel=k2:3> 1.1 biddalni NN )) 2 (( VGNF <drel=vmod:1/name=3> 2.1 kanetappudu VM )) 3 (( NP <drel=nmod:2> 3.1 eVMwo INTF 3.2 maMxi CL )) 4 (( NP <drel=k1:1/name=2> 4.1 wallulu NN )) 5 (( VGF <name=1> 5.1 canipowunnAru VM 5.2 . SYM )) </Sentence>

Do you see the :X parts? They are in fact references to the name=X "anchors"!

Why do I know? I needed to convert some of their data into a different format. Thankfully, I could use Perl and regexes. Tears of joy.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11167435]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2026-04-18 23:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.