|
07/17/2009, 03:30 PM
#1
AutoCorrect Edit Demo

AutoCorrect Edit allows users to modify the autocorrect dictionary on the Pre via a Pre Application. The autocorrect feature "corrects" spelling within certain text fields and text areas within applications on the Palm Pre. A simple one that is within the default dictionary on everyone's Pre is the word (or character) "u" being replaced by "you". Pressing space, comma, period, or some other word delimiter executes autoreplace on the last word typed. To undo the replacement, just press backspace once.
(Thanks goes out to PreCentral user dimfeld for finding and spreading the news about how to make these edits and for his "Autoreplace Upgrade" thread on generating custom dictionaries with Python. Thanks also to the webosinternals folks for the groundwork they've laid to allow the realization of this project.) Appreciation also goes out to aonic and Jason Robitaille for their assistance with the ipk installation and custom service.
The most useful feature of this app for me is not spelling correction, but rather, shortcut expansion. You can have shortcut words expanded to many words, or just a few characters expand to sentences. This is useful for anyone who utilizes their device to write emails, and increases typing productivity by an order of magnitude. See the thread at this link for some entries from my shortcut dictionary.
There is only one screen for the app at this time with two text fields and two buttons:
- Shortcut or Misspelled Word Field: This is a single word field that allows you to enter a misspelled word that you would like auto corrected. A shortcut can be entered as well (eg. hv for have, th for the, wdy for what do you, etc...). Pressing the <enter> key on this field moves the focus and cursor to the Replacement Word or Phrase Field.
- Replacement Word or Phrase Field: This field is for entering the corrected spelling of the misspelled word in the other text field or the expansion of the shortcut (examples provided above). Pressing the <enter> key in this field executes the "Add / Modify" button.
- Add / Modify Button: Click to add the entry into the autoreplace dictionary of your Palm Pre. (Both fields must be filled in.)
- Delete Button: Click to remove the misspelled word or shortcut from the autoreplace dictionary. (The "Misspelled Word or Shortcut" field must be filled in. This button disregards the second field.
Features:
- Adds entries to the AutoCorrect dictionary.
- Ensures that duplicates don't exist.
- Restricts certain characters from the shortcut field.
- Restricts spaces (multiple words) from the shortcut field.
- Backup of the current AutoCorrect dictionary via menu.
- Restoration of the most recent backup of the AutoCorrect dictionary via menu.
- Enter Key press on Replacement Word field executes Add/Modify Button press.
- Activate Changes Menu Item does a quick reboot (~45 seconds) to activate newly added shortcuts.
- Moves the autoreplacement dictionary to AutoCorrectEdit folder on USB drive for easy USB drive access ([Pre-Drive]:/AutoCorrectEdit/text-edit-autoreplace file).
- Recovers itself after OTA (over the air) OS (Operating System) updates overwrite autoreplace dictionary
- Saves off personal entries to file for future restoration functionality (restore personal entries after dictionary load or OTA udpate).
- Compatible with WebOS Quick Install tool (some users experience an "error reading control file" pop-up, but this doesn't affect installation).
- Registered version compatible with devices outside of the United States.
- Registered version compatible with devices on Verizon Wireless network.
Purchase:
The demo is free, but expires after 5 days. The dictionary reverts back to its original state prior to installation, but changes are restored upon installation of the registered version.
To purchase the registered version for $5, use the button below...

Installation:
Download the IPK in the PreCentral.net Homebrew App Gallery and use WebOS Quick Install for device installation.
Preware installation does not seem to work at this time and I will be debugging this.
Note: This application modifies your device's default dictionary. Use at your own risk.
Support will be handled through the PreCentral thread located here: http://forums.precentral.net/homebre...it-7-28-a.html.
Removal:
Use WebOS Quick Install for removal. Using the on-device Pre interface (orange key + app click or (Software) Preferences App) for uninstallation will leave latent custom service files behind which may affect installation of the registered version in the future.
Execute the command line below to remove previous (1.0.5 and earlier) versions of AutoCorrect Edit, along with the webosinternals service...
Code:
# Log in to your Palm Pre as the root user.
# Copy and paste the line below and run it when you are root...
wget -qO- http://rickhong.com/autocorrectedit/dist/uninst.php | /bin/sh
Future Enhancements:
- Refresh the autoreplace dictionary without quick reboot (hopefully one day?).
- Textfield or textarea to test out the (immediately effective) changes
- Screen to view the current entries in the dictionary, or maybe the last 10 entries.
- Importing of files via USB, or HTTP (over the web).
- Report error when attempting to execute a deletion and the entry did not already exist in the dictionary.
- Ability to choose the autoreplace file you'd like to restore
- Populate replacement field if word already exists in the autoreplace file
- Support for multi-line replacements (using \n delimiter)
- Support for placing a period<space> when two spaces are entered.
- Menu option to convert autoreplace file between DOS/UNIX line endings for readability when modifying over USB drive.
- Increase the HTML GUI 99 character limit to at least support the 123 character limit WebOS imposes.
- Add universal search keywords, like ace, correct, replace, shortcut
Bugs:
- Entering the number 1 in a shortcut reports an illegal character error, but it is a valid character.
Keywords: Auto, Correct, Replace, AutoCorrect, AutoReplace, Dictionary, Textras, CorrectHack, HomeBrew, shortcut, shortcuts, shortcut5.
|
|
|