Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 09-29-2018, 04:12 PM   #1
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
Visual Cue in Add Semantics dialogue box?

I've wondered this for a long time... When you open the Add Semantics dialogue box after a semantic has been assigned, is there supposed to be a visual cue indicating the current assignment? Over several years on several different systems, I have never seen any indication of what is assigned.

The only way to tell I can find is manually looking in the content.opf file.

Am I missing something? Obviously I've been making do all this time, but it is especially tricky because selecting a semantic that is already assigned (although there is no indication as such) will actually remove it.

As always, much gratitude to all the devs and volunteers.
BKh is offline   Reply With Quote
Old 09-29-2018, 04:45 PM   #2
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: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Semantics also show up in the tooltip when hovering the mouse over files in the Book Browser (semantic in parens after the filename). We've talked about adding a File Details widget that would list various properties (including semantics assigned), but haven't gotten around to it.

But the answer to your question is, no. There is no visual indicator in the semantic toggle dialog. The mouse-over tooltip and the OPF file (and/or NAV document in an EPUB3) are the only current visual indications.
DiapDealer is online now   Reply With Quote
Advert
Old 09-29-2018, 06:02 PM   #3
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
Quote:
Originally Posted by DiapDealer View Post
Semantics also show up in the tooltip when hovering the mouse over files in the Book Browser (semantic in parens after the filename).
Oh wow! I should have asked years ago.

Isn't this a situation where radio buttons would work since there can only be one per each files?

Any way, thank you so much and thank you for all your work.
BKh is offline   Reply With Quote
Old 09-29-2018, 06:48 PM   #4
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by BKh View Post
I've wondered this for a long time... When you open the Add Semantics dialogue box after a semantic has been assigned, is there supposed to be a visual cue indicating the current assignment?
You could also find the Semantics under the Tools > Reports > All Files under the Semantics column.

In Sigil 0.8.6, there used to be a little helpful checkmark if you right-clicked a file in the Book Browser.

A lot of the reasoning why it's currently the way it is was discussed in this topic:

https://www.mobileread.com/forums/sh...96#post3406896

Quote:
Originally Posted by BKh View Post
Isn't this a situation where radio buttons would work since there can only be one per each files?
I believe in EPUB3 this changed. A single file can be assigned multiple Semantics... hence the rewrite of the Add Semantics menu.

The topic above has all the in-depth discussion on it.

Last edited by Tex2002ans; 09-29-2018 at 06:54 PM.
Tex2002ans is offline   Reply With Quote
Old 09-30-2018, 08:47 AM   #5
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
Quote:
Originally Posted by Tex2002ans View Post
A lot of the reasoning why it's currently the way it is was discussed in this topic:
https://www.mobileread.com/forums/sh...96#post3406896
Oh, sorry I didn't find that thread when I searched! And thank you.
BKh is offline   Reply With Quote
Advert
Old 09-30-2018, 11:44 AM   #6
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Quote:
Originally Posted by Tex2002ans View Post
In Sigil 0.8.6, there used to be a little helpful checkmark if you right-clicked a file in the Book Browser.
Yes, and I've been missing it! Good to know it was taken away for a reason.
Notjohn is offline   Reply With Quote
Old 09-30-2018, 11:47 AM   #7
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by BKh View Post
Oh, sorry I didn't find that thread when I searched! And thank you.
No problem.

It was a side discussion that popped up a few years ago. Probably hard to find unless you knew where to look.

Quote:
Originally Posted by Notjohn View Post
Yes, and I've been missing it! Good to know it was taken away for a reason.
Yeah... I still stand by it being a regression in usability. (Same with the Metadata Editor... but that'll be a post for another time. Perhaps my new blog!)

Last edited by Tex2002ans; 09-30-2018 at 11:52 AM.
Tex2002ans is offline   Reply With Quote
Old 09-30-2018, 06:46 PM   #8
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 wonder if there couldn't be some text at the bottom of the add semantics dialogue box explaining the multiple ways you can find what files have been assigned. And that selecting a semantic designation that is already assigned will un-assign it.

Just a thought.
BKh is offline   Reply With Quote
Old 09-30-2018, 07:39 PM   #9
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: 29,799
Karma: 54830978
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 BKh View Post
I wonder if there couldn't be some text at the bottom of the add semantics dialogue box explaining the multiple ways you can find what files have been assigned. And that selecting a semantic designation that is already assigned will un-assign it.

Just a thought.
Open the OPF. The Guide section (except for the image) for the flagged files
theducks is offline   Reply With Quote
Old 10-01-2018, 10:41 AM   #10
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
Quote:
Originally Posted by theducks View Post
Open the OPF. The Guide section (except for the image) for the flagged files
Yes, yes. I know. This is what I was suggesting...

Click image for larger version

Name:	SigilSemantics.png
Views:	222
Size:	53.3 KB
ID:	166636

Sorry it's so big. Not sure how to change that.

Last edited by DiapDealer; 10-01-2018 at 11:11 AM. Reason: Fixed the over-sized image
BKh is offline   Reply With Quote
Old 10-01-2018, 11:14 AM   #11
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: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
But none of those messages will really help while the semantic dialog is open.
DiapDealer is online now   Reply With Quote
Old 10-01-2018, 01:24 PM   #12
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
Quote:
Originally Posted by DiapDealer View Post
But none of those messages will really help while the semantic dialog is open.
Oh, yes, absolutely. However, It helps with the hour long quest to figure out what the heck is going on.

Because here is what happens....

"OK, I want to make sure I set all the semantics... One final check. Oh, looks like I didn't. I'll just select it again to make sure."
But actually I had set it already! But by doing it again I have now just undone the semantic.

Honestly I think a major (but by no means the only) problem is that the Kindle (and possibly others) don't always recognize the "text" semantic as the start of the book, and in fact just plop you down in a random spot. So at that point you go back to check to see what is set as the semantic text... and then you are stuck in this loop of clicking and testing, clicking and testing.

So, to be clear, I am making this suggestion on behalf of all the stupid, ignorant, and uninformed people that you have empowered to make epubs. Clearly you have almost, but not quite, made the software foolproof.

And just to prove how dense I am, I actually read the manual and didn't catch the hover technique. I just thought that having an explanation in the dialogue box would not require any coding changes and might be helpful to us ignorant folk.
BKh is offline   Reply With Quote
Old 10-01-2018, 02:51 PM   #13
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by BKh View Post
Honestly I think a major (but by no means the only) problem is that the Kindle (and possibly others) don't always recognize the "text" semantic as the start of the book, and in fact just plop you down in a random spot.
Now don't quote me on this, but I believe the "Text" semantic for the Kindle's Start Reading Location (SRL) is old info, a few years out of date.

I believe Amazon currently uses some sort of heuristics to detect SRL (probably first page right after TOC?).

Quote:
Originally Posted by BKh View Post
I just thought that having an explanation in the dialogue box would not require any coding changes and might be helpful to us ignorant folk.
(I think Solution 3 below is the best one so far!)

Solution 1

Maybe within the Add Semantics dialogue box, it could have a checkmark/checkbox column.

So if you opened the TOC.xhtml, you might see this:

Click image for larger version

Name:	SigilAddSemanticsCheckmark.png
Views:	195
Size:	7.2 KB
ID:	166645

(Amazing image editing skills, I know! 100% how the finished product should look. )

Solution 2

Or the Add Semantics menu could show you what's currently applied:

Code:
Table of Contents (Applied)
Or maybe the Book Browser can add the Semantics in parenthesis next to the filename (doesn't Calibre do something similar?):

Code:
cover.xhtml (Cover)
titlepage.xhtml (Title Page)
Chap01.xhtml (Text)
Chap02.xhtml
Solution 3

OR, better yet, the Add Semantics menu could list all the files with semantics, similar to Tools > Table of Contents > Edit Table of Contents:

Click image for larger version

Name:	SigilEditTOCMenu.png
Views:	195
Size:	10.1 KB
ID:	166646

Maybe in this form:

Code:
  Filename          |     Semantics
____________________|______________________
- cover.xhtml       |     Cover
- TOC.xhtml         |     Table of Contents
- copyright.xhtml   |     Copyright Page
- Chap01.xhtml      |     Text,Semantics2,Semantics3
- Chap02.xhtml      |
Now, I think THAT would be the best solution!

You could easily see+set all the semantics in one location, and easily do the entire book without leaving that menu.

Last edited by Tex2002ans; 10-01-2018 at 03:00 PM.
Tex2002ans is offline   Reply With Quote
Old 10-01-2018, 10:08 PM   #14
JustinThought
Groupie
JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.
 
JustinThought's Avatar
 
Posts: 171
Karma: 3517858
Join Date: May 2016
Location: Monterrey, Mexico
Device: Samsung Tab-3 7"
My final check is to run the reports, make sure I don't have any orphan classes. But I also always open the "All Files" tab, and I check my semantics there. Everything's nicely collected in one place.
Attached Thumbnails
Click image for larger version

Name:	Semantics.jpg
Views:	204
Size:	233.1 KB
ID:	166650  

Last edited by JustinThought; 10-01-2018 at 10:19 PM.
JustinThought is offline   Reply With Quote
Old 06-21-2019, 04:00 PM   #15
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: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
Lightbulb

I know, I know ... an old thread, discussed many times, and also linked to an even older one.
It worried me a few years (!), but I think I have an idea that should appeal to both programmers and users.

I know exactly how to check the semantics (guide in opf, landmarks in nav, hover or report), but I want to SEE immediately those files that have set semantics.

And ... I succeeded.

I have the "X" icon assigned to .xhtml files by default (other people usually have a browser icon there). An icon with a checkmark means a file with semantics. I suggest the default icon "document-validate_16px.png" for testing

Now, when checkmark (or something else) I know straight away that there is semantics in this file and then I can easily look at the tooltip. When an ebook has 100 chapters - it makes a difference!

The change requires only two lines of code.
File: \src\MainUI\OPFModel.cpp
Code:
        if (semantic_type_all.contains(path)) {
            tooltip += " (" + semantic_type_all[path] + ")";
            item->setIcon(QIcon(QString::fromUtf8(":/main/document-validate_16px.png")));
        }
        if (manifest_properties_all.contains(path)) {
            tooltip += " [" + manifest_properties_all[path] + "]";
            item->setIcon(QIcon(QString::fromUtf8(":/main/document-validate_16px.png")));
        }
Only two things are worrying me:
1. It rather works in Windows, but since Sigil is a multi-system program, the solution should work everywhere, including Linux and Mac. Can anyone build a version in these systems and check it out?

2.
Quote:
Originally Posted by KevinH View Post
Again, I do not like feature bloat for no good reason.
Is this idea just an unnecessary bloat or a useful change?

Proof of concept – animated gif.
BeckyEbook is offline   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:59 AM.


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