Maori macrons – a BBEdit script

4 October 2008 · 0 comments

Colin Jackson usefully listed out the correct codes for creating Māori macrons on the web, something that concerns all of us Kiwis, of course: Te Reo presents some difficulties to printers and web publishers … In writing, long vowels are marked with a macron, which is a diacritic appearing as a horizontal bar over a [...]

 

Colin Jackson usefully listed out the correct codes for creating Māori macrons on the web, something that concerns all of us Kiwis, of course:

Te Reo presents some difficulties to printers and web publishers … In writing, long vowels are marked with a macron, which is a diacritic appearing as a horizontal bar over a letter. …The correct way to display macrons on the web is to use escaped unicode. Here’s a list of the five vowels with macrons, in upper and lower case:

ā ā
ē ē
ī ī
ō ō
ū ū
Ā Ā
Ē Ē
Ī Ī
Ō Ō
Ū Ū

[Via it.gen.nz: A national treasure.]

kit-macron-script.jpg. I’ve long needed to use macrons in all the writing I do that ends up on web pages. For that reason I have an Applescript I created for BBEdit.

Select a letter, call up the script and choose which macron code you wish to use to replace the letter. Click OK and the replacement is done. The script isn’t very fancy and doesn’t handle error checking.

You’re welcome to use this zipped version: SingleMacrons-bb.scpt.zip (6Kb). Improvements are welcome. Please share comments below.

Those of you with a sharp eye will see I haven’t used a macron in the title of this post. Post titles can do weird things if they contain ‘unusual’ characters. It was a deliberate omission on my part.

And, by the way, as I understand it, Hawai’ian uses the same macrons. Mac users: try switching your keyboard layout to Hawai’ian and you’ll find you can type ē, for example, by pressing Option e.

Very handy in a text editor.

Be the first to comment ⇒

These Posts may interest you too:

  1. Writing, Word, Google Docs, Pages and BBEdit Much of my work time these days is spent writing. Until maybe about a year ago I used TextEdit Plus, then I switched to BBEdit. When I’m writing I don’t...
  2. BBEdit Oktoberfest price For years now it seems like everyone except me has totally loved the BBEdit text editor from Bare Bones Software. I could just never come to like it. I will...
  3. Safari Width 1.0 Safari Width 1.0 This script lets you easily set the width of the frontmost Safari window. It displays a list of screen widths from 160 to 1600, including the current...
  4. What’s this Date? xlab : mac os x weblog tells us about looking up dates in the Terminal. Paul Bissex shares a curious feature installed with OS X while writing a script. Open...
  5. MarsEdit 2 has been released In general I send posts to my WordPress blogs with the most excellent MarsEdit. I’ve even been lucky enough to be one of the beta testers, so I can say...

Tell us what you think.
Note: there may be a delay before your comment appears. I now approve all comments from new visitors, in an attempt to keep spam at bay.

Add your Comment

Previous post:

Next post: