![]() |
#46 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,724
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#47 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,724
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Unfortunately, Apple's Books.app is the only one that does that. I guess you want to be sure not to create an entire endnotes or footnotes section using a list of aside tags if you actually want them to be seen on Books.app.
Strange really. |
![]() |
![]() |
![]() |
#48 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,724
Karma: 5703586
Join Date: Nov 2009
Device: many
|
I have been trying to build a better set of allowable tags for the Insert Roles. The Aria docs provide a list of allowed tags includes lots of tags that may take on "any" role but are ludicrous to use for footnotes, endnotes, and sections, etc.
The specs technically allow a kbd tag to have the role of doc-footnote which makes no sense. Their list of tags that accept any role, is just too long and too silly for words. I am testing out various "saner" mappings in my github repo. |
![]() |
![]() |
![]() |
#49 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,724
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Should we actually even include section and aside in the Examples clips bar as they do not work on epub2?
Perhaps instead of an aria specific clips bar or adding to our Example clips (things only good on epub3), we should add a second epub3 only Insert menu item, called "Insert Aria Code Snippets" that contains an expanded list of code templates from the "Examples" post a few back. If we make a new class for it we can use normal translations for all the template fill in placeholders so that they make sense in all languages. I think I am leaning that way but ... Thoughts on that? Last edited by KevinH; 06-17-2025 at 06:45 PM. |
![]() |
![]() |
![]() |
#50 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,853
Karma: 168959602
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
With that menu only showing when editing an ePub3? Sounds good to me.
|
![]() |
![]() |
![]() |
#51 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,724
Karma: 5703586
Join Date: Nov 2009
Device: many
|
|
![]() |
![]() |
![]() |
#52 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
|
![]() |
![]() |
![]() |
#53 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,724
Karma: 5703586
Join Date: Nov 2009
Device: many
|
You should not use the same approach to grey out the epub3 Tools menu as it is not tied at all to CodeView. Those tools should be available at all times on epub3.
In addition, all of that menu and its contents are protected against being run on epub2 (will warn you and not do anything) and they have been there from Sigil 0.9x betas and are required tools for epub3 users to get a working epub, not optional like the Accessibility Insert Roles ... So no change there. That menu will stay enabled I think. |
![]() |
![]() |
![]() |
#54 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,724
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Hi All, after staring at many examples and looking for commonality, here is the set of Accessibility Code Templates I am thinking of including in Sigil under a new epub3 enabled/disabled Insert menu item:
Code:
PLACEHOLDER_TEXT (These placeholders would be translated) ---------------- CHAPTER_TITLE_HERE TEXT_OF_FOOTNOTE_HERE TEXT_OF_ENDNOTE_HERE HREF_TO_ENDNOTE HREF_RETURN_FROM_ENDNOTE LABEL_FOR_SIDEBAR LABEL_FOR_TIP _N_ /* number of footnote, endnote, page, etc */ Here are the Aria Code Templates I was thinking about: Section ------- <section> \1 </section> Aside ----- <aside> \1 </aside> Chapter Section --------------- <section role="doc-chapter" epub:type="chapter" aria-labelledby="heading1"> <h1 id="heading1">CHAPTER_TITLE_HERE</h1> \1 </section Footnotes Section ------------------------- <section role="doc-footnotes" epub:type="footnotes"> \1 </section Footnote Reference ------------------ <a id="ref_fn_N_" href="#fn_N_" epub:type="noteref" role="doc-noteref">[_N_]</a> Footnote Backlink ----------------- <a href="ref_fn_N_" epub:type="backlink" role="doc-backlink">[_N_]</a> Footnote With BackLink (aside) ------------------------------ <aside id="fn_N_" epub:type="footnote" role="doc-footnote"> <p> <a href="#ref_fn_N_" epub:type="backlink" role="doc-backlink">[_N_]</a> TEXT_OF_FOOTNOTE_HERE </p> </aside> Footnote With BackLink (div) ----------------------------- <div id="fn_N_" epub:type="footnote" role="doc-footnote"> <p> <a href="#ref_fn_N_" epub:type="backlink" role="doc-backlink">[_N_]</a> TEXT_OF_FOOTNOTE_HERE </p> </div> EndNote Reference ------------------ <a id="ref_en_N_" href="HREF_TO_ENDNOTES#en_N_" epub:type="noteref" role="doc-noteref">[_N_]</a> EndNote BackLink ---------------- <a href="HREF_FOR_RETURN_FROM_ENDNOTE#en_N_" epub:type="backlink" role-"doc-backlink">[_N_]</a> EndNotes Section ---------------- <section epub:type="endnotes" rol="doc-endnotes"> <ol> </ol> </section> Endnote with BackLink (li) -------------------------- <li id="en_N_" epub:type="endnote"> <p> <a href="HREF_FOR_RETURN_FROM_ENDNOTE#en_N_" epub:type="backlink" role-"doc-backlink">[_N_]</a> TEXT_OF_ENDNOTE_HERE </p> </li> Tip --- <aside role="doc-tip" epub:type="tip" aria-label="LABEL_FOR_TIP"> \1 <aside> PageBreak hr ------------ <hr epub:type="pagebreak" role = "doc-pagebreak" /> Page List PageBreak (span) -------------------------- <span id="page_N_" epub:type="pagebreak" role = "doc-pagebreak" aria-label="Page _N_" /> Any thoughts and feedback before I start coding this all up would be welcome. None of these templates would be user editable, but of course a user could easily create their own editable clip to use in place of any other these. Thanks for you thoughts and feedback. Hopefully we are getting closer to the end. Last edited by KevinH; 06-18-2025 at 01:12 PM. |
![]() |
![]() |
![]() |
#55 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,724
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Okay for those interested, I have added an Insert Aria Clips menu item and all of the support code around it and pushed the whole thing to master on my personal github site.
It is all very rough for now. Still Proof of Concept but if you build your own please pull from my repo: https://github.com/kevinhendricks/Sigil And fire up an empty epub3 and play around with those Aria clips templates. If people like this approach, then I will work on a way to save and read that set of clips from an ini or xml file so that more advanced users can modify these clip templates to match their own needs. Right now they are all hardcoded in Misc/AriaClips.cpp and .h. Please give it a try and let me know what you think of this idea/approach. If people are generally happy, I will move this into Sigil master and make a broader CI set of betas for additional people to play with. Thanks! |
![]() |
![]() |
![]() |
#56 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,724
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Quote:
I have taken a shot at disabling all the epub3 Tools submenu items (greyed out) on epub2 just like BeckyEbook but did not tie it to CodeView. Instead it happens in UpdateUiWithCurrentFile which is called after every epub load and when creating empty epubs. I have pushed this to master on my repo. Last edited by KevinH; 06-19-2025 at 12:41 PM. |
|
![]() |
![]() |
![]() |
#57 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,724
Karma: 5703586
Join Date: Nov 2009
Device: many
|
And I have pulled everything into Sigil master to create a Beta when things calm down a bit more.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |