简体   繁体   English

我可以声明应用程序范围的首字母缩写词替代画外音吗?

[英]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:迄今为止的研究:

  • This document, talking about choosing systemwide acronym substitution, but as an end user.文档讨论选择系统范围的首字母缩略词替换,但作为最终用户。 (under "Changing pronunciations in the Speech Dictionary") (在“更改语音词典中的发音”下)
  • UIAccessibilityReadingContent seems to be talking about a general Design-Pattern, not about word level optimisation of the output. UIAccessibilityReadingContent似乎在谈论一般的设计模式,而不是关于输出的字级优化。

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.

相关问题 关闭表格视图中单元格的画外音焦点,而不是其他单元格 - Turning off Voice-over focus for a cell in table view and not for others UIAccessibility和Apple Pay旁白互动问题 - UIAccessibility and Apple Pay voice-over interaction issue UIView动画在整个应用程序中间歇性地失败 - UIView animations intermittently fail, app-wide 有什么方法可以禁用 UITextField 中占位符文本的可访问性画外音吗? - Is there any way to disable accessibility voice-over of placeholder text in UITextField? 我应该将应用程序范围的对象传递给需要它的对象,还是应该使用单例? - Should I pass an app-wide object into objects that need it, or should I use a singleton? Objective-C:应用范围内完全可重用的自定义UITableViewCell - Objective-C: App-wide fully reusable custom UITableViewCell Voiceover - 在应用程序范围内覆盖 UILabel 的 accessibilityLabel - Voiceover - Overriding a UILabel's accessibilityLabel app-wide 设置应用范围内的默认字体,以允许改变大小 - Setting app-wide default font that allows for varying sizes 如何在外部文件中存储字符串以供应用程序范围内使用(iOS) - How to store strings in external file for app-wide use (iOS) 将全局字符串存储在Swift中的iOS中以在整个应用范围内使用 - Store global strings in iOS in Swift for app-wide use
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM