Talk:Geoquiz: Difference between revisions

From OLPC
Jump to navigation Jump to search
 
Line 1: Line 1:
== how to add content? ==
== how to add content? ==
how do the continents & countries "draw" themselves? -- [[Username:AuntiMame]] 21 May 2008 12:55 ET
how do the continents & countries "draw" themselves? -- [[Username:AuntiMame]] 21 May 2008 12:55 ET
* Thanks for the question. There is actually a Python dictionary which contains all the country information, including layout coordinates. It then uses Cairo, I believe, to draw a single large SVG sprite of the continent. Unfortunately, there's not an easy way to add content without being a real computer nerd, since the content is somewhat embedded in the code. For Python hackers, though, it should be very easy to extend the dictionary to add more languages, etc. -- [[Username:GordonMcCreight]] 04 Apr 2009
* Thanks for the question. There is actually a Python dictionary which contains all the country information, including layout coordinates. It then uses Cairo, I believe, to draw a single large SVG sprite of the continent. Unfortunately, there's not an easy way to add content without being a real computer nerd, since the content is somewhat embedded in the code. For Python hackers, though, it should be very easy to extend the dictionary to add more languages, etc. -- [[User:Gmccreight|Gordon McCreight]] 04 Apr 2009

Latest revision as of 21:55, 4 April 2009

how to add content?

how do the continents & countries "draw" themselves? -- Username:AuntiMame 21 May 2008 12:55 ET

  • Thanks for the question. There is actually a Python dictionary which contains all the country information, including layout coordinates. It then uses Cairo, I believe, to draw a single large SVG sprite of the continent. Unfortunately, there's not an easy way to add content without being a real computer nerd, since the content is somewhat embedded in the code. For Python hackers, though, it should be very easy to extend the dictionary to add more languages, etc. -- Gordon McCreight 04 Apr 2009