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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-12-2012, 03:23 PM   #1
Sharlene
Member
Sharlene began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2011
Device: none
Question Landscaping

How would I go about landscaping just one page in a book? Can it be done? What's the code? I have a chart that I need to put in a book, however, it is too squished in portrait orientation. If i can put it in landscape that would be best.

I've searched online, and all i've come up with is a bunch of gardening books

Thanks for your help
Sharlene is offline   Reply With Quote
Advert
Old 03-12-2012, 06:52 PM   #2
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,171
Karma: 4313976
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by Sharlene View Post
How would I go about landscaping just one page in a book? Can it be done? What's the code? I have a chart that I need to put in a book, however, it is too squished in portrait orientation. If i can put it in landscape that would be best.

I've searched online, and all i've come up with is a bunch of gardening books
AFAIK theres no way to "landscape" text. Not all devices support landscape!

I guess your chart is a picture of some kind, if not, make it to a picture (make a screenshot, get some processing software to cut the borders and flip it around by 90 degrees)...

This will probablly not look as nice as text, but it will work on any device, even it has no gyro sensor/landscape support.
mmat1 is offline   Reply With Quote
Old 03-12-2012, 09:21 PM   #3
Sharlene
Member
Sharlene began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2011
Device: none
Thank you very much MMAT1...I was thinking of doing that, when i couldn't find any information on the subject.

I will create an image of it, and hope that it turns out well.

Thank you again.
Cheers.
Sharlene is offline   Reply With Quote
Old 03-13-2012, 08:02 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,068
Karma: 9562279
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Two options:

1. Leave it as is. Many ebook readers can change the orientation between portrait and landscape on the fly, some with a buttor or menu, some just by rotating the reader physically.

2. If it's a picture, rotate the picture itself. The drawback is that if the ebook reader supports changing orientation by physical rotation, it must be disabled in order to view the picture properly, and that can be annoying. Also, what if someone is already reading a book in landscape (some people prefer this).

I would prefer the first, because it's more natural and makes fewer assumptions about the device that would be use and the preferences of the user.
Jellby is offline   Reply With Quote
Old 03-13-2012, 11:56 AM   #5
Sharlene
Member
Sharlene began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2011
Device: none
Thank you Jellby, but I can't leave it the way that it is. There are about 6 columns in this table, so viewing it as portrait creates a squished, unreadable table. It is also between text, so if i were to leave it, it would always look wrong no matter if you rotated the device or not.
Sharlene is offline   Reply With Quote
Advert
Old 03-13-2012, 01:52 PM   #6
SBT
Fanatic
SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.
 
SBT's Avatar
 
Posts: 580
Karma: 810182
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
SVG would be a possibility. I've used it to create captions for landscape images and for making a genealogy tree. Then you'd have a nice, scalable, rotatable text.
SBT is offline   Reply With Quote
Old 03-13-2012, 01:55 PM   #7
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,171
Karma: 4313976
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by SBT View Post
SVG would be a possibility. I've used it to create captions for landscape images and for making a genealogy tree. Then you'd have a nice, scalable, rotatable text.
Can you give us a Code-Snippet / Sample ??
mmat1 is offline   Reply With Quote
Old 03-13-2012, 03:20 PM   #8
SBT
Fanatic
SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.
 
SBT's Avatar
 
Posts: 580
Karma: 810182
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
A couple of samples from "Paa ski oer Gr°nland" by Fridtjof Nansen. First, an evolutionary tree of the ski:
Code:
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="33%" version="1.1" viewBox="0 0 600 300">
<g transform="translate(320 30)">
<g transform="translate(0 5)">
<polyline
    points="  -150 180, -130 200, 0 200, 0 230, 0 200,130 200, 150 180"
    style="stroke: black; stroke-width: 1; fill: none;"/>
</g>
<line style="stroke: black;" x1="150" x2="150" y1="125" y2="160"/>
<line style="stroke: black;" x1="-150" x2="-150" y1="125" y2="160"/>
<line style="stroke: black;" x1="-150" x2="-150" y1="65" y2="100"/>
<line style="stroke: black;" x1="-150" x2="-150" y1="5" y2="40"/>
      <text id="TextElement" x="-260" y="0" font-style="italic" font-size="22">
ikke-skindklŠdte ski (30:1)
 <tspan x="-210" y="60">
aandrer (18:1)
</tspan>
 <tspan x="-220" y="120">
tungusski (9:1)
</tspan>
 <tspan x="75" >
indianske snesko
</tspan>
 <tspan x="-270" y="180">
aflange skindklŠdte plader
</tspan>
 <tspan x="65">
vidjeplader, truger
</tspan>
 <tspan x="-75" y="260">
runde trŠplader.
</tspan>
</text>
</g>
</svg>
, and here is an example of an image and caption rotated 90 degrees:
Code:
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 380 962" preserveAspectRatio="xMidYMid meet">
    <image x="0" y="0" width="379" height="962" xlink:href="img/159.jpg" />
    <g transform="translate(350 575) rotate(270 0 0)">
       <text id="TextElement" x="0" y="0" font-style="italic" font-size="16">
          <tspan x="-204px" y="8px">Vestmanna°erne og Eyafjallaj÷kull ved solnedgang. (Af Th. Homlboe efter en skisse, taget af forf. mai 1882.)</tspan>
       </text>
    </g>
</svg>
SVG is a slightly tricky beast. Mainly because support is so patchy. In both the above examples, using SVG's support for centered text would make sense, but that feature is not supported by e.g. PRS-505. And of course it is tedious to code a table by hand, but with a soupcon of creativity and digital legerdemain it shouldn't be too time-consuming; a spreadsheet could do much of the work, I suppose.
Attached Thumbnails
Click image for larger version

Name:	skigraf.png
Views:	127
Size:	45.3 KB
ID:	83881   Click image for larger version

Name:	landscape.png
Views:	118
Size:	148.5 KB
ID:	83882  
SBT is offline   Reply With Quote
Old 03-13-2012, 04:07 PM   #9
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,068
Karma: 9562279
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
With tables, the question is: can't you find a better way of showing the information than a table? Tables are good for fixed-size media, but for devices that range from a mobile phone to an overhead proyector, maybe there's some better way.

If you must keep the table, good or not, then I'd convert it to an image.
Jellby is offline   Reply With Quote
Old 03-13-2012, 04:46 PM   #10
SBT
Fanatic
SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.
 
SBT's Avatar
 
Posts: 580
Karma: 810182
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
If you are willing to be right at the bleeding edge, you could go for EPUB3; the new standard supports CSS3 transformations, does it not?
SBT is offline   Reply With Quote
Old 03-13-2012, 04:55 PM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 48,080
Karma: 36908365
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by SBT View Post
If you are willing to be right at the bleeding edge, you could go for EPUB3; the new standard supports CSS3 transformations, does it not?
And just who will be able to actually read it?
JSWolf is offline   Reply With Quote
Old 03-13-2012, 05:47 PM   #12
SBT
Fanatic
SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.
 
SBT's Avatar
 
Posts: 580
Karma: 810182
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
Well, I sorta imagined EPUB3 books were made to be read
You've got Readium already; surely Android/iOS EPUB3 apps can't be far off?
I suppose it's a tech/time trade-off; spend 6 months finding a decent solution in EPUB2, or make it in EPUB3 now and wait 6 months before most people can read it
SBT is offline   Reply With Quote
Old 03-13-2012, 05:54 PM   #13
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,171
Karma: 4313976
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by SBT View Post
, and here is an example of an image and caption rotated 90 degrees:
Thanks !

I've no experience with svg right now, but that it rotates the text as well is quite interesting.

I'll to play a bit with the code, i guess....
mmat1 is offline   Reply With Quote
Old 03-14-2012, 10:41 AM   #14
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,068
Karma: 9562279
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
With SVG you can also rotate it by any angle or mirror it, very useful for Tom Sawyer or Through the Looking-Glass
Jellby is offline   Reply With Quote
Old 03-16-2012, 11:33 AM   #15
Sharlene
Member
Sharlene began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2011
Device: none
Thank you very much for the code snippets. I will also take some time to play around with it.

I was tired and stressed trying to figure it out, as well as running out of time, so, I just made all of the tables into images.

Thank you all for your help.
Sharlene is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump


All times are GMT -4. The time now is 09:20 PM.


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