Before I begin, I have to emphasize that I have nothing against people who TyPe LyKk DiS.

None at all. But it makes for an unreadable web and I personally find that type of writing style detestable. No one reads that style of writing, and it detracts from any message you're trying to convey (and last I remember, "communication" was about getting your point across as clearly as possible ... unless you're a girl).

In any case, I needed a short break from working on tokki ... so I started joking around about my spell-checking post earlier.

I was thinking how awesome it would be to apply a front-end filter that would allow you to "filter" through websites with unreadable text ...

My 10 minute attempt you can see here. The original site is here.

Ideally, this would be a client-side program (a plugin, perhaps) that could be installed on any browser. But for practical reasons, I'll discuss the more probable scenario: a front-end filter (set by an option) that would do a "front-end filter" on Tabulas sites.

It would have to do the following:
1.) Load up the page into memory.
2.) Locate the CSS file on the page
3.) This is kinda length. I've bolded the "cliff notes" version.

Step 1: Fix up ridiculously small font sizes
Go through the CSS file, locate instances of the font-size tag (in both shorthand font: notation and the full font-size notation). Any values under 11px would immediately be changed to 11px (ideally 12px, but this could be set on a per-font basis since certain fonts look like crap in 11px and vice versa).

Step 2: Fix up vertical spacing between lines of text
The secondary aspect of this CSS replacement would be to grab the line-height attribute. Too often we see people smooshing text with no vertical distance between lines. It would run a quick calculation (if line_height < (font_size * 1.5)) it would substitute the value of the line-height to something you could read.

Step 3: Unreadable text
The third attribute would be a bit more complex. It would take the background-color color and compare it to every color value. Of course, this is complex because certain aspects of the website defined in the stylesheet *should* be set to a really close color ... it would have to determine which tags were being used by primary fonts (perhaps by looking for a font attribute?). Converting the hex codes to decimal (not sure if this is necessary) the script would attempt to figure out if the colors are "too close." I've seen too many sites with white backgrounds and yellow text. The script would convert colors so that you could actually read them.

4.) Create a temp CSS file and link to it instead of the original CSS file.
5.) REMOVE ALL INSTANCES OF MUSIC
ARGH I CANNOT STRESS THIS ENOUGH. I know you're just trying to be nice, pushing your Britney Spears on me when I'm trying to read your journal, but I want to listen to Justin Timberlake, OK?! The script would automatically remove any music tags.

6.) FiX WeIrD cAsInG lIke ThIS
I think by default the script would have to convert all casing to lower. Most people nowadays are unaware of the period (.) character so trying to figure out where a sentence began would be pointless. However, you would still build in the feature where the script locates sentences, converts it all ot lowercase, then uppercases the proper instances of casing (I think acronyms like PHP, XML, mySQL would suffer, but there will be some innocent casualties) such as "I" and the beginning of sentences.

I am personally guilty of never capitalizing anything, so this would be a huge boon to me.

7.) Convert words
This is arguably the hardest portion of the script. It would have to loop through a long array of data to make substitutions. Since there seem to be a "set" list of common words that violate "properspeak" such as "lyk", "azN", "gurl", "u", etc.... it would be rather simple to go through and replace all instances of such words with their proper equivalents (like, Asian, girl, you).

So that would be my 7-step script that would get rid of horrid writing styles that have been popularized by Xanga. Even better would be to do this when you INPUT entries so they would forever be stored in their proper format, but I don't believe in censorship.

I mean, it's not censorship when I just change the way the data is outputted via an option, right?
Posted by roy on August 17, 2003 at 04:40 PM in Personal as a favorite post | 11 Comments

Related Entries

Linked Entries

These are Tabulas entries which have linked to this particular entry.

Want to comment with Tabulas?. Please login.

Comment posted on September 15th, 2003 at 08:55 PM
This is wonderful. I really do think you could get rich from this. If I had any programming skills I'd offer to assist, because I think this would make all the difference in having an enjoyable web experience.
Comment posted on August 18th, 2003 at 06:11 PM
if u had an automatic converter, that'd be useful for me too, seeing that i can not, for the life of me, stop typing "u" for "you!" i'm not trying to be cute - i guess i'm really really really lazy... >.
Comment posted on August 17th, 2003 at 09:45 PM
i give you props.... and i now truly believe that roy kim is now one of the greatest men of all time... now asian guys all over the world will be able to read asian girl's websites and blogs without gettting massive headaches... Roy, i commed you, and you have just saved half of an entire race. God bless you, and thankyou again... please continue wiht this project
Comment posted on July 3rd, 2004 at 09:51 AM
i\'m asian, i\'m a girl, but i don\'t type with crazy cases...

whehe... but i agree roy\'s commendable. ;)
Comment posted on August 17th, 2003 at 09:37 PM
i HaTe WhEn pPL t1Pe LiKe DiS
Comment posted on August 17th, 2003 at 06:29 PM
seriously. you should do something about the unnecessary big-and-small font sized texts. how about grammar check? that would be ideal. muhahha. but i guess thats what microsoft word is for.
Comment posted on August 17th, 2003 at 05:56 PM
DO IT!!! DO IT NOW!!!
Tabulas can't be led into wrong path. You're right. This isn't Xanga, or AA. Tabulas is different. Tabulas is better. Do it in tribute to all the English teachers out there.
Comment posted on August 17th, 2003 at 05:45 PM
"and last I remember, 'communication' was about getting your point across as clearly as possible ... unless you're a girl"

HAHAHAHAHAHAHAHAHAHA!!

Roy, this idea is brilliant. I mean it. This project could be your magnum opus. If you follow through, it would solidify your spot among history's greatest men. You can make an enormous contribution to mankind here. You should, nay, you must complete this project, Roy.

*~~*~~*wId gRrr8 pOwAA cUMz gRrr8 rIzpoNZaBiLitEE*~~*~~*

xOxOxOxO

smg (guest)

Comment posted on August 17th, 2003 at 04:49 PM
ahaha i cant read it and i am a girl. well i cant translate it anyways.
Comment posted on August 17th, 2003 at 04:46 PM
roy, this article is GOLDEN! its about time we stood up against those fobs! LEARN ENGLISH!

yes, u soober.
Comment posted on August 17th, 2003 at 04:48 PM
hahaha you better be careful or he'll :soob: you out!