Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 08-22-2012, 05:38 AM   #1
Hala Aly
Junior Member
Hala Aly began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2012
Device: kindle-fire
svg image inside span tag in mobi file not display numbers

when put svg image inside span tag like

Code:
<span>
<svg:svg xmlns="http://www.w3.org/1998/Math/MathML" xmlns:svg="http://www.w3.org/2000/svg" xmlns:svgmath="http://www.grigoriev.ru/svgmath" height="15.405117pt" width="14.613340pt" viewBox="0 -11.686934 14.613340 15.405117"><svg:metadata><svgmath:metrics top="15.4051171875" axis="7.70255859375" baseline="3.71818359375" bottom="0.0" /></svg:metadata><svg:g transform="translate(0.000000, -3.984375)"><svg:g transform="translate(5.066426, -1.599609)"><svg:text font-size="8.520000" text-anchor="middle" y="0.000000" x="2.240244" font-family="Times New Roman" fill="black">1</svg:text></svg:g><svg:g transform="translate(0.585938, 7.702559)"><svg:text font-size="8.520000" text-anchor="middle" y="0.000000" x="6.720732" font-family="Times New Roman" fill="black">100</svg:text></svg:g><svg:line stroke-width="0.585938" x1="0.000000" x2="14.613340" stroke="black" stroke-linecap="butt" stroke-dasharray="none" y1="0.000000" y2="0.000000" fill="none" /></svg:g></svg:svg>
</span>
the svg displayed correctly from xhtml but when generate mobi file using amazon kindle generator the fraction numbers does not appear but when use div instead of span it shown correctly. How can I display correct svg inside span????
Hala Aly is offline   Reply With Quote
Old 09-01-2012, 12:24 PM   #2
PageLab
Connoisseur
PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.
 
PageLab's Avatar
 
Posts: 70
Karma: 515184
Join Date: Sep 2011
Location: Brasília
Device: Kindle3, iPad, Nook, Kobo, Positivo Alfa
Hi Hala, do you really need SVG to do this? This would be easier/shorter:

Code:
  <p><sup>1</sup>&frasl;<sub>100</sub></p>
PageLab is offline   Reply With Quote
 
Advertisement
Old 09-12-2012, 03:24 AM   #3
Hala Aly
Junior Member
Hala Aly began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2012
Device: kindle-fire
Thanks PageLab for replay, but this simple svg is just for example I have more complicated svg's.
And I found a work around solution is to put svg in object tag and it just worked fine but I cannot resize the image.
Hala Aly is offline   Reply With Quote
Old 09-12-2012, 09:00 AM   #4
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,188
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Create a SVG and treat it like an image. Put it in an image tag.
Toxaris is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where else can a MOBI file have its cover image? Alissa Kindle Formats 6 07-13-2013 03:50 PM
Kindle Fire doesn't display some images in MOBI file RobFreundlich Devices 2 03-25-2012 08:15 AM
Can I get a .mobi file to open on the cover image? Todd Young Conversion 2 01-17-2012 03:25 PM
.mobi file will not display NCRoadRunner Conversion 9 11-14-2011 11:52 PM


All times are GMT -4. The time now is 03:22 PM.


MobileRead.com is a privately owned, operated and funded community.