s/\\bat{}/\\acs{BAT}/g;
s/{-}{-}/--/g;
s/\\bkeyword{\([^}]*\)}/\\bvalue{\1}/g;
s/\\bregistered{}/\\textregistered{}/g;
s/\\bcopyright{}/\\textcopyright{}/g;
s/\\bconsole{}/\\bacula{} __SPAN__CLASS__bdaemon__Console__SPAN__/g;
s/\\bdirector{}/\\bacula{} __SPAN__CLASS__bdaemon__Director__SPAN__/g;
s/\\bmainman{}/\\bacula{} Main Manual/g;
s/\\bconsoleman{}/\\bacula{} Console Manual/g;
s/\\bdevelman{}/\\bacula{} Developers Manual/g;
s/\\butilityman{}/\\bacula{} Utility Programs/g;
s/\\bmiscman{}/\\bacula{} Miscellaneous Guide/g;
s/\\bproblemman{}/\\bacula{} Problem Resolution Guide/g;
s/\\bacula{}/Bacula/g;
s/\\acsp{\([^}]\+\)}/__ACSP__\1__/g;
s/\\acs{\([^}]\+\)}/__ACS__\1__/g;
s/\\ac{\([^}]\+\)}/__AC__\1__/g;
s/\\acl{\([^}]\+\)}/__ACL__\1__/g;
s/\\bConsole{}/\\bresourcename{Console}/g;
s/\\bCatalog{}/\\bresourcename{Catalog}/g;
s/\\bJob{}/\\bresourcename{Job}/g;
s/\\bDirector{}/\\bresourcename{Director}/g;
s/\\bClient{}/\\bresourcename{Client}/g;
s/\\bPool{}/\\bresourcename{Pool}/g;
s/\\bconsolename{}/\\bcommandname{bconsole}/g;
s/\\bJobId{}/\\bresourcename{JobId}/g;
s/\\bFileSet{}/\\bresourcename{FileSet}/g;
s/\\bStorage{}/\\bresourcename{Storage}/g;
s/\\bVolume{}/\\bresourcename{Volume}/g;
s/\\bedition{}/Enterprise Edition/g;
s/\\baculasystems{}/Bacula Systems/g;
s/\\bweb{}/BWeb/g;
s/\\mssql{}/__MSSQL__/g;
s/\\bdump{}/\\btool{dump}/g;
s/\\bru{}/\\btool{bru}/g;
s/\\tar{}/\\btool{tar}/g;
s/\\mtx{}/\\btool{mtx}/g;
s/\\mtxchanger{}/\\btool{mtx-changer}/g;
s/\\sqlite{}/__SQLite__/g;
s/\\postgresql{}/__POSTGRESQL__/g;
s/\\mysql{}/__MYSQL__/g;
s/\\bdirectory{\([^}]*\)}/\\bdirectoryname{} directory/g;
s/\\bdirective{\([^}]*\)}/\\bdirectivename{} directive/g;
s/\\bresource{\([^}]*\)}/\\bresourcename{\1} resource/g;
s/\\bresources{\([^}]*\)}/\\bresourcename{\1} resources/g;
s/\\bresourceq{\([^}]*\)}/\\bresourcename{\1}'s resource/g;
s/\\bcommand{\([^}]*\)}/\\bcommandname{\1} command/g;
s/\\bheader{\([^}]*\)}/\\textcolor{opposite}{\\textbf{#1}}/g;
s/\\bnextpage{}/\\emph{Continues on the following page}/g;
s/\\babove{}/$\\geqslant$/g;
s/\\bstar{}/$\\star$/g;
s/\\byesorno{}/\\bbracket{yes|no}/g;
s/\\bstructure{\([^}]*\)}/\\bstructurename{\1} structure/g;
s/\\bfunction{\([^}]*\)}/\\bfunctionname{\1} function/g;
s/\\bevent{\([^}]*\)}/\beventname{\1} event/g;
s/\\vb{}/\|/g;
s/lstlisting/verbatim/g;
s/lstinline/verb/g;
s/\\lstset[^}]*//g;
s/\\input{head[^}]*//g;
s/bmanual/book/g;
s/bitemize/itemize/g;
s/bdescription/description/g;
s/benumerate/enumerate/g;
s/\\listoffigures//g;
s/\\listoftables//g;
s/\\LTXtable{[^}]*}{\([^}]*\)}/\\include{\1}/g;
s/\\textrightarrow/__RIGHTARROW__/g;
s/\\bbracket{\([^}]*\)}/__SPAN__CLASS_bbracket__\1__SPAN__/g;
s/\\bfilename{\([^}]*\)}/__SPAN__CLASS__bfilename__\1__SPAN__/g;
s/\\bstructurename{\([^}]*\)}/__SPAN__CLASS_bstructure__\1__SPAN__/g;
s/\\bfunctionname{\([^}]*\)}/__SPAN__CLASS_bfunction__\1__SPAN__/g;
s/\\beventname{\([^}]*\)}/__SPAN__CLASS_bevent__\1__SPAN__/g;
s/\\bdefaultvalue{\([^}]*\)}/__SPAN__CLASS_bdefaultvalue__\1__SPAN__/g;
s/\\btable{\([^}]*\)}/__SPAN__CLASS_btable__\1__SPAN__/g;
s/\\bhighlight{\([^}]*\)}/__SPAN__CLASS_bhighlight__\1__SPAN__/g;
s/\\bvalue{\([^}]*\)}/__SPAN__CLASS_bvalue__\1__SPAN__/g;
s/\\bdirectivename{\([^}]*\)}/__SPAN__CLASS_bdirective__\1__SPAN__/g;
s/\\bdirectoryname{\([^}]*\)}/__SPAN__CLASS_bdirectory__\1__SPAN__/g;
s/\\bresourcename{\([^}]*\)}/__SPAN__CLASS_bresource__\1__SPAN__/g;
s/\\bcommandname{\([^}]*\)}/__SPAN__CLASS_bcommand__\1__SPAN__/g;
s/\\btool{\([^}]*\)}/__SPAN__CLASS_btool__\1__SPAN__/g;
s/\\bsysimage.{\(.*\)}{.*}{.*}/\\includegraphics{\1}/g;
s/\\bimage.\([^{]*\){\([^{]*\)}{\([^{]*\)}{\([^{]*\)}/__IMAGE__\1__\2__\3__\4__/g;
s/\\bsysxrlink{\(.*\)}{\(.*\)}{\(.*\)}{\(.*\)}/__XRANCHOR_\1_\2_\3_\4__/g;
s/\\bxlink{\(.*\)}{\(.*\)}{\(.*\)}{\(.*\)}/__XRANCHOR_\1_\2_\3_\4__/g;
s/\\bxdlink{\(.*\)}{\(.*\)}{\(.*\)}{\(.*\)}/__XDANCHOR_\1_\2_\3_\4__/g;
s/\\bufootlink{\(.*\)}{\(.*\)}/\\bfootref{\2}{\1}/g;
s/\\bulink{\(.*\)}{\(.*\)}/\\bref{\2}{\1}/g;
s/\\bifootlink{\(.*\)}{\(.*\)}/\\htmlref{\1}{\2}/g;
s/\\bilink{\(.*\)}{\(.*\)}/\\htmlref{\1}{\2}/g;
s/\\bfootref{\(.*\)}{\(.*\)}/\\bref{\1}{\2}/g
s/\\vref{/\\ref{/g;
s/\\bref{/\\href{/g;
s/\\includegraphics\[\([^]]\+\)\]{\([^}]\+\)}/__GRAPHIC__\1__\2__/g;
s/\\includegraphics{\([^}]\+\)}/__GRAPHIC__1__\1__/g;
