SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    painlessly create plaintext

    Considering Accessibility is such a big thing, I am considering putting "plaintext" versions into all my existing sites. I'm sure it can be done by slaving back over everything and creating the pages manually. Most of my pages have PHP scripts. Any suggestions on how to quickly and easily generate plaintext versions of my sites without going in and making a huge project out of it?

    Sketch
    Aaron Brazell
    Technosailor



  2. #2
    SitePoint Wizard Aes's Avatar
    Join Date
    Jun 2001
    Location
    Oklahoma
    Posts
    3,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aaron, doesn't your site use MySQL for the main content? Probably not since you're asking this though. I'll be thinking of an alternative way, but if your site were databased it would be quite easy. (Hint hint: database your site)!
    Last edited by Aes; Mar 22, 2002 at 10:25.
    Colin Anderson
    Ambition is a poor excuse for those without
    sense enough to be lazy.

  3. #3
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah it uses MySQL...is there any other way? I was hoping to integrate what I already have in the way of preprogrammed templates/pages to generate plaintext....

    Sketch
    Aaron Brazell
    Technosailor



  4. #4
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think the best method would be to just make your existing pages more accessible. Having two versions of the same content can be a little confusing and is usually more trouble than it's worth, I think. :-)

    ~~Ian

  5. #5
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's an option, but this is one way to take already created sites that were not necessarily real accessible and create accessibility out of nowhere. Now I don't necessarily need to put a link to get the plain text version in an overly prominent place...I don't want to encourage folks to view in plaintext, but I still want to do this.

    Thanks.

    Sketch
    Aaron Brazell
    Technosailor



  6. #6
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Plain text should be a last ditch effort to make something accessible. Still, if you have your little heart set on a plain text version, then I suppose you could use XSLT in a simple PHP script to do that rather painlessly. There also might be some freeware app that'll do that, too, but I don't know of any. :-)

    ~~Ian

  7. #7
    SitePoint Wizard Aes's Avatar
    Join Date
    Jun 2001
    Location
    Oklahoma
    Posts
    3,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why can you not create a plaintext template -- i.e. the layout you want and then have MySQL pull the data from the database and format it for your new template? That seems pretty simple to me.
    Colin Anderson
    Ambition is a poor excuse for those without
    sense enough to be lazy.

  8. #8
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Because I would have to go through the hassle of a slew of if/else statements that I've already created, not to mention having used multiple templates per site...

    Sketch
    Aaron Brazell
    Technosailor




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •