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

Use Okina in Hawaiʻi and ā with macron in Mānoa #2644

Merged
merged 4 commits into from
Aug 29, 2023
Merged

Conversation

weiji14
Copy link
Member

@weiji14 weiji14 commented Aug 26, 2023

Description of proposed changes

Replacing apostrophe with Okina letter in a few places. Approximating the Okina letter with a ` (octal code 140) for the roads gallery example.

Preview at https://pygmt-dev--2644.org.readthedocs.build/en/2644/gallery/lines/roads.html

Reference:

Fixes #1474 (comment)

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If wrapping a new module, open a 'Wrap new GMT module' issue and submit reasonably-sized PRs.
  • If adding new functionality, add an example to docstrings or tutorials.
  • Use underscores (not hyphens) in names of Python files and directories.

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash commands are:

  • /format: automatically format and lint the code
  • /test-gmt-dev: run full tests on the latest GMT development version

Replacing apostrophe with Okina letter in a few places. Approximating the Okina letter with a ` (octal code 140) for the roads gallery example.
@weiji14 weiji14 added documentation Improvements or additions to documentation skip-changelog Skip adding Pull Request to changelog labels Aug 26, 2023
@weiji14 weiji14 self-assigned this Aug 26, 2023
@@ -18,7 +18,7 @@ The following people have contributed code and/or documentation to the project
* [Leonardo Uieda](http://www.leouieda.com/) | [0000-0001-6123-9515](https://orcid.org/0000-0001-6123-9515) | University of Liverpool, United Kingdom
* [Liam Toney](https://liam.earth/) | [0000-0003-0167-9433](https://orcid.org/0000-0003-0167-9433) | University of Alaska Fairbanks, USA
* [Malte Ziebarth](https://github.com/mjziebarth) | [0000-0002-5190-4478](https://orcid.org/0000-0002-5190-4478) | GFZ German Research Centre for Geosciences, Germany
* [Max Jones](https://github.com/maxrjones) | [0000-0003-0180-8928](https://orcid.org/0000-0003-0180-8928) | University of Hawai'i at Mānoa, USA
* [Max Jones](https://github.com/maxrjones) | [0000-0003-0180-8928](https://orcid.org/0000-0003-0180-8928) | University of Hawaiʻi at Mānoa, USA
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @maxrjones, just checking if you're still happy to keep your affiliation with UoH?

region = [-158.3, -157.6, 21.2, 21.75] # xmin, xmax, ymin, ymax

title = r"Main roads of O\047ahu (Hawai\047i)" # \047 is octal code for '
title = r"Main roads of O\140ahu (Hawai\140i)" # \140 is octal code for `, approximating the Okina ʻ
Copy link
Member Author

@weiji14 weiji14 Aug 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically \140 is a backtick ` (U+0060), but this is the closest approximation I know to the Okina letter ʻ (U+02BB) as mentioned at https://github.com/GenericMappingTools/pygmt/pull/2641/files#r1306294445. Anyone who knows how to plot the Okina properly is welcome to chime in!

pygmt/clib/session.py Outdated Show resolved Hide resolved
@weiji14 weiji14 marked this pull request as ready for review August 27, 2023 21:56
@weiji14
Copy link
Member Author

weiji14 commented Aug 27, 2023

Will leave this open for another day (until US Eastern time evening) before merge.

@weiji14 weiji14 merged commit 584a8ba into main Aug 29, 2023
7 of 19 checks passed
@weiji14 weiji14 deleted the hawaii-with-okina branch August 29, 2023 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation skip-changelog Skip adding Pull Request to changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants