thorn

2015-06-08

A CommonDoc extension for entering special characters.

Upstream URL

github.com/CommonDoc/thorn

Author

Fernando Borretti <eudoxiahp@gmail.com>

Maintainer

Fernando Borretti <eudoxiahp@gmail.com>

MIT

Thorn

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.

NameCharacter
'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Ź

NameCharacter
''a
''A
''e
''E
''i
''I
''oő
''OŐ
''uű
''UŰ

NameCharacter
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Ω

NameCharacter
ndash
mdash
sdash

Sources

The following were consulted in the elaboration of this list: