Thread: SVG for iBooks?
View Single Post
Old 12-30-2012, 11:12 PM   #4
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
I'm pretty sure you'll never be usefully searchable if you specify the text a character at a time. If you rewrite this as a text tag with a tspan tag and multiple x locations (one per character), you should be able to achieve the same effect, but your text will be properly searchable (instead of being able to search for only one letter at a time). For example:

Code:
<text
         transform="matrix(1,0,0,-1,-37.57,-96.75)"
         id="text14"><tspan
           x="0 43.327873 74.9673 93.238899 117.6906 134.01413 172.10236 190.37395 225.30495"
           y="0"
           id="tspan16"
           style="font-size: 67px;font-variant:normal;font-weight:normal;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none" class="useFont_FinalFrontier">Patriots:</tspan></text>
Do not use <img> tags to include the SVG; if you do the text won't be searchable no matter what the SVG looks like. I *think* <object> and <embed> are also searchable, but I'm not certain. For sure, the text should be searchable if you include the svg code inline in the HTML.
dgatwood is offline   Reply With Quote