Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-11-2016, 11:24 AM   #16
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: 28,491
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I'll have to wait until I get home to look at this, but to my knowledge, Sigil does not create ANY new ids when splitting files. Let alone duplicate ones. Links are updated (because of new file names), but anchors remain the same. I could be wrong, but I'm fairly certain.

EDIT: Doitsu's post came while I was drafting mine. We'll have to see what can be done. As always, I recommend using Book View for nothing other than inputing text and seeing what it looks like. But it definitely shouldn't be creating duplicate elements either.

We really need to find a way to disable a lot of these advanced features when in Book View, but I don't know how practical that is.

Last edited by DiapDealer; 08-11-2016 at 11:34 AM.
DiapDealer is offline   Reply With Quote
Old 08-11-2016, 11:29 AM   #17
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,699
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by DiapDealer View Post
I'll have to wait until I get home to look at this, but to my knowledge, Sigil does not create ANY new ids when splitting files. Let alone duplicate ones. Links are updated (because of new file names), but anchors remain the same. I could be wrong, but I'm fairly certain.
You might have missed my post that I posted one minute before you. I was able to reproduce this for the Windows version.
Doitsu is offline   Reply With Quote
Old 08-11-2016, 02:28 PM   #18
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: 28,491
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
It's got nothing to do with the splitting, by the way. The elements with duplicate ids are there at the end of step 2.

It also doesn't matter if you place the cursor before or after the text and hit enter.

1) open a new empty epub
2) give the existing p element an id of some kind (any id)
3) switch to Book View and hit enter 3 times
4) switch back to Code View and look at the code

Book View has behaved this way at least as far back as 0.7.x (and probably since the beginning). Hitting enter when in Book View will create a new (the same) element which has the exact same attributes as the element your cursor was in when you hit enter.
DiapDealer is offline   Reply With Quote
Old 08-11-2016, 02:49 PM   #19
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: 8,581
Karma: 5703586
Join Date: Nov 2009
Device: many
That is horrible ....

I'd say this is yet another nail in the coffin for BV. I will study the BookView code but this could be coming from hitting enter inside a QWebkit widget when live editing a dom document (which is what BV is actually doing).

KevinH


Quote:
Originally Posted by DiapDealer View Post
It's got nothing to do with the splitting, by the way. The elements with duplicate ids are there at the end of step 2.

It also doesn't matter if you place the cursor before or after the text and hit enter.

1) open a new empty epub
2) give the existing p element an id of some kind (any id)
3) switch to Book View and hit enter 3 times
4) switch back to Code View and look at the code

Book View has behaved this way at least as far back as 0.7.x (and probably since the beginning). Hitting enter when in Book View will create a new (the same) element which has the exact same attributes as the element your cursor was in when you hit enter.
KevinH is online now   Reply With Quote
Old 08-11-2016, 03:20 PM   #20
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: 28,491
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
I'd say this is yet another nail in the coffin for BV.
I'm convinced its dangers and pitfalls far outweigh its usefulness.

Quote:
Originally Posted by KevinH View Post
I will study the BookView code but this could be coming from hitting enter inside a QWebkit widget when live editing a dom document (which is what BV is actually doing).
Some method to zero the current attribute string would be nice. So that when you hit enter, you're creating new attribute-less element. I've no idea if that's even remotely feasible or not, though.
DiapDealer is offline   Reply With Quote
Old 08-24-2016, 06:02 AM   #21
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,211
Karma: 34984682
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
The only thing I use Book View for now is to copy selections of text to paste elsewhere WITHOUT THE MARKUP, such as to provide a sample for an excerpt in a post, or to search for certain glyphs.

I do really miss the ability from old versions to run a Search in Book View -- it was invaluable for searching for stray slashes, equal signs, and straight quotes left in OCR'd text. Because these glyphs are all integral to the markup tags, there is no convenient way to search for them in Code View.

It is possible to copy from the Preview Pane, but it is awfully finicky, and loses your selection if you breathe hard.

If you ever make the Preview Pane more amenable to selecting text, you could bury Book View in the deeps of the Marianas Trench and I would never miss it.

If there is any other way to copy the text without the markup, I am all ears and eyes.
GrannyGrump is offline   Reply With Quote
Old 08-24-2016, 08:45 AM   #22
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,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by GrannyGrump View Post
If there is any other way to copy the text without the markup, I am all ears and eyes.
@GrannyGrump - I use a Windows gadget Clipboard Fusion, amongst other things it can scrub html markup from copied text

Click image for larger version

Name:	Clipboard01.jpg
Views:	113
Size:	36.6 KB
ID:	151157

It works everywhere - browsers, Sigil code view etc. Basic features are free, but not multiple device clipboard synching.

Available on Linux, its another Qt based program.

BR
BetterRed is offline   Reply With Quote
Old 08-24-2016, 10:54 AM   #23
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: 8,581
Karma: 5703586
Join Date: Nov 2009
Device: many
I can look into adding some way to copy in PreView/BookView and only get text and no markup at all. It should not be hard to add that capability as the javascript DOM has functions to get just text from a node. If need be I can just take what was copied and strip out the markup when the user chooses a paste-special type of thing.

I thought there was already something that asked if you want html or text but perhaps not.

KevinH
KevinH is online now   Reply With Quote
Old 08-24-2016, 11:22 AM   #24
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,211
Karma: 34984682
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
BetterRed -- I just downloaded ClipboardFusion, and going to give it a try. Thanks for the tip! the program specs sound great.

KevinH -- there very well may be something for obtaining html vs. text. I don't have Sigil on this computer to look. One of the things that hampers my Sigil usage is a self-inflicted wound --- I wrote a rather bulky AutoHotkey script that does a lot of donkey work using the right mouse button, but with the unfortunate side effect that sometimes the right-click in certain applications is non-responsive. I will try disabling the script and see where my explorations lead.
As I said, it is possible to select text in Preview Pane, but it is way too easy to lose the selection before you have time to hit CTRL C or click the "Copy" toolbar button, or whatever.
GrannyGrump is offline   Reply With Quote
Old 08-24-2016, 01:11 PM   #25
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)
GrannyGrump -- I would like to note that calibre's Editor has a special search tool to search text while ignoring tags.

Search ==> Search ignoring HTML markup

...

Kevin, Diap, this would be nice to have in Sigil also.
eschwartz is offline   Reply With Quote
Old 08-24-2016, 02:11 PM   #26
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: 8,581
Karma: 5703586
Join Date: Nov 2009
Device: many
Actually text search only should be reasonably easy, it is just that search with replace is hard. I will look into search text only with no replace. You can of course do a search of text outside of tags using regular expressions right now in Sigil, but that will not find a phrase whose text is separated by tags.

KevinH
KevinH is online now   Reply With Quote
Old 08-24-2016, 02:49 PM   #27
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)
Yeah, calibre's "Search ignoring HTML markup" doesn't do replace either.

It is possible to do already, in certain circumstances, using very complicated regular expressions... but that really isn't very helpful.
eschwartz is offline   Reply With Quote
Old 08-24-2016, 08:09 PM   #28
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,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by GrannyGrump View Post
BetterRed -- I just downloaded ClipboardFusion, and going to give it a try. Thanks for the tip! the program specs sound great.
There are also some handy macros, most are written in C#, not sure if that means you need Mono on Linux.

Aside: it was quite a while before I found out C# is pronounced 'cee-sharp' and not 'cee-crunch'.

Quote:
Originally Posted by GrannyGrump View Post
As I said, it is possible to select text in Preview Pane, but it is way too easy to lose the selection before you have time to hit CTRL C or click the "Copy" toolbar button, or whatever.
I don't think I've ever succeeded in copying anything from Sigil's Preview. I sort of assumed one was supposed to use Book View

BR

Last edited by BetterRed; 08-24-2016 at 08:22 PM.
BetterRed is offline   Reply With Quote
Old 08-24-2016, 10:37 PM   #29
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,938
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 BetterRed View Post
There are also some handy macros, most are written in C#, not sure if that means you need Mono on Linux.

Aside: it was quite a while before I found out C# is pronounced 'cee-sharp' and not 'cee-crunch'.


I don't think I've ever succeeded in copying anything from Sigil's Preview. I sort of assumed one was supposed to use Book View

BR
Keystroke Copy worked on Windows. (Ctrl-Ins and Shft-Ins)
ONE TIME

Then I could not get it to work again
theducks is online now   Reply With Quote
Old 08-25-2016, 02:37 AM   #30
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by BetterRed View Post
There are also some handy macros, most are written in C#, not sure if that means you need Mono on Linux.

Aside: it was quite a while before I found out C# is pronounced 'cee-sharp' and not 'cee-crunch'.


I don't think I've ever succeeded in copying anything from Sigil's Preview. I sort of assumed one was supposed to use Book View

BR
In the beginning I thought it was 'cee-hash'. Apparently it is not a # symbol, but a ♯. Spot the difference... The second is the sharp symbol. As this is not easy to type, most people (and MS themselves) usually use the # symbol.
Toxaris is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing doubled-up book covers CharredScribe Calibre 1 08-15-2015 12:33 PM
Non-breaking space (doubled) bug Camelot Sigil 49 02-13-2015 04:20 PM
PRS-T1 sync has doubled my collections Falchetta Sony Reader 2 07-08-2012 06:11 PM
Chapters are doubled in Table of Contents on Kobo...help!!! capsolo ePub 1 06-20-2010 12:58 PM
Every book in my library now doubled up on my 505 Gameboy213 Sony Reader 11 05-12-2009 06:49 PM


All times are GMT -4. The time now is 10:53 PM.


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