![]() |
#16 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#17 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,699
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
|
|
![]() |
![]() |
![]() |
#18 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#19 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
![]() |
![]() |
![]() |
#20 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,491
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'm convinced its dangers and pitfalls far outweigh its usefulness.
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. |
![]() |
![]() |
![]() |
#21 |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#22 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
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 |
|
![]() |
![]() |
![]() |
#23 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#24 |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#25 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#26 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#27 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#28 | ||
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Aside: it was quite a while before I found out C# is pronounced 'cee-sharp' and not 'cee-crunch'. Quote:
BR Last edited by BetterRed; 08-24-2016 at 08:22 PM. |
||
![]() |
![]() |
![]() |
#29 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
ONE TIME ![]() Then I could not get it to work again |
|
![]() |
![]() |
![]() |
#30 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |