Replies: 8 comments 19 replies
-
|
LaTeX can probably generate whatever you need but the question is what you need, you could use PDF does have an pdf2.0 table 355 lists these as
You could generate |
Beta Was this translation helpful? Give feedback.
-
|
I made an example Somewhat surprisingly all three keys had exactly the same effect reading with acrobat read-aloud with no screen reader and with NVDA screen reader in acrobat or foxit. PRS was substituted by "present tense" with no announcement or indication that this is an acronym expansion. (Which is the behaviour I would expect from ActualText, less so the others. |
Beta Was this translation helpful? Give feedback.
-
|
@niruvt the PDF 2.0 specification (which is available at no cost but you have to sign up to download it) says this about acronyms 14.9.5 Expansion of abbreviations and acronyms The expansion of an abbreviation or acronym may be specified for the following items: NOTE 1 Abbreviations and acronyms can pose a problem for text-to-speech engines. Sometimes the full |
Beta Was this translation helpful? Give feedback.
-
Not announcing math is normal (although actually MathCat has an option to beep when entering math if the listener wants that) but that is rather different to acronyms and abbreviations. |
Beta Was this translation helpful? Give feedback.
-
|
I wanted to provide support for tagging IPA. I looked at PDF 2.0 and found the \DocumentMetadata{tagging=on,lang={en-GB}}
\documentclass{article}
\ExplSyntaxOn
\socket_new:nn { tagsupport / lngx / phoneme } { 2 }
\socket_new_plug:nnn { tagsupport / lngx / phoneme }
{ default } {
\mode_leave_vertical:
\tag_mc_end:
\tag_struct_begin:n {
tag = { Span },
phoneme = { #1 }
}
\tag_mc_begin:n {
tag = { Span }
}
#2
\tag_mc_end:
\tag_struct_end:
\tag_mc_begin:n { }
}
\msg_new:nnn { linguistix } { phoneme } {
No~ pronunciation~ hint~ given~ for:\\ /#1/.
}
\NewDocumentCommand \phonetic { o m } {
\IfValueTF { #1 } {
\socket_use:nnn { tagsupport / lngx / phoneme }
{ #1 }
{ #2 }
} {
\msg_warning:nnn { linguistix } { phoneme } { #2 }
#2
}
}
\ExplSyntaxOff
\begin{document}
\phonetic[pee kaa choo]{pikachu}
\end{document}So the first priority would be to fix this, but that’s not it. The next question is where should this key be used exactly? Does the implementation look correct as it is now? I have a command I thought about it because a blind linguist told me that IPA is not read correctly. I was thinking if I can add a helping text to IPA for it to be read correctly. So, suppose I have /pikaʧu/ in IPA, I will provide an interface to add ‘pee kaa choo’ as a ‘pronunciation hint’ (as PDF 2.0 calls it). Just so that the reader reads it properly. I was thinking of ActualText in the beginning, but then I found I read some discussions around tagging complexities and I have seen that the team prefers to adhere to the standard and hopes for improvements in the reading software. My personal preference also is the same. In that case, I lean more towards |
Beta Was this translation helpful? Give feedback.
-
|
I don't think you want ActualText here as ActualText essentially is the text used in accessibility, and cut and paste and other uses, so it essentially totally masks the IPA string except for the typeset content. Phoneme could be used to give a pronunciation hint, but my understanding is that you would use IPA in that attribute, so so using it to give pronunciation hints for IPA is a bit backwards. I'm most familiar with nvda and certainly there users can give speech dictionaries to improve reading of certain characters, that's needed for some math characters. But this response is all a bit theoretical so I don't have much experience with the phoneme key in practice. |
Beta Was this translation helpful? Give feedback.
-
|
You are missing the assigning command Also it is better to use this to declare tagging sockets as it take care of some of the special conventions there. We can not really say something about how to use the phoneme key: it is mentioned in the spec but imho nobody has implemented support for it. |
Beta Was this translation helpful? Give feedback.
-
|
There is a thread on improving NVDA's IPA readings here https://nvda.groups.io/g/nvda/topic/nvda_reading_and_writing_ipa/105052577 not exactly conclusive other than it's a known issue and it's possible to address things at the screen reader end rather than at the pdf generation side. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a package in the LinguisTiX bundle for printing linguistic abbreviations. For instance, to denote present tense, linguists use PRS (not in caps, but in small caps). So, suppose in a text, a sentence like:
English uses \{-s\} for denoting \abr{prs}, then it should be read as: "English uses the s morpheme for denoting present tense."The list of standard abbreviations is small, but many a times some custom abbreviations are required. I would like to have a way to create a macro that can on the fly create the alternate text. I am willing to use the lttemplates code along with the new
\DocumentMetadata{tagging=on}method. I would love to know how much of this is possible in LaTeX? From where should one start. Note that the morpheme and the abbreviation is just one small example, there are many such instances that need tagging.Beta Was this translation helpful? Give feedback.
All reactions