![]() |
#106 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,364
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
The problem with "hiding" html tags in something like Code View is that it still doesn't address one of the biggest hurdles faced in synchronizing the current Book View with Code View: accurately/consistently "guessing" the real cursrsor postition in a rendering of the actual (and often times very convoluted) html markup. Hiding markup would only likely exascerbate the problem. When faced with a nightmare of nested spans, divs and blockquotes, where IS the cursor, really, when you place it next to the letter 'V' in a wysiwg view? Next to the innermost preceding inline element? The outermost block-level element? Somewhere in between them? This has to be known (or "best-wild-assed-guessed-at") to be able to convert your wysiwyg changes into html that's then merged (with any luck--gracefully) back into the pre-existing markup. This issue is also what makes splitting/merging in Book View ill-advised.
Sometimes I think people don't understand that there is no seperate, text-only version of your document that exists within Sigil to be edited. There is only the markup (CV), and then the Webkit rendered markup (BV) that gets crammed into a text editor--the changing of which requires figuring out the best (often meaning least destructive) method of incorporating those "blind" edits back into the real document. A wysiwyg editor in which the ability to edit (or even influence) the underlying markup is entirely forfeited .... piece of cake. A code view editor which provides the ability to produce markup exactly the way you want it (while being able to preview your work--but not change anything in it) .... another piece of cake. The ability to do either without depriving both wysiwyg users AND codemonkeys of features that would otherwise be relatively simple to impliment, can actually be quite the nightmare. Most of it down to cursor position and Webkit quirks/bugs that don't allow certain things to survive the transition. Last edited by DiapDealer; 12-30-2015 at 11:29 AM. |
![]() |
![]() |
![]() |
#107 | |
Hedge Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
|
Quote:
Purely a brainstorming idea for discussion If each of the above are relatively easy is it be possible to have them as Sigil "modes" and have the ability to toggle between the modes? |
|
![]() |
![]() |
![]() |
#108 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
That is what we already have, to some extend. The source must be the same, to prevent syncing errors or missing content.
|
![]() |
![]() |
![]() |
#109 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,189
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I don't want a Sigil trying to figure out what it thinks I mean. I want it to show what I do mean. Then I can see if I've done anything incorrectly or not.
|
![]() |
![]() |
![]() |
#110 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,189
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Would it be possible to have a book view (none-editable) next to the code view so we can see what we are doing while we do it (like Calibre has). This is not to replace book view.
|
![]() |
![]() |
![]() |
#111 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,685
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
#112 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
|
![]() |
![]() |
![]() |
#113 | |
Hedge Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
|
Quote:
To make things clearer you would have a "bookview" which has no ability to edit (or even influence) the underlying markup OR a Code view which could be used with the Preview pane which cannot be edited. There need be no cursor syncing when switching modes. It is this syncing which has been said to cause many problems. Last edited by Thasaidon; 12-31-2015 at 08:46 AM. Reason: removed superfluous word |
|
![]() |
![]() |
![]() |
#114 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,912
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Clicking in Preview will Sync the Code view to the same paragraph.
That meets my needs. Get me to the code (right now... ![]() It does this well Preview pane can be undocked for those with multi-monitors ![]() |
![]() |
![]() |
![]() |
#115 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,364
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
It's not so much "synching" that's the problem (though I know I introduced the term). It's cursor position (knowing where the cursor is being placed in the "real" document (html) when editing in the rendered Book View text, and elements that can't survive (or exist) when turning that rendered Book View text back into html. Most of this is handled by Qt, by the way. Meaning we're basically at the mercy of its bugs and quirks. But so far, we've been able to introduce limited epub3 support (and keep working to add more) without needing to sacrifice Book View editing. So unless we smack into an insurmountable obstacle, there will be no push to remove Book View anytime soon (if ever). Just so long as people understand that continuing to make extensive edits in Book View will eventually bite you in the ass (even if you're very careful). It's just the nature of the beast. I, personally, am uncomfortable promoting Sigil as a WYSIWYG editor when I can't, in good conscience, recommend that anyone actually use the WYSIWYG interface for editing. I get tired of providing support that basically consists of, "don't do that in Book View." It's not a real answer (even though it's the ONLY one I can give). Last edited by DiapDealer; 12-31-2015 at 10:34 AM. |
|
![]() |
![]() |
![]() |
#116 | |
Member
![]() Posts: 12
Karma: 64
Join Date: Dec 2015
Device: Kindle
|
DiapDealer said:
Quote:
The majority of what we do in Book View mode is cutting and pasting of paragraphs. We know better than to cut and paste sections with mixed tags such as div and span sections. Since most of our material is in simple paragraphs this means we can edit for hours without an issue coming up. We know which sections have mix tags and switch to Code View for those edits. Sure, every once in a while we screw up and end up with mangled tags that must be fixed. Here is an idea - How about reducing Book View functionality so that it can only edit paragraphs and other areas that do not cause a problem? In other words have a Book View with reduced but less buggy functionality. For other types of editing you would simply switch to Code View. In this case we could still use Book View for the things that it does well and it would simply not have the problematic functionality available. We wont be losing anything because we avoid the problematic functionality now anyway. Just an idea. |
|
![]() |
![]() |
![]() |
#117 | |||||||
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,488
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Status Update on Getting Decent Epub 3 support
Updated 20160103.
Based on master at https://github.com/kevinhendricks/Sigil Here is a status update on adding basic epub3 support in Sigil. For the next release, we have made Sigil epub version "aware" so that things like Mend(), Splitting Files, Adding Existing Documents, Index Generation, NCX creation, and "creating a new ebook from scratch" are all now do the right thing for the specific epub version. In other words, using these features should no longer break an epub3. Here is our progress on selected items form the first post in this thread... Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
So there is still lots to do but we are moving forward. KevinH and DiapDealer |
|||||||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Decent EPub Reader for Windows 8.1 | emt | Windows Devices | 14 | 02-22-2014 12:01 PM |
Intro / PowerAMP help / decent music player with m3u support and widget? | mtambo | enTourage eDGe | 0 | 07-19-2011 11:17 PM |
Future EPUB Support | Falk | Kindle Developer's Corner | 13 | 10-22-2009 09:01 PM |
community mobi-support for future firmware-releases | ThR | iRex | 27 | 07-21-2009 08:07 PM |
Thoughts on iLiad support | henrikb | iRex | 1 | 09-21-2008 07:56 PM |