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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-05-2009, 04:31 PM   #1
NASCARaddicted
Addict
NASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and grace
 
Posts: 310
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch
Remove spacing between paragraphs - what about div tags ?

Currently I converting a few html files to epub.

I use the paragraph tags <p> and </p> to mark a new paragraph (wow, who would have thought that)

When I convert from html to epub, I use the "Remove spacing between paragraphs" command. I know, this command sets an intent of 1.5 em on a paragraph - and I love it. With this, my ebooks look even closer to real books.

However, latelty I started to use div tags in the html files to to "enhance" the look of the text. For example, I use margin-left and margin-right on a few lines, so that the outfit of some of the text differs from the rest of the text.

In this case, the special text is a list of things with numbers in front of it.
I want it to look like:
normal text, normal text, normal text,
normal text, normal text, normal text,
normal text, normal text, normal text,
1.special text, special text
2.special text, special text
3.special text, special text
normal text, normal text, normal text,
normal text, normal text, normal text,
normal text, normal text, normal text,
normal text, normal text, normal text,


As I said, I use div tags for this (I am a novice on html so maybe I am wrong, but personally, I think div tags are great).

However, this also caused some problems, because the "Remove spacing between paragraphs" command not only sets an intent on the p-tag but also on the div tags.

So now my text looks something like:
normal text, normal text, normal text,
normal text, normal text, normal text,
normal text, normal text, normal text,
1.special text, special text
2.special text, special text
3.special text, special text
normal text, normal text, normal text,
normal text, normal text, normal text,
normal text, normal text, normal text,
normal text, normal text, normal text,

See what I mean ? The list part doesn't look even anymore. The "1" has an intent - even thought I don't want it to have on.

I noticed all this stuff is can be changed by editing the stylesheet.css file - but this can become tedious.

So, to sum it all up: Is there a way to tell Calibre to set an intent on the p tags - but to leave the div tags alone ?

Thanks in advance

Last edited by NASCARaddicted; 11-05-2009 at 04:44 PM.
NASCARaddicted is offline   Reply With Quote
Old 11-05-2009, 05:31 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,450
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
http://calibre.kovidgoyal.net/user_m...agraph-spacing
kovidgoyal is offline   Reply With Quote
Old 11-05-2009, 10:38 PM   #3
NASCARaddicted
Addict
NASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and grace
 
Posts: 310
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch
thanks alot :-)
NASCARaddicted is offline   Reply With Quote
Old 11-06-2009, 02:40 AM   #4
neilmarr
neilmarr
neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.
 
neilmarr's Avatar
 
Posts: 7,230
Karma: 6000059
Join Date: Apr 2009
Location: Monaco-Menton, France
Device: sony
My problem (using calibre) is that several books recently have downloaded as one giant paragraph from start to finish. It makes reading a chore. I'm a technodunce and can't find a way to fix this. Any (simple) advice? Hoots. Neil
neilmarr is offline   Reply With Quote
Old 11-06-2009, 10:10 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,450
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Depends on the input format. Sometimes the input format itself has everything in one large paragraph.
kovidgoyal is offline   Reply With Quote
Old 11-07-2009, 05:47 AM   #6
neilmarr
neilmarr
neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.
 
neilmarr's Avatar
 
Posts: 7,230
Karma: 6000059
Join Date: Apr 2009
Location: Monaco-Menton, France
Device: sony
Thanks, Kovid. I'll do some digging to see if I can find a fix. Cheers. Neil
neilmarr 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
Remove Parargraph spacing jhempel24 Sigil 7 09-10-2010 06:26 PM
Questions about <p> and <div> and paragraph spacing droople Sigil 7 08-14-2010 12:03 PM
removing spacing between paragraphs WITHOUT touching indent? ferossan Calibre 2 12-24-2009 02:12 PM
RFE: Remove remove tags in bulk edit magphil Calibre 0 08-11-2009 10:37 AM
Remove spacing between paragraphs doesn't. Djehuty Calibre 6 04-28-2009 04:53 AM


All times are GMT -4. The time now is 03:57 AM.


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