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/CAMtVo_MWT0MNdZRzYYL2%3DhVX6Jj3aN5YcPqO-pmuHSF%2BL_mUjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to