Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-20-2014, 02:13 PM   #1
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
Non rectangular shapes

Hi,

i read in the codesnippets

https://www.mobileread.com/forums/sho...10&postcount=5

how to float text around a non rectangular shape.

So i just sliced the shape into 6 parts and stacked them to the right using float.

Everything looks fine - in Sigil, but not in ADE. Even reading the following posts dealing with that i was not able to achieve this floating. In Ade the most right slice is ok, but the following do all have a top margin where i dont know where it comes from.

Has someone an idea on how to achieve that? I've attached an epub with my trials in section 1.

//rubeus
Attached Files
File Type: epub zzzzz.epub (48.1 KB, 115 views)
rubeus is offline   Reply With Quote
Old 09-21-2014, 01:08 PM   #2
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by rubeus View Post
Hi,

i read in the codesnippets

https://www.mobileread.com/forums/sho...10&postcount=5

how to float text around a non rectangular shape.

So i just sliced the shape into 6 parts and stacked them to the right using float.

Everything looks fine - in Sigil, but not in ADE. Even reading the following posts dealing with that i was not able to achieve this floating. In Ade the most right slice is ok, but the following do all have a top margin where i dont know where it comes from.

Has someone an idea on how to achieve that? I've attached an epub with my trials in section 1.

//rubeus
Please, read these threads (read all posts):

https://www.mobileread.com/forums/sho...d.php?t=213715

and

https://www.mobileread.com/forums/sho...60#post2821660

There you'll be able to see my aproximations to solve your issue.

Regards
Rubén
RbnJrg is offline   Reply With Quote
Advert
Old 09-22-2014, 02:00 PM   #3
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
Hi, thanks for showing more postings, but at least i'm too dumb to ust mirror the L from the left side to the right side. Can some enlighten me, please?

First section in the appendix is the original solution, second my try.
Attached Files
File Type: epub yyyyy.epub (4.6 KB, 116 views)
rubeus is offline   Reply With Quote
Old 09-22-2014, 04:15 PM   #4
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by rubeus View Post
Hi, thanks for showing more postings, but at least i'm too dumb to ust mirror the L from the left side to the right side. Can some enlighten me, please?

First section in the appendix is the original solution, second my try.
Well, one way to get what you want is:

1. In your .css stylesheet use:

Code:
p {
  text-align: justify;
  margin: 0;
  }

.Box1 {
  float: right;
  width: 90px; /* width of the vertical part of the "L" + 10px for right margin */
  height: 300px; /* height of the image */
}
	
.Box2 {
  float: right;
  width: 120px; /* width of the horizontal part of the "L" */
  height: 100px; /* height of the horizontal part of the "L" */
}

img.ToRight { /* this class is to align the image toward the right side */
  margin: 0;
  text-indent: 0;
  padding: 0;
  float: right;
}
2. In your .xhtml file use:

Code:
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus. Donec metus ligula, elementum at pellentesque pellentesque, suscipit ac nunc. Sed at velit nisl.</p>

  <div class="Box1"><img class="ToRight" alt="" height="300" src="../Images/UpsideL.png" width="200" /></div>

  <div class="Box2"></div>

  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus.</p>
Below you can see a screenshot of my ADE:

Click image for larger version

Name:	Image1.png
Views:	188
Size:	122.1 KB
ID:	128710

I also attach the respective .epub

Regards
Rubén
Attached Files
File Type: epub L-Shape (ToRightSide).epub (3.2 KB, 106 views)

Last edited by RbnJrg; 09-23-2014 at 08:39 PM.
RbnJrg is offline   Reply With Quote
Old 09-23-2014, 02:11 PM   #5
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
Thx that solved my problem
rubeus is offline   Reply With Quote
Advert
Old 01-17-2016, 12:44 PM   #6
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
Hi,

i need to dig this out again. I've problems with the normal L lefthanded and righthanded. The upside dow versions are ok.

I tried a lot of things with slicing and negative margins, and i achieved some solutions. But none of them are working in ADE 2.0. I know the examples in the epub snippets sticky thread, but im unable to make them work in ADE 2.0 or based on RMSDK readers, Can somebody help me?

//rubeus
Attached Files
File Type: epub yyyyy.epub (5.9 KB, 83 views)
rubeus is offline   Reply With Quote
Old 01-17-2016, 03:50 PM   #7
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by rubeus View Post
Hi,

i need to dig this out again. I've problems with the normal L lefthanded and righthanded. The upside dow versions are ok.

I tried a lot of things with slicing and negative margins, and i achieved some solutions. But none of them are working in ADE 2.0. I know the examples in the epub snippets sticky thread, but im unable to make them work in ADE 2.0 or based on RMSDK readers, Can somebody help me?

//rubeus
Sorry but I'm afraid you can't get what you want in ADE 2.0 ADE 2.0 -and also ADE 3.0- have problems to manage the property "float" to display images in a normal "L" layout.
RbnJrg is offline   Reply With Quote
Old 01-17-2016, 04:02 PM   #8
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
rubeus is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Text wrap around irregular shapes Doitsu ePub 18 05-05-2014 07:41 PM
PRS-300 Screen stuck with strange shapes Kryzn Sony Reader 5 09-08-2011 07:12 AM
DOC to EPUB: Shapes > Line Tool witch_wyzwurd ePub 3 11-28-2010 09:26 AM
capturing text overlaid/within non-rectangular images CharlesinCharge ePub 2 10-27-2010 04:53 AM
Mystery and Crime Mann, Jack: Grey Shapes, v1, 20 March 2008. Dr. Drib BBeB/LRF Books 0 03-20-2008 05:12 PM


All times are GMT -4. The time now is 04:01 AM.


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