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

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 08-09-2011, 05:11 AM   #1
bobb40
Member
bobb40 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Jul 2011
Device: none
control blockquote indentation

I am using ebook-convert from CLI, to convert text to epub. I want to control the indentation of paragraphs inside a blockquote. It works as I expected on the w3schools/tryit page (text-indent-example.jpg). But ebook-convert tag <p style="text-indent: 0;"> does not override the text-indent set by css. Is there a way of doing it without hacking the epub file?
Attached Thumbnails
Click image for larger version

Name:	text-indent-example.jpg
Views:	63
Size:	114.5 KB
ID:	75309  
bobb40 is offline   Reply With Quote
Old 08-09-2011, 09:11 AM   #2
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
By default Calibre will honor what's in your html - odds are that some conversion setting is overriding the css. What conversion options do you have enabled?

Remove Spacing between paragraphs is the most common culprit - if you want control over indents avoid that feature and just use css to control spacing.
ldolse is offline   Reply With Quote
 
Enthusiast
Old 08-09-2011, 09:47 AM   #3
bobb40
Member
bobb40 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Jul 2011
Device: none
re: control backquote indentation

Quote:
Originally Posted by ldolse View Post
By default Calibre will honor what's in your html - odds are that some conversion setting is overriding the css. What conversion options do you have enabled?

Remove Spacing between paragraphs is the most common culprit - if you want control over indents avoid that feature and just use css to control spacing.
Thanks, ldolse, you're spot on: I removed "--remove-paragraph-spacing" and the indent size option, and the anomalies are gone.

Is there an accepted way to "use css to control spacing"?
bobb40 is offline   Reply With Quote
Old 08-09-2011, 12:12 PM   #4
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
p {margin-top:.3em; margin-bottom:.3em;}

Or 0 (that's what the option does), or whatever you like. Either add it directly to your doc or to Calibre's 'extra css' box.
ldolse is offline   Reply With Quote
Old 08-09-2011, 03:06 PM   #5
unboggling
unbaffling myself...
unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.
 
Posts: 871
Karma: 821537
Join Date: Jan 2011
Location: US southeast
Device: PRS-T2, Nexus 7, KindleT, Kindle3KB, iPad1
Quote:
Originally Posted by ldolse View Post
p {margin-top:.3em; margin-bottom:.3em;}

Or 0 (that's what the option does), or whatever you like. Either add it directly to your doc or to Calibre's 'extra css' box.
I thought the CSS box in Conversion dialog only applied to what you see in the calibre viewer, and not the document itself as seen by other readers/devices? If the CSS box actually changes the html in the document so it applies to any other readers that display html correctly, then I need to change my wrong assumptions and start using it.
unboggling is offline   Reply With Quote
Old 08-09-2011, 04:43 PM   #6
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 3,994
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by unboggling View Post
I thought the CSS box in Conversion dialog only applied to what you see in the calibre viewer, and not the document itself as seen by other readers/devices?
That assumption is wrong. The viewer does have its own CSS override, but you access it in the viewer. The Conversion settings apply to the converted ebook.
__________________
The speed limit on our spacetime highway of life is c - lightspeed. Surprisingly, the posted minimum is also c. We can go no faster, nor any slower! The conversion factor from the time dimension to space is ct. When stationary in space, we must move into the future at c to have our clock tick off t. When moving in space, the spacetime vector c tilts from pure motion in time. The faster we move in the space dimension, the slower we move in the time dimension.
Starson17 is offline   Reply With Quote
Old 08-09-2011, 06:14 PM   #7
unboggling
unbaffling myself...
unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.
 
Posts: 871
Karma: 821537
Join Date: Jan 2011
Location: US southeast
Device: PRS-T2, Nexus 7, KindleT, Kindle3KB, iPad1
Wow! Thanks, Starson.

Edit: Really, thank you. In that case, CSS will be the next "complexity" I take baby steps into.

Last edited by unboggling; 08-09-2011 at 06:22 PM.
unboggling is offline   Reply With Quote
Old 08-09-2011, 11:16 PM   #8
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 7,303
Karma: 11288999
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7, Sony PRS-950, Sony PRS-505, PRS-300
Quote:
Originally Posted by unboggling View Post
I thought the CSS box in Conversion dialog only applied to what you see in the calibre viewer, and not the document itself as seen by other readers/devices? If the CSS box actually changes the html in the document so it applies to any other readers that display html correctly, then I need to change my wrong assumptions and start using it.
I have been waiting to see how long it would be before someone corrected your KISS post about the same assumption you voiced there. Now that you have the correct info you might want to edit that first post over in the KISS thread.
__________________
-- Good Reading, Walt --

20GB of free CLOUD STORAGE: Use this link to sign up for a free 15GB Copy.com cloud storage account and we both get an extra 5GB of free space.
DoctorOhh is offline   Reply With Quote
Old 08-09-2011, 11:22 PM   #9
unboggling
unbaffling myself...
unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.
 
Posts: 871
Karma: 821537
Join Date: Jan 2011
Location: US southeast
Device: PRS-T2, Nexus 7, KindleT, Kindle3KB, iPad1
Quote:
Originally Posted by dwanthny View Post
I have been waiting to see how long it would be before someone corrected your KISS post about the same assumption you voiced there. Now that you have the correct info you might want to edit that first post over in the KISS thread.
@dwanthny, thank you. Good catch. I actually remembered to correct it a few hours ago.
unboggling is offline   Reply With Quote
Old 08-10-2011, 05:04 AM   #10
Manichean
Wizard
Manichean will give the Devil his due.Manichean will give the Devil his due.Manichean will give the Devil his due.Manichean will give the Devil his due.Manichean will give the Devil his due.Manichean will give the Devil his due.Manichean will give the Devil his due.Manichean will give the Devil his due.Manichean will give the Devil his due.Manichean will give the Devil his due.Manichean will give the Devil his due.
 
Manichean's Avatar
 
Posts: 3,127
Karma: 77366
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
I may be a little late to the party, but...
Moderator Notice
Moved to correct subforum.
__________________
I reject your reality and substitute my own.
Manichean 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
Preserving Indentation zaph0d Conversion 5 05-30-2011 04:41 PM
blockquote over ride dicknskip Sigil 3 03-21-2011 04:44 PM
Combining blockquote with image wrap WRB Sigil 1 02-12-2011 07:46 PM
FBReader blockquote minigrrl PocketBook 3 03-09-2010 08:09 PM
Epub and negative indentation Nate the great ePub 6 04-27-2009 11:48 AM


All times are GMT -4. The time now is 06:42 AM.


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