Skip to content
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

Merged
merged 4 commits into from Jul 25, 2017
Merged

Actively remove parens from voice instructions #418

merged 4 commits into from Jul 25, 2017

Conversation

bsudekum
Copy link
Contributor

Until we find a fix upstream, we should omit parens completely from a voice instruction.

/cc @1ec5

("'", "'")
("'", "'"),
("(", ""),
(")", "")
Copy link
Contributor

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.

("'", "'")
("'", "'"),
("(", ""),
(")", "")
Copy link
Contributor

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?

@ericrwolfe ericrwolfe added this to the v0.6.0-2 milestone Jul 25, 2017
@bsudekum
Copy link
Contributor Author

@1ec5 updated. (, ) and _ we're the only offenders from osmlab/osmlint#234 that are spoken.

])
}

var withoutPuncation: String {
Copy link
Contributor

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.

@bsudekum bsudekum merged commit 44957cb into master Jul 25, 2017
@bsudekum bsudekum deleted the no-parens branch July 25, 2017 22:29
mappy-mobile pushed a commit to Mappy/mapbox-navigation-ios that referenced this pull request Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working topic: voice
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants