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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-20-2018, 09:16 PM   #1
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 1,689
Karma: 11766398
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 6/5/iPad 1,2 & Air/Surface Pro/Kindle PW
Book View Bug - Oh My!

Priority: Really Low....

So I was playing with adding text to my SVG cover and used the code below. It displays fine in Preview, but only the image displays in Book View. Scrolling doesn't effect anything.

Is it bad code, or a bug?

Code:
<body style="margin:0; padding:0; text-align:center; background-color:white">
  <h1 style="display:none" title="Cover"></h1>

  <div style="margin:0; padding:0">
    <svg xmlns="http://www.w3.org/2000/svg" height="100%" width="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 605 745" style="font-size:2em" xmlns:xlink="http://www.w3.org/1999/xlink">

<text text-anchor="middle" x="302" y="-2em" style="fill:red;">
    <tspan>Book Title</tspan>
<tspan x="302" dy="1.5em">Short Stories</tspan>
    
  </text>
        <image width="605" height="605" xlink:href="../Images/cover.jpg"/>

    </svg>
  </div>
</body>
Thanks!

edit: It should display with the two lines of text centered above the image.

Last edited by Turtle91; 06-20-2018 at 09:47 PM.
Turtle91 is offline   Reply With Quote
Old 06-20-2018, 10:17 PM   #2
KevinH
Wizard
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 3,110
Karma: 1931746
Join Date: Nov 2009
Device: many
If the viewbox is 0,0,605,745, what does a negative y="-2em" mean? Should that be a dy?
KevinH is online now   Reply With Quote
Advert
Old 06-21-2018, 04:19 AM   #3
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,312
Karma: 2385865
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
mistake

Last edited by roger64; 06-21-2018 at 04:42 AM.
roger64 is offline   Reply With Quote
Old 06-21-2018, 08:58 PM   #4
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 1,689
Karma: 11766398
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 6/5/iPad 1,2 & Air/Surface Pro/Kindle PW
Quote:
Originally Posted by KevinH View Post
If the viewbox is 0,0,605,745, what does a negative y="-2em" mean? Should that be a dy?
The y=-2em is with respect to the text-anchor...if I understand it correctly. y="-2em" was how I got the text to appear above the <image>. Then the dy for the second line of text bumped it down to the next line...with respect to the first line...still above the image. I tried using a y=-340, y=-40, y=0, etc. and they didn't seem to work in conjunction with the text-anchor="middle". The -2em DID work in preview, but not in bookview.

It very well may be bad coding...I'm just not seeing how it should be different.
Turtle91 is offline   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
Elipsis character displays in code view but not in book view magmanpi Sigil 19 03-03-2014 05:45 AM
replace in book view changes view to code view cybmole Sigil 4 10-28-2012 02:20 PM
Sigil highlight Book View No Longer Shows in Code View Themus Sigil 4 10-04-2012 08:54 PM
quotes differences book view & code view cybmole Sigil 13 03-29-2011 02:53 AM
lock book view & code view windows into synch cybmole Sigil 5 01-19-2011 11:30 PM


All times are GMT -4. The time now is 04:52 PM.


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