Also, the "live" approach is more dynamic since it allows you to edit the artwork on a later stage without remaking the cards.
kl. 17:18:50 UTC+2 fredag 4. oktober 2013 skrev Gnome følgende: > > I feel that the best way is to change the SVG image "live" using > javascript since it reduces the space taken up by files, especially if you > intend to use it on a mobile device or "stream" them over ie. 3g. For > example with my overlayScript I have 367 map cards, and the image file size > for these only takes 2 MB. > > kl. 16:14:16 UTC+2 fredag 4. oktober 2013 skrev lolilolicon følgende: >> >> On Fri, Oct 4, 2013 at 9:48 PM, Gnome <[email protected]> wrote: >> > >> > >> > kl. 15:24:47 UTC+2 fredag 4. oktober 2013 skrev lolilolicon følgende: >> >> >> >> On Fri, Oct 4, 2013 at 7:32 PM, Timothy Bourke <[email protected]> wrote: >> >> > With SVG maps, it is also possible to generate the individual >> images. >> >> > >> >> > See, for instance, >> >> > http://www.tbrk.org/software/svgtoquiz.html >> >> >> >> Neat idea. >> >> I had a rudimentary go for the same thing with a blank US SVG map[1]. >> >> It had state codes as element IDs, so I just slapped in some CSS style >> >> at the front, e.g. for Alaska: >> >> >> >> <style type="text/css"> >> >> #AK { fill:#ff0000; } >> >> </style> >> >> >> >> and save it to AK.svg. I was able to do it with sed, thanks to the >> >> well written SVG file. >> >> >> > >> > Have you got this to work in mnemosyne? >> > I have also tried this, I wanted the code to be in the card, but I only >> got >> > it to work in firefox not chrome (webkit). >> > >> >> What do you mean by "I wanted the code to be in the card"? What I did >> was to put the css styles in the individual SVG files, which change >> the rendered images. I import a file of tab-separated values like: >> >> Alaska <img src="maps/US/AK.svg"> <img src="maps/US/US.svg"> >> >> and it's all good. >> > -- You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/2cfb332b-203d-461e-a2ab-777eb5104440%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
