-
Notifications
You must be signed in to change notification settings - Fork 2
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
Country code conversion review #3
base: master
Are you sure you want to change the base?
Conversation
This allows for automatic common and unique country extraction, easy country counting and no manual HTML editing.
Refactor for automatic country processing.
This feature allows to store country data in a human-readable way and then convert it to easier to use country codes. Flags work now, expectw for provinces, which need to be handled separatly.
'Guyana': 'GY', | ||
'Haiti': 'HT', | ||
'Heard Island and McDonald Islands': 'HM', | ||
'Holy See (Vatican City State)': 'VA', |
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.
I was unsure about the spellings of some countries and if google charts can recognize them - such as Holy See (Vatican City State)
, Côte d\'Ivoire
, Åland Islands
etc., but I did verify they work just fine.
Good job!
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.
Thank you for review and actual verification. I did not check if they worked myself; just believed that Wikipedia listing will have them named in a proper manner and decided that they countries are not the most popular and can be checked when somebody actually visits them.
Not merging this. |
As some countries are visualized on a region level, we would like these regions to be grouped together in a single entry. Additionally, this patch takes care of visual discrepancy between these fine-grained region codes and simple country name. As a side effect, names in data.js can be specified by either full name of by 2 letter country code.
Aggregate provinces of a single country to a single table row.
Please review the latest commits related to country code conversion.
Don't scroll the conversion map all the way down straight away. Give it some attention as I was generating it with macros and might have screwed up somewhere.
Additionally, all the flags including the ones for provinces should be visible now. The world maps still don't show these provinces as well as there's no aggregation in the list for these fine-grained countries.
Note: I pushed straight to a dev branch, my changes got clustered together with the previous ones and it's a bit hard to review everything right now. Sorry about that. Just cancel the merge request if you think everything is fine. Next time I will make a separate branch for a new feature and make a pull request to the dev branch.