-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actively remove parens from voice instructions #418
Conversation
MapboxNavigation/String.swift
Outdated
("'", "'") | ||
("'", "'"), | ||
("(", ""), | ||
(")", "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This turns addingXMLEscapes
into a misnomer. This method may be used in places where we just want to mark up XML and don’t want to remove parentheses. Instead of repurposing this method, let’s modify the call sites to remove parentheses.
MapboxNavigation/String.swift
Outdated
("'", "'") | ||
("'", "'"), | ||
("(", ""), | ||
(")", "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Along the lines of osmlab/osmlint#234, are there any other characters that we should strip out?
@1ec5 updated. |
MapboxNavigation/String.swift
Outdated
]) | ||
} | ||
|
||
var withoutPuncation: String { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removingPunctuation
would be more in keeping with existing String methods.
Use Result for directions response
Until we find a fix upstream, we should omit parens completely from a voice instruction.
/cc @1ec5