![]() |
#1 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 166
Karma: 474196
Join Date: Jan 2011
Location: Canada
Device: Kobo Libra 2
|
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
![]() Code:
Hello world Code:
Helloworld Code:
Hello world Code:
Hello world Code:
<p>Hello</p> <p> world</p> 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. |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
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> Hello world |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 166
Karma: 474196
Join Date: Jan 2011
Location: Canada
Device: Kobo Libra 2
|
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.
|
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
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:
simply copy the <p class='foo'> from the beginning and paste it where the new paragraph, then use Pretty-FIX to make all good ![]() and just insert it at the proper place point, the bulk replace 'foo' with the proper class |
|
![]() |
![]() |
![]() |
#5 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
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. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
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 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.
|
![]() |
![]() |
![]() |
#7 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,612
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
FWIW : in Book View - if I position the insertion cursor thus:
Code:
Hello |World
BR |
![]() |
![]() |
![]() |
#8 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#9 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#10 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 166
Karma: 474196
Join Date: Jan 2011
Location: Canada
Device: Kobo Libra 2
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
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. |
![]() |
![]() |
![]() |
#12 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,453
Karma: 5703586
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).
|
![]() |
![]() |
![]() |
#13 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,612
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() 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 |
|
![]() |
![]() |
![]() |
#14 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 171
Karma: 3517858
Join Date: May 2016
Location: Monterrey, Mexico
Device: Samsung Tab-3 7"
|
Quote:
So that a perfect illustration of how each person has discovered/developed the processes that work best for themselves. |
|
![]() |
![]() |
![]() |
#15 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 166
Karma: 474196
Join Date: Jan 2011
Location: Canada
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |