Browse files

added all the files over from the manabi app

  • Loading branch information...
1 parent 44e0a06 commit 2f44763519c3da47b55d6b9776a08e016c3f6a73 @aehlke committed Apr 8, 2011
Showing with 8,439 additions and 0 deletions.
  1. 0 kanjivg/__init__.py
  2. +1,085 −0 kanjivg/static/kanjivg/svg2gfx.xslt
  3. +15 −0 kanjivg/static/kanjivg/svgs/100_frames.svg
  4. +15 −0 kanjivg/static/kanjivg/svgs/101_frames.svg
  5. +15 −0 kanjivg/static/kanjivg/svgs/102_frames.svg
  6. +21 −0 kanjivg/static/kanjivg/svgs/103_frames.svg
  7. +15 −0 kanjivg/static/kanjivg/svgs/104_frames.svg
  8. +10 −0 kanjivg/static/kanjivg/svgs/105_frames.svg
  9. +10 −0 kanjivg/static/kanjivg/svgs/106_frames.svg
  10. +21 −0 kanjivg/static/kanjivg/svgs/107_frames.svg
  11. +10 −0 kanjivg/static/kanjivg/svgs/108_frames.svg
  12. +21 −0 kanjivg/static/kanjivg/svgs/109_frames.svg
  13. +15 −0 kanjivg/static/kanjivg/svgs/110_frames.svg
  14. +10 −0 kanjivg/static/kanjivg/svgs/111_frames.svg
  15. +15 −0 kanjivg/static/kanjivg/svgs/112_frames.svg
  16. +15 −0 kanjivg/static/kanjivg/svgs/113_frames.svg
  17. +15 −0 kanjivg/static/kanjivg/svgs/114_frames.svg
  18. +10 −0 kanjivg/static/kanjivg/svgs/115_frames.svg
  19. +15 −0 kanjivg/static/kanjivg/svgs/116_frames.svg
  20. +15 −0 kanjivg/static/kanjivg/svgs/117_frames.svg
  21. +15 −0 kanjivg/static/kanjivg/svgs/118_frames.svg
  22. +21 −0 kanjivg/static/kanjivg/svgs/11916_frames.svg
  23. +21 −0 kanjivg/static/kanjivg/svgs/11917_frames.svg
  24. +21 −0 kanjivg/static/kanjivg/svgs/11925_frames.svg
  25. +28 −0 kanjivg/static/kanjivg/svgs/11927_frames.svg
  26. +21 −0 kanjivg/static/kanjivg/svgs/11937_frames.svg
  27. +28 −0 kanjivg/static/kanjivg/svgs/11940_frames.svg
  28. +21 −0 kanjivg/static/kanjivg/svgs/11942_frames.svg
  29. +21 −0 kanjivg/static/kanjivg/svgs/11944_frames.svg
  30. +21 −0 kanjivg/static/kanjivg/svgs/11980_frames.svg
  31. +28 −0 kanjivg/static/kanjivg/svgs/119_frames.svg
  32. +15 −0 kanjivg/static/kanjivg/svgs/120_frames.svg
  33. +15 −0 kanjivg/static/kanjivg/svgs/121_frames.svg
  34. +10 −0 kanjivg/static/kanjivg/svgs/12289_frames.svg
  35. +10 −0 kanjivg/static/kanjivg/svgs/12290_frames.svg
  36. +21 −0 kanjivg/static/kanjivg/svgs/12293_frames.svg
  37. +15 −0 kanjivg/static/kanjivg/svgs/12294_frames.svg
  38. +21 −0 kanjivg/static/kanjivg/svgs/122_frames.svg
  39. +21 −0 kanjivg/static/kanjivg/svgs/12353_frames.svg
  40. +21 −0 kanjivg/static/kanjivg/svgs/12354_frames.svg
  41. +15 −0 kanjivg/static/kanjivg/svgs/12355_frames.svg
  42. +15 −0 kanjivg/static/kanjivg/svgs/12356_frames.svg
  43. +15 −0 kanjivg/static/kanjivg/svgs/12357_frames.svg
  44. +15 −0 kanjivg/static/kanjivg/svgs/12358_frames.svg
  45. +15 −0 kanjivg/static/kanjivg/svgs/12359_frames.svg
  46. +15 −0 kanjivg/static/kanjivg/svgs/12360_frames.svg
  47. +21 −0 kanjivg/static/kanjivg/svgs/12361_frames.svg
  48. +21 −0 kanjivg/static/kanjivg/svgs/12362_frames.svg
  49. +21 −0 kanjivg/static/kanjivg/svgs/12363_frames.svg
  50. +36 −0 kanjivg/static/kanjivg/svgs/12364_frames.svg
  51. +28 −0 kanjivg/static/kanjivg/svgs/12365_frames.svg
  52. +45 −0 kanjivg/static/kanjivg/svgs/12366_frames.svg
  53. +10 −0 kanjivg/static/kanjivg/svgs/12367_frames.svg
  54. +21 −0 kanjivg/static/kanjivg/svgs/12368_frames.svg
  55. +21 −0 kanjivg/static/kanjivg/svgs/12369_frames.svg
  56. +36 −0 kanjivg/static/kanjivg/svgs/12370_frames.svg
  57. +15 −0 kanjivg/static/kanjivg/svgs/12371_frames.svg
  58. +28 −0 kanjivg/static/kanjivg/svgs/12372_frames.svg
  59. +21 −0 kanjivg/static/kanjivg/svgs/12373_frames.svg
  60. +36 −0 kanjivg/static/kanjivg/svgs/12374_frames.svg
  61. +10 −0 kanjivg/static/kanjivg/svgs/12375_frames.svg
  62. +21 −0 kanjivg/static/kanjivg/svgs/12376_frames.svg
  63. +15 −0 kanjivg/static/kanjivg/svgs/12377_frames.svg
  64. +28 −0 kanjivg/static/kanjivg/svgs/12378_frames.svg
  65. +21 −0 kanjivg/static/kanjivg/svgs/12379_frames.svg
  66. +36 −0 kanjivg/static/kanjivg/svgs/12380_frames.svg
  67. +10 −0 kanjivg/static/kanjivg/svgs/12381_frames.svg
  68. +21 −0 kanjivg/static/kanjivg/svgs/12382_frames.svg
  69. +28 −0 kanjivg/static/kanjivg/svgs/12383_frames.svg
  70. +45 −0 kanjivg/static/kanjivg/svgs/12384_frames.svg
  71. +15 −0 kanjivg/static/kanjivg/svgs/12385_frames.svg
  72. +28 −0 kanjivg/static/kanjivg/svgs/12386_frames.svg
  73. +10 −0 kanjivg/static/kanjivg/svgs/12387_frames.svg
  74. +10 −0 kanjivg/static/kanjivg/svgs/12388_frames.svg
  75. +21 −0 kanjivg/static/kanjivg/svgs/12389_frames.svg
  76. +10 −0 kanjivg/static/kanjivg/svgs/12390_frames.svg
  77. +21 −0 kanjivg/static/kanjivg/svgs/12391_frames.svg
  78. +15 −0 kanjivg/static/kanjivg/svgs/12392_frames.svg
  79. +28 −0 kanjivg/static/kanjivg/svgs/12393_frames.svg
  80. +28 −0 kanjivg/static/kanjivg/svgs/12394_frames.svg
  81. +21 −0 kanjivg/static/kanjivg/svgs/12395_frames.svg
  82. +15 −0 kanjivg/static/kanjivg/svgs/12396_frames.svg
  83. +15 −0 kanjivg/static/kanjivg/svgs/12397_frames.svg
  84. +10 −0 kanjivg/static/kanjivg/svgs/12398_frames.svg
  85. +21 −0 kanjivg/static/kanjivg/svgs/12399_frames.svg
  86. +36 −0 kanjivg/static/kanjivg/svgs/12400_frames.svg
  87. +28 −0 kanjivg/static/kanjivg/svgs/12401_frames.svg
  88. +10 −0 kanjivg/static/kanjivg/svgs/12402_frames.svg
  89. +21 −0 kanjivg/static/kanjivg/svgs/12403_frames.svg
  90. +15 −0 kanjivg/static/kanjivg/svgs/12404_frames.svg
  91. +28 −0 kanjivg/static/kanjivg/svgs/12405_frames.svg
  92. +45 −0 kanjivg/static/kanjivg/svgs/12406_frames.svg
  93. +36 −0 kanjivg/static/kanjivg/svgs/12407_frames.svg
  94. +10 −0 kanjivg/static/kanjivg/svgs/12408_frames.svg
  95. +21 −0 kanjivg/static/kanjivg/svgs/12409_frames.svg
  96. +15 −0 kanjivg/static/kanjivg/svgs/12410_frames.svg
  97. +28 −0 kanjivg/static/kanjivg/svgs/12411_frames.svg
  98. +45 −0 kanjivg/static/kanjivg/svgs/12412_frames.svg
  99. +36 −0 kanjivg/static/kanjivg/svgs/12413_frames.svg
  100. +21 −0 kanjivg/static/kanjivg/svgs/12414_frames.svg
  101. +15 −0 kanjivg/static/kanjivg/svgs/12415_frames.svg
  102. +21 −0 kanjivg/static/kanjivg/svgs/12416_frames.svg
  103. +15 −0 kanjivg/static/kanjivg/svgs/12417_frames.svg
  104. +21 −0 kanjivg/static/kanjivg/svgs/12418_frames.svg
  105. +21 −0 kanjivg/static/kanjivg/svgs/12419_frames.svg
  106. +21 −0 kanjivg/static/kanjivg/svgs/12420_frames.svg
  107. +15 −0 kanjivg/static/kanjivg/svgs/12421_frames.svg
  108. +15 −0 kanjivg/static/kanjivg/svgs/12422_frames.svg
  109. +15 −0 kanjivg/static/kanjivg/svgs/12423_frames.svg
  110. +15 −0 kanjivg/static/kanjivg/svgs/12424_frames.svg
  111. +15 −0 kanjivg/static/kanjivg/svgs/12425_frames.svg
  112. +15 −0 kanjivg/static/kanjivg/svgs/12426_frames.svg
  113. +10 −0 kanjivg/static/kanjivg/svgs/12427_frames.svg
  114. +15 −0 kanjivg/static/kanjivg/svgs/12428_frames.svg
  115. +10 −0 kanjivg/static/kanjivg/svgs/12429_frames.svg
  116. +15 −0 kanjivg/static/kanjivg/svgs/12430_frames.svg
  117. +15 −0 kanjivg/static/kanjivg/svgs/12431_frames.svg
  118. +10 −0 kanjivg/static/kanjivg/svgs/12432_frames.svg
  119. +10 −0 kanjivg/static/kanjivg/svgs/12433_frames.svg
  120. +21 −0 kanjivg/static/kanjivg/svgs/12434_frames.svg
  121. +10 −0 kanjivg/static/kanjivg/svgs/12435_frames.svg
  122. +28 −0 kanjivg/static/kanjivg/svgs/12436_frames.svg
  123. +21 −0 kanjivg/static/kanjivg/svgs/12437_frames.svg
  124. +21 −0 kanjivg/static/kanjivg/svgs/12438_frames.svg
  125. +15 −0 kanjivg/static/kanjivg/svgs/12443_frames.svg
  126. +10 −0 kanjivg/static/kanjivg/svgs/12444_frames.svg
  127. +10 −0 kanjivg/static/kanjivg/svgs/12445_frames.svg
  128. +21 −0 kanjivg/static/kanjivg/svgs/12446_frames.svg
  129. +15 −0 kanjivg/static/kanjivg/svgs/12449_frames.svg
  130. +15 −0 kanjivg/static/kanjivg/svgs/12450_frames.svg
  131. +15 −0 kanjivg/static/kanjivg/svgs/12451_frames.svg
  132. +15 −0 kanjivg/static/kanjivg/svgs/12452_frames.svg
  133. +21 −0 kanjivg/static/kanjivg/svgs/12453_frames.svg
  134. +21 −0 kanjivg/static/kanjivg/svgs/12454_frames.svg
  135. +21 −0 kanjivg/static/kanjivg/svgs/12455_frames.svg
  136. +21 −0 kanjivg/static/kanjivg/svgs/12456_frames.svg
  137. +21 −0 kanjivg/static/kanjivg/svgs/12457_frames.svg
  138. +21 −0 kanjivg/static/kanjivg/svgs/12458_frames.svg
  139. +15 −0 kanjivg/static/kanjivg/svgs/12459_frames.svg
  140. +28 −0 kanjivg/static/kanjivg/svgs/12460_frames.svg
  141. +21 −0 kanjivg/static/kanjivg/svgs/12461_frames.svg
  142. +36 −0 kanjivg/static/kanjivg/svgs/12462_frames.svg
  143. +15 −0 kanjivg/static/kanjivg/svgs/12463_frames.svg
  144. +28 −0 kanjivg/static/kanjivg/svgs/12464_frames.svg
  145. +21 −0 kanjivg/static/kanjivg/svgs/12465_frames.svg
  146. +36 −0 kanjivg/static/kanjivg/svgs/12466_frames.svg
  147. +15 −0 kanjivg/static/kanjivg/svgs/12467_frames.svg
  148. +28 −0 kanjivg/static/kanjivg/svgs/12468_frames.svg
  149. +21 −0 kanjivg/static/kanjivg/svgs/12469_frames.svg
  150. +36 −0 kanjivg/static/kanjivg/svgs/12470_frames.svg
  151. +21 −0 kanjivg/static/kanjivg/svgs/12471_frames.svg
  152. +36 −0 kanjivg/static/kanjivg/svgs/12472_frames.svg
  153. +15 −0 kanjivg/static/kanjivg/svgs/12473_frames.svg
  154. +28 −0 kanjivg/static/kanjivg/svgs/12474_frames.svg
  155. +15 −0 kanjivg/static/kanjivg/svgs/12475_frames.svg
  156. +28 −0 kanjivg/static/kanjivg/svgs/12476_frames.svg
  157. +15 −0 kanjivg/static/kanjivg/svgs/12477_frames.svg
  158. +28 −0 kanjivg/static/kanjivg/svgs/12478_frames.svg
  159. +21 −0 kanjivg/static/kanjivg/svgs/12479_frames.svg
  160. +36 −0 kanjivg/static/kanjivg/svgs/12480_frames.svg
  161. +21 −0 kanjivg/static/kanjivg/svgs/12481_frames.svg
  162. +36 −0 kanjivg/static/kanjivg/svgs/12482_frames.svg
  163. +21 −0 kanjivg/static/kanjivg/svgs/12483_frames.svg
  164. +21 −0 kanjivg/static/kanjivg/svgs/12484_frames.svg
  165. +36 −0 kanjivg/static/kanjivg/svgs/12485_frames.svg
  166. +21 −0 kanjivg/static/kanjivg/svgs/12486_frames.svg
  167. +36 −0 kanjivg/static/kanjivg/svgs/12487_frames.svg
  168. +15 −0 kanjivg/static/kanjivg/svgs/12488_frames.svg
  169. +28 −0 kanjivg/static/kanjivg/svgs/12489_frames.svg
  170. +15 −0 kanjivg/static/kanjivg/svgs/12490_frames.svg
  171. +15 −0 kanjivg/static/kanjivg/svgs/12491_frames.svg
  172. +15 −0 kanjivg/static/kanjivg/svgs/12492_frames.svg
  173. +28 −0 kanjivg/static/kanjivg/svgs/12493_frames.svg
  174. +10 −0 kanjivg/static/kanjivg/svgs/12494_frames.svg
  175. +15 −0 kanjivg/static/kanjivg/svgs/12495_frames.svg
  176. +28 −0 kanjivg/static/kanjivg/svgs/12496_frames.svg
  177. +21 −0 kanjivg/static/kanjivg/svgs/12497_frames.svg
  178. +15 −0 kanjivg/static/kanjivg/svgs/12498_frames.svg
  179. +28 −0 kanjivg/static/kanjivg/svgs/12499_frames.svg
  180. +21 −0 kanjivg/static/kanjivg/svgs/12500_frames.svg
  181. +10 −0 kanjivg/static/kanjivg/svgs/12501_frames.svg
  182. +21 −0 kanjivg/static/kanjivg/svgs/12502_frames.svg
  183. +15 −0 kanjivg/static/kanjivg/svgs/12503_frames.svg
  184. +10 −0 kanjivg/static/kanjivg/svgs/12504_frames.svg
  185. +21 −0 kanjivg/static/kanjivg/svgs/12505_frames.svg
  186. +15 −0 kanjivg/static/kanjivg/svgs/12506_frames.svg
  187. +28 −0 kanjivg/static/kanjivg/svgs/12507_frames.svg
  188. +45 −0 kanjivg/static/kanjivg/svgs/12508_frames.svg
  189. +36 −0 kanjivg/static/kanjivg/svgs/12509_frames.svg
  190. +15 −0 kanjivg/static/kanjivg/svgs/12510_frames.svg
  191. +21 −0 kanjivg/static/kanjivg/svgs/12511_frames.svg
  192. +15 −0 kanjivg/static/kanjivg/svgs/12512_frames.svg
  193. +15 −0 kanjivg/static/kanjivg/svgs/12513_frames.svg
  194. +21 −0 kanjivg/static/kanjivg/svgs/12514_frames.svg
  195. +15 −0 kanjivg/static/kanjivg/svgs/12515_frames.svg
  196. +15 −0 kanjivg/static/kanjivg/svgs/12516_frames.svg
  197. +15 −0 kanjivg/static/kanjivg/svgs/12517_frames.svg
  198. +15 −0 kanjivg/static/kanjivg/svgs/12518_frames.svg
  199. +21 −0 kanjivg/static/kanjivg/svgs/12519_frames.svg
  200. +21 −0 kanjivg/static/kanjivg/svgs/12520_frames.svg
  201. +15 −0 kanjivg/static/kanjivg/svgs/12521_frames.svg
  202. +15 −0 kanjivg/static/kanjivg/svgs/12522_frames.svg
  203. +15 −0 kanjivg/static/kanjivg/svgs/12523_frames.svg
  204. +10 −0 kanjivg/static/kanjivg/svgs/12524_frames.svg
  205. +21 −0 kanjivg/static/kanjivg/svgs/12525_frames.svg
  206. +15 −0 kanjivg/static/kanjivg/svgs/12526_frames.svg
  207. +15 −0 kanjivg/static/kanjivg/svgs/12527_frames.svg
  208. +28 −0 kanjivg/static/kanjivg/svgs/12528_frames.svg
  209. +21 −0 kanjivg/static/kanjivg/svgs/12529_frames.svg
  210. +21 −0 kanjivg/static/kanjivg/svgs/12530_frames.svg
  211. +15 −0 kanjivg/static/kanjivg/svgs/12531_frames.svg
  212. +36 −0 kanjivg/static/kanjivg/svgs/12532_frames.svg
  213. +15 −0 kanjivg/static/kanjivg/svgs/12533_frames.svg
  214. +21 −0 kanjivg/static/kanjivg/svgs/12534_frames.svg
  215. +28 −0 kanjivg/static/kanjivg/svgs/12535_frames.svg
  216. +45 −0 kanjivg/static/kanjivg/svgs/12536_frames.svg
  217. +36 −0 kanjivg/static/kanjivg/svgs/12537_frames.svg
  218. +36 −0 kanjivg/static/kanjivg/svgs/12538_frames.svg
  219. +7 −0 kanjivg/static/kanjivg/svgs/12539_frames.svg
  220. +10 −0 kanjivg/static/kanjivg/svgs/12540_frames.svg
  221. +10 −0 kanjivg/static/kanjivg/svgs/12541_frames.svg
  222. +21 −0 kanjivg/static/kanjivg/svgs/12542_frames.svg
  223. +15 −0 kanjivg/static/kanjivg/svgs/131210_frames.svg
  224. +45 −0 kanjivg/static/kanjivg/svgs/131236_frames.svg
  225. +55 −0 kanjivg/static/kanjivg/svgs/13356_frames.svg
  226. +28 −0 kanjivg/static/kanjivg/svgs/13505_frames.svg
  227. +55 −0 kanjivg/static/kanjivg/svgs/158033_frames.svg
  228. +10 −0 kanjivg/static/kanjivg/svgs/19968_frames.svg
  229. +15 −0 kanjivg/static/kanjivg/svgs/19969_frames.svg
  230. +15 −0 kanjivg/static/kanjivg/svgs/19971_frames.svg
  231. +21 −0 kanjivg/static/kanjivg/svgs/19975_frames.svg
  232. +21 −0 kanjivg/static/kanjivg/svgs/19976_frames.svg
  233. +21 −0 kanjivg/static/kanjivg/svgs/19977_frames.svg
  234. +21 −0 kanjivg/static/kanjivg/svgs/19978_frames.svg
  235. +21 −0 kanjivg/static/kanjivg/svgs/19979_frames.svg
  236. +28 −0 kanjivg/static/kanjivg/svgs/19981_frames.svg
  237. +21 −0 kanjivg/static/kanjivg/svgs/19982_frames.svg
  238. +28 −0 kanjivg/static/kanjivg/svgs/19984_frames.svg
  239. +28 −0 kanjivg/static/kanjivg/svgs/19985_frames.svg
  240. +36 −0 kanjivg/static/kanjivg/svgs/19988_frames.svg
  241. +36 −0 kanjivg/static/kanjivg/svgs/19989_frames.svg
  242. +36 −0 kanjivg/static/kanjivg/svgs/19990_frames.svg
  243. +36 −0 kanjivg/static/kanjivg/svgs/19991_frames.svg
  244. +36 −0 kanjivg/static/kanjivg/svgs/19992_frames.svg
  245. +36 −0 kanjivg/static/kanjivg/svgs/19993_frames.svg
  246. +45 −0 kanjivg/static/kanjivg/svgs/19998_frames.svg
  247. +45 −0 kanjivg/static/kanjivg/svgs/20001_frames.svg
  248. +66 −0 kanjivg/static/kanjivg/svgs/20006_frames.svg
  249. +10 −0 kanjivg/static/kanjivg/svgs/20008_frames.svg
  250. +21 −0 kanjivg/static/kanjivg/svgs/20010_frames.svg
  251. +28 −0 kanjivg/static/kanjivg/svgs/20013_frames.svg
  252. +36 −0 kanjivg/static/kanjivg/svgs/20017_frames.svg
  253. +55 −0 kanjivg/static/kanjivg/svgs/20018_frames.svg
  254. +10 −0 kanjivg/static/kanjivg/svgs/20022_frames.svg
  255. +21 −0 kanjivg/static/kanjivg/svgs/20024_frames.svg
  256. +28 −0 kanjivg/static/kanjivg/svgs/20025_frames.svg
  257. +36 −0 kanjivg/static/kanjivg/svgs/20027_frames.svg
  258. +36 −0 kanjivg/static/kanjivg/svgs/20028_frames.svg
  259. +10 −0 kanjivg/static/kanjivg/svgs/20031_frames.svg
  260. +15 −0 kanjivg/static/kanjivg/svgs/20034_frames.svg
  261. +15 −0 kanjivg/static/kanjivg/svgs/20035_frames.svg
  262. +21 −0 kanjivg/static/kanjivg/svgs/20037_frames.svg
  263. +21 −0 kanjivg/static/kanjivg/svgs/20043_frames.svg
  264. +36 −0 kanjivg/static/kanjivg/svgs/20045_frames.svg
  265. +36 −0 kanjivg/static/kanjivg/svgs/20046_frames.svg
  266. +28 −0 kanjivg/static/kanjivg/svgs/20047_frames.svg
  267. +55 −0 kanjivg/static/kanjivg/svgs/20053_frames.svg
  268. +66 −0 kanjivg/static/kanjivg/svgs/20054_frames.svg
  269. +78 −0 kanjivg/static/kanjivg/svgs/20055_frames.svg
  270. +91 −0 kanjivg/static/kanjivg/svgs/20056_frames.svg
  271. +10 −0 kanjivg/static/kanjivg/svgs/20057_frames.svg
  272. +15 −0 kanjivg/static/kanjivg/svgs/20061_frames.svg
  273. +21 −0 kanjivg/static/kanjivg/svgs/20062_frames.svg
  274. +21 −0 kanjivg/static/kanjivg/svgs/20063_frames.svg
  275. +28 −0 kanjivg/static/kanjivg/svgs/20066_frames.svg
  276. +55 −0 kanjivg/static/kanjivg/svgs/20081_frames.svg
  277. +66 −0 kanjivg/static/kanjivg/svgs/20083_frames.svg
  278. +105 −0 kanjivg/static/kanjivg/svgs/20094_frames.svg
  279. +105 −0 kanjivg/static/kanjivg/svgs/20096_frames.svg
  280. +136 −0 kanjivg/static/kanjivg/svgs/20098_frames.svg
  281. +10 −0 kanjivg/static/kanjivg/svgs/20101_frames.svg
  282. +15 −0 kanjivg/static/kanjivg/svgs/20102_frames.svg
  283. +28 −0 kanjivg/static/kanjivg/svgs/20104_frames.svg
  284. +45 −0 kanjivg/static/kanjivg/svgs/20105_frames.svg
  285. +55 −0 kanjivg/static/kanjivg/svgs/20106_frames.svg
  286. +66 −0 kanjivg/static/kanjivg/svgs/20107_frames.svg
  287. +15 −0 kanjivg/static/kanjivg/svgs/20108_frames.svg
  288. +21 −0 kanjivg/static/kanjivg/svgs/20110_frames.svg
  289. +28 −0 kanjivg/static/kanjivg/svgs/20113_frames.svg
  290. +28 −0 kanjivg/static/kanjivg/svgs/20114_frames.svg
  291. +28 −0 kanjivg/static/kanjivg/svgs/20116_frames.svg
  292. +28 −0 kanjivg/static/kanjivg/svgs/20117_frames.svg
  293. +45 −0 kanjivg/static/kanjivg/svgs/20120_frames.svg
  294. +45 −0 kanjivg/static/kanjivg/svgs/20121_frames.svg
  295. +66 −0 kanjivg/static/kanjivg/svgs/20123_frames.svg
  296. +55 −0 kanjivg/static/kanjivg/svgs/20124_frames.svg
  297. +66 −0 kanjivg/static/kanjivg/svgs/20126_frames.svg
  298. +66 −0 kanjivg/static/kanjivg/svgs/20127_frames.svg
  299. +15 −0 kanjivg/static/kanjivg/svgs/20128_frames.svg
  300. +21 −0 kanjivg/static/kanjivg/svgs/20129_frames.svg
Sorry, we could not display the entire diff because too many files (6,670) changed.
View
0 kanjivg/__init__.py
No changes.
View
1,085 kanjivg/static/kanjivg/svg2gfx.xslt
@@ -0,0 +1,1085 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE xsl:stylesheet [
+<!ENTITY SupportedElements "svg:a|svg:circle|svg:ellipse|svg:g|svg:image|svg:line|svg:path|svg:polygon|svg:polyline|svg:rect|svg:text|svg:textPath|svg:use">
+]>
+<!-- This is a complete rewrite of the original svg2gfx.xslt used for testing. -->
+<!--
+This version supports polygons, polylines, circles, ellipses, rectangles,
+lines, images, text, patterns, linear gradients, radial gradients, transforms
+(although gradient transforms are limited), and more in addition to the
+paths, strokes, groups, and constant fills supported by the original. It
+even handles little niceties like the SVG use element. All that being said,
+It does not even come close to supporting all of the features found in SVG,
+but should hopefully be a fairly useful subset.
+
+Caveats: Completely ignores many SVG features (such as named views, filters,
+object bounding box in gradient transforms, etc.). Now requires properly
+formed SVG (that is, SVG using the appropriate SVG namespace) which most
+editors create by default these days anyhow (the old version required that
+namespaces be stripped off). Can't convert to GFX constructs that cannot
+be reconstructed from JSON (such as textpath or using vector fonts).
+Requires EXSLT for many transforms. Handles nested styles in a simple way
+that is usually right but sometimes wrong.
+
+Questions / comments / bug reports can be sent to Feneric (on Twitter, IRC,
+GMail, etc.) or Eric (Saugus.net, ShellTown, etc.)
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:math="http://exslt.org/math"
+ xmlns:exsl="http://exslt.org/common"
+ xmlns:saxon="http://icl.com/saxon"
+ xmlns:xalan="http://xml.apache.org/Xalan"
+ extension-element-prefixes="math exsl saxon xalan">
+ <xsl:output method="text" version="1.0" encoding="UTF-8"/>
+ <xsl:strip-space elements="*"/>
+
+ <!-- We currently need this constant for some transformation calculations. -->
+ <!-- GFX enhancements could obviate it in the future. -->
+ <xsl:variable name="degressInRadian" select="57.295779513082322"/>
+
+ <!-- The following templates process little bits of things that can often occur in multiple contexts -->
+
+ <xsl:template name="kill-extra-spaces" mode="kill-extra-spaces">
+ <xsl:param name="string"/>
+ <!-- Some don't feel that SVG is verbose enough and thus add extra spaces, which when -->
+ <!-- untreated can look exactly like delimiters in point sets. -->
+ <xsl:choose>
+ <!-- Hopefully most cases won't have the extra spaces -->
+ <xsl:when test="not(contains($string,', '))">
+ <xsl:value-of select="$string"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- We split at comma / space pairs and recursively chop spaces -->
+ <xsl:call-template name="kill-extra-spaces">
+ <xsl:with-param name="string" select="substring-before($string,', ')"/>
+ </xsl:call-template>
+ <xsl:text>,</xsl:text>
+ <xsl:call-template name="kill-extra-spaces">
+ <xsl:with-param name="string" select="substring-after($string,', ')"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="arg-processor" mode="arg-processor">
+ <xsl:param name="values"/>
+ <xsl:param name="labels"/>
+ <!-- Recursively chew through the arguments in a traditional CAR / CDR pattern -->
+ <xsl:variable name="valuesCdr" select="substring-after($values,',')"/>
+ <!-- We're going "backwards" here to take advantage of tail recursion -->
+ <xsl:choose>
+ <xsl:when test="not($valuesCdr)">
+ <!-- handle the final argument -->
+ <xsl:value-of select="$labels"/>
+ <xsl:text>:</xsl:text>
+ <xsl:value-of select="$values"/>
+ <!-- This last trailing comma is needed in the (odd) case of multiple transforms -->
+ <xsl:text>,</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- handle the current argument -->
+ <xsl:value-of select="substring-before($labels,',')"/>
+ <xsl:text>:</xsl:text>
+ <xsl:value-of select="substring-before($values,',')"/>
+ <xsl:text>,</xsl:text>
+ <xsl:call-template name="arg-processor">
+ <xsl:with-param name="values" select="$valuesCdr"/>
+ <xsl:with-param name="labels" select="substring-after($labels,',')"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="background-processor" mode="background-processor">
+ <xsl:param name="background"/>
+ <xsl:choose>
+ <xsl:when test="starts-with($background,'url')">
+ <!-- Check if we have a URL (for a gradient or pattern) -->
+ <xsl:variable name="arguments" select="translate(normalize-space(substring-before(substring-after($background,'('),')')),' ',',')"/>
+ <xsl:call-template name="url-processor">
+ <xsl:with-param name="url" select="$arguments"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- We probably have a solid color. -->
+ <xsl:call-template name="color-processor">
+ <xsl:with-param name="color" select="$background"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="color-processor">
+ <xsl:param name="color"/>
+ <xsl:choose>
+ <xsl:when test="starts-with($color,'rgb')">
+ <!-- Check if we have an RGB triple -->
+ <xsl:variable name="arguments" select="normalize-space(substring-before(substring-after($color,'('),')'))"/>
+ <xsl:call-template name="rgb-triple-processor">
+ <xsl:with-param name="triple" select="$arguments"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="$color='none'">
+ <!-- Check if we have a literal 'none' -->
+ <!-- Literal nones seem to actually map to black in practice -->
+ <xsl:text>"#000000",</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- This color could either be by name or value. Either way, we -->
+ <!-- have to ensure that there are no bogus semi-colons. -->
+ <xsl:text>"</xsl:text>
+ <xsl:value-of select="normalize-space(translate($color,';',' '))"/>
+ <xsl:text>",</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="point-processor" mode="point-processor">
+ <xsl:param name="points"/>
+ <!-- Recursively process points in a traditional CAR / CDR pattern -->
+ <xsl:variable name="pointsCdr" select="normalize-space(substring-after($points,' '))"/>
+ <!-- We're going "backwards" here to take advantage of tail recursion -->
+ <xsl:choose>
+ <xsl:when test="not($pointsCdr)">
+ <!-- handle the final argument -->
+ <xsl:text>{x:</xsl:text>
+ <xsl:value-of select="substring-before($points,',')"/>
+ <xsl:text>,y:</xsl:text>
+ <xsl:value-of select="substring-after($points,',')"/>
+ <xsl:text>},</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- handle the current argument -->
+ <xsl:variable name="pointsCar" select="substring-before($points,' ')"/>
+ <xsl:text>{x:</xsl:text>
+ <xsl:value-of select="substring-before($pointsCar,',')"/>
+ <xsl:text>,y:</xsl:text>
+ <xsl:value-of select="substring-after($pointsCar,',')"/>
+ <xsl:text>},</xsl:text>
+ <xsl:call-template name="point-processor">
+ <xsl:with-param name="points" select="$pointsCdr"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="rgb-triple-processor" mode="rgb-triple-processor">
+ <xsl:param name="triple"/>
+ <!-- Note that as SVG triples cannot contain alpha values, we hardcode it to be fully opaque -->
+ <!-- This could theoretically be better handled by watching for fill-opacity -->
+ <xsl:variable name="red" select="substring-before($triple,',')"/>
+ <xsl:variable name="green" select="substring-before(substring-after($triple,concat($red,',')),',')"/>
+ <xsl:variable name="blue" select="substring-after($triple,concat($red,',',$green,','))"/>
+ <xsl:text>{"r":</xsl:text>
+ <xsl:value-of select="normalize-space($red)"/>
+ <xsl:text>,"g":</xsl:text>
+ <xsl:value-of select="normalize-space($green)"/>
+ <xsl:text>,"b":</xsl:text>
+ <xsl:value-of select="normalize-space($blue)"/>
+ <xsl:text>,"a":1},</xsl:text>
+ </xsl:template>
+
+ <xsl:template name="styles-processor" mode="styles-processor">
+ <xsl:param name="styles"/>
+ <!-- Recursively chew through the styles in a traditional CAR / CDR pattern -->
+ <xsl:variable name="stylesCdr" select="substring-after($styles,';')"/>
+ <!-- We're going "backwards" here to take advantage of tail recursion -->
+ <xsl:choose>
+ <xsl:when test="not($stylesCdr)">
+ <!-- handle the final style -->
+ <xsl:attribute name="{normalize-space(substring-before($styles,':'))}">
+ <xsl:value-of select="normalize-space(substring-after($styles,':'))"/>
+ </xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- handle the current style -->
+ <xsl:variable name="stylesCar" select="substring-before($styles,';')"/>
+ <xsl:attribute name="{normalize-space(substring-before($stylesCar,':'))}">
+ <xsl:value-of select="normalize-space(substring-after($stylesCar,':'))"/>
+ </xsl:attribute>
+ <xsl:call-template name="styles-processor">
+ <xsl:with-param name="styles" select="$stylesCdr"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="transform-processor" mode="transform-processor">
+ <xsl:param name="transforms"/>
+ <!-- Recursively chew through the transforms in a traditional CAR / CDR pattern -->
+ <xsl:variable name="transformsCdr" select="normalize-space(substring-after($transforms,')'))"/>
+ <xsl:variable name="arguments" select="translate(normalize-space(substring-before(substring-after($transforms,'('),')')),' ',',')"/>
+ <xsl:choose>
+ <!-- We only handle simple (i.e. nonoverlapping) chained transforms. -->
+ <!-- This covers most real-world cases, and exceptions are generally -->
+ <!-- hand-generated and can likewise be hand fixed. -->
+ <xsl:when test="starts-with($transforms,'matrix')">
+ <xsl:call-template name="arg-processor">
+ <xsl:with-param name="values" select="$arguments"/>
+ <xsl:with-param name="labels" select="string('xx,yx,xy,yy,dx,dy')"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="starts-with($transforms,'translate')">
+ <!-- If only one argument is provided, it's assumed for both -->
+ <xsl:choose>
+ <xsl:when test="contains($arguments,',')">
+ <xsl:call-template name="arg-processor">
+ <xsl:with-param name="values" select="$arguments"/>
+ <xsl:with-param name="labels" select="string('dx,dy')"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="arg-processor">
+ <xsl:with-param name="values" select="concat($arguments,',',$arguments)"/>
+ <xsl:with-param name="labels" select="string('dx,dy')"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="starts-with($transforms,'scale')">
+ <!-- If only one argument is provided, it's assumed for both -->
+ <xsl:choose>
+ <xsl:when test="contains($arguments,',')">
+ <xsl:call-template name="arg-processor">
+ <xsl:with-param name="values" select="$arguments"/>
+ <xsl:with-param name="labels" select="string('xx,yy')"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="arg-processor">
+ <xsl:with-param name="values" select="concat($arguments,',',$arguments)"/>
+ <xsl:with-param name="labels" select="string('xx,yy')"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="starts-with($transforms,'rotate')">
+ <!-- Kluge alert - we're redoing a function GFX aleady provides here because -->
+ <!-- GFX doesn't yet expose it to JSON input. It requires XSLT extensions, too. -->
+ <!-- If you don't have the extensions, comment the following out (bye bye rotate). -->
+ <xsl:choose>
+ <xsl:when test="function-available('math:sin') and function-available('math:cos')">
+ <xsl:variable name="sinOfAngle" select="math:sin($arguments div $degressInRadian)"/>
+ <xsl:variable name="cosOfAngle" select="math:cos($arguments div $degressInRadian)"/>
+ <xsl:variable name="subarguments" select="concat($cosOfAngle,',',-$sinOfAngle,',',$sinOfAngle,',',$cosOfAngle)"/>
+ <xsl:call-template name="arg-processor">
+ <xsl:with-param name="values" select="$subarguments"/>
+ <xsl:with-param name="labels" select="string('xx,yx,xy,yy')"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:message>
+ <xsl:text>exslt:sin and exslt:cos must be supported for a rotation.</xsl:text>
+ </xsl:message>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="starts-with($transforms,'skewX')">
+ <!-- Kluge alert - we're redoing a function GFX aleady provides here because -->
+ <!-- GFX doesn't yet expose it to JSON input. It requires XSLT extensions, too. -->
+ <!-- If you don't have the extensions, comment the following out (bye bye skewX). -->
+ <xsl:choose>
+ <xsl:when test="function-available('math:tan')">
+ <xsl:variable name="tanOfAngle" select="math:tan($arguments div $degressInRadian)"/>
+ <xsl:call-template name="arg-processor">
+ <xsl:with-param name="values" select="$tanOfAngle"/>
+ <xsl:with-param name="labels" select="string('xy')"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:message>
+ <xsl:text>exslt:tan must be supported for a skewX.</xsl:text>
+ </xsl:message>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="starts-with($transforms,'skewY')">
+ <!-- Kluge alert - we're redoing a function GFX aleady provides here because -->
+ <!-- GFX doesn't yet expose it to JSON input. It requires XSLT extensions, too. -->
+ <!-- If you don't have the extensions, comment the following out (bye bye skewY). -->
+ <xsl:choose>
+ <xsl:when test="function-available('math:tan')">
+ <xsl:variable name="tanOfAngle" select="math:tan($arguments div $degressInRadian)"/>
+ <xsl:call-template name="arg-processor">
+ <xsl:with-param name="values" select="$tanOfAngle"/>
+ <xsl:with-param name="labels" select="string('yx')"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:message>
+ <xsl:text>exslt:tan must be supported for a skewY.</xsl:text>
+ </xsl:message>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:if test="$transformsCdr">
+ <!-- handle the other transforms -->
+ <xsl:call-template name="transform-processor">
+ <xsl:with-param name="transforms" select="$transformsCdr"/>
+ </xsl:call-template>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template name="url-processor" mode="url-processor">
+ <xsl:param name="url"/>
+ <xsl:param name="groupAttrs" select="''"/>
+ <!-- We can only handle local references; that's probably all we should get anyway -->
+ <xsl:if test="starts-with($url,'#')">
+ <xsl:apply-templates select="id(substring-after($url,'#'))">
+ <xsl:with-param name="groupAttrs" select="$groupAttrs"/>
+ </xsl:apply-templates>
+ </xsl:if>
+ </xsl:template>
+
+ <!-- The following templates help with gradient transforms -->
+
+ <!-- We're temporarily supporting a few SVG features that GFX does not currently support. -->
+ <!-- The biggest of these is gradient transforms; when GFX natively supports it all the -->
+ <!-- kluges made to support it here (including all the following code) should be removed. -->
+
+ <xsl:template name="gradient-transform-helper" mode="gradient-transform-helper">
+ <!-- This nasty little routine helps gradient adjuster and can be -->
+ <!-- removed when GFX gets gradientTransform support. -->
+ <xsl:param name="cxa"/>
+ <xsl:param name="cya"/>
+ <xsl:param name="x1a"/>
+ <xsl:param name="y1a"/>
+ <xsl:param name="x2a"/>
+ <xsl:param name="y2a"/>
+ <xsl:param name="xx"/>
+ <xsl:param name="xy"/>
+ <xsl:param name="yx"/>
+ <xsl:param name="yy"/>
+ <xsl:param name="dx"/>
+ <xsl:param name="dy"/>
+ <xsl:choose>
+ <xsl:when test="local-name()='radialGradient'">
+ <xsl:variable name="cx" select="$xx*$cxa+$xy*$cya+$dx"/>
+ <xsl:text>cx:</xsl:text>
+ <xsl:value-of select="$cx"/>
+ <xsl:text>,</xsl:text>
+ <xsl:variable name="cy" select="$yx*$cxa+$yy*$cya+$dy"/>
+ <xsl:text>cy:</xsl:text>
+ <xsl:value-of select="$cy"/>
+ <xsl:text>,</xsl:text>
+ <!-- The results for r here are going to just be approximate -->
+ <xsl:variable name="r" select="($cx+$cy) div 2"/>
+ <xsl:text>r:</xsl:text>
+ <xsl:value-of select="$r"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable name="x1" select="$xx*$x1a+$xy*$y1a+$dx"/>
+ <xsl:text>x1:</xsl:text>
+ <xsl:value-of select="$x1"/>
+ <xsl:text>,</xsl:text>
+ <xsl:variable name="y1" select="$yx*$x1a+$yy*$y1a+$dy"/>
+ <xsl:text>y1:</xsl:text>
+ <xsl:value-of select="$y1"/>
+ <xsl:text>,</xsl:text>
+ <xsl:variable name="x2" select="$xx*$x2a+$xy*$y2a+$dx"/>
+ <xsl:text>x2:</xsl:text>
+ <xsl:value-of select="$x2"/>
+ <xsl:text>,</xsl:text>
+ <xsl:variable name="y2" select="$yx*$x2a+$yy*$y2a+$dy"/>
+ <xsl:text>y2:</xsl:text>
+ <xsl:value-of select="$y2"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="gradient-adjuster" mode="gradient-adjuster">
+ <xsl:param name="node"/>
+ <!-- This code is awful and only meant to serve until GFX gets gradientTransform support. -->
+ <!-- Once GFX does gradientTransforms, the following should be destroyed and forgotten. -->
+ <!-- While this support is better than nothing, it cannot 100% reproduce the effects -->
+ <!-- that true gradientTransform support in GFX could provide. -->
+ <xsl:choose>
+ <xsl:when test="starts-with($node/@gradientTransform,'matrix')">
+ <xsl:variable name="args" select="normalize-space(substring-before(substring-after($node/@gradientTransform,'matrix('),')'))"/>
+ <xsl:variable name="xx" select="substring-before($args,' ')"/>
+ <xsl:variable name="yx" select="substring-before(substring-after($args,' '),' ')"/>
+ <xsl:variable name="xy" select="substring-before(substring-after($args,concat($xx,' ',$yx,' ')),' ')"/>
+ <xsl:variable name="yy" select="substring-before(substring-after($args,concat($xx,' ',$yx,' ',$xy,' ')),' ')"/>
+ <xsl:variable name="dx" select="substring-before(substring-after($args,concat($xx,' ',$yx,' ',$xy,' ',$yy,' ')),' ')"/>
+ <xsl:variable name="dy" select="substring-after($args,concat($xx,' ',$yx,' ',$xy,' ',$yy,' ',$dx,' '))"/>
+ <xsl:call-template name="gradient-transform-helper">
+ <xsl:with-param name="cxa" select="$node/@cx"/>
+ <xsl:with-param name="cya" select="$node/@cy"/>
+ <xsl:with-param name="x1a" select="$node/@x1"/>
+ <xsl:with-param name="y1a" select="$node/@y1"/>
+ <xsl:with-param name="x2a" select="$node/@x2"/>
+ <xsl:with-param name="y2a" select="$node/@y2"/>
+ <xsl:with-param name="xx" select="$xx"/>
+ <xsl:with-param name="yx" select="$yx"/>
+ <xsl:with-param name="xy" select="$xy"/>
+ <xsl:with-param name="yy" select="$yy"/>
+ <xsl:with-param name="dx" select="$dx"/>
+ <xsl:with-param name="dy" select="$dy"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="starts-with($node/@gradientTransform,'translate')">
+ <xsl:variable name="args" select="normalize-space(substring-before(substring-after($node/@gradientTransform,'translate('),')'))"/>
+ <!-- If only one argument is provided, it's assumed for both -->
+ <xsl:choose>
+ <xsl:when test="contains($args,',')">
+ <xsl:call-template name="gradient-transform-helper">
+ <xsl:with-param name="cxa" select="$node/@cx"/>
+ <xsl:with-param name="cya" select="$node/@cy"/>
+ <xsl:with-param name="x1a" select="$node/@x1"/>
+ <xsl:with-param name="y1a" select="$node/@y1"/>
+ <xsl:with-param name="x2a" select="$node/@x2"/>
+ <xsl:with-param name="y2a" select="$node/@y2"/>
+ <xsl:with-param name="xx" select="1"/>
+ <xsl:with-param name="yx" select="0"/>
+ <xsl:with-param name="xy" select="1"/>
+ <xsl:with-param name="yy" select="0"/>
+ <xsl:with-param name="dx" select="substring-before($args,' ')"/>
+ <xsl:with-param name="dy" select="substring-after($args,' ')"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="gradient-transform-helper">
+ <xsl:with-param name="cxa" select="$node/@cx"/>
+ <xsl:with-param name="cya" select="$node/@cy"/>
+ <xsl:with-param name="x1a" select="$node/@x1"/>
+ <xsl:with-param name="y1a" select="$node/@y1"/>
+ <xsl:with-param name="x2a" select="$node/@x2"/>
+ <xsl:with-param name="y2a" select="$node/@y2"/>
+ <xsl:with-param name="xx" select="1"/>
+ <xsl:with-param name="yx" select="0"/>
+ <xsl:with-param name="xy" select="1"/>
+ <xsl:with-param name="yy" select="0"/>
+ <xsl:with-param name="dx" select="$args"/>
+ <xsl:with-param name="dy" select="$args"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="starts-with($node/@gradientTransform,'scale')">
+ <xsl:variable name="args" select="normalize-space(substring-before(substring-after($node/@gradientTransform,'scale('),')'))"/>
+ <!-- If only one argument is provided, it's assumed for both -->
+ <xsl:choose>
+ <xsl:when test="contains($args,',')">
+ <xsl:call-template name="gradient-transform-helper">
+ <xsl:with-param name="cxa" select="$node/@cx"/>
+ <xsl:with-param name="cya" select="$node/@cy"/>
+ <xsl:with-param name="x1a" select="$node/@x1"/>
+ <xsl:with-param name="y1a" select="$node/@y1"/>
+ <xsl:with-param name="x2a" select="$node/@x2"/>
+ <xsl:with-param name="y2a" select="$node/@y2"/>
+ <xsl:with-param name="xx" select="substring-before($args,' ')"/>
+ <xsl:with-param name="yx" select="0"/>
+ <xsl:with-param name="xy" select="substring-after($args,' ')"/>
+ <xsl:with-param name="yy" select="0"/>
+ <xsl:with-param name="dx" select="0"/>
+ <xsl:with-param name="dy" select="0"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="gradient-transform-helper">
+ <xsl:with-param name="cxa" select="$node/@cx"/>
+ <xsl:with-param name="cya" select="$node/@cy"/>
+ <xsl:with-param name="x1a" select="$node/@x1"/>
+ <xsl:with-param name="y1a" select="$node/@y1"/>
+ <xsl:with-param name="x2a" select="$node/@x2"/>
+ <xsl:with-param name="y2a" select="$node/@y2"/>
+ <xsl:with-param name="xx" select="$args"/>
+ <xsl:with-param name="yx" select="0"/>
+ <xsl:with-param name="xy" select="$args"/>
+ <xsl:with-param name="yy" select="0"/>
+ <xsl:with-param name="dx" select="0"/>
+ <xsl:with-param name="dy" select="0"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise> <!-- Otherwise it's got to be a rotation -->
+ <xsl:variable name="args" select="normalize-space(substring-before(substring-after($node/@gradientTransform,'rotate('),')'))"/>
+ <xsl:choose>
+ <xsl:when test="function-available('math:sin') and function-available('math:cos')">
+ <xsl:variable name="sinOfAngle" select="math:sin($args div $degressInRadian)"/>
+ <xsl:variable name="cosOfAngle" select="math:cos($args div $degressInRadian)"/>
+ <xsl:call-template name="gradient-transform-helper">
+ <xsl:with-param name="cxa" select="$node/@cx"/>
+ <xsl:with-param name="cya" select="$node/@cy"/>
+ <xsl:with-param name="x1a" select="$node/@x1"/>
+ <xsl:with-param name="y1a" select="$node/@y1"/>
+ <xsl:with-param name="x2a" select="$node/@x2"/>
+ <xsl:with-param name="y2a" select="$node/@y2"/>
+ <xsl:with-param name="xx" select="$cosOfAngle"/>
+ <xsl:with-param name="yx" select="-$sinOfAngle"/>
+ <xsl:with-param name="xy" select="$sinOfAngle"/>
+ <xsl:with-param name="yy" select="$cosOfAngle"/>
+ <xsl:with-param name="dy" select="0"/>
+ <xsl:with-param name="dy" select="0"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:message>
+ <xsl:text>exslt:sin and exslt:cos must be supported for a gradient rotation.</xsl:text>
+ </xsl:message>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:text>,</xsl:text>
+ </xsl:template>
+
+ <!-- The following templates handle related batches of attributes -->
+
+ <xsl:template name="font">
+ <xsl:param name="node"/>
+ <!-- Only include if we have at least some font properties defined -->
+ <xsl:if test="$node/@font-style or $node/@font-variant or $node/@font-weight or $node/@font-size or $node/@font-family">
+ <xsl:text>font:{ type:"font",</xsl:text>
+ <xsl:if test="$node/@font-style">
+ <xsl:text>style:"</xsl:text>
+ <xsl:value-of select="$node/@font-style"/>
+ <xsl:text>",</xsl:text>
+ </xsl:if>
+ <xsl:if test="$node/@font-variant">
+ <xsl:text>variant:"</xsl:text>
+ <xsl:value-of select="$node/@font-variant"/>
+ <xsl:text>",</xsl:text>
+ </xsl:if>
+ <xsl:if test="$node/@font-weight">
+ <xsl:text>weight:"</xsl:text>
+ <xsl:value-of select="$node/@font-weight"/>
+ <xsl:text>",</xsl:text>
+ </xsl:if>
+ <xsl:if test="$node/@font-size">
+ <xsl:text>size:"</xsl:text>
+ <xsl:value-of select="$node/@font-size"/>
+ <xsl:text>",</xsl:text>
+ </xsl:if>
+ <xsl:if test="$node/@font-family">
+ <xsl:text>family:"</xsl:text>
+ <xsl:value-of select="$node/@font-family"/>
+ <xsl:text>",</xsl:text>
+ </xsl:if>
+ <xsl:text>},</xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template name="stroke">
+ <xsl:param name="node"/>
+ <!-- Only include if we have at least some stroke properties defined -->
+ <xsl:if test="$node/@stroke or $node/@stroke-width or $node/@stroke-linecap or $node/@stroke-linejoin">
+ <xsl:text>stroke:{</xsl:text>
+ <!-- We don't currently handle stroke-dasharray or stroke-dashoffset -->
+ <!-- Note that while we'll pass stroke background info, GFX won't yet use it. -->
+ <xsl:if test="$node/@stroke">
+ <xsl:text>color:</xsl:text>
+ <xsl:call-template name="background-processor">
+ <xsl:with-param name="background" select="$node/@stroke"/>
+ </xsl:call-template>
+ </xsl:if>
+ <xsl:if test="$node/@stroke-width">
+ <xsl:text>width:"</xsl:text>
+ <xsl:value-of select="$node/@stroke-width"/>
+ <xsl:text>",</xsl:text>
+ </xsl:if>
+ <xsl:if test="$node/@stroke-linecap">
+ <xsl:text>cap:"</xsl:text>
+ <xsl:value-of select="$node/@stroke-linecap"/>
+ <xsl:text>",</xsl:text>
+ </xsl:if>
+ <xsl:if test="$node/@stroke-linejoin">
+ <xsl:text>join:"</xsl:text>
+ <xsl:value-of select="$node/@stroke-linejoin"/>
+ <xsl:text>",</xsl:text>
+ </xsl:if>
+ <xsl:choose>
+ <!-- This is really cheesy but better than nothing. -->
+ <!-- We probably ought to match a few specific cases when we can. %FIX% -->
+ <xsl:when test="$node/@stroke-dasharray">
+ <xsl:text>style:"Dash",</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>style:"Solid",</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:text>},</xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template name="common-attributes">
+ <xsl:param name="node"/>
+ <!-- Pretty much every shape has to handle this same batch of attributes. -->
+ <xsl:apply-templates select="$node/@style"/>
+ <!-- Note that we make no effort to guard against overlapping styles. -->
+ <xsl:apply-templates select="$node/@fill"/>
+ <xsl:call-template name="stroke">
+ <xsl:with-param name="node" select="$node"/>
+ </xsl:call-template>
+ <xsl:apply-templates select="$node/@transform"/>
+ <!-- Fonts are actually illegal in most shapes, but including them here doesn't -->
+ <!-- really slow things down much and does clean up code a bit for the shapes -->
+ <!-- that do allow them. -->
+ <xsl:call-template name="font">
+ <xsl:with-param name="node" select="$node"/>
+ </xsl:call-template>
+ <!-- Ditto for stop-colors. -->
+ <xsl:apply-templates select="$node/@stop-color"/>
+ </xsl:template>
+
+ <!-- SVG Attribute Handling -->
+
+ <xsl:template match="@id">
+ <xsl:text>name:"</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>",</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="@x|@y|@x1|@x2|@y1|@y2|@cx|@cy|@r|@rx|@ry|@fx|@fy|@width|@height|@offset">
+ <!-- Generic attribute followed by comma -->
+ <xsl:value-of select="local-name()"/>
+ <xsl:text>:</xsl:text>
+ <xsl:value-of select="."/>
+ <xsl:text>,</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="@d">
+ <!-- Used only by path objects; often has tons of extra whitespace -->
+ <xsl:text>path:"</xsl:text>
+ <xsl:value-of select="normalize-space(.)"/>
+ <xsl:text>",</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="@fill">
+ <!-- Used by most shapes and can have a URL, a solid color, or "none" -->
+ <xsl:if test=". != 'none'">
+ <xsl:text>fill:</xsl:text>
+ <xsl:call-template name="background-processor">
+ <xsl:with-param name="background" select="."/>
+ </xsl:call-template>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="@stop-color">
+ <xsl:call-template name="color-processor">
+ <xsl:with-param name="color" select="."/>
+ </xsl:call-template>
+ </xsl:template>
+
+ <xsl:template match="@style">
+ <!-- A style property is really a bunch of other properties crammed together. -->
+ <!-- We therefore make a dummy element and process it as normal. -->
+ <xsl:variable name="dummy">
+ <dummy>
+ <xsl:call-template name="styles-processor">
+ <xsl:with-param name="styles" select="."/>
+ </xsl:call-template>
+ </dummy>
+ </xsl:variable>
+ <xsl:choose>
+ <!-- Using a dummy element requires node-set capability. Straight XSLT 1.0 -->
+ <!-- lacks this, but pretty much every XSLT processor offers it as an extension. -->
+ <xsl:when test="function-available('exsl:node-set')">
+ <xsl:call-template name="common-attributes">
+ <xsl:with-param name="node" select="exsl:node-set($dummy)/dummy"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="function-available('saxon:node-set')">
+ <xsl:call-template name="common-attributes">
+ <xsl:with-param name="node" select="saxon:node-set($dummy)"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="function-available('xalan:nodeSet')">
+ <xsl:call-template name="common-attributes">
+ <xsl:with-param name="node" select="xalan:nodeSet($dummy)"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:message>
+ <xsl:text>exslt:node-set is required for processing the style attribute.</xsl:text>
+ </xsl:message>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="@transform|@gradientTransform">
+ <!-- Several transform types are supported -->
+ <xsl:text>transform:{</xsl:text>
+ <xsl:call-template name="transform-processor">
+ <xsl:with-param name="transforms" select="."/>
+ </xsl:call-template>
+ <xsl:text>}</xsl:text>
+ <xsl:if test="not(position()=last())">
+ <xsl:text >,</xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <!-- SVG Element Handling -->
+
+ <xsl:template match="svg:a">
+ <xsl:param name="groupAttrs" select="''"/>
+ <!-- Anchors are actually meaningless to us, but their contents should usually be processed. -->
+ <xsl:variable name="newGroupAttrs">
+ <xsl:value-of select="$groupAttrs"/>
+ <xsl:apply-templates select="@style"/>
+ <!-- Note that we make no effort to guard against overlapping styles; we just order -->
+ <!-- them to be consistent. This naive approach will usually, but not always, work. -->
+ <xsl:apply-templates select="@fill"/>
+ <xsl:call-template name="stroke">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:apply-templates select="&SupportedElements;">
+ <xsl:with-param name="groupAttrs" select="$newGroupAttrs"/>
+ </xsl:apply-templates>
+ </xsl:template>
+
+ <xsl:template match="svg:circle">
+ <xsl:param name="groupAttrs" select="''"/>
+ <xsl:text>{</xsl:text>
+ <xsl:apply-templates select="@id"/>
+ <xsl:text>shape:{type:"circle",</xsl:text>
+ <xsl:apply-templates select="@cx|@cy|@r"/>
+ <xsl:text>},</xsl:text>
+ <xsl:value-of select="$groupAttrs"/>
+ <xsl:call-template name="common-attributes">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ <xsl:text>}</xsl:text>
+ <xsl:if test="not(position()=last())">
+ <xsl:text >,</xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="svg:ellipse">
+ <xsl:param name="groupAttrs" select="''"/>
+ <xsl:text>{</xsl:text>
+ <xsl:apply-templates select="@id"/>
+ <xsl:text>shape:{type:"ellipse",</xsl:text>
+ <xsl:apply-templates select="@cx|@cy|@rx|@ry"/>
+ <xsl:text>}</xsl:text>
+ <xsl:value-of select="$groupAttrs"/>
+ <xsl:call-template name="common-attributes">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ <xsl:text>}</xsl:text>
+ <xsl:if test="not(position()=last())">
+ <xsl:text >,</xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="svg:g">
+ <xsl:param name="groupAttrs" select="''"/>
+ <!-- The basic grouping type can contain shapes, other groups, and have a transform -->
+ <xsl:text>{</xsl:text>
+ <xsl:apply-templates select="@id"/>
+ <xsl:text>children:[</xsl:text>
+ <!-- Note that GFX does not yet support fills etc. on a group, even though SVG does. -->
+ <!-- It's a planned enhancement though, so when GFX gets the ability to handle these, -->
+ <!-- remove the following ten lines and stop propagating groupAttrs. -->
+ <xsl:variable name="newGroupAttrs">
+ <xsl:value-of select="$groupAttrs"/>
+ <xsl:apply-templates select="@style"/>
+ <!-- Note that we make no effort to guard against overlapping styles; we just order -->
+ <!-- them to be consistent. This naive approach will usually, but not always, work. -->
+ <xsl:apply-templates select="@fill"/>
+ <xsl:call-template name="stroke">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:apply-templates select="&SupportedElements;">
+ <xsl:with-param name="groupAttrs" select="$newGroupAttrs"/>
+ </xsl:apply-templates>
+ <xsl:text>]</xsl:text>
+ <xsl:if test="not(position()=last())">
+ <xsl:text >,</xsl:text>
+ </xsl:if>
+ <!-- When GFX gets group fills etc., remove the following line and uncomment the ones below. -->
+ <xsl:apply-templates select="@transform"/>
+ <!--<xsl:call-template name="common-attributes">-->
+ <!-- <xsl:with-param name="node" select="."/>-->
+ <!--</xsl:call-template>-->
+ <xsl:text>}</xsl:text>
+ <xsl:if test="not(position()=last())">
+ <xsl:text >,</xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="svg:image">
+ <xsl:param name="groupAttrs" select="''"/>
+ <!-- Note that images must be GIF, JPEG, or PNG. -->
+ <xsl:if test="not(parent::pattern)">
+ <!-- When being used as a background pattern we don't want type info. -->
+ <xsl:text>{</xsl:text>
+ <xsl:apply-templates select="@id"/>
+ <xsl:text>shape:{type:"image",</xsl:text>
+ </xsl:if>
+ <xsl:apply-templates select="@x|@y|@width|@height"/>
+ <xsl:text>src:"</xsl:text>
+ <xsl:value-of select="@xlink:href"/>
+ <xsl:text>",</xsl:text>
+ <xsl:if test="not(parent::pattern)">
+ <xsl:text>},</xsl:text>
+ <xsl:value-of select="$groupAttrs"/>
+ <xsl:call-template name="common-attributes">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ <xsl:text>},</xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="svg:line">
+ <xsl:param name="groupAttrs" select="''"/>
+ <xsl:text>{</xsl:text>
+ <xsl:apply-templates select="@id"/>
+ <xsl:text>shape:{type:"line",</xsl:text>
+ <xsl:apply-templates select="@x1|@y1|@x2|@y2"/>
+ <xsl:text>},</xsl:text>
+ <xsl:value-of select="$groupAttrs"/>
+ <xsl:call-template name="common-attributes">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ <xsl:text>}</xsl:text>
+ <xsl:if test="not(position()=last())">
+ <xsl:text >,</xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="svg:linearGradient">
+ <xsl:text>{type:"linear",</xsl:text>
+ <!-- Kluge alert - GFX doesn't handle gradientTransforms. We can help in -->
+ <!-- the common case of matrix transforms in user space. Other cases we ignore. -->
+ <!-- Even for this one case the results aren't anywhere near as good as real support in GFX. -->
+ <xsl:choose>
+ <!-- Kluge alert - this code is only meant to serve until GFX gets gradientTransform support. -->
+ <!-- Once GFX does gradientTransforms, only the straight apply-templates should be kept. -->
+ <xsl:when test="starts-with(@gradientTransform,'matrix') and @gradientUnits='userSpaceOnUse'">
+ <xsl:call-template name="gradient-adjuster">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="@x1|@x2|@y1|@y2"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:text>colors:[</xsl:text>
+ <xsl:apply-templates select="svg:stop"/>
+ <!-- Unfortunately GFX doesn't do gradientTransforms. -->
+ <!-- Uncommenting the following would support it here. -->
+ <!-- <xsl:apply-templates select="@x1|@x2|@y1|@y2"/> -->
+ <!-- <xsl:apply-templates select="@gradientTransform"/> -->
+ <xsl:text>]}</xsl:text>
+ <xsl:if test="not(position()=last())">
+ <xsl:text >,</xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="svg:path">
+ <xsl:param name="groupAttrs" select="''"/>
+ <xsl:if test="not(parent::textpath)">
+ <!-- When being used within a textpath we don't want type info. -->
+ <xsl:text>{</xsl:text>
+ <xsl:apply-templates select="@id"/>
+ <xsl:text>shape:{type:"path",</xsl:text>
+ </xsl:if>
+ <xsl:apply-templates select="@d"/>
+ <xsl:if test="not(parent::textpath)">
+ <xsl:text>},</xsl:text>
+ <xsl:value-of select="$groupAttrs"/>
+ <xsl:call-template name="common-attributes">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ <xsl:text>},</xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="svg:pattern">
+ <!-- GFX only seems to handle image pattern type fills, so that's all we do -->
+ <xsl:text>{type:"pattern",</xsl:text>
+ <xsl:apply-templates select="@width|@height|@xlink:href"/>
+ <xsl:text>}</xsl:text>
+ <xsl:if test="not(position()=last())">
+ <xsl:text >,</xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="svg:polygon|svg:polyline">
+ <xsl:param name="groupAttrs" select="''"/>
+ <!-- Polygons are mostly treated as polylines -->
+ <xsl:text>{</xsl:text>
+ <xsl:apply-templates select="@id"/>
+ <xsl:text>shape:{type:"polyline",points:[</xsl:text>
+ <!-- We just have to ensure that endpoints match for a polygon; it's assumed in SVG -->
+ <xsl:variable name="seminormalizedPoints" select="normalize-space(@points)"/>
+ <xsl:variable name="normalizedPoints">
+ <xsl:call-template name="kill-extra-spaces">
+ <xsl:with-param name="string" select="$seminormalizedPoints"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:variable name="firstPoint" select="substring-before($normalizedPoints,' ')"/>
+ <xsl:choose>
+ <xsl:when test="contains(local-name(),'polygon') and
+ $firstPoint!=substring($normalizedPoints,string-length($normalizedPoints)-string-length($firstPoint)+1)">
+ <xsl:call-template name="point-processor">
+ <xsl:with-param name="points" select="concat($normalizedPoints,' ',$firstPoint)"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="point-processor">
+ <xsl:with-param name="points" select="$normalizedPoints"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:text>]},</xsl:text>
+ <xsl:value-of select="$groupAttrs"/>
+ <xsl:call-template name="common-attributes">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ <xsl:text>}</xsl:text>
+ <xsl:if test="not(position()=last())">
+ <xsl:text >,</xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="svg:radialGradient">
+ <xsl:text>{type:"radial",</xsl:text>
+ <!-- Kluge alert - GFX doesn't handle gradientTransforms. We can help in -->
+ <!-- the common case of matrix transforms in user space. Other cases we ignore. -->
+ <!-- Even for this one case the results aren't anywhere near as good as real support in GFX. -->
+ <xsl:choose>
+ <!-- Kluge alert - this code is only meant to serve until GFX gets gradientTransform support. -->
+ <!-- Once GFX does gradientTransforms, only the straight apply-templates should be kept. -->
+ <xsl:when test="starts-with(@gradientTransform,'matrix') and @gradientUnits='userSpaceOnUse'">
+ <xsl:call-template name="gradient-adjuster">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="@cx|@cy|@r"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <!-- GFX doesn't currently support fx & fy -->
+ <!-- Uncommenting the following would support it here. -->
+ <!-- <xsl:apply-templates select="@fx|@fy"/> -->
+ <xsl:text>colors:[</xsl:text>
+ <xsl:apply-templates select="svg:stop"/>
+ <!-- Unfortunately GFX doesn't do gradientTransforms. -->
+ <!-- Uncommenting the following would support it here. -->
+ <!-- <xsl:apply-templates select="@cx|@cy|@r"/> -->
+ <!-- <xsl:apply-templates select="@gradientTransform"/> -->
+ <xsl:text>]}</xsl:text>
+ <xsl:if test="not(position()=last())">
+ <xsl:text >,</xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="svg:rect">
+ <xsl:param name="groupAttrs" select="''"/>
+ <xsl:text>{</xsl:text>
+ <xsl:apply-templates select="@id"/>
+ <xsl:text>shape:{type:"rect",</xsl:text>
+ <xsl:apply-templates select="@x|@y|@width|@height"/>
+ <xsl:if test="@rx and @ry">
+ <!-- Do approximate rounded corners if both an rx and ry are present. -->
+ <xsl:variable name="r" select="(@rx+@ry) div 2"/>
+ <xsl:text>r:</xsl:text>
+ <xsl:value-of select="$r"/>
+ </xsl:if>
+ <xsl:text>},</xsl:text>
+ <xsl:value-of select="$groupAttrs"/>
+ <xsl:call-template name="common-attributes">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ <xsl:text>}</xsl:text>
+ <xsl:if test="not(position()=last())">
+ <xsl:text >,</xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="svg:stop">
+ <!-- Both gradient types use the same sort of stops -->
+ <xsl:text>{</xsl:text>
+ <xsl:apply-templates select="@offset"/>
+ <xsl:text>color:</xsl:text>
+ <xsl:apply-templates select="@style"/>
+ <xsl:text>}</xsl:text>
+ <xsl:if test="not(position()=last())">
+ <xsl:text >,</xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="svg:text|svg:textPath">
+ <xsl:param name="groupAttrs" select="''"/>
+ <!-- Support for textPath is not functional as GFX doesn't seem to have a -->
+ <!-- complete serialized form at this time. %FIX% -->
+ <xsl:text>{</xsl:text>
+ <xsl:apply-templates select="@id"/>
+ <xsl:choose>
+ <xsl:when test="contains(local-name(),'textpath')">
+ <xsl:text>shape:{type:"textpath",text:"</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>",</xsl:text>
+ <xsl:variable name="arguments" select="translate(normalize-space(substring-before(substring-after(@xlink:href,'('),')')),' ',',')"/>
+ <xsl:call-template name="url-processor">
+ <xsl:with-param name="url" select="$arguments"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- Regular text has slightly different attributes -->
+ <xsl:choose>
+ <!-- It's possible for a text element to contain a textpath element. -->
+ <xsl:when test="not(textpath)">
+ <xsl:text>shape:{type:"text",text:"</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>",</xsl:text>
+ <xsl:apply-templates select="@x|@y"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:text>},</xsl:text>
+ <!-- Kluge alert - if no fill is defined, GFX won't display anything -->
+ <!-- Our quick fix here is to force a fill of some sort. -->
+ <xsl:if test="not(@fill)">
+ <xsl:text>fill:"#000000",</xsl:text>
+ </xsl:if>
+ <xsl:value-of select="$groupAttrs"/>
+ <xsl:call-template name="common-attributes">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ <xsl:text>}</xsl:text>
+ <xsl:if test="not(position()=last())">
+ <xsl:text >,</xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="svg:use">
+ <xsl:param name="groupAttrs" select="''"/>
+ <!-- Use just refers to an existing element, essentially duplicating it. -->
+ <xsl:variable name="newGroupAttrs">
+ <xsl:value-of select="$groupAttrs"/>
+ <xsl:apply-templates select="@style"/>
+ <!-- Note that we make no effort to guard against overlapping styles; we just order -->
+ <!-- them to be consistent. This naive approach will usually, but not always, work. -->
+ <xsl:apply-templates select="@fill"/>
+ <xsl:call-template name="stroke">
+ <xsl:with-param name="node" select="."/>
+ </xsl:call-template>
+ <xsl:apply-templates select="@transform"/>
+ </xsl:variable>
+ <xsl:call-template name="url-processor">
+ <xsl:with-param name="url" select="normalize-space(@xlink:href)"/>
+ <xsl:with-param name="groupAttrs" select="$newGroupAttrs"/>
+ </xsl:call-template>
+ </xsl:template>
+
+ <!-- The main SVG element itself -->
+
+ <xsl:template match="/svg:svg">
+ <xsl:text>[</xsl:text>
+ <xsl:apply-templates select="&SupportedElements;"/>
+ <xsl:text>]</xsl:text>
+ </xsl:template>
+</xsl:stylesheet>
View
15 kanjivg/static/kanjivg/svgs/100_frames.svg
@@ -0,0 +1,15 @@
+<svg width="218px" height="109px" viewBox="0 0 218px 109px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" version="1.1" baseProfile="full">
+<line x1="1" y1="1" x2="217" y2="1" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="1" x2="1" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="108" x2="217" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="217" y1="1" x2="217" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="109" y1="1" x2="109" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="54" x2="217" y2="54" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<line x1="55" y1="1" x2="55" y2="108" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<line x1="164" y1="1" x2="164" y2="108" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<path d="M53.43,52.09c-3.82-10.58-11.92-16.79-21.6-16.79s-21.2,6.36-21.2,26.09c0,21.59,8.05,31.28,20.48,31.28s19.36-9.25,22.43-17.24" style="fill:none;stroke:black;stroke-width:3" />
+<circle cx="53.43" cy="52.09" r="5" stroke-width="0" fill="#FF2A00" opacity="0.7" />
+<path d="M162.43,52.09c-3.82-10.58-11.92-16.79-21.6-16.79s-21.2,6.36-21.2,26.09c0,21.59,8.05,31.28,20.48,31.28s19.36-9.25,22.43-17.24" style="fill:none;stroke:#999;stroke-width:3" />
+<path d="M162.87,15.39c0,5.92,0,67.26,0,77.09" style="fill:none;stroke:black;stroke-width:3" />
+<circle cx="162.87" cy="15.39" r="5" stroke-width="0" fill="#FF2A00" opacity="0.7" />
+</svg>
View
15 kanjivg/static/kanjivg/svgs/101_frames.svg
@@ -0,0 +1,15 @@
+<svg width="218px" height="109px" viewBox="0 0 218px 109px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" version="1.1" baseProfile="full">
+<line x1="1" y1="1" x2="217" y2="1" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="1" x2="1" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="108" x2="217" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="217" y1="1" x2="217" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="109" y1="1" x2="109" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="54" x2="217" y2="54" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<line x1="55" y1="1" x2="55" y2="108" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<line x1="164" y1="1" x2="164" y2="108" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<path d="M57.18,62.25c1.16-15.17-6.17-27.25-21.64-27.25c-13.87,0-25.51,10.84-25.51,27.89s6.58,29.62,24.64,29.62S,55.2,79.95,57.22,74.31" style="fill:none;stroke:black;stroke-width:3" />
+<circle cx="57.18" cy="62.25" r="5" stroke-width="0" fill="#FF2A00" opacity="0.7" />
+<path d="M166.18,62.25c1.16-15.17-6.17-27.25-21.64-27.25c-13.87,0-25.51,10.84-25.51,27.89s6.58,29.62,24.64,29.62S,55.2,79.95,57.22,74.31" style="fill:none;stroke:#999;stroke-width:3" />
+<path d="M120.12,62.9c6.94,0,36.08,0,45.76,0" style="fill:none;stroke:black;stroke-width:3" />
+<circle cx="120.12" cy="62.9" r="5" stroke-width="0" fill="#FF2A00" opacity="0.7" />
+</svg>
View
15 kanjivg/static/kanjivg/svgs/102_frames.svg
@@ -0,0 +1,15 @@
+<svg width="218px" height="109px" viewBox="0 0 218px 109px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" version="1.1" baseProfile="full">
+<line x1="1" y1="1" x2="217" y2="1" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="1" x2="1" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="108" x2="217" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="217" y1="1" x2="217" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="109" y1="1" x2="109" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="54" x2="217" y2="54" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<line x1="55" y1="1" x2="55" y2="108" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<line x1="164" y1="1" x2="164" y2="108" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<path d="M46.24,16.8C33.66,13.04,23.9,17.38,23.9,28.94c0,11.57,0,55.91,0,63.86" style="fill:none;stroke:black;stroke-width:3" />
+<circle cx="46.24" cy="16.8" r="5" stroke-width="0" fill="#FF2A00" opacity="0.7" />
+<path d="M155.24,16.8C142.66,13.04,132.9,17.38,132.9,28.94c0,11.57,0,55.91,0,63.86" style="fill:none;stroke:#999;stroke-width:3" />
+<path d="M118.32,36.74c5.35,0,30.01,0,35.64,0" style="fill:none;stroke:black;stroke-width:3" />
+<circle cx="118.32" cy="36.74" r="5" stroke-width="0" fill="#FF2A00" opacity="0.7" />
+</svg>
View
21 kanjivg/static/kanjivg/svgs/103_frames.svg
@@ -0,0 +1,21 @@
+<svg width="327px" height="109px" viewBox="0 0 327px 109px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" version="1.1" baseProfile="full">
+<line x1="1" y1="1" x2="326" y2="1" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="1" x2="1" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="108" x2="326" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="326" y1="1" x2="326" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="109" y1="1" x2="109" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="218" y1="1" x2="218" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="54" x2="326" y2="54" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<line x1="55" y1="1" x2="55" y2="108" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<line x1="164" y1="1" x2="164" y2="108" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<line x1="273" y1="1" x2="273" y2="108" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<path d="M33.38,35.01c-16.18,0-21.35,9.1-21.35,15.9s4.3,16.62,21.64,16.62c15.46,0,20.88-8.38,20.88-15.17s-4.84-17.37-21.12-17.37" style="fill:none;stroke:black;stroke-width:3" />
+<circle cx="33.38" cy="35.01" r="5" stroke-width="0" fill="#FF2A00" opacity="0.7" />
+<path d="M142.38,35.01c-16.18,0-21.35,9.1-21.35,15.9s4.3,16.62,21.64,16.62c15.46,0,20.88-8.38,20.88-15.17s-4.84-17.37-21.12-17.37" style="fill:none;stroke:#999;stroke-width:3" />
+<path d="M169.69,34.72c-5.49-1.45-8.38,0.43-11.17,3.9" style="fill:none;stroke:black;stroke-width:3" />
+<circle cx="169.69" cy="34.72" r="5" stroke-width="0" fill="#FF2A00" opacity="0.7" />
+<path d="M251.38,35.01c-16.18,0-21.35,9.1-21.35,15.9s4.3,16.62,21.64,16.62c15.46,0,20.88-8.38,20.88-15.17s-4.84-17.37-21.12-17.37" style="fill:none;stroke:#999;stroke-width:3" />
+<path d="M278.69,34.72c-5.49-1.45-8.38,0.43-11.17,3.9" style="fill:none;stroke:#999;stroke-width:3" />
+<path d="M236.6,65.64c-3.72,2.31-7.39,13.03,4.91,14.16C250.9,80.67,257.0,81.1,264.52,81.65c10.12,0.75,11.57,8.84,11.57,12.32c0,4.48-3.9,14.44-23.27,14.44s-25.58-6.5-25.58-14.4c0-7.66,4.34-11.47,9.49-14.46" style="fill:none;stroke:black;stroke-width:3" />
+<circle cx="236.6" cy="65.64" r="5" stroke-width="0" fill="#FF2A00" opacity="0.7" />
+</svg>
View
15 kanjivg/static/kanjivg/svgs/104_frames.svg
@@ -0,0 +1,15 @@
+<svg width="218px" height="109px" viewBox="0 0 218px 109px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" version="1.1" baseProfile="full">
+<line x1="1" y1="1" x2="217" y2="1" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="1" x2="1" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="108" x2="217" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="217" y1="1" x2="217" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="109" y1="1" x2="109" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="54" x2="217" y2="54" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<line x1="55" y1="1" x2="55" y2="108" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<line x1="164" y1="1" x2="164" y2="108" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<path d="M13.72,15.43c0,5.35,0,69.79,0,77.16" style="fill:none;stroke:black;stroke-width:3" />
+<circle cx="13.72" cy="15.43" r="5" stroke-width="0" fill="#FF2A00" opacity="0.7" />
+<path d="M122.72,15.43c0,5.35,0,69.79,0,77.16" style="fill:none;stroke:#999;stroke-width:3" />
+<path d="M122.88,52.69c12.71-24.62,39.76-21.38,39.76-4.52c0,19.22,0,37.48,0,44.42" style="fill:none;stroke:black;stroke-width:3" />
+<circle cx="122.88" cy="52.69" r="5" stroke-width="0" fill="#FF2A00" opacity="0.7" />
+</svg>
View
10 kanjivg/static/kanjivg/svgs/105_frames.svg
@@ -0,0 +1,10 @@
+<svg width="109px" height="109px" viewBox="0 0 109px 109px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" version="1.1" baseProfile="full">
+<line x1="1" y1="1" x2="108" y2="1" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="1" x2="1" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="108" x2="108" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="108" y1="1" x2="108" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="54" x2="108" y2="54" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<line x1="55" y1="1" x2="55" y2="108" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<path d="M13.72,34.93c0,5.35,0,50.54,0,57.91" style="fill:none;stroke:black;stroke-width:3" />
+<circle cx="13.72" cy="34.93" r="5" stroke-width="0" fill="#FF2A00" opacity="0.7" />
+</svg>
View
10 kanjivg/static/kanjivg/svgs/106_frames.svg
@@ -0,0 +1,10 @@
+<svg width="109px" height="109px" viewBox="0 0 109px 109px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" version="1.1" baseProfile="full">
+<line x1="1" y1="1" x2="108" y2="1" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="1" x2="1" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="108" x2="108" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="108" y1="1" x2="108" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="54" x2="108" y2="54" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<line x1="55" y1="1" x2="55" y2="108" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<path d="M21.47,34.93c0,5.35,0,52.29,0,59.66c0,12.38-6.16,13.68-18.01,13.68" style="fill:none;stroke:black;stroke-width:3" />
+<circle cx="21.47" cy="34.93" r="5" stroke-width="0" fill="#FF2A00" opacity="0.7" />
+</svg>
View
21 kanjivg/static/kanjivg/svgs/107_frames.svg
@@ -0,0 +1,21 @@
+<svg width="327px" height="109px" viewBox="0 0 327px 109px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" version="1.1" baseProfile="full">
+<line x1="1" y1="1" x2="326" y2="1" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="1" x2="1" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="108" x2="326" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="326" y1="1" x2="326" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="109" y1="1" x2="109" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="218" y1="1" x2="218" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="54" x2="326" y2="54" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<line x1="55" y1="1" x2="55" y2="108" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<line x1="164" y1="1" x2="164" y2="108" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<line x1="273" y1="1" x2="273" y2="108" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<path d="M13.72,15.43c0,5.35,0,69.79,0,77.16" style="fill:none;stroke:black;stroke-width:3" />
+<circle cx="13.72" cy="15.43" r="5" stroke-width="0" fill="#FF2A00" opacity="0.7" />
+<path d="M122.72,15.43c0,5.35,0,69.79,0,77.16" style="fill:none;stroke:#999;stroke-width:3" />
+<path d="M162.56,35.29C151.44,43.1,140.18,50.53,126.3,60.07" style="fill:none;stroke:black;stroke-width:3" />
+<circle cx="162.56" cy="35.29" r="5" stroke-width="0" fill="#FF2A00" opacity="0.7" />
+<path d="M231.72,15.43c0,5.35,0,69.79,0,77.16" style="fill:none;stroke:#999;stroke-width:3" />
+<path d="M271.56,35.29C260.44,43.1,249.18,50.53,235.3,60.07" style="fill:none;stroke:#999;stroke-width:3" />
+<path d="M235.73,60.29c8.81,7.23,30.81,25.71,38.61,32.36" style="fill:none;stroke:black;stroke-width:3" />
+<circle cx="235.73" cy="60.29" r="5" stroke-width="0" fill="#FF2A00" opacity="0.7" />
+</svg>
View
10 kanjivg/static/kanjivg/svgs/108_frames.svg
@@ -0,0 +1,10 @@
+<svg width="109px" height="109px" viewBox="0 0 109px 109px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" version="1.1" baseProfile="full">
+<line x1="1" y1="1" x2="108" y2="1" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="1" x2="1" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="108" x2="108" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="108" y1="1" x2="108" y2="108" style="stroke:#ddd;stroke-width:2" />
+<line x1="1" y1="54" x2="108" y2="54" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<line x1="55" y1="1" x2="55" y2="108" style="stroke:#ddd;stroke-width:2;stroke-dasharray:3 3" />
+<path d="M13.47,15.43c0,5.35,0,69.79,0,77.16" style="fill:none;stroke:black;stroke-width:3" />
+<circle cx="13.47" cy="15.43" r="5" stroke-width="0" fill="#FF2A00" opacity="0.7" />
+</svg>
View
21 kanjivg/static/kanjivg/svgs/109_frames.svg
@@ -0,0 +1,21 @@
+<svg width="327px" height="109px" viewBox="0 0 327px 109px" xmlns="http://www.w3.org/2000/svg" xmlns