Subj : Attribute code conversion to other BBS formats
To : Nightfox
From : Digital Man
Date : Sat Dec 30 2017 07:01 pm
Re: Attribute code conversion to other BBS formats
By: Nightfox to All on Sat Dec 30 2017 02:31 pm
> Hi all,
>
> Has anyone written any code to convert Synchronet attribute codes to another
> BBS's attribute format? I started writing some functions to do so, and for
> some, there could be some that would be tricky. For instance, WWIV doesn't
> have a separate individual code for high intensity; it has codes for
> normal-intensity colors and separate codes for high-intensity versions of
> the colors. The issue I see is that if there is a Synchronet high-intensity
> code somewhere in a line or a block of text, and later there is a color
> code, that color would end up being high-intensity. When parsing the
> line/block of text, the parsing code would need to remember that the high
> intensity attribute was set previously and use WWIV's high-intensity version
> of that color code. And it looks like Celerity is the same way..
>
> I'm curious if there is a simple way to convert Synchronet attribute codes
> to other BBS formats and if anyone has written such code.
The Synchronet Ctrl-A (attibute) codes closely match the capabilities of ANSI
(e.g. you can turn high intensity foreground on or off without affecting the
current color). So any "other BBS" format which also closely matches the
capabilities of ANSI could be converted to/from easy. Converting to/from other
(non-ANSI-matching) formats could be accomplished by tracking the current
virtual attribute and outputting the correct corresponding absolute "other BBS"
code when any text was to be displayed.
WWIV with its limited palette might be a lot harder.