worldbank / wbgviz

Several R packages for World Bank-standard visualisations, building on ggplot2
MIT License
30 stars 12 forks source link

wbgref country names don't include diacritics etc and should #19

Closed econandrew closed 6 years ago

econandrew commented 6 years ago

From here: https://github.com/worldbank/sdgatlas2018/issues/4

Country Code Country Name spelling/ notes CIV Cote d'Ivoire Côte d’Ivoire FRO Faroe Islands Faeroe Islands STP Sao Tome and Principe São Tomé and Príncipe

econandrew commented 6 years ago

This is a bit tricky as the curly quote / apostrophe causes encoding errors with the pdf() device. Quartz/Cairo devices probably have better utf/unicode support but they don't support CMYK.

Workaround for now is that pdf output uses "MacRoman" encoding which seems to support these characters, presumably reflecting the calligraphic obsessions of Steve Jobs in the '70s.

Anyway if this breaks anything else hopefully this will remind me what I've done.