![]() |
#46 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,693
Karma: 5703586
Join Date: Nov 2009
Device: many
|
No rules that I know of.
How about I just add Footnote With P and Backlink to the set of existing Aria clips. Would that work? |
![]() |
![]() |
![]() |
#47 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,693
Karma: 5703586
Join Date: Nov 2009
Device: many
|
That single set of div tags is what aria docs refer to a "footnotes section". You should insert that to wrap your p footnotes once we add a p footnote capability.
|
![]() |
![]() |
Advert | |
|
![]() |
#48 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,693
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Okay, I have added the footnote that uses a p tag. And if you choose an empty Section or empty Aside, the equivalent of "Insert Roles" is automatically called allowing you to choose the roles you want (ie the type of section or the type of aside you want).
So hopefully this has fulfilled everyone's feedback and comments so far. I will post Beta 4 builds with these changes later on tonight. Please give them a try and see if these smarter Aria Clips make good sense. If people are generally happy, I will rebuild the base for translations so we can give everyone lots and lots of time to translate things given such a large new set of strings have been added. |
![]() |
![]() |
![]() |
#49 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,693
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Okay I have posted the Beta-4 builds to:
https://github.com/kevinhendricks/Bu...OnMac/releases Please give them a few trials and let me know if these are complete enough to move forward with. Thank you. |
![]() |
![]() |
![]() |
#50 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,721
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
(The <aside> tags may contain other block level tags such as <p>. E.g. something like this: Code:
<section aria-label="Footnotes"> <aside id="note1" epub:type="footnote" role="doc-footnote"> First footnote. <a epub:type="backlink" href="#ref1">↩</a> </aside> <aside id="note2" epub:type="footnote" role="doc-footnote"> Second footnote. <a epub:type="backlink" href="#ref2">↩</a> </aside> </section> Code:
<section aria-labelledby="footnotes-heading"> <h2 id="footnotes-heading">Footnotes</h2> <aside id="note1" epub:type="footnote" role="doc-footnote"> First footnote. <a epub:type="backlink" href="#ref1">↩</a> </aside> <aside id="note2" epub:type="footnote" role="doc-footnote"> Second footnote. <a epub:type="backlink" href="#ref2">↩</a> </aside> </section> Last edited by Doitsu; Yesterday at 03:02 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#51 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 254
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Tested Beta4 on my MacBook and the new variants for footnotes are very useful.
Just one query - when <section> is selected, the pop-up offers role for footnotes but epub:type only, no Aria role. When the clip "Footnotes (footnotes)" is selected, the <section> is used + epub:type and aria role. Perhaps that clip should include the word section in its name just like the 3 above include aside, div, P. Last edited by philja; Yesterday at 03:27 AM. |
![]() |
![]() |
![]() |
#52 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,693
Karma: 5703586
Join Date: Nov 2009
Device: many
|
I will look into that.
Update, okay that is a bug in my Footnotes section clip. I checked the spec here: https://www.w3.org/TR/dpub-aria-1.1/ And technically no "doc-footnotes" (note the plural) exists anymore. So a footnotes section may only have epub:type not an aria role. The Insert Role handles that properly. The Insert Aria Clips did not. I will fix that. Last edited by KevinH; Yesterday at 07:44 AM. |
![]() |
![]() |
![]() |
#53 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,693
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Quote:
According to the spec, p is an allowed container for all aria roles, just like div. So you can technically make a footnote with a p tag. Also footnotes sections are rarely given a title heading, where as endnotes sections are typically given a title heading. On Books.app , you would have a title followed by nothing as asides for footnotes are hidden, as you pointed out. That is why a "footnote with div" was added. I can provide an aria-label though but translating it on the fly not to the ui but to the destination epub language would be a bear. Last edited by KevinH; Yesterday at 07:57 AM. |
|
![]() |
![]() |
![]() |
#54 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 254
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Quote:
So we must have a multitude of <section>'s each having only a single footnote? And yet a <section> can contain the whole of a chapter with multiple <p>'s. This seems like difficult reasoning. I would imagine this will lead in practice to authors putting a <section> with the role doc-footnote and then including multiple <p>'s each with its footnote text and backlinks. Or as DiapDealer shows with multiple <aside>'s. Last edited by philja; Yesterday at 08:24 AM. |
|
![]() |
![]() |
![]() |
#55 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,693
Karma: 5703586
Join Date: Nov 2009
Device: many
|
No you misunderstand. A section can hold as many footnotes that you want. There just does not exist a role attribute to indicate this section contains footnotes but we can add an aria label to indicate that or just rely on the role assigned to each footnote leaving the section unlabelled.
The key idea behind a section is that good accessibility software will create a catalog of each section in a single file allowing the user to skip over or skip to that section easily. So if a user has followed each footnote link and read every one, then upon reaching the end of that chapter/section they can easily skip over the entire section of already read footnotes. Roles are not meant to be limiting by design, they are meant to be informative when used in a proper setting. That is all. Last edited by KevinH; Yesterday at 12:44 PM. |
![]() |
![]() |
![]() |
#56 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,693
Karma: 5703586
Join Date: Nov 2009
Device: many
|
As to why there are no parallels between aria roles and epub:types I have no idea. I think aria roles spec came after the first Epub Semantic Structure Vocabulary spec.
Without that parallelism things do not make much sense at times. The rules and examples are arcane at best. But think of a Screen Reader that sees a section with a role. If the section has a aria-label, it will announce that label and not say a generic Section role. If it has an aria-labelledby attribute that points to a heading tag, it will read that instead., etc. The key is not to make the screen reader repeat ... saying things like "Chapter" immediately followed by "Chapter 1 A New Beginning". The latter is the one most listeners would prefer. The sections are quickly indexed by the screen reader to help them quickly navigate among sections within a single file. All of these arcane rules on usage and placement are trying to ease access to different sections while at the same time making Screen reading easier for the listener. It makes a bit of sense then. But of course, loading your epub into an e-reader that supports specialized accessibility software and listening and trying to navigate is the only sure way to know you have improved accessibility. Hope something here helps. |
![]() |
![]() |
![]() |
#57 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,693
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Okay, I have removed the role "doc-footnotes" to fix the bug in the Footnotes (section). Then I renamed and organized the Aria Clips titles so they would be easier to see the natural groupings.
Then I added an aria-label="Footnotes" to what is now the Section: Footnotes clip. I have also integrated the code to translate an aria-label attribute value to be in the language of the Book, not the Sigil UI language if at all possible. But none of that infrastructure translation code will work until translators have actually generated translations for all of the new strings. I have pushed all of these changes to Sigil master, and have created unsigned Beta-5 builds and stored them here: https://github.com/kevinhendricks/Bu...OnMac/releases I am truly hopeful that this will be the final Beta and that I can clean up any other nits you can find and start the process of getting translations done. With over 30 new strings in Aria Clips, and 40 new Roles and all of their Descriptions, there will be a lot of work for translations teams so hopefully within a month or so, we will have something we can release officially. Please test this version well and report back. Thank you! Last edited by KevinH; Yesterday at 03:18 PM. |
![]() |
![]() |
![]() |
#58 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 833
Karma: 2657572
Join Date: Jan 2017
Location: Poland
Device: Various
|
I have prepared icons for "Aria Clip" and "Role".
This is how I envision these two icons: They convince me, but if someone has a better idea, I'd love to hear it. The icon for Aria Clip includes elements related to code (<>) and a human silhouette representing "Accessibility". The icon for Role may be simplistic, but it is unique, hand-drawn, and refers to a similar solution – that is, the letter "M" for "Metadata Editor". I find it difficult to express "Role" in this sense graphically (and in the context of an EPUB file), hence the icon with the letter, which is a mnemonic (R for Role). |
![]() |
![]() |
![]() |
#59 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,693
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Thanks! With them I could create an Aria Toolbar that could be hidden on epub2. Or did you envision icons on the menu items only?
|
![]() |
![]() |
![]() |
#60 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 833
Karma: 2657572
Join Date: Jan 2017
Location: Poland
Device: Various
|
Icons, of course, work on toolbars and menus.
I tested them at my build and they work OK (on the "Insert" toolbar in epub2, they are disabled). |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Beta Testers for Sigil-2.3.0 Needed | KevinH | Sigil | 71 | 07-22-2024 09:54 AM |
Call for beta testers https://kobli.me | neuraltoxin | Kobo Developer's Corner | 10 | 01-21-2023 12:43 AM |
Another call for testers | NiLuJe | Kobo Developer's Corner | 26 | 09-20-2019 11:25 AM |
Call for testers | kovidgoyal | Calibre | 289 | 09-19-2008 01:45 PM |