Re: [Rdkit-discuss] svg export from rdkit messed up in Adobe Illustrator , but not in firefox / chrome: fixes?

2011-01-14 Thread hari jayaram
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

Re: [Rdkit-discuss] svg export from rdkit messed up in Adobe Illustrator , but not in firefox / chrome: fixes?

2010-09-27 Thread hari jayaram
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

Re: [Rdkit-discuss] svg export from rdkit messed up in Adobe Illustrator , but not in firefox / chrome: fixes?

2010-09-24 Thread Paul Emsley
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

Re: [Rdkit-discuss] svg export from rdkit messed up in Adobe Illustrator , but not in firefox / chrome: fixes?

2010-09-23 Thread hari jayaram
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