Postby clikndragger » Sat Sep 18, 2010 6:16 am
(using a macbook intel core 2 duo 2 ghz, 1gb ram, mac os x 10.4.11 tiger)
at least i have been able to open inkscape svg files on scribus 1.3.7 and 1.3.8 on a macbook. i´ve not tested other versions, so i cannot tell they wont open them too.
i´ve seen some users complaining about missing images on import to scribus. but this can be solved if you edit the file externally with a text editor like textedit, smultron...
after you save the file, open it on your text editor and look for text like this ¨file:///volumes/somethingelse/whatever/yourimage.png¨.
just delete the part ¨file:¨ and save. now scribus will display your images correctly. furthermore, if you imported the image from the same folder where the svg file is located. then you can get rid of the whole ¨file:///volumes/...¨ and leave only the name of the image file. scribus and inkscape are able to locate the images relative to the folder where your svg file is saved.
the problem here is the text ¨file:¨. but if you edit the svg in inkscape after removing the line ¨file:¨ and save, it will appear again.
also inkscape svg files appear larger in scribus. because where inkscape writes 35 as a pixel values, scribus will read 35 as point values. if you edit the files in the text editor and add px at the end of the number like: 35px, scribus will load the object with the correct size. but you would have to do it to each object your document has.
this is somethin i´m stil trying to figure out correctly, but i think it can be solved adding the property ¨viewBox¨ after the width and height values corresponding to the page size. if your page is 1 x 1 inches, indicate ¨0 0 72 x 72¨ in viewBox. the two zeros are for position, not size. remember in your text editor you´ll see width and height values in pixels (90 x 90), add px at the end of the numbers. you can also use the xml editor (ctrl+shift+x) in inkscape for this. you can add the property add the start of the xml structure, where you see the size of the page. but inkscape wont add px on pixel values, i don´t know if there´s a way to achive that.
i think you can edit each svg template on inkscape to add them the ¨viewBox¨ property with its corresponding size in points for each page size, letter, envelope, tabloid... each one at a time. then the only further step will be adding ¨px¨ on page size values externally with the text editor. EVERYTIME YOU EDIT THE FILE in inkscape, that part will be removed again.
what´s more after this is done, you can change the size of the page to anything without having to indicate the point values in ¨viewBox¨ again.
it seems confusing, correct anything i got wrong, i discovered this recently. hope it helps.