Results 1 to 6 of 6

Thread: Anyone Know An Easy Way To Do This?

  1. #1
    You do realize by 'gay' I mean a man who has sex with other men?
    Join Date
    Oct 2003
    Location
    New Orleans, Louisiana.
    Posts
    21,635

    Anyone Know An Easy Way To Do This?

    I have a text file with around 1000 words in it like this...

    amateur gay porn
    hardcore twink sex
    exclusive porn movies
    xxx rated adult sex

    What i want to do is make each words first letter capitalized like this:

    Amateur Gay Porn
    Hardcore Twink Sex
    Exclusive Porn Movies
    Xxx Rated Adult Sex

    Anyone know of a method of achieving that without doing it all manually?

    Regards,

    Lee


  2. #2
    Words paint the real picture gaystoryman's Avatar
    Join Date
    Apr 2004
    Location
    western canada
    Posts
    2,151
    Save it to a word doc, then select all, then under options, choose fonts, then check the Captalize First Letter... then save, then save as text file...



    that'll be $45 as you get the GWW discount.. :honest:
    Webmasters: Add Custom Stories To Your Sites Custom Gay Stories

    My Blogs Gay Talk, Free Gay Fiction, Erotic Fiction Online


  3. #3
    You do realize by 'gay' I mean a man who has sex with other men?
    Join Date
    Oct 2003
    Location
    New Orleans, Louisiana.
    Posts
    21,635
    Quote Originally Posted by gaystoryman
    Save it to a word doc, then select all, then under options, choose fonts, then check the Captalize First Letter... then save, then save as text file...



    that'll be $45 as you get the GWW discount.. :honest:
    Hmm.. You must have a different version of Word than i do because i cant find any of that LOL

    Can you hit me up on ICQ babe please

    Regards,

    Lee


  4. #4
    Life is a dick and when itīs get hard---just fuck it... DEVELISH's Avatar
    Join Date
    Jul 2005
    Posts
    2,367
    hi Lee,

    you can take this

    Create a file with this content and name it to some extension your server will process php files.

    PHP Code:
    <?php

    $tmpArr 
    = array();
    $keywordFile "kw.txt";  //name of the file with your words

    $words file ($keywordFile);  //read file into an array

    foreach ($words as $word)    //loop on that array
    {
       
    $tmpArr[] = ucwords(trim($word));  //left&right trim non printable chars then capitalize each word.  The $tmpArr grows dynamically

    }

    foreach (
    $tmpArr as $ucWord)  //loop and output
    {
    echo 
    $ucWord."\n";
    }

    ?>
    You will then see some output where every word is capitalized.

    This was the input in my kw.txt
    hello world
    hello lee
    hello all others on gWW
    output

    Hello World
    Hello Lee
    Hello All Others On GWW
    DEVELISH
    :-D


  5. #5
    Do You Like My Vajeen Kewlaidkiddd's Avatar
    Join Date
    Sep 2004
    Location
    Charlotte, NC
    Posts
    137
    or, just take it to word, highlight everything then go to format and change case, there will be options there
    Chris Baker
    Gay Content Representative
    AEBN
    ICQ: 250268178
    AIM: RavestormEKG
    1-800-628-0241 ext 187
    chrisb@aebn.net


  6. #6
    HammerHead
    Guest
    How about making the text file into a HTML file and then using the text-transform: capitalize property in a style sheet
    Code:
    <html>
    <head>
    	<title></title>
    </head>
    <style>
    pre{
    	text-transform: capitalize;
    }
    </style>
    <body>
    <pre>
    amateur gay porn
    hardcore twink sex
    exclusive porn movies
    xxx rated adult sex
    </pre>
    </body>
    </html>

    In the output, your list will be capitalized and you can just copy it to your clipboard.


Posting Permissions

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