User Tag List

  1. tatum's Avatar
    Add words to the iPhone's built-in dictionary file.

    This script requires Perl to be installed. Add the CoreDev repo to Cydia to install Perl.

    Code:
    #!/usr/local/bin/perl
    
    # This program will add words to the iPhone word database.
    # Created by tatum, 04/02/2009
    
    ###############
    # Define vars #
    ###############
    
    $file = "/private/var/mobile/Library/Keyboard/dynamic-text.dat";
    
    #########
    # Usage #
    #########
    
    # If no args given, or "-h", print usage
    
    if (@ARGV == 0 or $ARGV[0] eq '-h') {
    	&usage;
    }
    
    sub usage {
    
    print <<EOF;
    
    Usage:
    
      dic -a <word> <another word>...	- Adds <words> to iPhone dictionary file
      dic -h							 - Displays this message
    
    EOF
    	exit 1;
    }
    
    ########
    # Code #
    ########
    
    if (($ARGV[0] eq "-a") && (@ARGV >= 2)) {
    	open(DICT, ">>$file") or die "Unable to open '$file': $!\n";
    	binmode DICT;
    	@current = <DICT>;
    	shift (@ARGV);
    	foreach $word (@ARGV) {
    		unless (grep(/^$word$/, @current)) {
    			print DICT $word;
    		} else { 
    			die "\n'$word' already exists in '$file'.\n"; 
    		}
    	}
    close(DICT);
    
    } else {
    &usage;
    }

    Example:

    dic -a word1 word2 word3
    2009-04-05 06:03 PM
  2. NeoNightmareX's Avatar
    Could this also be used to change "LOL" to "lol"?
    If I helped you, then hit the "Thanks!" button please.

    I can't find Cydia on app store
    2009-04-05 07:23 PM
  3. tatum's Avatar
    Could this also be used to change "LOL" to "lol"?
    No. Try "haha" instead.
    2009-04-05 08:19 PM
  4. BrandonandMaria's Avatar
    well this is something I would like BUT, I want to know if I can change the chinese handwriting dictionary to english?? Is that possible??
    2009-04-15 03:46 AM
  5. tatum's Avatar
    well this is something I would like BUT, I want to know if I can change the chinese handwriting dictionary to english?? Is that possible??
    I am not sure. Sorry.
    2009-04-15 05:02 PM
  6. shoohorn0plenty's Avatar
    I would really like to teach my iPhone naughty words, but this method is way over my head.

    Telling someone to duck off is getting be almost as embarrassing as telling one of my buddies that I have to go take a shot.
    Isnít it enough to see that a garden is beautiful without having to believe that there are fairies at the bottom of it too?
    -- Douglas Adams
    2009-04-17 08:20 PM
  7. wasutton3's Avatar
    hey i was looking at this for a potential iphone i might be getting but i have one quick question, couldnt you just edit the dynamic-text.dat file in
    %user/private/var/mobile/Library/Keyboard ? i am assuming that its jailbroken and you can ssh into the iphone.
    2009-05-14 03:21 PM
  8. phreakwenci's Avatar
    I would really like to teach my iPhone naughty words, but this method is way over my head.

    Telling someone to duck off is getting be almost as embarrassing as telling one of my buddies that I have to go take a shot.
    I found away around that in a post on lifehacker.com Just create a new contact named Bad Words and in the last name add all the words you want to keep the iphone from correcting, I also added stuff like "FTW WTF ROFL AFAIK FWIW" etc... and of course a superflous amount of foul language. Works for me!
    2009-05-24 05:20 AM
  9. Bo Troxell's Avatar
    I found away around that in a post on lifehacker.com Just create a new contact named Bad Words and in the last name add all the words you want to keep the iphone from correcting, I also added stuff like "FTW WTF ROFL AFAIK FWIW" etc... and of course a superflous amount of foul language. Works for me!
    Very cool. Auto correct is more that just a minor inconvenience for me but for people that can't handle it , this rox. Nice job.
    smaller sig.png
    2009-05-24 05:33 AM
  10. shoohorn0plenty's Avatar
    I found away around that in a post on lifehacker.com Just create a new contact named Bad Words and in the last name add all the words you want to keep the iphone from correcting, I also added stuff like "FTW WTF ROFL AFAIK FWIW" etc... and of course a superflous amount of foul language. Works for me!
    This works!
    Thanks!
    Isnít it enough to see that a garden is beautiful without having to believe that there are fairies at the bottom of it too?
    -- Douglas Adams
    2009-05-24 04:31 PM
  11. West-'s Avatar
    This works!
    Thanks!

    I know this post is old, but I came across it and wanted to let people know it works if you just do it in Notes too!
    2009-07-29 03:49 PM
  12. maelcum's Avatar
    Hey,

    could it be that the file format changed in any of the firware updates?
    When I look at the file I'll see a format like this:
    ^@wordA^@wordB^@wordC^@wordD
    Between any word there is a delimiter "^@".

    When I call up the perl-Script and add some words, they show up right after each other, no delimiter, like:
    wordAwordBwordCwordD

    Any insight?
    2009-10-09 09:35 PM
LINK TO POST COPIED TO CLIPBOARD