Annotation of docbook2mdoc/README, Revision 1.3
1.3 ! schwarze 1: $Id: README,v 1.2 2019/03/08 10:13:12 schwarze Exp $
1.1 kristaps 2:
3: Here's a quick note on how to add new DocBook elements.
4:
1.2 schwarze 5: First, look up the element in the DocBook reference.
6: For element <foo>, this is usually:
1.1 kristaps 7:
1.2 schwarze 8: https://tdg.docbook.org/tdg/5.1/foo.html
9:
10: Some elements are no longer defined in DocBook 5.
11: For these, you will have to look at 4.5 documentation instead:
12:
13: https://tdg.docbook.org/tdg/4.5/foo.html
1.1 kristaps 14:
15: Add the alpha-ordered node (NODE_FOO) to extern.h.
16:
17: Next, add the name and whether it admits text to docbook2mdoc.c's
18: "nodes" structure array.
19:
1.2 schwarze 20: Finally, modify pnode_print() with your new entry. Use similar nodes as
1.1 kristaps 21: a reference. (NOTE: if it's an inline like, say, NODE_EMPHASIS, then
22: remember to add the node to the postfix switch statement!)
CVSweb