Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-13-2021, 03:36 PM   #1
Pedro Magnifico
Member
Pedro Magnifico began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Mar 2016
Device: none
Line break adds unwanted code, how to change this?

Inserting a line break adds this code:

<span style="font-size: 1.1em; line-height: 1.3em;">

Is there a way to stop this from happening?
Pedro Magnifico is offline   Reply With Quote
Old 03-13-2021, 05:24 PM   #2
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,647
Karma: 5433388
Join Date: Nov 2009
Device: many
This can not be a recent version of Sigil as BookView was removed long ago.
Is this PageEdit? If so what version?
KevinH is offline   Reply With Quote
Advert
Old 03-14-2021, 12:44 PM   #3
Pedro Magnifico
Member
Pedro Magnifico began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Mar 2016
Device: none
Sigil Version 0.9.10
Pedro Magnifico is offline   Reply With Quote
Old 03-14-2021, 01:01 PM   #4
Pedro Magnifico
Member
Pedro Magnifico began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Mar 2016
Device: none
Upon further investigation, this code is inserted not when I add a line break but when I delete a paragraph break.
Pedro Magnifico is offline   Reply With Quote
Old 03-14-2021, 01:04 PM   #5
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,647
Karma: 5433388
Join Date: Nov 2009
Device: many
Sorry, Sigil is now at version 1.4.3 and BookView has been removed because itis live html editing in a browser engine that can generate very poor code.

My guess is you hit "return" inside or immediately after a span tag and that tag is being inherited by the new line.

You might try cutting and pasting a what you want from some place else in the document, or better yet use CodeView and Preview to get what you want and stay away from BookView.
KevinH is offline   Reply With Quote
Advert
Old 03-14-2021, 01:07 PM   #6
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,647
Karma: 5433388
Join Date: Nov 2009
Device: many
Yes deleting the end of a paragraph will merge your current code into the code before it. That is what live editing in html is doing.

If you care at all about code quality, stop using the now removed BookView and start learning html/css and do all editing in CodeView with Preview showing you in real time what your code is producing.

And only if you must, use BookView for just final proofing and fixing small typos and things, use CodeView with Preview for all else.

Last edited by KevinH; 03-14-2021 at 01:09 PM.
KevinH is offline   Reply With Quote
Old 03-14-2021, 01:11 PM   #7
Pedro Magnifico
Member
Pedro Magnifico began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Mar 2016
Device: none
No, there is no span tag already in place, I am having to convert separate paragraphs created by calibre's conversion from pdf to line breaks which my client's writing style uses "generously".

In this case page view gives the better workflow even with this odd issue. Deleting the undesirable code is faster than doing the numerous necessary edits in code view.

I was just hoping this was something I could change but if not I'll live with it.
Pedro Magnifico is offline   Reply With Quote
Old 03-14-2021, 01:12 PM   #8
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,647
Karma: 5433388
Join Date: Nov 2009
Device: many
Once you do that you can then upgrade to the latest Sigil version that is still supported and add in the PageEdit app as a Preferred External Xhtml editor if you still want minor WYSIWYG editing capabilities.
KevinH is offline   Reply With Quote
Old 03-14-2021, 01:18 PM   #9
Pedro Magnifico
Member
Pedro Magnifico began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Mar 2016
Device: none
I'm well versed in html and css, but in this case page view is the more expedient workflow. This is not an issue with code merging into existing span tags, that I would have figured out on my own.

I'm working with a conversion from pdf made with Calibre, which converts all line breaks (which my client's writing style uses generously) to paragraph breaks, so I must manually change them back to line breaks. fixing all of the wonky code with find & replace is still much faster than working in code.

Thanks for your advice, though.
Pedro Magnifico is offline   Reply With Quote
Old 03-14-2021, 01:37 PM   #10
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,647
Karma: 5433388
Join Date: Nov 2009
Device: many
You do know with Preview open beside CodeView, you can click in Preview and CodeView will sync to the closest point it can and Visa-Versa. This makes it easy to see where insertions or deletions should be made by scrolling in Preview and then clicking to sync CodeView location and make the changes there., And Find & Replace works just fine with CodeView.
KevinH is offline   Reply With Quote
Old 03-14-2021, 01:40 PM   #11
Pedro Magnifico
Member
Pedro Magnifico began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Mar 2016
Device: none
No, I didn't know about preview at all. I'll take a look at that, thanks.
Pedro Magnifico is offline   Reply With Quote
Old 03-14-2021, 01:45 PM   #12
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,647
Karma: 5433388
Join Date: Nov 2009
Device: many
Use Sigils View menu to show and hide Preview. You can of course detach the Preview dockwidget and move it to a second monitor if one is available and of course resize it at will. Preview will auto reload as you type in CodeView.
KevinH is offline   Reply With Quote
Old 03-14-2021, 04:22 PM   #13
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: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Pedro Magnifico View Post
I'm working with a conversion from pdf made with Calibre, which converts all line breaks (which my client's writing style uses generously) to paragraph breaks, so I must manually change them back to line breaks. fixing all of the wonky code with find & replace is still much faster than working in code.
PDF is probably the worst format from which to create an EPUB, what tool does your client use to create the PDFs?

BR
BetterRed is offline   Reply With Quote
Old 03-14-2021, 04:40 PM   #14
Pedro Magnifico
Member
Pedro Magnifico began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Mar 2016
Device: none
Agreed, it does make for a lot of extra work but apparently it's all he has. Either his original word files are lost or he can't be bothered to locate them.
Pedro Magnifico is offline   Reply With Quote
Old 03-14-2021, 08:32 PM   #15
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Pedro Magnifico View Post
I'm working with a conversion from pdf made with Calibre, which converts all line breaks (which my client's writing style uses generously) to paragraph breaks, so I must manually change them back to line breaks. fixing all of the wonky code with find & replace is still much faster than working in code.
So let's say your original PDF is some poetry, like this:

Code:
this is an
example poem
that ends like this.
and Calibre is converting it into:

Code:
<p>this is an example poem that ends like this.</p>
and you're manually re-inserting all the breaks, so you get this?

Code:
<p>this is an<br/>
example poem<br/>
that ends like this.</p>
When converting the PDF in Calibre:

1. Right-Click the book > Convert books > Convert individually.

2. Under "PDF Input", there's a "Line un-wrapping factor".

You'll want to mess with that number.

That tells Calibre how strongly it will try to put lines back together.
Tex2002ans is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EPUB>PDF conversion adds unwanted margins Micelement Conversion 1 10-15-2020 06:56 AM
Unwanted Para Break Paxman53 Sigil 6 02-07-2012 11:25 AM
unwanted page break photoluminations Conversion 1 09-28-2011 08:11 PM
unwanted extra chapter break alansplace Conversion 5 07-05-2011 12:00 PM
epub - unwanted page break after image mrmikel Calibre 5 07-10-2009 07:35 AM


All times are GMT -4. The time now is 04:02 PM.


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