Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-28-2019, 12:48 AM   #31
BKh
Zealot
BKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheese
 
BKh's Avatar
 
Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
I just want to share my appreciation for the folks still working on/talking about this. Only yesterday I came across the issue again in an old book I was working on. Thanks!!
BKh is offline   Reply With Quote
Old 07-01-2019, 08:25 PM   #32
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,805
Karma: 6000000
Join Date: Nov 2009
Device: many
For the record, I have just pushed changes to master to colour the current semantic in red (if any set) in the Add Semantics dialog.

For those who build from source you can pull from master and rebuild to get this change asap. Otherwise this change will be included for the upcoming final (non-beta) release of Sigil.
KevinH is offline   Reply With Quote
Advert
Old 07-02-2019, 07:05 AM   #33
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 843
Karma: 3335974
Join Date: Jan 2017
Location: Poland
Device: Various
Thank you for this improvement.

One note:
The red color is probably not visible with the dark theme, because you can not add style only for current semantic element. It would be worth building a version and checking on a dark theme in Mojave.
Using the QSS style – the red color disappears.
The solution would be simply to add a checkmark suggested by BetterRed here.

Code:
QString added_checkmark = name + " ✓";
item->setText(added_checkmark);
Attached Thumbnails
Click image for larger version

Name:	add-semantic-checkmark.png
Views:	141
Size:	39.0 KB
ID:	172218  
BeckyEbook is offline   Reply With Quote
Old 07-02-2019, 07:58 AM   #34
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,805
Karma: 6000000
Join Date: Nov 2009
Device: many
No the name itself is used in a dictionary lookup, so modifying the name itself is out.
Why can't red be seen on a Dark motif? It is a foreground colour and not a background colour for the text. Red should show up on a dark or light background. That is why I chose it.

Last edited by KevinH; 07-02-2019 at 08:05 AM.
KevinH is offline   Reply With Quote
Old 07-02-2019, 09:57 AM   #35
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 843
Karma: 3335974
Join Date: Jan 2017
Location: Poland
Device: Various
Quote:
Originally Posted by KevinH View Post
No the name itself is used in a dictionary lookup, so modifying the name itself is out.
I'm sorry, I do not know. It works for me.
Screen shots were real.

Quote:
Originally Posted by KevinH View Post
Why can't red be seen on a Dark motif? It is a foreground colour and not a background colour for the text. Red should show up on a dark or light background. That is why I chose it.
Yes, for REAL dark theme (like as Mojave).
But for QSS style if the current semantics does not have any css / qss class or id that can be individually configured - it looks like this: dark background and black text. The red color among black foreground on a dark background looks unattractive.
If I write style:
Code:
QListView::item {
  color: #d8d8d8;
}
...this style will overwrite the red color.
That's what I meant when I suggested a checkmark that always works.
Attached Thumbnails
Click image for larger version

Name:	qlist-black.png
Views:	135
Size:	6.8 KB
ID:	172219  
BeckyEbook is offline   Reply With Quote
Advert
Old 07-02-2019, 10:55 AM   #36
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,607
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
It's always going to be possible for a user's custom qss and Sigil defaults to be at odds with each other. And "unattractive" is always going to be in the eye of the beholder. People wanted to be able to SEE if a semantic is already applied to a file in the semantics dialog. This accomplishes that without adding extra columns to an already crowded dialog.

Last edited by DiapDealer; 07-02-2019 at 11:05 AM.
DiapDealer is online now   Reply With Quote
Old 07-02-2019, 10:58 AM   #37
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,805
Karma: 6000000
Join Date: Nov 2009
Device: many
The name string itself is used in a dictionary lookup. If you append a check char to the end, looking up the name will fail, which means you will not be able to toggle the previously set semantic in one step.

So adding chars to the name is *not* what I want to do. I would have to collect the selected names and check if already appended with space check and then remove it before looking it the name in the dictionary.

BTW, any user could set their own qss and make any Sigil dialog pretty unusable.
KevinH is offline   Reply With Quote
Old 07-02-2019, 12:25 PM   #38
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 843
Karma: 3335974
Join Date: Jan 2017
Location: Poland
Device: Various
Quote:
Originally Posted by KevinH View Post
The name string itself is used in a dictionary lookup. If you append a check char to the end, looking up the name will fail, which means you will not be able to toggle the previously set semantic in one step.
You're right. name + checkmark does not allow to deselect already assigned semantics.

Quote:
Originally Posted by DiapDealer View Post
It's always going to be possible for a user's custom qss and Sigil defaults to be at odds with each other. And "unattractive" is always going to be in the eye of the beholder.
Quote:
Originally Posted by KevinH View Post
BTW, any user could set their own qss and make any Sigil dialog pretty unusable.
You are right. But in this case the point is that creating the correct qss style in which this red color will be visible is IMHO impossible.

Quote:
Originally Posted by DiapDealer View Post
People wanted to be able to SEE if a semantic is already applied to a file in the semantics dialog. This accomplishes that without adding extra columns to an already crowded dialog.
I really appreciate this solution, because it significantly facilitates the work on e-books. I am sure that all users will welcome this feature.

I can handle it.
BeckyEbook is offline   Reply With Quote
Old 07-02-2019, 12:55 PM   #39
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,805
Karma: 6000000
Join Date: Nov 2009
Device: many
I could either set the foreground and background colour independent of theme, or use a text decoration like an underline. Would an underline be better than a vibrant red colour? I find underlines are harder to detect than a foreground colour like red.
KevinH is offline   Reply With Quote
Old 07-02-2019, 01:15 PM   #40
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,805
Karma: 6000000
Join Date: Nov 2009
Device: many
Another possibility is to add checked versions of the names to the dictionary as well. Or even just the current name with check to the dictionary... that would work.
KevinH is offline   Reply With Quote
Old 07-02-2019, 01:19 PM   #41
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,607
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Could we somehow let QPalette choose a thematic color? I don't know the first thing about it, but I think we're supposed to be able to use things like:

QPalette::BrightText
QPalette::AlternateBase
QPalette::Midlight
DiapDealer is online now   Reply With Quote
Old 07-02-2019, 01:41 PM   #42
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,805
Karma: 6000000
Join Date: Nov 2009
Device: many
Yes this sounds like a good idea.

It will take some study and work.

So until then I have just pushed the space checkmark idea where we load the checked version of the name into the dictionary to prevent issues.

That should keep everyone happy for the upcoming release until we figure out how to do our own themes or at least figure out how to make theme-appropriate choices.

Thanks,

Kevin

Quote:
Originally Posted by DiapDealer View Post
Could we somehow let QPalette choose a thematic color? I don't know the first thing about it, but I think we're supposed to be able to use things like:

QPalette::BrightText
QPalette::AlternateBase
QPalette::Midlight
KevinH is offline   Reply With Quote
Old 07-02-2019, 02:06 PM   #43
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 843
Karma: 3335974
Join Date: Jan 2017
Location: Poland
Device: Various
Double thank you for your understanding of users who use their own themes.
I confirm that it works great now (build on Win10).
BeckyEbook is offline   Reply With Quote
Old 07-02-2019, 06:02 PM   #44
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,745
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
FTR - my original idea was to have a checkmark on the file name in the Book Browser, to indicate the files that have a semantic tag.

This would help identify files that a) might have been spuriously tagged - e.g. I would not expect chapter3.xhtml to have a semantic tag, and b) might have missed being tagged - e.g. I would expect dedication.xhtml to have a semantic tag. My thinking was that the presence and/or absence of questionable checkmarks would be a trigger for me to take a closer look at Reports->All Files.

That's not at odds with using a checkmark (or colour) in the Add Semantics dialogue against the tag assigned to a given file. But it is not equivalent.

BR
BetterRed is offline   Reply With Quote
Old 07-02-2019, 06:19 PM   #45
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,607
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by BetterRed View Post
That's not at odds with using a checkmark (or colour) in the Add Semantics dialogue against the tag assigned to a given file. But it is not equivalent.
It's not equivalent. But it's what we're getting. I'm simply not in favor of adding extra visual indicators to the Book Browser (or changing the existing Book Browser icons). Especially when those indicators won't give you the level of detail you'd actually need to make any changes. Look at the OPF or the NAV if you need a quick, detailed overview of which files have which semantics assigned to them, and use the new visual indication in the semantics dialog to make sure you're not toggling off something you meant to turn on.

Last edited by DiapDealer; 07-02-2019 at 06:24 PM.
DiapDealer is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Semantics? lkasdorf Sigil 2 04-25-2012 07:33 AM
The 'Add' Dialog box spanning the whole screen? ne0b0rn Calibre 10 01-16-2012 09:43 PM
Add semantics context menu Artha Sigil 1 11-22-2011 02:11 PM
I want to add Calibre Plugboard usage to the Kindle Visual Guide... daffy4u Amazon Kindle 19 12-19-2010 05:31 PM
Wonderful Book Browser-->add semantics menu not sticking meika Sigil 3 07-31-2010 08:30 AM


All times are GMT -4. The time now is 08:24 PM.


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