Maori Language Characters?

Howdy Folks,

Anyone know the octal codes for Maori Language character, i.e. a vowel with a line overtop…

Thanks!!

-jose

Hi @jocabo,

Are you using GMT or PyGMT?

The overview for octal codes of characters supported by GMT or PyGMT can be found 11. Chart of Octal Codes for Characters — GMT 6.5.0 documentation or Supported Encodings and Non-ASCII Characters — PyGMT. However, I can not find the desired letter in this table. Reading here Māori language - Wikipedia, it seems like there is no octal code for this letter. But maybe there is an ISO/IEC 8859 code Supported Encodings and Non-ASCII Characters — PyGMT.

Another option would be trying to create the letter using @! which can combine two characters (please see text — GMT 6.5.0 documentation): @!\225a (the octal code \255 gives a high dash).

In PyGMT it’s possible to directly using the letter:

import pygmt

size = 1

fig = pygmt.Figure()
fig.basemap(region=[-size, size] * 2, projection=f"X{size * 2}c", frame=0)

fig.text(x=0, y=0, text="ā")

fig.show()

1 Like

Hi @jocabo ,

What you are wanting are macrons over the vowels. These are not available in the character sets that come with GMT.

You can combine characters as @yvonnefroehlich suggested. Another option might be to insert LaTeX: 13. Using LaTeX Expressions in GMT — GMT 6.5.0 documentation - you can do macrons with LaTeX.

Tongan (and many Pacific languages) have similar issues. Many, many years ago I provided the TO language configuration for GMT, and from memory ran into this then. It would be nice if GMT supported Unicode, but I imagine that would require a lot of work to implement.

1 Like

It surely would be nice. But the biggest problem, I guess, would be convincing Adobe to add Unicode support to PostScript.

1 Like

Thanks for the responses everyone…! (@timhume @Joaquim @yvonnefroehlich)

I’m not on PyGMT, I am just an old dinosaur using oldschool GMT who lives in perpetual fear of every update…!

Anyway, @yvonnefroehlich 's suggestion for the @! trick with \255 worked!

I was making a map for a paper my wife is co-authoring in an indigenous studies journal, so it was important to get this detail right …

Thanks again, y’all are awesome!

-jose

:slight_smile:

Still doing Tsunamis?

1 Like

tsunamis and other coastal hazards all the way… (to my grave…)