Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-22-2019, 08:29 PM   #1
Vanguard3000
Groupie
Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.
 
Posts: 152
Karma: 474196
Join Date: Jan 2011
Location: Ottawa
Device: Kobo Aura H2O
New line automatically adds nbsp; in book view.

I've noticed this issue in the last few versions of Sigil (9.12 and 9.13). In book view, pressing enter to split a paragraph into two will automatically add a space (nbsp to the start of the second line. for example:
Code:
Hello world
to
Code:
Helloworld
to
Code:
Hello
world
instead gives
Code:
Hello
 world
in code:
Code:
<p>Hello</p>
<p>&nbsp;world</p>
Searching this forum has only given me issues people have had with nbsp;s [intentionally] being used instead of spaces in book view. My issue is slightly similar but may be related.
Is this intentional for some reason? It's a real pain when I'm converting ebooks and am looking to quickly split paragraphs without having to paste in para tags.
Vanguard3000 is offline   Reply With Quote
Old 04-22-2019, 09:03 PM   #2
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,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Newline is not the way to split a line, (and editing in Bookview is known to have issues)
Code:
<p>Hello <br />world</p>
is the way to split a line in the same BLOCK (I use this to force a long chapter head to split where I want it, while maintaining it as a single heading for the TOC generator)

Hello
world
theducks is offline   Reply With Quote
Old 04-23-2019, 07:14 PM   #3
Vanguard3000
Groupie
Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.
 
Posts: 152
Karma: 474196
Join Date: Jan 2011
Location: Ottawa
Device: Kobo Aura H2O
I'm not looking to split a line using a <br/> tag, I'm looking to split one paragraph into two. Sometimes when converting an ebook from a pdf or ocr scan, I will find two or more paragraphs joined that need to be split into two.
Vanguard3000 is offline   Reply With Quote
Old 04-23-2019, 07:42 PM   #4
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,803
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 Vanguard3000 View Post
I'm not looking to split a line using a <br/> tag, I'm looking to split one paragraph into two. Sometimes when converting an ebook from a pdf or ocr scan, I will find two or more paragraphs joined that need to be split into two.
AFAIK there is no automatic way
simply copy the <p class='foo'> from the beginning and paste it where the new paragraph, then use Pretty-FIX to make all good

Make a clip and put it on the clip bar </p> <p class='foo'>
and just insert it at the proper place point, the bulk replace 'foo' with the proper class
theducks is offline   Reply With Quote
Old 04-24-2019, 06:56 AM   #5
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Given the small size of most e-reader screens, I find myself splitting paragraphs a lot -- otherwise they fill the whole "page"! So I used the Sigil clip editor to insert

</p>

<p>

at the cursor.

In Code View, of course. Since Preview came to live with us, I almost never have occasion to use Book View any longer.
Notjohn is offline   Reply With Quote
Old 04-24-2019, 01:05 PM   #6
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
Most code in Book View is generated by built-in Qt functions. This sort of thing (additional &nbsp;s) has always happened with Sigil in Book View. The bottom line truly is: if you don't like the code produced when making edits in Book View ... don't make edits in Book View.
DiapDealer is offline   Reply With Quote
Old 04-24-2019, 06:10 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: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
FWIW : in Book View - if I position the insertion cursor thus:

Code:
Hello |World
And then hit Enter, a superfluous, and relatively harmless, pair of &nbsp;s is left at the end of the 'Hello' line, which can be removed en-masse easy enough.

BR
BetterRed is offline   Reply With Quote
Old 04-25-2019, 07:43 AM   #8
JustinThought
Groupie
JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.
 
JustinThought's Avatar
 
Posts: 171
Karma: 3517858
Join Date: May 2016
Location: Monterrey, Mexico
Device: Samsung Tab-3 7"
I wish people wouldn't post the problems they're having while editing in book view. I'm sure that doesn't do anything except steam the great guys who are spending boucoups time maintaining a program that has no monetary return.

If you insist on editing in book view--as I do--then you have to develop the procedures to correct these shortcomings. So, the habit of making italics a span instead of using <i> or <em>; adding those spurious named hard spaces; whatever, all can be corrected by making a couple'a routine searches and grouping them under a title called "Oops, I've been editing in Book View again" which you can run at your leisure.

Sorry. Just wanted to throw a couple'a cents worth in here.
JustinThought is offline   Reply With Quote
Old 04-27-2019, 03:17 PM   #9
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Vanguard3000 View Post
I've noticed this issue in the last few versions of Sigil (9.12 and 9.13). In book view, pressing enter to split a paragraph into two will automatically add a space (nbsp to the start of the second line.
When I want to split a para, I put the cursor between the words, backspace or delete to remove the space, then press enter. No nbsp made.

This is one of the few edits I make in bookview, since it doesn't make any weird code, the new para has the same style as the parent, and it's faster than typing or pasting in the HTML.

I'm using 9.13 (legacy build) in case that's relevant, but have been doing this for some time and not had any issue. Just tried now and still OK.

Last edited by AlanHK; 04-27-2019 at 03:21 PM.
AlanHK is offline   Reply With Quote
Old 04-27-2019, 06:08 PM   #10
Vanguard3000
Groupie
Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.
 
Posts: 152
Karma: 474196
Join Date: Jan 2011
Location: Ottawa
Device: Kobo Aura H2O
Quote:
Originally Posted by AlanHK View Post
When I want to split a para, I put the cursor between the words, backspace or delete to remove the space, then press enter. No nbsp made...
That's exactly what I'm doing, but I'm getting the added nbsp. It hadn't done that until 9.12. Currently I'm on 9.13 - you mention a 9.13 legacy version? is it not the latest one? And thanks for your help.

I have to say it's very disheartening to come here with an issue I'm having while using Sigil only to be met with derision. It's not like this behaviour has been standard for Sigil all along (at least, not in the near-decade I've been using it); it's something that has only recently been plaguing my workflow. If there's a reason for the devs to change the behaviour, I'm willing to accept it (though some explanation would be most welcome), but it seems to be something new and irregular, so I'm asking an (in my opinion) fair question about it.

My point isn't to "steam" the devs - for one, as I mentioned, I've been appreciating the fruits of their hard work for years; for another, I can't really see anyone getting upset over someone asking a question about the work their doing. If you don't like the book view, don't use it; it's there, I use it for small things like splitting a paragraphs, and if it stops working as expected out of the blue I don't think it's unfair of me to ask about it.
Vanguard3000 is offline   Reply With Quote
Old 04-27-2019, 06:46 PM   #11
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
It's not unfair (and I certainly wasn't steamed), but though this behavior might be new, Book View consistently doing squirrelly things to code is anything but new. We've talked about it for a long time, but we've finally taken steps to remove Book View from Sigil entirely. It's demise is finally in sight. So if this IS new behavior (Sigil 0.9.11/12/13 marked significant updates to Qt and QtWebKit from previous versions), it's not very likely to be addressed. We truly have recommended that people don't use Book View for editing for a long, long time now.

The legacy version that alan referred to is a version I make for legacy Windows. It has most of the features of the latest Sigil, but it's 32-bit only and it uses older versions of Qt/QtWebKit/Python so that it can run on Windows XP and Vista. It can be found up above in the sticky thread section of the Sigil Forum.

Last edited by DiapDealer; 04-27-2019 at 06:49 PM.
DiapDealer is offline   Reply With Quote
Old 04-27-2019, 08:22 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,644
Karma: 5433388
Join Date: Nov 2009
Device: many
I want to add that we plan to take the BookView code we strip out and make a single xhtml visual editor as a separate standalone app that can be used with the newly expanded Sigil "open with" options for those who still want to do some editing in a BookView environment (with all its issues).
KevinH is offline   Reply With Quote
Old 04-27-2019, 08:44 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,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by KevinH View Post
I want to add that we plan to take the BookView code we strip out and make a single xhtml visual editor as a separate standalone app that can be used with the newly expanded Sigil "open with" options for those who still want to do some editing in a BookView environment (with all its issues).


The only thing I use BV for is to split and join paragraphs - and then deal with the consequences in CV. I know that sounds daft but it works for me

BR
BetterRed is offline   Reply With Quote
Old 04-29-2019, 04:06 PM   #14
JustinThought
Groupie
JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.
 
JustinThought's Avatar
 
Posts: 171
Karma: 3517858
Join Date: May 2016
Location: Monterrey, Mexico
Device: Samsung Tab-3 7"
Quote:
Originally Posted by BetterRed View Post


The only thing I use BV for is to split and join paragraphs - and then deal with the consequences in CV. I know that sounds daft but it works for me

BR
That's funny! Because those are the two things that I absolutely do not ever do in Book View--because I know then I'm going to end up with some formatting spans, font size modifications, and a little bit of Martian text if I do. Okay, maybe I'm exaggerating the Martian text part. But for me, a clip made up of a </p>, two line-feeds, two spaces, and a <p> is much easier to deal with. And the reversal, replacing those items with a space is much easier as well--for me.

So that a perfect illustration of how each person has discovered/developed the processes that work best for themselves.
JustinThought is offline   Reply With Quote
Old 05-04-2019, 08:28 PM   #15
Vanguard3000
Groupie
Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.
 
Posts: 152
Karma: 474196
Join Date: Jan 2011
Location: Ottawa
Device: Kobo Aura H2O
Quote:
Originally Posted by DiapDealer View Post
...Book View consistently doing squirrelly things to code is anything but new. We've talked about it for a long time, but we've finally taken steps to remove Book View from Sigil entirely. It's demise is finally in sight. So if this IS new behavior (Sigil 0.9.11/12/13 marked significant updates to Qt and QtWebKit from previous versions), it's not very likely to be addressed...
That's disappointing, but it's a fair answer, so thank you.
Vanguard3000 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil 0.7.4 delete line with nbsp;! PePaXY Sigil 14 02-15-2014 09:57 PM
View books from command line nichtleiter Calibre 3 12-20-2013 03:05 PM
Line won't break automatically in iBooks eriso ePub 9 01-23-2013 09:02 AM
replace in book view changes view to code view cybmole Sigil 4 10-28-2012 01:20 PM
txt to Epub - nbsp nbsp cybmole Calibre 1 09-17-2010 09:05 AM


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


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