• Using basic HTML code in pascal program

    From Donald Tidmore@1:261/38 to All on Sat Aug 20 19:37:26 2005
    I'm hoping that one of you can give me instructions on how one can take a basic
    Lord program, in this case Jason Brown's LordStat utility, and change it so that it can output basic HTML text files. The program currently makes ANSI and
    ASCII bulletin files to cover usage of the LORD and Lord/32 beta bbs door games. What I want to do is write simple HTML files but I have no idea as to how to go about doing that.

    So can one of you provide me with information on this topic? I figure that someone somewhere has done this sort of thing, and I hope one of them is still active in this echo. Thanks, Donald.

    Email: ktidmore@bellsouth.net or gtidmore@hiwaay.net

    --- BBBS/LiI v4.01 Flag-5
    * Origin: Prism bbs (1:261/38)
  • From Roelof Beverdam@2:280/5218 to Donald Tidmore on Sun Aug 21 10:24:18 2005
    Hello Donald,

    I'm hoping that one of you can give me instructions on how one can take a basic Lord program, in this case Jason Brown's LordStat utility, and
    change it so that it can output basic HTML text files. The program currently makes ANSI and ASCII bulletin files to cover usage of the LORD
    and Lord/32 beta bbs door games. What I want to do is write simple HTML files but I have no idea as to how to go about doing that.

    The utmost basic HTML file is one without any HTML at all in it - just plain ASCII will do!

    The next step would be to build a few lines of wrapper code - basically a straighforward header and a <body> a/ </body> pair with the same ASCII in between.

    A further enhancement would be to use a table to put your stats in.


    To study the HTML instruction set: there are some HTML introductions available on the web; you might consult one of them to get an idea about the HTML language and its possibilities. Or download a simple HTML page from the internet and "read" it with a plain ASCII editor (like Notepad).

    Success!

    Cheers,
    Roelof Beverdam

    --- Dutchie V3.10.11
    * Origin: The Beaver's Nest (2:280/5218)
  • From mark lewis@1:3634/12 to Donald Tidmore on Wed Aug 24 22:36:53 2005
    I'm hoping that one of you can give me instructions on how one can
    take a basic Lord program, in this case Jason Brown's LordStat
    utility, and change it so that it can output basic HTML text files.
    The program currently makes ANSI and ASCII bulletin files to cover
    usage of the LORD and Lord/32 beta bbs door games. What I want to
    do is write simple HTML files but I have no idea as to how to go
    about doing that.

    So can one of you provide me with information on this topic? I
    figure that someone somewhere has done this sort of thing, and I
    hope one of them is still active in this echo. Thanks, Donald.

    the easiest thing would possibly to take the ASCII version and wrap it in <PRE></PRE> html container tags... of course, you would want to have all the other proper HTML tags in place before and after :)

    the actual coding should be dirt simple... start the HTML output file and output the html header stuff... then the <PRE> tag, import the ASCII file and output it to the html file, then </PRE> and the rest of your terminating HTML tags...

    you could possibly peek at the output of my files areas HTML files on my website... they are done from BP7 and the descriptions of the files are wrapped
    with <PRE></PRE> tags in the same manner i'm speaking of...

    )\/(ark


    * Origin: (1:3634/12)
  • From Donald Tidmore@1:261/38 to Mark Lewis on Thu Aug 25 20:49:52 2005
    the easiest thing would possibly to take the ASCII version and wrap it in <PRE></PRE> html container tags... of course, you would want to have all the other proper HTML tags in place before and after :)
    the actual coding should be dirt simple... start the HTML output file and output the html header stuff... then the <PRE> tag, import the ASCII file and output it to the html file, then </PRE> and the rest of your terminating HTML tags...
    you could possibly peek at the output of my files areas HTML files on my
    website... they are done from BP7 and the descriptions of the files are wrappe
    with <PRE></PRE> tags in the same manner i'm speaking of...
    )\/(ark

    You forgot to say where your web-site is. But your info and that by Roelof were
    valuable information and I think I can figure out the rest by trial and error in the
    Borland Pascal compiler that I use mostly. I also use Virtual pascal but not as often.
    Thanks for the help, and send me info on where to find your web-site please, Mark.

    Thanks, Donald. ktidmore@bellsouth.net or gtidmore@hiwaay.net for email. http://www.fidotel.com/public/camelot/ - Castle Camelot web-site's index page.

    --- BBBS/LiI v4.01 Flag-5
    * Origin: Prism bbs (1:261/38)
  • From mark lewis@1:3634/12 to Donald Tidmore on Fri Aug 26 04:49:18 2005
    you could possibly peek at the output of my files areas HTML files on
    my website... they are done from BP7 and the descriptions of the
    files are wrapped with <PRE></PRE> tags in the same manner i'm
    speaking of...

    You forgot to say where your web-site is.

    whoops... http://www.wpusa.dynip.com/

    ;)

    But your info and that by Roelof were valuable information and I

    well, roelof is correct, too... you could simply take the ascii version and copy it to blah.htm in your webspace and it would work just fine... you only need to do more if you want to "fancy" it up some...

    think I can figure out the rest by trial and error in the

    you could possibly even go real elaborate and analyse the ansi version for the color changes and duplicate it in html... that's an interesting li'l project to
    play with, depending on one's skills...

    Borland Pascal compiler that I use mostly. I also use Virtual
    pascal but not as often.

    yeah, i'm a TP/BP kinda guy, too... i think i've VP and another one or two here
    but don't believe i've even installed them...

    Thanks for the help, and send me info on where to find your
    web-site please, Mark.

    see above ;)

    )\/(ark


    * Origin: (1:3634/12)
  • From Scott Adams@1:112/91 to Donald Tidmore on Sun Aug 21 03:57:47 2005
    Quoting Donald Tidmore to All <=-

    I'm hoping that one of you can give me instructions on how one can
    take a basic Lord program, in this case Jason Brown's LordStat
    utility, and change it so that it can output basic HTML text files.
    The program currently makes ANSI and ASCII bulletin files to cover
    usage of the LORD and Lord/32 beta bbs door games. What I want to do
    is write simple HTML files but I have no idea as to how to go about
    doing that.
    So can one of you provide me with information on this topic? I figure that someone somewhere has done this sort of thing, and I hope one of
    them is still active in this echo. Thanks, Donald.

    Its fiarly easy to convers ansi output to html. Just
    have to write the basic conversion stuff.

    Best thing to do is study ansi codes and then html
    layout. Assuming you don't want to be too fancy with
    html theres only about 20 lines of html that is only
    needed and maybe 4-5 html commands for a basic output
    file. So its not that hard.

    Theres some good html tutorials out there. I think
    I may still have some on my Links page on my website.
    http://users.cybermax.net/~longshot and then the
    links page. Been awhile so unsure not checked it
    in awhile. Need too. :)

    This is the basic format o a simple html webpage..

    <html>
    <head>
    <title>Some Title</title>
    </head>
    <body>

    Your text here...

    </body>
    </html>

    Course if you want more fancy stuff like colors and
    blocking like <center> or such then you can add
    those as well. But that's it. So all your program
    would have to do is insert the top/bottom and then
    write to the body section. I suspect it'll be harder
    to strip the ansi codes out than it would be to do
    the html stuff.

    Check out SWAG for a whole parcel of ANSI related pascal
    code.

    ... "Private Durman? Care to join us?" - Plug to Dodger
    --- Fringe BBS
    * Origin: EWOG II - The Fringe - 904-733-1721 (1:112/91)