06-11-2019, 09:05 PM | #31 |
Wizard
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
Ok, I'll try opening the Preview window and leaving it open. The current project should be a good test; I'm combining 24+ books that I get as 1 html page per book, about 400k+ per book.
Last edited by lumpynose; 06-11-2019 at 09:15 PM. |
06-11-2019, 09:06 PM | #32 |
Wizard
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
|
06-12-2019, 02:07 AM | #33 | |
just an egg
Posts: 1,587
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
And thanks again, DiapDealer and KevinH, for all the refinements in 0.9.14. I am having a crappy week (unrelated to epubs) and having 0.9.14 to play with is just what I need to keep my spirits up Also thank you BeckyEbook for the pull request to enable docking the validation window at the top of the screen. Sigil developers are the best! Last edited by odamizu; 06-12-2019 at 02:18 AM. |
|
06-12-2019, 02:50 AM | #34 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
mistake
Last edited by roger64; 06-12-2019 at 02:55 AM. Reason: mistake |
06-12-2019, 02:54 AM | #35 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
If I understood correctly (I got a little help about it), I can now get rid of my "160" preserved entity in the Preferences. As you may know, French are particularly sensitive about no-break spaces because they have to make an intensive use of them. We use nbsp and nnbsp (coded in their own ways). Replacing the original two short underlines (Kevin's own) with one bold underline (Becky's own) seems better for visibillity. Would it be possible to go one step further (à la Calibre) and display a yellow highlight (see screenshot) ? I think the visibility would be even better. Last edited by roger64; 06-12-2019 at 03:01 AM. |
|
06-12-2019, 03:29 AM | #36 | |
Enthusiast
Posts: 35
Karma: 14720
Join Date: Mar 2016
Device: kindle voyage, Kobo Forma, Kobo Aura One
|
Quote:
This is the default appearance: https://imgur.com/jGrAwOm |
|
06-12-2019, 06:23 AM | #37 | |
Grand Sorcerer
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
I have to say I'm a little surprised by the request for "less subtlety," though. I mean; if you require a hit-me-over-the-head there's-a-non-breaking-space-lurking-right-here type of thing in Code View, doesn't a highly visible html entity already fit the bill? How is a super-fat, yellow glowing underline more aethetically pleasing than the html entity that's always been available? Just put or   back in your Preserve Entities list if you need quickly recognizable, super visible, no-break-spaces in Code View. Amiright? Last edited by DiapDealer; 06-12-2019 at 08:37 AM. |
|
06-12-2019, 07:08 AM | #38 |
Grand Sorcerer
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
06-12-2019, 08:55 AM | #39 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
If Becky has been able to change the sign, maybe it would be possible to provide a command that would insert an -ugly if you say so- but visible yellow highlight? Last edited by roger64; 06-12-2019 at 08:58 AM. |
|
06-12-2019, 09:21 AM | #40 | |
Grand Sorcerer
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
If it's about being able to differentiate between a normal space character and a non-breaking space character (and I've seen nothing to suggest it's anything but), I get that. They look identical in Code View. That's why we included the dotted-dash in the first place. And that's why it's "subtle." If the solution isn't ultimately about subtlety and personal aesthetics, then I see no point in eradicating the no-break-space entity from your code in the first place. Why replace one visible aberration for another visible aberration in Code View in that case? If it's about being able to type no-break-space characters with a French keyboard more easily, then the new feature solves that problem quite handily. If after typing them, however, you need to be able to identify them more quickly than the current double-dash allows you to do, what harm in allowing Sigil to convert them to entities automatically for you? And the answer is, of course: "No harm." None at all save for aesthetics reasons. As I said, we'll take it under advisement, but I simply don't see the point in trading one highly-visible flag for another highly visible flag. Not when they're both being used to point out the same pothole. Becky's only been able to "change the sign" by patching Sigil's source code and recompiling Sigil. Which anyone is free to do if they like. Last edited by DiapDealer; 06-12-2019 at 09:32 AM. |
|
06-12-2019, 09:29 AM | #41 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
I'm afraid, this topic drifted a bit. It's not about "Why?" but about "How?".
My question was: is it possible to change easily this bold underline for a yellow highlight? If it's possible easily, let me know please how to do it and I'll take care of it. If it's not possible, let's drop it. |
06-12-2019, 09:36 AM | #42 | ||
Grand Sorcerer
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Quote:
Sure. I'm not the one who brought it up in the first place, and I'm not that interested in changing it globally anyway. |
||
06-12-2019, 10:19 AM | #43 | |
Sigil Developer
Posts: 7,656
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Thanks for the feedback and image! Yes, I agree with you about the stripy-ness. I do believe that different highlighting for alternate lines is controllable in the code. I will look into it.
Quote:
|
|
06-12-2019, 10:26 AM | #44 | |
Sigil Developer
Posts: 7,656
Karma: 5433388
Join Date: Nov 2009
Device: many
|
It is possible but using a background "highlight" like calibre would require a bit of a overhaul as Calibre has its own dark/light modes (which changes the background colour used to highlight), whereas Sigil lets Qt handle that for us so setting a fixed background colour to "highlight" anything would be a mistake. Having a similar visual appearance between Sigil and calibre is not a goal either project is striving for.
So setting a background colour (a space has no foreground colour) is not something we will be doing. KevinH Quote:
|
|
06-12-2019, 11:52 AM | #45 |
Sigil Developer
Posts: 7,656
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Looking more closely the alternating colours are all in Tables/TreeViews, etc.
From snooping in the Sigil code, I see the following: Code:
Kevins-MacBook-Pro:Sigil kbhend$ grep setAlternatingRowColors `find ./ -name "*.cpp"` .//src/Dialogs/ClipEditor.cpp: ui.ClipEditorTree->setAlternatingRowColors(true); .//src/Dialogs/DeleteFiles.cpp: ui.Table->setAlternatingRowColors(true); .//src/Dialogs/DeleteStyles.cpp: ui.Table->setAlternatingRowColors(true); .//src/Dialogs/IndexEditor.cpp: ui.IndexEditorTree->setAlternatingRowColors(true); .//src/Dialogs/PreferenceWidgets/SpellCheckWidget.cpp: ui.userDictList->setAlternatingRowColors(true); .//src/Dialogs/SearchEditor.cpp: ui.SearchEditorTree->setAlternatingRowColors(true); .//src/Dialogs/SpellcheckEditor.cpp: ui.SpellcheckEditorTree->setAlternatingRowColors(true); In a stylesheet you should look to change or add the "alternate-background-color" property for QTableView, QTableWidget, QTreeView, and QTreeWidget. See https://doc.qt.io/qt-5/stylesheet-reference.html for more details. Hope this helps. KevinH |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil-0.9.1 Released | KevinH | Sigil | 36 | 12-04-2015 03:00 PM |
Sigil-0.8.900 released for testing - Wait for Sigil-0.8.901 | KevinH | Sigil | 106 | 10-04-2015 10:41 AM |
Sigil 0.8.1 Released | user_none | Sigil | 33 | 10-16-2014 05:04 PM |
Sigil 0.7.1 Released | user_none | Sigil | 64 | 03-26-2013 10:02 PM |
Sigil 0.6.0 Released | user_none | Sigil | 93 | 11-24-2012 06:50 PM |