diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-03 21:07:01 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-03 21:07:01 +0000 |
commit | c953aa714570186eae41b5407803bc0826f109bf (patch) | |
tree | 8aec402c1ae89978d604af0a73c390633e86620f /README.addescape | |
parent | 582f744fa00f667caac63eb928c9ef665d3ef54d (diff) | |
download | mandoc-c953aa714570186eae41b5407803bc0826f109bf.tar.gz |
Character-escape addition simplified (see README.addescape, also added).
Diffstat (limited to 'README.addescape')
-rw-r--r-- | README.addescape | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/README.addescape b/README.addescape new file mode 100644 index 00000000..93231406 --- /dev/null +++ b/README.addescape @@ -0,0 +1,17 @@ +$Id$ + +This documents adding a new character escape to mdocterm(1). Character +escapes are only syntax-validated in the back-end. + +Character escape may be in the form of \*x, \*(xx, \x, \(xx, \[n] and so +on and so on. All of these are recognised according to their byte +length. + +(1) If the escape is NOT recognised in enum tsym in term.h, add it. + +(2) Modify/create static struct termenc termencN, where N is the number +of characters in the encoding. This is in mdocterm.c. + +(3) Possibly modify nescape() to recognise a new termencN. + +Everything else is automatic. |