I am trying to create an epub book. The book includes svg. I have previewed the book in kindle preview and it displays correctly. But when I open it in kindle app on Mac and iPad the display is all garbled. The book opens fine with Books on Mac and on iPad.
This is my OPF:
<?xml version="1.0" encoding="utf-8"?>
<package unique-identifier="UUID" version="2.0" xmlns="http://www.idpf.org/2007/opf">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<dc:identifier id="UUID" opf:scheme="UUID">6027d3fb-7896-4e90-8fdf-35c65cb94957</dc:identifier>
<dc:title>10 Songs, Vol 1</dc:title>
<dc:creator opf:role="aut">PK</dc:creator>
<dc:language>en</dc:language>
<meta property="dcterms:modified">2023-06-01T18:45:35</meta>
</metadata>
<manifest>
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml"/>
<item href="har-ghadi-badal-rahi-hai-concert.html" id="har-ghadi-concert" media-type="text/html"/>
</manifest>
<spine toc="ncx">
<itemref idref="har-ghadi-concert"/>
</spine>
<guide/>
</package>
The html file has following structure:
<!DOCTYPE html>
<html>
<body>
<svg> .. </svg>
</body>
</html>
How do I fix this?
Update: The book looks fine on Windows Kindle app too. Something to do with Apple ecosystem then?