![]() |
#16 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,724
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
I took this from an actual book and forgot to delete the class attribute.
![]() Quote:
Maybe other Sigil users have some older eink devices in their drawer and can test this. |
|
![]() |
![]() |
![]() |
#17 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,725
Karma: 5703586
Join Date: Nov 2009
Device: many
|
One of the issues we face for a gui interface is there is at a rough count approximately 40 aria doc-* roles. We can hardly create a pulldown menu with 40 or more options, and a separate clip of 40 icons would be needed if we go the clips approach.
So to make them all easily accessible we would need to categorize them into 4 or 5 common groupings with 8 to 10 menu items per group menu. We could still create a most-often used clips bar for easier/faster access. It is something to think about at least. |
![]() |
![]() |
![]() |
#18 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,853
Karma: 168959602
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I've tested on an ePub2 (ADE 2.0.1) renderer and it does what it should do with unknown elements and disregards them. Now if Adobe had extended that to errors in the stylesheet.
The few clips I currently use for epub:type, role, aria-labelledby mostly do blocks of related elements. Much like your example in message #12 but with the types filled in. Last edited by DNSB; 06-09-2025 at 01:46 PM. |
![]() |
![]() |
![]() |
#19 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,635
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
<section aria-labelledby="ch01_hd" role="doc-chapter"> <span aria-label="7" id="page_7" role="doc-pagebreak"/> <h1 class="h1ch" id="ch01_hd">ONE</h1> <p class="ahead1"><i>Starship Enterprise</i> <span class="f1">Federation–Klingon Border</span></p> <p class="noindent">“Get your sorry ass in gear, Lieutenant.”</p> <p class="indent">Erica Ortegas stared at the ceiling in her quarters as she gave herself the order, briefly Last edited by JSWolf; 06-09-2025 at 03:27 PM. |
|
![]() |
![]() |
![]() |
#20 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,725
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Hi All,
To make thigns clearer, I coded up a proof of concept. Nothing is final but I would like people's thoughts. Here is a sequence of screenshots: 1. initial_xhtml.png shows a blank xhtml epub3 page 2. I highlight the contents of the body tag and then use the "section" tag on my clips bar. 3. It add in the section and then I place my cursor in it and use the Insert menu and select Role... 4. It pops up a full menu of possible Aria Roles and their official descriptions for the user to select from 5. The resulting xhtml screenshot shows it properly added the aria role and any mapped epub:types to the current tag. Old values of either attributes are replaced. The destination tag is first checked to see if the Aria Role you selected can be used on a tag of that type, and warns you if otherwise. This provides the full interface for all Aria Publishing roles and forces them to be only used on correct tags. It adds any epub:type that corresponds with it, and properly handles the updating of old attributes or creation of new ones. It also registers the Insert Role menu so that it can be assigned a keyboard shortcut. This is a time consuming given the almost 40 different Aria publishing roles, but as many have said, users can sidestep this process using their own clips for their most frequently used structures with roles that fill in all the pieces. I still have to figure out how to disable or grey these menu items out when editing an epub2 but if people like the following approach I will work on that. 1. clips for most often used roles and their associated structures 2. an insert menu that gives you access to all roles and provides descriptions of each role and that check for proper destination tag. If anyyone wants to play with this proof of concept I have pushed it to my personal repo so it can be cloned from: https://github.com/kevinhendricks/Sigil.git I also have attached screenshots. Any feedback or thoughts welcome. Last edited by KevinH; 06-10-2025 at 04:13 PM. |
![]() |
![]() |
![]() |
#21 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,724
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
#22 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 838
Karma: 2657572
Join Date: Jan 2017
Location: Poland
Device: Various
|
I like it too!
Small issue for <hr/>: <hr/ role="doc-pagebreak" epub:type="pagebreak"> Great request: showing in the window only those roles that can be applied to the current tag. Unless it is very tedious. |
![]() |
![]() |
![]() |
#23 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,725
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Thanks for the feedback!
I will need to fix how attributes are auto added to single/void tags. This is an existing bug as the routine I used should have handled that. I really hate to duplicate the entire thing for epub:type as the degree of overlap is huge. The only real differences is epub:type allows footnotes, and endnote, and biblioentry while aria adds example. There are no real restrictions on which tags you can use epub:type on nothing as enforced as far as I can tell. So perhaps we change Insert "Role..." to Insert "Semantics ..." Then add in the overlap codes but properly applying them as either epub:type alone, role alone or both as allowed and expanding the descriptions to note when exceptions happen. How does that sound? Last edited by KevinH; 06-11-2025 at 09:27 AM. |
![]() |
![]() |
![]() |
#24 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,725
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Quote:
Let me think about it. |
|
![]() |
![]() |
![]() |
#25 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,725
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Looking again at the very latest epub 3 epub:type Semantics vocabulary guide from March 2025, they have introduced lists of allowable tags for epub:types which of course includes the body tag itself which directly conflicts with all the aria roles.
I understand epub:types for Nav landmarks, and footnote and endnote and their backlinks, but outside those areas epub:type attributes are *not* used by e-reading systems and are *not* used for accessibility software as clearly and brutally stated by the Daisy Knowledgebase website. https://kb.daisy.org/publishing/docs...epub-type.html Given that, do we want to add another full dialog and code class, and menu item just to insert them if no one is using them? Many of them are epub dictionary specific, and index specific but are not being used at all. Thoughts? Should I just merge endnote, footnotes, and bibliography entry into the roles but mark clearly they are epub:type only in the descriptions? Or should we create a second menu item, class, and Dialog to insert the majority of the available epub:types from the vocab doc like the proof of concept did for aria publishing roles? Last edited by KevinH; 06-12-2025 at 08:21 AM. |
![]() |
![]() |
![]() |
#26 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,853
Karma: 168959602
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I would like the epub:type bits and bobs but on that proverbial other hand, I seldom use them other than for footnotes/endnotes. So far the role item in Sigil seems to working for me.
|
![]() |
![]() |
![]() |
#27 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,725
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Thanks for your input.
That Daisy knowledgebase article on epub:type is literally scathing, and does not even credit its use in nav landmarks! Obviously not written by a fan of epub:type. Maybe we start with a slightly expanded Insert Roles to cover the common footnote, endnote, etc and maybe later on expand things to a full blown epub:type class, dialog, and menu if users think that would helpful. |
![]() |
![]() |
![]() |
#28 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,724
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
I.e., keep the original prototype idea for the ARIA role right-click menu but also silently add/update the corresponding epub:type attribute. You could then document in the user guide that adding an ARIA role will also add/update the corresponding epub:type attribute if one exists. |
|
![]() |
![]() |
![]() |
#29 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,725
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Quote:
Those are the ones I would like to add to the Insert Roles dialog (marked as epub type only). So people would have to use only one menu in Sigil to add Accessibility and epub:types in one go where possible. Last edited by KevinH; 06-12-2025 at 08:31 AM. |
|
![]() |
![]() |
![]() |
#30 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,725
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Okay, I have just pushed version 2 of this to master on my own personal repo.
It adds a few key epub:type only codes that might be useful for bibliography, footnotes, and endnotes. Second it add its own AddRoles dialog, that looks at your current tag and only shows you Roles that are valid for that tag as requested by BeckyEbook I have also fixed adding attributes to single (void) tags in both this version and in Sigil master since the bug was in both. Any thoughts and feedback on this would be helpful. On my todo list would be to add a new clips specific to aria roles that might be used frequently (such as a section with chapter role, aside footnote, with backlink a tag, endnote ditto, etc). But for that matter with the extra clips we have now, perhaps we just let that up to the user. Things to consider. Any feedback welcomed! |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] Access-Aide - help improve epub accessibility | KevinH | Plugins | 147 | 10-15-2024 10:25 AM |
[Plugin] ACE - DAISY EPUB Accessibility Checker wrapper | Doitsu | Plugins | 37 | 07-15-2024 11:38 AM |
[Editor Plugin] ACE by Daisy - EPUB Accessibility Checker | thiago.eec | Plugins | 26 | 03-27-2023 08:19 AM |
Epub Revision - accessibility support | Nate the great | ePub | 1 | 02-23-2011 03:47 AM |