You are viewing an obsolete version of the DU website which is no longer supported by the Administrators. Visit The New DU.
Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Reply #28: Easy in theory, difficult in execution [View All]

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » Topic Forums » Environment/Energy Donate to DU
Dogmudgeon Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Jul-12-07 11:31 AM
Response to Reply #27
28. Easy in theory, difficult in execution
(I'll be using regular XML angle brackets for illustration instead of the square braces that DU's tags require.)

First, of course, you have to specify a monospace font face.

<font face="Courier,Andale Mono,Courier New">
The table goes here
</font>

The table data is arranged using spaces to tweak the positions of the text.

Then, convert all groups of spaces to middle dots, ASCII #183. You can use any non-space character, but people are familiar with the dots from years of seeing them on word processing screens. You can NOT use spaces. DU's coding condenses multiple spaces and tabs into single spaces. And proportional fonts can't be hand-tweaked accurately.

I replace ALL spaces with dots, then restore the single spaces where they normally occur between words. IOW, the dots are for format and spaces are for reading. If you select/highlight the table in that post, you will see how the dots are used.

The dots are made "invisible" by this tag:

<font color=white>············</font>
<font color=white>This will be invisible</font>

Select the text here:
Start ==> This is now invisible·········and so is this <== End

A set of tags is used for every chunk of whitespace. There are a LOT of them, and the result is difficult to read, so I do the nasty stuff after I've edited everything into the form I want it.

I used a couple of poorly-written S-&-R macros and two programs; I was in a hurry. I ought to just code this in Python or VBS but my skills are quite rusty.

--p!
Printer Friendly | Permalink |  | Top
 

Home » Discuss » Topic Forums » Environment/Energy Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC