=================================================================== RCS file: /cvs/docbook2mdoc/Attic/rules.c,v retrieving revision 1.12 retrieving revision 1.14 diff -u -p -r1.12 -r1.14 --- docbook2mdoc/Attic/rules.c 2014/04/02 07:48:34 1.12 +++ docbook2mdoc/Attic/rules.c 2014/04/02 10:06:14 1.14 @@ -86,6 +86,29 @@ isparent(enum nodeid node, enum nodeid parent) break; } return(0); + case (NODE_APPLICATION): + switch (parent) { + case (NODE_EMPHASIS): + case (NODE_ENTRY): + case (NODE_FUNCSYNOPSISINFO): + case (NODE_LINK): + case (NODE_PARA): + case (NODE_PROGRAMLISTING): + case (NODE_REFCLASS): + case (NODE_REFDESCRIPTOR): + case (NODE_REFENTRYTITLE): + case (NODE_REFNAME): + case (NODE_REFPURPOSE): + case (NODE_SCREEN): + case (NODE_SYNOPSIS): + case (NODE_TERM): + case (NODE_TITLE): + case (NODE_ULINK): + return(1); + default: + break; + } + return(0); case (NODE_ARG): switch (parent) { case (NODE_ARG): @@ -348,6 +371,7 @@ isparent(enum nodeid node, enum nodeid parent) case (NODE_ULINK): /* Synonyms. */ switch (parent) { case (NODE_ACRONYM): + case (NODE_APPLICATION): case (NODE_ARG): case (NODE_CODE): case (NODE_COMMAND): @@ -377,6 +401,7 @@ isparent(enum nodeid node, enum nodeid parent) case (NODE_TERM): case (NODE_ULINK): case (NODE_USERINPUT): + case (NODE_VARNAME): return(1); default: break; @@ -587,6 +612,7 @@ isparent(enum nodeid node, enum nodeid parent) case (NODE_REPLACEABLE): switch (parent) { case (NODE_ACRONYM): + case (NODE_APPLICATION): case (NODE_ARG): case (NODE_CODE): case (NODE_COMMAND): @@ -619,6 +645,7 @@ isparent(enum nodeid node, enum nodeid parent) case (NODE_TITLE): case (NODE_ULINK): case (NODE_USERINPUT): + case (NODE_VARNAME): default: return(1); } @@ -768,6 +795,29 @@ isparent(enum nodeid node, enum nodeid parent) case (NODE_REFSECT2): case (NODE_REFSYNOPSISDIV): case (NODE_VARIABLELIST): + return(1); + default: + break; + } + return(0); + case (NODE_VARNAME): + switch (parent) { + case (NODE_CODE): + case (NODE_EMPHASIS): + case (NODE_ENTRY): + case (NODE_FUNCSYNOPSISINFO): + case (NODE_LINK): + case (NODE_PARA): + case (NODE_PROGRAMLISTING): + case (NODE_REFDESCRIPTOR): + case (NODE_REFENTRYTITLE): + case (NODE_REFNAME): + case (NODE_REFPURPOSE): + case (NODE_SCREEN): + case (NODE_SYNOPSIS): + case (NODE_TERM): + case (NODE_TITLE): + case (NODE_ULINK): return(1); default: break;