简体   繁体   中英

iOS Accessibility: Custom voice over text for bundle display name

iOS voice over does not correctly read out my companies name. For example it reads out "dog" instead of "DOG" (not my real company name but you get the idea)

We get around this by telling the app to read out "DOG" in all places where the company name is read out.

However, voice over reads the bundle display name out incorrectly both on the app icon, and after the app has finished launching.

Is there a way to make my app read out "DOG" instead of "dog" after app launch? I would settle for forcing the app not to read out the bundle display name after app launch and then manually reading out "DOG".

(I'm assuming you can't set a custom voice over for the app icon, but bonus points for anyone that knows if I can or can't)

I don't think you can provide an alternate bundle name string for VoiceOver. I was however able to find a hack that could work in your specific scenario:

VoiceOver seems to interpret various control characters differently. \\u7f\u003c/code> is one of the characters that split the word for VoiceOver and yet do not break display in launchpad. Therefore, defining bundle name as:

CFBundleDisplayName="D\U007fO\U007fG";

in InfoPlist.strings seems to achieve what you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM