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

Fix formatToken() callback to process only non-empty tokens #271

Merged
merged 2 commits into from
Jul 28, 2018

Conversation

yuryleb
Copy link
Contributor

@yuryleb yuryleb commented Feb 26, 2018

And also to don't handle 'name' tokens so it's called before final instruction text formatting and grammar rules applying.
Please look at route steps before this fix:
osrm-no-grammar
And after (grammar rules restored; no name roads kept original):
osrm-fixed-grammar

@yuryleb
Copy link
Contributor Author

yuryleb commented Jun 26, 2018

And additionally don't highlight prepending articles/prepositions from French names added by recently proposed French grammar rules:
french bolding

@Penegal
Copy link

Penegal commented Jun 26, 2018

Very nice display, this way!

@yuryleb
Copy link
Contributor Author

yuryleb commented Jun 29, 2018

Rebased.
Actually this PR doesn't directly depend on other mentioned and could be merged w/o them 😉

And also to don't handle 'name' tokens so it's called before final instruction text formatting and grammar rules applying
@yuryleb
Copy link
Contributor Author

yuryleb commented Jul 28, 2018

Rebased more once for convenient merge.

@danpat, actually this is more important PR than recently merged ones - it allows to properly work both Russian and French grammars 😉

@danpat danpat merged commit 9009d06 into Project-OSRM:gh-pages Jul 28, 2018
@danpat
Copy link
Member

danpat commented Jul 28, 2018

Tada!

@Penegal
Copy link

Penegal commented Jul 29, 2018

Thank you for this PR!

@yuryleb yuryleb deleted the formatToken-fix branch July 29, 2018 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants