Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-29-2014, 03:06 PM   #1
just_jeepin
Addict
just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.
 
just_jeepin's Avatar
 
Posts: 306
Karma: 1010848
Join Date: Oct 2005
Device: Kobo Libra 2
no line breaks in code view

When I edit in Calibre there are no line breaks after the </p>. But if I open the file up in Sigil it shows the line breaks. Is there a way to make Calibre view code the way Sigil does? It's much easier to find things in the code.

Attached are two screenshots showing what I mean.
Attached Thumbnails
Click image for larger version

Name:	calibre.jpg
Views:	420
Size:	722.0 KB
ID:	118489   Click image for larger version

Name:	sigil.png
Views:	415
Size:	614.4 KB
ID:	118490  
just_jeepin is offline   Reply With Quote
Old 01-29-2014, 03:17 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
calibre only does beautify html when you ask it to: http://manual.calibre-ebook.com/edit...utifying-files

Sigil by default does it automatically on File Open.
eschwartz is offline   Reply With Quote
Advert
Old 01-29-2014, 03:30 PM   #3
just_jeepin
Addict
just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.just_jeepin ought to be getting tired of karma fortunes by now.
 
just_jeepin's Avatar
 
Posts: 306
Karma: 1010848
Join Date: Oct 2005
Device: Kobo Libra 2
Ah, thanks... problem solved!
just_jeepin is offline   Reply With Quote
Old 02-01-2014, 10:57 AM   #4
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
could beautify all files please be made a user-preference, so that ,via preferences, it applies whenever a book is opened ?

I don't see how anyone could edit code without applying that first, as without it its almost impossible to see where tags begin & end!

it's not an issue if a book as been previously opened & saved in sigil & then already beautified, but if edit book is to replace sigil....
cybmole is offline   Reply With Quote
Old 02-01-2014, 11:23 AM   #5
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: 30,916
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 cybmole View Post
could beautify all files please be made a user-preference, so that ,via preferences, it applies whenever a book is opened ?

I don't see how anyone could edit code without applying that first, as without it its almost impossible to see where tags begin & end!

it's not an issue if a book as been previously opened & saved in sigil & then already beautified, but if edit book is to replace sigil....
The photo was an example of the worst case (I have ever seen). It is still valid code when done that way.
There are many good reasons to NOT auto pretty. Getting a chance to repair Corruption being one.

How lazy can you get: it is 1.5 clicks
theducks is offline   Reply With Quote
Advert
Old 02-01-2014, 11:30 AM   #6
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
user-preference. why do the same key strokes 1000 times if you can have them automated..

anyway the book that triggered the request was a kindle best seller azw3 conversion.

maybe all azw3 conversions look like s**t when converted & not prettified, or maybe it was just this one.

or maybe you can read this as-is?
</head>
<body class="calibre"><div class="calibre2"><h3 id="c251292161" class="calibre5">Prologue</h3><p class="center">*</p><p class="center">Pudding Lane</p><p class="center"><em class="calibre6">1666</em></p><p class="center">*</p><p class="center"><em class="calibre6">It only took a spark to burn London to the ground.</em></p><p class="center">*</p><p class="calibre7">In the still of the early morning a hooded figure cast a burning torch through an open window of the bakery. No one saw him discard it amid bales of straw and bread baskets, and no one saw him take off again, in silence and in stealth, like a thief in the night.</p><p class="calibre7">Thomas Farynor, the king’s baker, slept fitfully in the rooms above the shop on Pudding lane, where below in the darkened cellars, illuminated only by candlelight and the glow of the coal fired ovens, his workmen kneaded dough for Sunday’s supply of bread to the palace. Bread fit for royalty!</p><p class="calibre7">*</p><p class="calibre7">Rising smoke crept through the cracks in the floor of the rooms above, until the household was awakened by the intensity of the choking fogginess burning the whites of their eyes. With rising panic, Thomas and his family escaped through a top floor window, and as the fumes chased them, desperate to consume them, they ran for their lives through London’s adjoining dry wood houses.</p><p
Code:
</head>
  <body class="calibre"><div class="calibre2"><h3 id="c251292161" class="calibre5">Prologue</h3><p class="center">*</p><p class="center">Pudding Lane</p><p class="center"><em class="calibre6">1666</em></p><p class="center">*</p><p class="center"><em class="calibre6">It only took a spark to burn London to the ground.</em></p><p class="center">*</p><p class="calibre7">In the still of the early morning a hooded figure cast a burning torch through an open window of the bakery. No one saw him discard it amid bales of straw and bread baskets, and no one saw him take off again, in silence and in stealth, like a thief in the night.</p><p class="calibre7">Thomas Farynor, the king’s baker, slept fitfully in the rooms above the shop on Pudding lane, where below in the darkened cellars, illuminated only by candlelight and the glow of the coal fired ovens, his workmen kneaded dough for Sunday’s supply of bread to the palace. Bread fit for royalty!</p><p class="calibre7">*</p><p class="calibre7">Rising smoke crept through the cracks in the floor of the rooms above, until the household was awakened by the intensity of the choking fogginess burning the whites of their eyes. With rising panic, Thomas and his family escaped through a top floor window, and as the fumes chased them, desperate to consume them, they ran for their lives through London’s adjoining dry wood houses.</p><p
cybmole is offline   Reply With Quote
Old 02-01-2014, 04:45 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,644
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@cybmole - meanwhile, you could add a keyboard shortcut for Beautify (eg ctrl/alt/b)

If you happen to have a mouse with a extra buttons you could program one of them to send the ctrl/alt/b when pressed in a calibre ebook-editor window.

BR
BetterRed is offline   Reply With Quote
Old 02-01-2014, 04:51 PM   #8
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
It does this by prettifying by adding invisible characters such as the paragraph separator.

If you are working from a bad source, you may want to extract all the paragraph spacers, which will get rid of them in places you will likely not want them. It will also unprettify the text, which you can beautify again, by putting these markers where they make sense.
mrmikel is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
replace in book view changes view to code view cybmole Sigil 4 10-28-2012 01:20 PM
Line breaks on Kindle, no line breaks on 4 PC Siavahda Kindle Formats 0 10-20-2012 05:50 AM
Sigil highlight Book View No Longer Shows in Code View Themus Sigil 4 10-04-2012 07:54 PM
quotes differences book view & code view cybmole Sigil 13 03-29-2011 01:53 AM
lock book view & code view windows into synch cybmole Sigil 5 01-19-2011 10:30 PM


All times are GMT -4. The time now is 03:47 PM.


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