!subnode Questions concerning Turbo Vision Help
!ignore_links

This format is used to make online manuals for DOS programs that are
compiled with Borland's Turbo Vision library. UDO's output has to be
converted with (!V)TVHC.EXE(!v). The source code of (!V)TVHC.EXE(!v) is
available and you have to change some parts because it contains some bugs.

If you aren't an author that programs software that uses the Turbo Vision
library you shouldn't use this format.

!begin_description

#####################################################################
!item [TVHC prints the error message ""Unterminated topic reference""!?] ~

My TVHC version 1.0 contains an ugly bug. Due to this bug you cannot quote
brackets by using them twice. If your TVHC prints the upper error message
look for the function (!V)scanForCrossRefs()(!v) in (!V)tvhc.cpp(!v) and
patch it like this:

Original version:

!begin_quote
!begin_verbatim
if (line[i+1] == begXRef)
{
    strdel(line, i, 1);
	++i;
}
!end_verbatim
!end_quote

Patched version:

!begin_quote
!begin_verbatim
if (line[i] == begXRef)    // [i] instead of [i+1]
{
    strdel(line, i, 1);
	++i;
}
!end_verbatim
!end_quote

After having changed the source code you should recompile TVHC to enable the
changes.



#####################################################################
!item [TVHC prints the error message ""Text too long""!?] ~

The file (!V)tvhc.h(!v) contains a constant number named (!V)bufferSize(!v)
that defines the maximum size of the text buffer. This text buffer is a
little bit small. You should increase the buffer size e.g. to 32~KB to
suppress the upper error message:

!begin_quote
!begin_verbatim
const bufferSize = 32768;
!end_verbatim
!end_quote

After having changed the buffer size you should recompile TVHC to enable the
changes.


#####################################################################
!item [TVHC prints the error message ""TOPIC expected""!?] ~

This error message is printed if a line starts with a point. The point is a
special character in Turbo Vision Help if it is the first character of a
line. My TVHC stops if it reads such a line.

But there's no need to stop the conversion. Thus I have patched my TVHC. I
have replaced this line

!begin_quote
!begin_verbatim
error("TOPIC expected");
!end_verbatim
!end_quote

with

!begin_quote
!begin_verbatim
warning("TOPIC expected");
!end_verbatim
!end_quote

If you recompile the TVHC it will print a warning and it will go on
converting the source file instead of printing an error message.


#####################################################################
!end_description

