I just re-tried the rdkit generated svg files in Adobe Illustrator CS5 and
it works just fine. So whatever oddity there was in Adobe Illustrators
handling of rdkit (and cairo) generated svg seems to be fixed.
I am using the svn build of rdkit on Leopard OSX. svn release 1632
Thought I would post
I tied the hack , i.e scaling all the glyphs down. The scaled down glyphs -
appear scaled down in Inkscape and other svg viewers.
The adobe Illustrator glyph is still humongous and enlarged
I filed a bug report at Adobe Illustrator forums and the bug report section
saying svg support seems
As a hack, I suppose that you could add
transform=scale(0.2) (or some such) to the attributes of the paths for
the glyph symbols.
i.e.
replace
path style=stroke:none; d=M 0.5 1.765625 L 0.5 -7.046875 L 5.5
-7.046875 L 5.5 1.765625 L 0.5 1.765625 Z M 1.0625 1.21875 L 4.9375
1.21875 L 4.9375
Hi Greg and everyone ,
I do have cairo installed
import cairo
Works fine
To generate the svg , I am using the MolToFile method from Chem.Draw
from rdkit.Chem.Draw import MolToFile
self.rdkitmolecule = rdkit.Chem.MolFromSmiles(self.smiles_string)
def make_svg_file(self):
return
4 matches
Mail list logo