Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-16-2012, 12:58 PM   #16
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: 29,800
Karma: 54830978
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 HarryT View Post
Sorry, but that's a HORRIBLE solution. PLEASE don't do it that way.
+ 10
theducks is offline   Reply With Quote
Old 05-16-2012, 01:32 PM   #17
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
First consequence: indents no longer work.
Jellby is offline   Reply With Quote
Advert
Old 05-16-2012, 01:42 PM   #18
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: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
There are probably even worse consequences. Follow that advice and you'd end up with a single paragraph in each chapter. On many devices, jumping to a hyperlink takes you to the start of the paragraph in which the link destination occurs, so all your hyperlinks break, too.
HarryT is offline   Reply With Quote
Old 05-18-2012, 12:32 PM   #19
Greg P
Junior Member
Greg P began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2012
Device: Kindle
Quote:
Originally Posted by HarryT View Post
Sorry, but that's a HORRIBLE solution. PLEASE don't do it that way.
This is not a horrible solution. It is a solution worth looking at.
Just as webpages can use a mixture of <br /> and <p></p> tags, you can use whatever works for a particular purpose.
What you have to consider is the value of the extra space that <p> gives you, in terms of reading comfort, but there are times when you don't want that space.
Greg P is offline   Reply With Quote
Old 05-18-2012, 12:37 PM   #20
Greg P
Junior Member
Greg P began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2012
Device: Kindle
Quote:
Originally Posted by Jellby View Post
First consequence: indents no longer work.
This would be useful if true. At least in Sigil, you can still indent after doing what I suggested. To be sure, this results in insertion of <p></p> tags, and <blockquote>, but isn't that a desired outcome when you might indent?
Greg P is offline   Reply With Quote
Advert
Old 05-18-2012, 01:01 PM   #21
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
With indents I mean first-line indents in every paragraph. Sure, you can add them by adding back <p></p> to every paragraph, but why remove them the first time?

And <p></p> does not give extra space, at least not if you have them properly styled. In fact, a style such as "p { margin: 0, text-indent: 0; padding: 0; }" should give the same visual appearance as <br/>, but with the advantage of it being more semantic, easier to modify, and easier to process (some applications process one paragraph at a time, if everything is a single paragraph they'll struggle to process everything in one chunk).
Jellby is offline   Reply With Quote
Old 05-18-2012, 01:26 PM   #22
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I just want to quote this well written post in the ePub section about using Calibre to do ePub > ePub conversions.

Quote:
Originally Posted by Toxaris View Post
In some cases conversion within Calibre will break things that are perfectly fine to begin with. So, it adds unnecessary code and potentially breaks things. If your ePUB is not working, you should solve it in the source instead on relying on a Calibre conversion.
JSWolf is offline   Reply With Quote
Old 05-19-2012, 01:56 AM   #23
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,462
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 HarryT View Post
Sorry, but that's a HORRIBLE solution. PLEASE don't do it that way.
+20. That's just crappy coding. And it's not less "complicated" than fiddling with CSS, if someone has to regex it to make it happen.

Learning to write even moderately decent CSS isn't like learning to create a nuclear bomb. Someone can teach himself in almost no time, and the average DIY book takes about 10-12 classes; a few header classes, 3-4 paragraph classes, and that's about it. Our internal, House CSS has over 100 classes, but we do this professionally, and need styles for everything from lists to tables to Bob's weirdo paragraph. The average joe can even lift a sheet of CSS from Jellby to save time (highly recommended clean code).

And, trust me on this, taking a few minutes to learn it, and apply it properly, will not only give you a feeling of accomplishment, but will give you a basis to build on the NEXT time you want to convert a book. Taking shortcuts now won't help you when you DO want to do something a little more complicated--like 2-way footnotes, or what-have-you.

Just my $.02
Hitch
Hitch is offline   Reply With Quote
Old 02-20-2016, 09:50 PM   #24
Sinom Bre
Junior Member
Sinom Bre began at the beginning.
 
Sinom Bre's Avatar
 
Posts: 4
Karma: 10
Join Date: Jan 2016
Device: Moon+ Pro 3.4.1 with Calibre Comp. on tablet; Calibre 2.49.0 on PC
Just fix the CSS. CSS is easier than trying to fix all the in-line HTML. One change in the CSS, and everything is done.

Now here's MY problem. How do I get rid of blank lines in code view? I don't want them and don't need them, but the ebooks I edit seem bound and determined to put a blank line between each paragraph in code view. Very annoying.
Sinom Bre is offline   Reply With Quote
Old 02-20-2016, 11:34 PM   #25
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,094
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Hello Sinom Bre,

Welcome to Mobile Read! This is a slightly old thread - almost 4 years old.

When you speak of blank lines between paragraphs in code view, do you mean an actual paragraph with an empty line, or just empty space?

If it is empty space, then there is nothing you need to do. That space is there just to make it easy for the formatter (you) to differentiate the paragraphs. Blank space is not recognized by the renderer and condensed down to a single space within tags, and completely ignored outside of tags.

If it is an actual paragraph tag with empty space in there, eg. <p>&nbsp;</p> (or something) then you can just use a search and replace to delete them.

search: <p>&nbsp;</p>
replace: "" (without the quotes)

One bit of warning... sometimes those empty paragraphs are intentionally left in there to signify scene breaks...an extra space between one time/place and the next. So I would check to make sure they are not intended before deleting them.

Cheers,


edit: If you absolutely HAVE to get rid of the space between paragraphs then you can use a search/replace.
eg:
search: </p>\s*<p> (or something)
replace: </p>\n<p>

Just remember to disable the prettify code otherwise it will put spaces back in there.

Last edited by Turtle91; 02-20-2016 at 11:38 PM.
Turtle91 is offline   Reply With Quote
Old 02-21-2016, 02:00 AM   #26
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Sinom Bre View Post
Now here's MY problem. How do I get rid of blank lines in code view? I don't want them and don't need them, but the ebooks I edit seem bound and determined to put a blank line between each paragraph in code view. Very annoying.
With existing epubs: upgrade to Sigil 0.9.2+, delete the blank lines, and never use the Prettify Code feature.

With new epubs: upgrade to Sigil 0.9.2+, never use the Prettify Code feature.
DiapDealer is offline   Reply With Quote
Old 02-21-2016, 04:46 PM   #27
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DiapDealer View Post
With existing epubs: upgrade to Sigil 0.9.2+, delete the blank lines, and never use the Prettify Code feature.

With new epubs: upgrade to Sigil 0.9.2+, never use the Prettify Code feature.
Does the Prettify Code feature not work?
JSWolf is offline   Reply With Quote
Old 02-21-2016, 06:23 PM   #28
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
It works just fine. The issue is it puts back the blank lines (actually extra linefeed character) after every line, which is exactly what he wants to get rid of.

KevinH
KevinH is offline   Reply With Quote
Old 02-21-2016, 06:45 PM   #29
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by JSWolf View Post
Does the Prettify Code feature not work?
Like Kevin said, "of course it does." But Sinom Bre doesn't want the empty lines between elements in Code View that Prettify provides. So I was telling him how to achieve that. Prior to Sigil 0.9.2, he would just have to deal with it. Sigil 0.9.2 got rid of any automatic (and constant) Prettifying of code and made it a manual process that the user has to initiate.

If he upgrades to the latest Sigil, he'll be able to format well-formed code pretty much any way he wants anyway and Sigil won't automatically Prettify it.
DiapDealer is offline   Reply With Quote
Old 09-04-2017, 10:48 PM   #30
Coolmeadow Kid
Member
Coolmeadow Kid began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jan 2017
Location: West of Fort Worth, TX
Device: Kindle Fire 7, 2015, Fire HD 8 2021
Quote:
Originally Posted by HarryT View Post
You might find it easier to use Calibre. Do an "ePub to ePub" conversion, and check the "Remove spacing between paragraphs" check box. It won't work in all cases, but it will sort out the problem in the majority of circumstances.
Thank you! It worked great for me. All 7 books I've converted from DOCX to EPUB in Calibre renders the html differently. I can usually play with it and figure it out. But not tonight. I could get rid of the extra line by changing the html on the 'paragraph' above it, but that would change that one. No combination would work, until I found your solution above. Thanks! Jim.
Coolmeadow Kid is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
blank lines between paragraphs franklekens Kobo Reader 71 01-26-2015 12:52 PM
Insert blank line between paragraphs - just body text? kristalana Conversion 2 05-14-2014 11:08 AM
Bullet - Remove blank line before and after Kol Sigil 3 02-14-2014 06:55 AM
Blank lines between paragraphs? ascherjim OpenInkpot 30 12-03-2009 12:19 AM
Removing blank lines between paragraphs? corroonb Workshop 3 08-13-2009 04:23 PM


All times are GMT -4. The time now is 08:27 PM.


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