From
Digital Man@VERT to
Nightfox on Sat Dec 30 19: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ã