Like there is an example for letter S and a path for it looks like next:
var letterPath = new Path(
new Segment(new Point(63.39306640625, 265.7138671875), null, new Point(10.86669921875, 6.96630859375)),
new Segment(new Point(106.58203125, 277.97412109375), new Point(-16.71826171875, 0), new Point(24.79931640625, 0)),
new Segment(new Point(145.87060546875, 245.9306640625), new Point(0, 18.947265625), new Point(0, -17.27587890625)),
new Segment(new Point(110.4833984375, 208.87158203125), new Point(25.35595703125, 9.4736328125), new Point(-30.65087890625, -11.14599609375)),
new Segment(new Point(60.88525390625, 155.37255859375), new Point(0, 26.19189453125), new Point(0, -29.25732421875)),
new Segment(new Point(121.62890625, 104.380859375), new Point(-36.501953125, 0), new Point(18.947265625, 0)),
new Segment(new Point(162.86767578125, 113.576171875), new Point(-8.08056640625, -4.73681640625)),
new Segment(new Point(156.18017578125, 133.35986328125), null, new Point(-5.8515625, -3.62255859375)),
new Segment(new Point(120.79296875, 124.443359375), new Point(16.9970703125, 0), new Point(-25.63525390625, 0)),
new Segment(new Point(85.4052734375, 152.5859375), new Point(0, -12.8173828125), new Point(0, 17.55419921875)),
new Segment(new Point(122.7431640625, 188.80908203125), new Point(-25.91357421875, -10.03076171875), new Point(31.76513671875, 12.26025390625)),
new Segment(new Point(170.39111328125, 243.97998046875), new Point(0, -27.58544921875), new Point(0, 28.97900390625)),
new Segment(new Point(104.91015625, 298.31494140625), new Point(44.30419921875, 0), new Point(-18.111328125, 0)),
new Segment(new Point(56.984375, 286.0546875), new Point(10.03076171875, 6.6875))
);
So now my question is how do u convert a svg file produced for example by Inkspace into Paper path?
Here is an example what I am trying to convert from:
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <path d="m 311.30306,206.96572 c -9.85426,-14.34309 -27.29431,-23.82253 -44.90639,-21.35205 -21.49115,0.12453 -46.04301,-3.15897 -63.69196,11.99055 -19.84623,18.54405 -29.51639,46.00896 -31.73083,72.61619 -2.098,30.42238 5.83694,63.03981 26.98159,85.76044 14.4608,13.36369 34.31944,19.13671 53.31402,22.22423 13.52167,1.07547 27.10649,0.38679 40.63805,1.24321 11.91283,7.21391 11.78474,33.44741 -5.16694,33.04491 -16.24222,-0.9851 -32.71111,1.36961 -48.8193,-1.29623 -15.38046,-2.53305 -15.26817,-21.4991 -22.48196,-29.4538 -14.64533,0.37584 -29.37199,0.0692 -44.05831,0.16823 -3.2257,12.81128 -0.45036,26.63887 -1.4118,39.86089 -0.0647,14.93018 -0.16052,29.86476 0.29949,44.79021 11.13807,2.66962 23.47406,0.30256 35.07897,1.15076 17.95502,6.0094 8.68066,-18.2606 13.79033,-23.94205 10.65915,14.35511 27.50353,26.37947 46.26305,23.88625 21.32917,0.20388 44.76619,1.98705 62.85674,-11.65583 25.65078,-18.03576 34.84598,-50.74207 35.09483,-80.69037 0.9612,-28.18184 -3.56388,-59.78089 -25.23614,-79.92899 -14.87548,-12.9561 -35.3474,-16.14897 -54.29819,-18.3543 -13.30401,-1.38309 -26.8277,-0.3028 -40.04253,-2.14343 -13.04306,-5.25581 -14.3952,-28.32059 -2.02271,-34.89131 11.25094,-2.41768 23.01535,-0.22179 34.47501,-1.12217 13.61852,-2.43627 26.4188,6.23194 30.14476,19.43747 1.78383,16.39273 23.57606,5.95279 35.1914,8.82801 18.98647,5.28937 10.9056,-17.32579 12.53152,-28.24838 -0.23771,-16.66225 0.71305,-33.43338 -0.62374,-50.02477 -8.53094,-6.37277 -21.91405,-1.3849 -32.44588,-2.97708 -12.41461,-2.72954 -7.27385,13.94263 -9.72308,21.07941 z" fill="none" stroke-width="5" stroke="blue" /> </svg>