09-29-2018, 04:12 PM | #1 |
Zealot
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. |
09-29-2018, 04:45 PM | #2 |
Grand Sorcerer
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. |
Advert | |
|
09-29-2018, 06:02 PM | #3 | |
Zealot
Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
Quote:
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. |
|
09-29-2018, 06:48 PM | #4 | ||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
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:
The topic above has all the in-depth discussion on it. Last edited by Tex2002ans; 09-29-2018 at 06:54 PM. |
||
09-30-2018, 08:47 AM | #5 | |
Zealot
Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
Quote:
|
|
Advert | |
|
09-30-2018, 11:44 AM | #6 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
|
09-30-2018, 11:47 AM | #7 |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
No problem.
It was a side discussion that popped up a few years ago. Probably hard to find unless you knew where to look. 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. |
09-30-2018, 06:46 PM | #8 |
Zealot
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. |
09-30-2018, 07:39 PM | #9 |
Well trained by Cats
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
|
Open the OPF. The Guide section (except for the image) for the flagged files
|
10-01-2018, 10:41 AM | #10 | |
Zealot
Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
Quote:
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 |
|
10-01-2018, 11:14 AM | #11 |
Grand Sorcerer
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.
|
10-01-2018, 01:24 PM | #12 | |
Zealot
Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
Quote:
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. |
|
10-01-2018, 02:51 PM | #13 | ||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
I believe Amazon currently uses some sort of heuristics to detect SRL (probably first page right after TOC?). Quote:
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: (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) Code:
cover.xhtml (Cover) titlepage.xhtml (Title Page) Chap01.xhtml (Text) Chap02.xhtml OR, better yet, the Add Semantics menu could list all the files with semantics, similar to Tools > Table of Contents > Edit Table of Contents: 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 | 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. |
||
10-01-2018, 10:08 PM | #14 |
Groupie
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.
Last edited by JustinThought; 10-01-2018 at 10:19 PM. |
06-21-2019, 04:00 PM | #15 |
Guru
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
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"))); } 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. Is this idea just an unnecessary bloat or a useful change? Proof of concept – animated gif. |
|
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 |