thorn

2015-06-08

Thorn

Build Status

A CommonDoc extension for inserting special characters.

Overview

Most input methods allow the user to insert characters in different alphabets and accented or modified versions of the same, but these are different for everyone and often the user will end up looking up a character by name.

Thorn is a tool for inserting Unicode characters by an ASCII name, the way TeX allows users to insert the letters ? and ? with the commands \alpha and \th, respectively.

Simply put, it defines a macro that maps a string to a Unicode character.

Usage

To insert a character by name, use the l macro (For 'letter'). The content of that macro should be a single text node.

For example, in VerTeX, the following:

The fine-structure constant, \l{alpha}, is approximately 7.29e\sup{-3}.

Produces this:

The fine-structure constant, ?, is approximately 7.29e-3.

List of Characters

Diacritical Marks

Acute Accent

Name Character
'a ?
'A ?
'c ?
'C ?
'e ?
'E ?
'g ?
'G ?
'i ?
'I ?
'k ?
'K ?
'l ?
'L ?
'm ?
'M ?
'n ?
'N ?
'o ?
'O ?
'p ?
'P ?
'r ?
'R ?
's ?
'S ?
'u ?
'U ?
'w ?
'W ?
'y ?
'Y ?
'z ?
'Z ?

Double Acute Accent

Name Character
''a a?
''A A?
''e e?
''E E?
''i i?
''I I?
''o ?
''O ?
''u ?
''U ?

Scripts

Greek

Name Character
alpha ?
Alpha ?
beta ?
Beta ?
gamma ?
Gamma ?
delta ?
Delta ?
epsilon ?
Epsilon ?
zeta ?
Zeta ?
eta ?
Eta ?
theta ?
Theta ?
iota ?
Iota ?
kappa ?
Kappa ?
lambda ?
Lambda ?
mu ?
Mu ?
nu ?
Nu ?
xi ?
Xi ?
omicron ?
Omicron ?
pi ?
Pi ?
rho ?
Rho ?
sigma ?
fsigma ?
Sigma ?
tau ?
Tau ?
upsilon ?
Upsilon ?
phi ?
Phi ?
chi ?
Chi ?
psi ?
Psi ?
omega ?
Omega ?

Punctuation

Name Character
ndash ?
mdash ?
sdash ?

Sources

The following were consulted in the elaboration of this list:

License

Copyright (c) 2015 Fernando Borretti

Licensed under the MIT License.

Author
Fernando Borretti <eudoxiahp@gmail.com>
Maintainer
Fernando Borretti <eudoxiahp@gmail.com>
License
MIT