[R] reading & understanding SVG?
David Carlson
dcarlson at tamu.edu
Mon Apr 21 18:06:58 CEST 2014
I was able to grab the logos by bringing the .svg file into
Inkscape (open source .svg editor). The three logos are grouped
so you can select them and then paste them into another
document. Then you'll have to ungroup the three logos and select
each logo separately.
-------------------------------------
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352
-----Original Message-----
From: r-help-bounces at r-project.org
[mailto:r-help-bounces at r-project.org] On Behalf Of Spencer
Graves
Sent: Monday, April 21, 2014 9:43 AM
To: Peter Crowther
Cc: R list
Subject: Re: [R] reading & understanding SVG?
p.s. I don't need to use R for this, though I'd prefer to stay
with
something that's free, open-source software. I tried GIMP, but
couldn't
see how to access the layers.
Hi, Peter:
On 4/21/2014 3:34 AM, Peter Crowther wrote:
> Spencer, what "components" do you want to extract? Do the SVG
files
> have a reasonably well-defined structure? I've done a fair
amount
> with SVG and may be able to help.
Thanks. I should have been more specific: I'd like to
try to
extract into 3 separate files the weapons of mass destruction
symbols
from the "WMD_world_map.svg" image in the Wiikipedia article on
"Weapons
of mass destruction"
(https://upload.wikimedia.org/wikipedia/commons/1/1d/WMD_world_m
ap.svg).
I've opened it in Emacs enough to see that it's a
structured text
file consistent with what little I know about XML. It looks to
me like
a list, but without convenient names for the list components.
Thanks again,
Spencer
p.s. I found the biohazard symbol by itself
(https://upload.wikimedia.org/wikipedia/commons/c/c0/Biohazard_s
ymbol.svg),
but I didn't find the radioactive and skull-and-crossbones
symbols in
exactly that form. (I didn't look seriously beyond Wikimedia
commons,
because I'm making a video, and I want something I can release
under the
Creative Commons Attribution-Share Alike license.
>
> - Peter
>
>
> On 21 April 2014 08:30, Spencer Graves
> <spencer.graves at structuremonitoring.com
> <mailto:spencer.graves at structuremonitoring.com>> wrote:
>
> Hello:
>
>
> What would you suggest I use to read and manipulate
an SVG file?
>
>
> I'd like to extract components of an svg file. I
see it's
> XML, but I have very little experience with either SVG or
XML.
> I've tried GIMP and findFn{sos} without finding a clear
> suggestion of where to start.
>
>
> Thanks,
> Spencer
>
> ______________________________________________
> R-help at r-project.org <mailto:R-help at r-project.org> mailing
list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained,
reproducible code.
>
>
--
Spencer Graves, PE, PhD
President and Chief Technology Officer
Structure Inspection and Monitoring, Inc.
751 Emerson Ct.
San JosC), CA 95126
ph: 408-655-4567
web:www.structuremonitoring.com
[[alternative HTML version deleted]]
More information about the R-help
mailing list