Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 02-06-2021, 05:30 PM   #1
Milan2
Junior Member
Milan2 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2021
Device: iPhone
Post Initials in Sigil

Hi people,

Thank you very much for accepting me.

I am quite a newbie in creating ePubs in Sigil.

A new big issue came from out of nowhere by controlling the output...

I use big initials not only at the beginning of a chapter, but also in the middle of a chapter. Like a sub-chapter or so.

I would like to treat them like a picture, so I close them by tags <div> and <span> and I am trying my best with the CSS styles.

Everything works good till a page-break comes. The surrounding text is behaving in an uncontrollable way, it is either o.k., or the next <p> Is coming in front of a span and div with initial , or the initial stays on the previous page and the text goes to the next one.

What I really want is the initial to stay always in front of the following paragraphs and to be sailed around by the text like a picture. But if the initial together with the surrounding paragraph doesn’t fit to the previous page, than I won’t them both to be pushed to the next page, initial always to be the first and the following paragraphs next to the initial, behind and beneath of corse, not vice versa...

Any idea how to proceed?

thank you very much in advance
Milan2 is offline   Reply With Quote
Old 02-06-2021, 08:55 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,243
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I suspect that asking in the Sigil forum or the Epub forum would be better.

I'm going to assume that what you are calling big initials are drop caps. Are you placing them inside the same block tag as the rest of the sentence.

<p><img alt="A" class="initial_A" src="../Images/cap_A.jpg"/>ndthe rest of the sentence...</p>

Personally I am not overly fond of drop caps since they are a total PITA to try to have look good over different platforms and screen resolutions.
DNSB is offline   Reply With Quote
Advert
Old 02-07-2021, 02:40 AM   #3
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,954
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by DNSB View Post
I suspect that asking in the Sigil forum or the Epub forum would be better.
Moved to the Sigil forum
pdurrant is offline   Reply With Quote
Old 02-07-2021, 06:23 AM   #4
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
Posts: 439
Karma: 145424
Join Date: Dec 2017
Device: Kobo
Which CSS rules do you use ?
To make a "clean" Lettrin it is recommended to use "float: left;"

HTML
Code:
<p class="lettrine"><img class="lettrine" src="../Images/lettrine.png" alt="Rentai"/>raesent orci dui, pulvinar id convallis a, faucibus non mauris. Donec tellus augue, tempus sed facilisis sed, fringilla quis leo.</p>
<p class="text">Mauris vulputate, leo ac facilisis vulputate, enim orci interdum augue, in blandit quam turpis quis dui. Morbi dictum luctus velit nec faucibus. Cras vitae tortor purus, ut tincidunt mauris. Sed at velit nisl. Donec eu mauris tortor, interdum condimentum erat. Nam egestas <sub>turpis</sub> <sup>eget</sup> nibh laoreet pharetra.</p>
CSS
Code:
p {
    margin: 0.25em 0 0;
}
p.text {
    text-indent: 1.25em;
}
p.lettrine {
    text-indent: 0;
}

img.lettrine {
  display: inline;
  float: left;
  height: 8em;
  margin-top: -0.5em;
  margin-bottom: 0;
}
But as having perfect Lettrin is probably impossible with all the subtle differences between the reader, you have to do your best, but accepted compromises and unpleasant surprises.

EDIT: Sorry for the lot of edit, but more I reread my text and more I find precision to make.
Attached Thumbnails
Click image for larger version

Name:	Capture d’écran 2021-02-07 122022.png
Views:	181
Size:	18.2 KB
ID:	185278  

Last edited by DiapDealer; 02-07-2021 at 08:39 AM.
un_pogaz is offline   Reply With Quote
Old 02-08-2021, 09:39 AM   #5
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 316
Karma: 3200000
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
Perhaps you can share your code, but I half suspect your issue is a mix of <div> within <p> (both being block elements) plus quirks of reflowability.
phillipgessert is offline   Reply With Quote
Advert
Old 02-18-2021, 02:55 AM   #6
Milan2
Junior Member
Milan2 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2021
Device: iPhone
Hi friends,

Thank you very much for your answers, which I appreciate. At the end I am still sustaining by my old version which I simplified by cutting all doubling orders, divs etc.

The result looks fine in all devices, what concerns with Drop Caps and making free space for next lines of text.

The only annoying thing on the whole process is, that the first line with the Drop Cap is slightly lowered than expected, what is fine in the middle of a page, but looks weird on the top of a page, if two pages are next teach other. (computer or iPad - double pages view)

Till now it is the best looking and safe version I ve ever found.


I use the Paragraph class:


p.class


margin: 0 0 0 0;
border: 0;
width: auto;
padding: 0 0 0 0.5rem;

break-inside: avoid;
page-break-inside: avoid;


Inside a span.class which is actually the drop cap

Span.class


display: block;
border: 0px solid blue;
padding: 0rem 0 0rem 0rem;
height: 3rem;
color: #dd3210;
margin: -0.8rem 0.2rem 0.6rem -0.2rem;
text-align: left;
font-size: 3rem;
float: left;

And at the end I use a space zero div with function:

clear: both;

Last edited by Milan2; 02-18-2021 at 02:59 AM.
Milan2 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unutterably Silly Let us Play Initials Game DrDln Lounge 20917 11-21-2023 07:26 PM
Author Initials and Goodreads Metadata Rellwood Library Management 18 09-25-2017 01:22 AM
Authors who use just initials in their name. GlenBarrington General Discussions 104 05-03-2013 06:42 PM
Authors with initials Noughty Library Management 6 05-10-2011 05:59 PM
Conversion from PDF : missing initials Yompan Calibre 5 04-06-2009 04:55 AM


All times are GMT -4. The time now is 07:00 AM.


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