Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-24-2019, 09:52 AM   #1
degn
Member
degn began at the beginning.
 
degn's Avatar
 
Posts: 12
Karma: 10
Join Date: Jul 2018
Device: iBooks on iPad Pro
Indentation in second line

Hi. See the red line in the attached picture. How can I make special indentation for 2. (and following) line(s) like the one shown in the picture? Also I need all the ":" (colons) to be aligned. Regards.
Attached Thumbnails
Click image for larger version

Name:	indentation.png
Views:	302
Size:	296.8 KB
ID:	169889  
degn is offline   Reply With Quote
Old 02-24-2019, 12:44 PM   #2
retiredbiker
Evangelist
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
Quote:
Originally Posted by degn View Post
Hi. See the red line in the attached picture. How can I make special indentation for 2. (and following) line(s) like the one shown in the picture? Also I need all the ":" (colons) to be aligned. Regards.
The second and subsequent line indentation is easily done with a hanging indent, done with a negative indent smaller than the margin. Here is one random example I often use:
Code:
.verse {
  display: block;
  font-size: 1em;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 0.1em;
  margin-left: 3em;
  margin-top: 0;
  text-align: left;
  text-indent: -2em;
}
As far as the colons being aligned, I'm afraid you're looking at doing a table, but maybe someone else knows a less tricky way. For a table to be really readable on a small-screen ereader, it has to be pretty small and simple and is difficult to construct so that it maintains coherence over a wide choice of font sizes a user might choose...at least that is my experience.
retiredbiker is offline   Reply With Quote
Advert
Old 02-24-2019, 12:53 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,056
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Someone is stuck on "exactly as a PRINTED book"

Take a Picture. That won't reflow. EVER. Won't cause problems with those pesky dots having the wrong count.

There are no PAGES in an e-book. Screens full, yes!


And the partial solution to your mess: Hanging Indent
theducks is offline   Reply With Quote
Old 02-24-2019, 05:26 PM   #4
degn
Member
degn began at the beginning.
 
degn's Avatar
 
Posts: 12
Karma: 10
Join Date: Jul 2018
Device: iBooks on iPad Pro
Thank you very much retired biker.

theducks - I don't want a result exactly as a printed book - but I want to keep some of the stunning features characterizing the original historic text (see attachment).

Regards degn
Attached Thumbnails
Click image for larger version

Name:	letter.png
Views:	229
Size:	26.4 KB
ID:	169897  
degn is offline   Reply With Quote
Old 02-24-2019, 05:58 PM   #5
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
This is not a question about the Calibre editor. Moved to the ePub forum.
HarryT is offline   Reply With Quote
Advert
Old 02-24-2019, 09:46 PM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,056
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by degn View Post
Thank you very much retired biker.

theducks - I don't want a result exactly as a printed book - but I want to keep some of the stunning features characterizing the original historic text (see attachment).

Regards degn
The (illustrated) dropcap Doable: (keyword float: left)

Your original example was a TOC with a fill of dots to a page number. There is no 'fill' that would adjust to changing of a font size, viewing on a different screen size.
Something can be done, others....
One of the first things I did when learning EPUB style HTML, was to create a (code) sampler of looks for books (mostly for chapter titles). Turned out to be a good learning experience of what could easily be don (that survives various devices rendering). OSFN. Just ask Hitch
theducks is offline   Reply With Quote
Old 02-24-2019, 11:51 PM   #7
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,191
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by degn View Post
Thank you very much retired biker.

theducks - I don't want a result exactly as a printed book - but I want to keep some of the stunning features characterizing the original historic text (see attachment).

Regards degn
One issue with the dropcap you showed is that every device and application are very likely to render the page slightly differently. A couple of years back, I spent too much time working with an author trying to get his dropcap images to look good on multiple devices. We finally gave up and generated multiple variations of his ebook that were optimized for different stores (Kobo, iBooks and Amazon).
DNSB is online now   Reply With Quote
Old 03-02-2019, 03:00 PM   #8
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by retiredbiker View Post
The second and subsequent line indentation is easily done with a hanging indent, done with a negative indent smaller than the margin. Here is one random example I often use:
Code:
.verse {
  display: block;
  font-size: 1em;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 0.1em;
  margin-left: 3em;
  margin-top: 0;
  text-align: left;
  text-indent: -2em;
}
As far as the colons being aligned, I'm afraid you're looking at doing a table, but maybe someone else knows a less tricky way. For a table to be really readable on a small-screen eReader, it has to be pretty small and simple and is difficult to construct so that it maintains coherence over a wide choice of font sizes a user might choose...at least that is my experience.

Nope, the only way--and even that won't work--is a table. When you create a table, in ePUB/MOBI format, the cells cheerfully resize themselves to the content. You will end up with a table that has cells sized to the longest content.

You could, possibly, create a three column table. Put content on the left, put the colons in the middle, and then the other content in the right-hand cell. But in your case, you're using a proportional font (most likely) to create the emdash, then space (which is always, always fungible, even when an nbsp) and then the colon. You're asking for migraines, and worse--it's not going to work.

Honestly, at that you might as well go for a print replica (fixed-layout in ePUB3). Why inflict that on your readers?

You talk about "stunning features," but surely, a colon is not in and of itself, stunning. That's...that's a TOC. It's functional, not stunning. You can't do the dot leaders, either--those will never work in a reflowable environment, so...why not embrace the new environment, use a suitable font, and try to make it work that way?

In terms of BFLS, Boxed letters, you're also going to have headaches with those, as Ducky and DNSB have told you. All you need is someone to change the font size--or change the font, or be using a device that doesn't display embedded fonts, and VOILA!, your careful work is all undone, and the boxed-letter is floating around above the paragraph someplace.

There are ways to embrace content. Ask Granny Grump, who's around here someplace. Channel the look and feel, but don't slavishly try to replicate the looks that you simply cannot do. The kluges that you come up with will negatively affect your readers, which you don't want. I am really not trying to dissuade you--I'm just trying to save you many, many hours of work and experimentation that are going to end up not working, when push comes to shove. It's like your other post--justified content, with the last widowed line centered. Oy! That will never work, not today.

Believe me when I tell you, been there, done that and I always end up rueing the work.

Hitch
Hitch is offline   Reply With Quote
Old 03-02-2019, 03:19 PM   #9
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,766
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by degn View Post
Hi. See the red line in the attached picture. How can I make special indentation for 2. (and following) line(s) like the one shown in the picture? Also I need all the ":" (colons) to be aligned. Regards.
I arrived late to this thread If you want that effect for epub2, only with tables. If you want that effect for epub3 and/or for Kindle (.kf8/.azw3) it's possible whitout tables, only with pure css. So, where you want to reproduce that effect?
RbnJrg is offline   Reply With Quote
Old 03-04-2019, 04:08 AM   #10
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
Of course, the first thing to ask --- are you doing this for your own personal reading? Or are you producing a book to distribute to other people?

There are things you can do to make it look exactly as you wish if you only have to set it up for your own device/software. But other people won't be using your device or software, and as everybody here is warning you, things can go very wrong. You can test this yourself just by changing font sizes in your own reader, and see what happens.


ps--@TheDucks --- OSFN ??? One Size Fits Nobody?

Last edited by GrannyGrump; 03-04-2019 at 04:14 AM.
GrannyGrump is offline   Reply With Quote
Old 03-04-2019, 08:36 AM   #11
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by RbnJrg View Post
I arrived late to this thread If you want that effect for epub2, only with tables. If you want that effect for epub3 and/or for Kindle (.kf8/.azw3) it's possible whitout tables, only with pure css. So, where you want to reproduce that effect?
Ruben, disclaimer please? Don't forget to warn the poster that your solutions won't work in a variety of Kindles, thanks. Sorry to be pedantic, but...99x out of 100, when people ask for MOBI or "Kindle" solutions, they intend to sell the book. He hasn't said that yet, of course, but...just in case!

Quote:
Originally Posted by GrannyGrump View Post

ps--@TheDucks --- OSFN ??? One Size Fits Nobody?
Thanks, Granny--I was wondering that my own dang self.

Hitch
Hitch is offline   Reply With Quote
Old 03-04-2019, 11:59 AM   #12
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,766
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Hitch View Post
Ruben, disclaimer please? Don't forget to warn the poster that your solutions won't work in a variety of Kindles, thanks. Sorry to be pedantic, but...99x out of 100, when people ask for MOBI or "Kindle" solutions, they intend to sell the book. He hasn't said that yet, of course, but...just in case!

Hitch
Yes Hitch, you're right. But if you re-read again what I wrote, you'll see that I say the following:

Quote:
If you want that effect for epub3 and/or for Kindle (.kf8/.azw3) it's possible whitout tables, only with pure css.
As you see, I don't refering to .mobi, just .kf8/.azw3. And you are not pedantic at all and your aclarations are very welcome; people who is not very acustomed with ebook formats can perfectly confuse .mobi with .kf8/.azw3. So, your aclaration is valid.
RbnJrg is offline   Reply With Quote
Old 03-04-2019, 12:12 PM   #13
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by RbnJrg View Post
Yes Hitch, you're right. But if you re-read again what I wrote, you'll see that I say the following:



As you see, I don't refering to .mobi, just .kf8/.azw3. And you are not pedantic at all and your aclarations are very welcome; people who is not very acustomed with ebook formats can perfectly confuse .mobi with .kf8/.azw3. So, your aclaration is valid.
Oh, I know. I'm not saying you didn't. But...how many people, other than we who are geeky about this stuff, would have made the distinction, by reading that? Hell, how many people know what KF7/KF8 even MEANS? That's the ONLY reason I brought it up. You know I love ya and have mad respect for your HTML/CSS eBook-fu.

Hitch
Hitch is offline   Reply With Quote
Old 03-04-2019, 12:46 PM   #14
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,766
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Hitch View Post
You know I love ya and have mad respect for your HTML/CSS eBook-fu.

Hitch
Many thanks Hitch. That means a lot coming from someone like you, that really is an expert.
RbnJrg is offline   Reply With Quote
Old 03-04-2019, 02:31 PM   #15
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,056
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by GrannyGrump View Post

ps--@TheDucks --- OSFN ??? One Size Fits Nobody?
or None
theducks is offline   Reply With Quote
Reply

Tags
calibre, indentation, layout


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code snippet misses line numbers and messes indentation up dom9 Conversion 3 10-08-2017 11:09 PM
Indentation in right aligned long line poems AlexBell ePub 25 07-13-2015 02:26 PM
How do I create first line paragraph indentation with Calibre? stutzj Calibre 4 01-21-2014 11:09 AM
[Suggestion] Change indentation to one letter per indentation level. John Peterson Development 1 10-22-2012 02:05 PM
Preserving Indentation zaph0d Conversion 5 05-30-2011 04:41 PM


All times are GMT -4. The time now is 05:48 PM.


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