• Attribute code conversion to other BBS formats

    From Nightfox@VERT/DIGDIST to All on Sat Dec 30 22:31:11 2017
    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.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Sun Dec 31 03:01:12 2017
    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.

    digital man

    Synchronet/BBS Terminology Definition #43:
    SBBS = Synchronet Bulletin Board System
    Norco, CA WX: 60.1øF, 58.0% humidity, 0 mph SSE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net