Ferdinand Ramirez | 8 Feb 22:10
Picon
Favicon

Script to grab outline and create svg files?

I am new to inkscape and would like to know if it is possible to automate the following process to create svg
files (I have manually succeeded in it), and if so, what does the script look like and how should it be executed?

In the manual process, I perform the following steps to create the svg file.

1) Open inkscape
2) Open File->Document Properties and set size to 1000 x 1000
3) Type t
4) Drag a rectangle (this step and previous step are needed to activate the Append button used in Step 7) 
5) Click on Text -> Glyphs
6) Choose Font family, script and range (this is not English, which is why I need this step)
7) Click characters and click append for each character clicked (more than one character is involved, and I
click on the character since I use an English keyboard but the language I am interested is not English)
8) Ctrl-Shift-C to grab the outline of the text
9) Save as svg by clicking File->Save As

I need to automate this process to create a number of svg files, some of which are formed due to the outline of
multiple characters.

Thanks,
-Ferdinand

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
Ferdinand Ramirez | 9 Feb 19:05
Picon
Favicon

Text to svg command?

This is related to the previous post I made.

Is there a way to convert from the command line, a string to an svg file containing the outline of the glyphs
that represent the string?

-Ferdinand

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Matt Hines | 9 Feb 19:12
Picon

Re: Text to svg command?

You might be able to do it via a python script

On Feb 9, 2012 1:06 PM, "Ferdinand Ramirez" <ramirez.ferdinand <at> yahoo.com> wrote:
This is related to the previous post I made.

Is there a way to convert from the command line, a string to an svg file containing the outline of the glyphs that represent the string?

-Ferdinand

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Inkscape-user mailing list
Inkscape-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-user
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Inkscape-user mailing list
Inkscape-user@...
https://lists.sourceforge.net/lists/listinfo/inkscape-user
Máirín Duffy | 9 Feb 21:49
Favicon
Gravatar

Re: Text to svg command?

Hi Ferdinand,

On Thu, 2012-02-09 at 10:05 -0800, Ferdinand Ramirez wrote:
> This is related to the previous post I made.
> 
> Is there a way to convert from the command line, a string to an svg file containing the outline of the glyphs
that represent the string?

This should be possible but as Matt mentioned, it might take use of a
python script.

The general recipe I'd approach it with:

- Create an SVG with some sample text in it, using the font / font
size / canvas size you're interested in
- Give the sample text a recongizable ID... e.g., "mytext"
- Save the sample SVG
- Write a python script using one of the available XML libraries in
python to open up the SVG, look up item with ID "mytext", and replace
the string in that item with whatever string you want in there
- Write out the SVG
- Rinse and repeat until you have a series of SVGs that have the strings
in them that you want
- Run command-line inkscape with the -T or --export-text-to-path option
on all of the SVGs to get the glyph outlines

This is just what I would think to do. It might not be the best possible
way but it should work. I've done similar python scripts before, using
the XML DOM to look up a specific element and replacing the string (we
use this process to translate graphical banners in Fedora.) I've not
relied on the -T / --export-text-to-path option on the command line
before but have no reason to suspect it wouldn't work the way you're
looking for it to.

Good luck,
~m

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Ferdinand Ramirez | 10 Feb 04:18
Picon
Favicon

Re: Text to svg command?

Thanks! If the last step works, this is exactly what I need. 

The --export-text-to-path option did not work, and on googling, I see that there was a request to make it
work with svg as well. https://bugs.launchpad.net/inkscape/+bug/903772

The last comment on that page is dated Jan 30 and I guess I need to upgrade to version 0.49 to make it work with
svg output.

-Ferdinand

--- On Thu, 2/9/12, Máirín Duffy <duffy@...> wrote:

> From: Máirín Duffy <duffy@...>
> Subject: Re: [Inkscape-user] Text to svg command?
> To: "Inkscape User Community" <inkscape-user@...>
> Date: Thursday, February 9, 2012, 12:49 PM
> Hi Ferdinand,
> 
> On Thu, 2012-02-09 at 10:05 -0800, Ferdinand Ramirez wrote:
> > This is related to the previous post I made.
> > 
> > Is there a way to convert from the command line, a
> string to an svg file containing the outline of the glyphs
> that represent the string?
> 
> This should be possible but as Matt mentioned, it might take
> use of a
> python script.
> 
> The general recipe I'd approach it with:
> 
> - Create an SVG with some sample text in it, using the font
> / font
> size / canvas size you're interested in
> - Give the sample text a recongizable ID... e.g., "mytext"
> - Save the sample SVG
> - Write a python script using one of the available XML
> libraries in
> python to open up the SVG, look up item with ID "mytext",
> and replace
> the string in that item with whatever string you want in
> there
> - Write out the SVG
> - Rinse and repeat until you have a series of SVGs that have
> the strings
> in them that you want
> - Run command-line inkscape with the -T or
> --export-text-to-path option
> on all of the SVGs to get the glyph outlines
> 
> This is just what I would think to do. It might not be the
> best possible
> way but it should work. I've done similar python scripts
> before, using
> the XML DOM to look up a specific element and replacing the
> string (we
> use this process to translate graphical banners in Fedora.)
> I've not
> relied on the -T / --export-text-to-path option on the
> command line
> before but have no reason to suspect it wouldn't work the
> way you're
> looking for it to.
> 
> Good luck,
> ~m
> 
> 
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity
> Planning
> Cloud computing makes use of virtualization - but cloud
> computing 
> also focuses on allowing computing to be delivered as a
> service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Inkscape-user mailing list
> Inkscape-user@...
> https://lists.sourceforge.net/lists/listinfo/inkscape-user
> 

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Philip Rhoades | 12 Feb 13:25
Picon

Inconsistent behaviour?

People,

If I create a few objects - rectangles and ellipses - and then select 
the whole group and rotate it - these two operations behave differently 
- they should do the same thing?:

1. Clicking on the "Rotate 90 Clockwise" tool button

2. Clicking "]" six times

- (2) does what I want - (1) appears to be rotating the individual 
objects?

Thanks,

Phil.
--

-- 
Philip Rhoades

GPO Box 3411
Sydney NSW	2001
Australia
E-mail:  phil@...

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Jurgen Gaeremyn | 12 Feb 15:07
Picon
Gravatar

Re: Inconsistent behaviour?

In the transformations dock, there's the checkbox "Apply to each object
seperately". I think you have this option checked.

Grtz,
Jurgen.

On 12-02-12 13:25, Philip Rhoades wrote:
> People,
> 
> If I create a few objects - rectangles and ellipses - and then select 
> the whole group and rotate it - these two operations behave differently 
> - they should do the same thing?:
> 
> 1. Clicking on the "Rotate 90 Clockwise" tool button
> 
> 2. Clicking "]" six times
> 
> - (2) does what I want - (1) appears to be rotating the individual 
> objects?
> 
> Thanks,
> 
> Phil.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Philip Rhoades | 12 Feb 16:56
Picon

Re: Inconsistent behaviour?

Jurgen,

No - if I rotate it from Transforms dock (the checkbox is unchecked) it 
behaves as I would expect - so why does the rotate 90 deg button assume 
individual object rotation?

Thanks,

Phil.

On 2012-02-13 01:07, Jurgen Gaeremyn wrote:
> In the transformations dock, there's the checkbox "Apply to each 
> object
> seperately". I think you have this option checked.
>
> Grtz,
> Jurgen.
>
> On 12-02-12 13:25, Philip Rhoades wrote:
>> People,
>>
>> If I create a few objects - rectangles and ellipses - and then 
>> select
>> the whole group and rotate it - these two operations behave 
>> differently
>> - they should do the same thing?:
>>
>> 1. Clicking on the "Rotate 90 Clockwise" tool button
>>
>> 2. Clicking "]" six times
>>
>> - (2) does what I want - (1) appears to be rotating the individual
>> objects?
>>
>> Thanks,
>>
>> Phil.

--

-- 
Philip Rhoades

GPO Box 3411
Sydney NSW	2001
Australia
E-mail:  phil@...

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Ted Gould | 15 Feb 21:17
Favicon
Gravatar

Inkscape 0.48.3

Happy to announce the 0.48.3 release of Inkscape being out the door.  Of
course this is only the source release, binaries will be along shortly.
You can find the LP milestone here:

  https://launchpad.net/inkscape/0.48.x/0.48.3

Which reports 68 bugs as Fix Released, from 18 different assignees.
Both impressive numbers.  There are files on that page but also at
SourceForge here:

  http://sourceforge.net/projects/inkscape/files/inkscape/0.48.3/

For the paranoid I've also included hashes of the files on my system,
love you paranoids!

== MD5 ==

9038961369c4f8b63e900ca4bfa4da61  inkscape-0.48.3.tar.bz2
4b88d6220b491e94366c2365b90d36cc  inkscape-0.48.3.tar.bz2.asc
4623e6be4d4553d7c871b26454de88db  inkscape-0.48.3.tar.gz
c97bb53225556cf704ca1d2cad4b654f  inkscape-0.48.3.tar.gz.asc
2669679a121def72577184c8691f4209  inkscape-0.48.3.zip
cedf6bc858ff63d54c0659eaabd2ddba  inkscape-0.48.3.zip.asc

== SHA1 ==

7de7f5cb28d7407a891f02a3cfcfbff962bc3f9f  inkscape-0.48.3.tar.bz2
531349ebbcbde497b419b86b14b8f4588e5f592b  inkscape-0.48.3.tar.bz2.asc
937c1376bb0d9c00b22b88525826257d67ce237b  inkscape-0.48.3.tar.gz
e90e00e75a1af5ec0ef9736ebcff843e5def9a5b  inkscape-0.48.3.tar.gz.asc
048e65843d61a70858966068a1c98f3e3a8667b6  inkscape-0.48.3.zip
eb65f197135c48acfa274f3a16a93761c30b3562  inkscape-0.48.3.zip.asc

		--Ted

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Inkscape-user mailing list
Inkscape-user@...
https://lists.sourceforge.net/lists/listinfo/inkscape-user
Josh Andler | 15 Feb 21:28
Picon

Re: [Inkscape-devel] Inkscape 0.48.3

Ted and all contributors that made this happen, thank you for all your
work! Windows & OSX packagers, please do your magic. :)

Everyone, please wait until the packages are all uploaded and formal
announcements have been made before spreading the word.

Cheers,
Josh

On Wed, Feb 15, 2012 at 12:17 PM, Ted Gould <ted@...> wrote:
> Happy to announce the 0.48.3 release of Inkscape being out the door.  Of
> course this is only the source release, binaries will be along shortly.
> You can find the LP milestone here:
>
>  https://launchpad.net/inkscape/0.48.x/0.48.3
>
> Which reports 68 bugs as Fix Released, from 18 different assignees.
> Both impressive numbers.  There are files on that page but also at
> SourceForge here:
>
>  http://sourceforge.net/projects/inkscape/files/inkscape/0.48.3/
>
> For the paranoid I've also included hashes of the files on my system,
> love you paranoids!
>
> == MD5 ==
>
> 9038961369c4f8b63e900ca4bfa4da61  inkscape-0.48.3.tar.bz2
> 4b88d6220b491e94366c2365b90d36cc  inkscape-0.48.3.tar.bz2.asc
> 4623e6be4d4553d7c871b26454de88db  inkscape-0.48.3.tar.gz
> c97bb53225556cf704ca1d2cad4b654f  inkscape-0.48.3.tar.gz.asc
> 2669679a121def72577184c8691f4209  inkscape-0.48.3.zip
> cedf6bc858ff63d54c0659eaabd2ddba  inkscape-0.48.3.zip.asc
>
> == SHA1 ==
>
> 7de7f5cb28d7407a891f02a3cfcfbff962bc3f9f  inkscape-0.48.3.tar.bz2
> 531349ebbcbde497b419b86b14b8f4588e5f592b  inkscape-0.48.3.tar.bz2.asc
> 937c1376bb0d9c00b22b88525826257d67ce237b  inkscape-0.48.3.tar.gz
> e90e00e75a1af5ec0ef9736ebcff843e5def9a5b  inkscape-0.48.3.tar.gz.asc
> 048e65843d61a70858966068a1c98f3e3a8667b6  inkscape-0.48.3.zip
> eb65f197135c48acfa274f3a16a93761c30b3562  inkscape-0.48.3.zip.asc
>
>                --Ted
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Inkscape-devel mailing list
> Inkscape-devel@...
> https://lists.sourceforge.net/lists/listinfo/inkscape-devel
>

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/

Gmane