Importing paths from OneNote to Inkscape via clipboard
Hi,
I use Microsoft OneNote to take notes with my tablet, sometimes I need to modify the sketches - and there's no better tool than Inkscape for that.
Simply selecting the paths in OneNote and pasting them into Inkscape works as expected. The problem is that the resulting objects have a great number of nodes, so it becomes very difficult to apply any further transformations. Even on a reasonably fast machine, scaling an object takes a while.
I made a short video, to illustrate what I mean: http://www.youtube.com/watch?v=YOcE7C4_NN8
The workarounds I found are: - press Ctrl+L multiple times to simplify the paths (Inkscape will freeze, but if you're patient - it comes back eventually). Don't be too greedy, if you Simplify multiple times without waiting for Inkscape to update the rendered image - it will crash.
- save OneNote's image to a bitmap, then trace the bitmap with Inkscape. This produces objects that have a relatively sane number of nodes, but this operation takes more time and involves the use of other tools- it is not as convenient as copy/pasting.
Taking notes directly in Inkscape does not produce good results. There is a delay between the stroke of the pen and the appearance of the stroke on the screen - so I don't see what I'm writing. Apparently, this short-timed lack of feedback is sufficient to make me hate my own handwriting.
So, this boils down to 2 questions: 1. can someone suggest a better approach to migrating sketches from OneNote to Inkscape?
2. is there something I can change in my Inkscape habits in order to be able to take notes directly in Inkscape?
Alex
--- read my poems and stories on railean.net
On Feb 21, 2011, at 3:57 AM, Alex wrote:
So, this boils down to 2 questions:
- can someone suggest a better approach to migrating sketches from
OneNote to Inkscape?
- is there something I can change in my Inkscape habits in order to
be able to take notes directly in Inkscape?
Probably the main question would be...
What is the data format?
What exactly is the file format saved. And *which* different data formats show up on the clipboard when you copy?
There is an InkML markup that is supposed to cover such tablet use, but I'm not sure if Microsoft uses it.
And note that the clipboard usually holds several different versions of the same general information. And this can be completely different from the saved file format.
Hi,
Thank you for the reaction. You are right, there are multiple data blobs in the clipboard and they are in different formats.
JC> Probably the main question would be... JC> What is the data format? I did some analysis of this, here are the results: http://i.imgur.com/WO3r2.png
Apparently, OneNote is not using InkML, but Microsoft Ink Serialized Format.
JC> What exactly is the file format saved. And *which* different data formats JC> show up on the clipboard when you copy? There are several, you can see them in the screenshot
14 CF_ENHMETAFILE is empty, it has 0 bytes 2 CF_BITMAP = 0 bytes 17 CF_MAX, non empty [see screenshot] 8 CF_DIB, non empty too
Since Inkscape doesn't paste it as a bitmap, I suppose it does somehow parse Microsoft's format for Ink?
Hi does anyone know of an easy way to set the visibility of an item within Inkscape?
visibility="hidden"
Also to set an anchor.
add xmlns:xlink="http://www.w3.org/1999/xlink" to the SVG tag plus <a> </a> to wrap a specific element or group.
I know I can do it with the inkscape xml editor but at that point I may as well use vi or bluefish.
Both could be easily implemented with a small box in the object properties.
Last id like to be able to specify alternate language for the text. Basically something that builds the switch for me.
<text systemLanguage="en" xml:space="preserve" style="font-size:120px;font-family:FreeSans;" x="91.221046" y="31.230213" id="text5420">Circle</text>
<switch> <text systemLanguage="fr" xml:space="preserve" style="font-size:120px;font-family:FreeSans;" x="91.221046" y="31.230213" id="text5420">Cercle</text>
<text systemLanguage="sp" xml:space="preserve" style="font-size:120px;font-family:FreeSans;" x="91.221046" y="31.230213" id="text5420">Círculo</text>
<text systemLanguage="it" xml:space="preserve" style="font-size:120px;font-family:FreeSans;" x="91.221046" y="31.230213" id="text5420">Cerchio</text> </switch>
Seb.
On Wed, 2011-02-23 at 11:41 +1100, Sébastien Lanteigne wrote:
Hi does anyone know of an easy way to set the visibility of an item within Inkscape?
visibility="hidden"
Inkscape doesn't seem to support visibility="hidden" (which would be shifted into the "style" attribute by Inkscape). It does support display:none in the Object properties dialog (Hide check box). It shouldn't be too hard to add support for visibility.
Also to set an anchor.
add xmlns:xlink="http://www.w3.org/1999/xlink" to the SVG tag plus <a> </a> to wrap a specific element or group.
I know I can do it with the inkscape xml editor but at that point I may as well use vi or bluefish.
This can already be done using the "Links attributes" dialog. See:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Web-Links.html
Both could be easily implemented with a small box in the object properties.
Adding visibility would be easy... once Inkscape actually supports the property.
Last id like to be able to specify alternate language for the text. Basically something that builds the switch for me.
<text systemLanguage="en" xml:space="preserve" style="font-size:120px;font-family:FreeSans;" x="91.221046" y="31.230213" id="text5420">Circle</text>
<switch> <text systemLanguage="fr" xml:space="preserve" style="font-size:120px;font-family:FreeSans;" x="91.221046" y="31.230213" id="text5420">Cercle</text>
<text systemLanguage="sp" xml:space="preserve" style="font-size:120px;font-family:FreeSans;" x="91.221046" y="31.230213" id="text5420">Círculo</text>
<text systemLanguage="it" xml:space="preserve" style="font-size:120px;font-family:FreeSans;" x="91.221046" y="31.230213" id="text5420">Cerchio</text>
</switch>
Adding <switch> to Inkscape would be non-trivial. You would probably want to have to have a mechanism to choose which branch is selected from within Inkscape (i.e. choose between French, Spanish, and Italian in the above example) so that you can edit on-screen each separately. It would be nice but I don't see this happening soon.
Tav
On 02/23/2011 10:53 PM, Tavmjong Bah wrote:
On Wed, 2011-02-23 at 11:41 +1100, Sébastien Lanteigne wrote:
Hi does anyone know of an easy way to set the visibility of an item within Inkscape?
visibility="hidden"
Inkscape doesn't seem to support visibility="hidden" (which would be shifted into the "style" attribute by Inkscape). It does support display:none in the Object properties dialog (Hide check box). It shouldn't be too hard to add support for visibility.
Yes I realized it just after I set the email.
For all practical purposes display:none and visibility:hidden. The gui implementation is fine I just missed it.
I'm not overly trilled that it's part of the style, mean I have to change my javascript code. :) But I supposed this would be the sane way to do it.
Also to set an anchor.
add xmlns:xlink="http://www.w3.org/1999/xlink" to the SVG tag plus <a> </a> to wrap a specific element or group.
I know I can do it with the inkscape xml editor but at that point I may as well use vi or bluefish.
This can already be done using the "Links attributes" dialog. See:
Wow. That is some strange gymnastic. That could be simplified a bit.
But thanks for the info.
Both could be easily implemented with a small box in the object properties.
Adding visibility would be easy... once Inkscape actually supports the property.
Yes but as I said above in my case display:none; will do just fine. I just want something to go away when I click somewhere.
Last id like to be able to specify alternate language for the text. Basically something that builds the switch for me.
[...]
Adding <switch> to Inkscape would be non-trivial. You would probably want to have to have a mechanism to choose which branch is selected from within Inkscape (i.e. choose between French, Spanish, and Italian in the above example) so that you can edit on-screen each separately. It would be nice but I don't see this happening soon.
Tav
yes. I would imagine it would be a massive amount of work. Considering you'd have to create something to handle the text, style and positioning of each separate language.
participants (4)
-
Alex
-
Jon Cruz
-
Sébastien Lanteigne
-
Tavmjong Bah