Difference between revisions of "Patch webOS Add Words to AutoCorrect Dictionary"

From WebOS Internals
Jump to: navigation, search
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The Pre has an autocorrect function. If you type 'u' in a text field, it will be replaced with 'you'.
+
{{template:patch}}
 
+
The Pre has an autocorrect function. For example if you type 'u' in a text field, it will be replaced with 'you'. The autocorrect file can be easily edited to add more entries for auto replacing text. The files that contain auto corrections are located in (2nd path is the US english folder and autocorrect file name):
The file that contains auto correction is:
+
<pre>
<pre><nowiki>
+
/etc/palm/autoreplace/
 
/etc/palm/autoreplace/en_us/text-edit-autoreplace
 
/etc/palm/autoreplace/en_us/text-edit-autoreplace
</nowiki></pre>
+
</pre>
  
 
There is an unused copy of the file at  
 
There is an unused copy of the file at  
<pre><nowiki>
+
<pre>
 
/etc/palm/text-edit-autoreplace
 
/etc/palm/text-edit-autoreplace
</nowiki></pre>
+
</pre>
  
PreCentral user dimfeld has created replacement autocorrect files based on the British National Corpus, the Google Corpus and a merger of the two.  His files can be found here: [http://drop.io/dimfeld/asset/autoreplace-common-zip].
+
Efforts for a webOS application for editing the autocorrect dictionary can be found [http://forums.precentral.net/web-os-development/193362-autocorrect-edit-private-testing-rooting-required.html in this thread on PreCentral]
 +
 +
PreCentral user dimfeld has created replacement autocorrect files based on the British National Corpus, the Google Corpus and a merger of the two.  His files can be found [http://drop.io/dimfeld/asset/autoreplace-common-zip here].
  
In the PreCentral thread, dimfeld explains:  
+
In [http://forums.precentral.net/web-os-development/187993-autoreplace-upgrade.html this PreCentral thread], dimfeld explains:  
  
 
> I found that when typing on the Pre, most of my typing mistakes would come from pressing the key either to the left or the right of the correct key. Personally, I never have a problem with hitting the wrong row, so that makes things somewhat simpler.
 
> I found that when typing on the Pre, most of my typing mistakes would come from pressing the key either to the left or the right of the correct key. Personally, I never have a problem with hitting the wrong row, so that makes things somewhat simpler.
Line 20: Line 22:
 
The 27 meg file was unusable.  However, by dropping the file to 15,000 words, based on the sustainable english concept he was able to get the file size down to 1.2 meg.  This seems to work.   
 
The 27 meg file was unusable.  However, by dropping the file to 15,000 words, based on the sustainable english concept he was able to get the file size down to 1.2 meg.  This seems to work.   
  
You can review the PreCentral thread here: [http://forums.precentral.net/web-os-development/187993-autoreplace-upgrade.html].
+
'''* Credits: xorg, dimfeld'''
 
 
 
 
* Credits: xorg, dimfeld
 

Latest revision as of 00:54, 3 August 2009


The Pre has an autocorrect function. For example if you type 'u' in a text field, it will be replaced with 'you'. The autocorrect file can be easily edited to add more entries for auto replacing text. The files that contain auto corrections are located in (2nd path is the US english folder and autocorrect file name):

/etc/palm/autoreplace/
/etc/palm/autoreplace/en_us/text-edit-autoreplace

There is an unused copy of the file at

/etc/palm/text-edit-autoreplace

Efforts for a webOS application for editing the autocorrect dictionary can be found in this thread on PreCentral

PreCentral user dimfeld has created replacement autocorrect files based on the British National Corpus, the Google Corpus and a merger of the two. His files can be found here.

In this PreCentral thread, dimfeld explains:

> I found that when typing on the Pre, most of my typing mistakes would come from pressing the key either to the left or the right of the correct key. Personally, I never have a problem with hitting the wrong row, so that makes things somewhat simpler. > I wrote a Python script to read in a word list file (I used a standard Mac OSX word list with contractions added) and generate all the possible single-letter mistakes from that file that could result from pressing the button to the left or right of the intended button. This script also reads in the Pre's autoreplace file, and it gives precedence to the corrections in there. To keep the output file to a reasonable size, I didn't do corrections for words more than 7 letters long. With this restriction, the file is 9MB, and with a max length of 9 letters, it's 27MB.

The 27 meg file was unusable. However, by dropping the file to 15,000 words, based on the sustainable english concept he was able to get the file size down to 1.2 meg. This seems to work.

* Credits: xorg, dimfeld