[英]Can I declare app-wide acronym substitution for voice-over?
Being a data-centric app, I have lots of german legal acronyms for german laws in my app.作为一个以数据为中心的应用程序,我的应用程序中有很多德国法律的德国法律首字母缩略词。 An english example would probably be "Cx" being read as "Constitution".一个英语例子可能是“Cx”被读作“宪法”。 I have a handful of those acronyms, they can be found in various text fields, all across my app.我有一些这样的首字母缩略词,它们可以在我的应用程序中的各种文本字段中找到。
Is there a way to declare app-wide voice-over pronunciation rules for these acronyms as a developer?作为开发人员,有没有办法为这些首字母缩略词声明应用程序范围的画外音发音规则? I would rather not implement manual text substitution for 100+ UITextViews...我宁愿不为 100 多个 UITextViews 实现手动文本替换...
Research so far:迄今为止的研究:
I'm unaware of an app-wide pronoun citation table for VO.我不知道 VO 的应用范围内的代词引用表。 An easy workaround is to use a custom subclass of UITe xtView
and override accessibilityLabel
to return the label with the substituted phrase for each language's abbreviations.一个简单的解决方法是使用UITe xtView
的自定义子类并覆盖accessibilityLabel
以返回带有每种语言缩写的替换短语的标签。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.