Page 1 of 2 12 LastLast
Results 1 to 20 of 28
Like Tree1Likes
  1. StevenX's Avatar
    Posts
    457 Posts
    Global Posts
    492 Global Posts
       #1  
    Ive been trying to replace the autoreplace dictionary in webOS 2.1 with the version I was using in 1.4.5 (which I'd added a lot of custom shortcuts to already), but can't work out how to do it...

    I tried copying my version over to /etc/palm/autoreplace/en_us/ where it was previously located, but no changes were implemented. To test out what was happening, I set a new short cut in the Text Assist app then copied the dictionary from /etc/palm/autoreplace/en_us to /media/internal so I could take a look at it on my PC. The new short cut I had just added on the device wasn't in the file...

    So, it seems that the shortcuts in webOS 2.x are not stored in this dictionary file, and must be stored elsewhere. Does anyone know where the new file is, and if it's possible to manually copy in my old edits?
  2. #2  
    Try: /usr/palm/smartkey/XT9/DefaultData/autoreplace/en_us
  3. StevenX's Avatar
    Posts
    457 Posts
    Global Posts
    492 Global Posts
       #3  
    I've had a look around in there but didn't manage to find anything too useful sadly...

    EDIT: Apparently it's in /var/db8, but that location is a partition which shouldn't be messed with manually unfortunately.
    Last edited by StevenX; 03/04/2011 at 03:18 PM.
  4. #4  
    The autocorrect dictionary in 1.4.5 is totally different than in 2.0. I have been trying to figure out how to backup/restore the Text Assist data for Save/Restore and have been unable to figure out where that data is stored. If you have any luck figureing it out, let me know!

    In the meantime, to get your manual autocorrect entries into 2.1, you need to load up the Text Assist app and edit the user dictionary there. Unfortunately, this is not saved to the Palm Profile, either
    I am the creator of the PalmSpot entry “webOS Does, and Does, and Does Some More”, writes Save/Restore scripts and helps manage the script feed, and now writes webOS Nation's Tip of the Day

    Got a good tip for webOS Nation's Tip of the Day? Please send me a PM or use the Contact Us form and select "Suggest a tip"

    Like any of my work:
  5. #5  
    I think the autocorrection dic is stored in \usr\palm\smartkey\XT9\dbs\LDBs\Palm_611_ENubUN_xt9_2.ldb

    Anyone knows how to open this file?
  6. StevenX's Avatar
    Posts
    457 Posts
    Global Posts
    492 Global Posts
       #6  
    I already posted the location previously... Rod said in another thread (in the meta-doctor thread I was enquiring about how to back up the dictionary) that it was in the PARTITION /var/db8.

    Manually messing with that partition is apparently very dangerous however, although Rod hinted in his post that webOS Internals is cooking up some sort of tool which might be able to help us back things in there up in the future...
  7. #7  
    Oddly I cant see that folder with internalz. Is it supposed to be hidden?
  8. #8  
    I have not use the autocorrect (Text assist) before, but if the format in 1.4.5 is the same that the one on 2.1, look at the file on
    Code:
    /usr/palm/smartkey/XT9/DefaultData/autoreplace/en_us/text-edit-autoreplace
    you can replace this file with the one you have for 1.4.5 and then delete the file on
    Code:
    /var/palm/data/smartkey/XT9/auto_sub_db_en_us.bin
    and it should create this file after rebooting the phone (complete reboot, not luna reboot) with the words you provided. Of course always make a backup of the files just in case you need them later. Also I think you can manually backup the words added manually by backing up the
    Code:
    /var/palm/data/smartkey/XT9/user_db.bin
    file. I haven't test any of this since I currently don't use autoreplace but I have being experimenting changing the language independently of the language on preferences and it might work.
  9. #9  
    Quote Originally Posted by blake0 View Post
    I have not use the autocorrect (Text assist) before, but if the format in 1.4.5 is the same that the one on 2.1, look at the file on
    Code:
    /usr/palm/smartkey/XT9/DefaultData/autoreplace/en_us/text-edit-autoreplace
    you can replace this file with the one you have for 1.4.5 and then delete the file on
    Code:
    /var/palm/data/smartkey/XT9/auto_sub_db_en_us.bin
    and it should create this file after rebooting the phone (complete reboot, not luna reboot) with the words you provided. Of course always make a backup of the files just in case you need them later. Also I think you can manually backup the words added manually by backing up the
    Code:
    /var/palm/data/smartkey/XT9/user_db.bin
    file. I haven't test any of this since I currently don't use autoreplace but I have being experimenting changing the language independently of the language on preferences and it might work.
    Still Can't
    Could you help me shortcut Autoreplace, please?
  10. #10  
    up for The help
  11. StevenX's Avatar
    Posts
    457 Posts
    Global Posts
    492 Global Posts
       #11  
    Quote Originally Posted by mr.xtop View Post
    up for The help
    The method blake0 won't work. The files he references are indeed still there, but don't seem to do anything. I've tried messing around with them myself.

    See my numerous posts earlier - according to Rod of webOS Internals it's impossible to manually alter the autocorrect dictionary in webOS 2.x just now.
  12. rcmarvin's Avatar
    Posts
    46 Posts
    Global Posts
    66 Global Posts
    #12  
    It is possible export the user dictionary through command line:
    "Learned Words":
    Code:
    luna-send -n 1 palm://com.palm.smartKey/listUserWords '{"offset": 0, "limit": 200}'
    and to add "usb" to dictionary:
    Code:
    luna-send -n 1 palm://com.palm.smartKey/addUserWord '{"word": "usb"}'
    "Shortcut":
    Code:
    luna-send -n 1 palm://com.palm.smartKey/listAutoReplace'{"offset": 0, "limit": 200}'
    brobi69 likes this.
  13. #13  
    Thank you. Why limit is 200? Is it possible to get more?
    Phone: HP Veer
    Jabber: shura0@ya.ru
  14. rcmarvin's Avatar
    Posts
    46 Posts
    Global Posts
    66 Global Posts
    #14  
    200 is just a random pickup number. You can grab the next page of data by increasing the offset to 200, or increase the limit to grab all data at one time. I don't know the max value of "limit'.
  15. #15  
    Thank you!
    Phone: HP Veer
    Jabber: shura0@ya.ru
  16. #16  
    Hm, there is impossible to add more than 2476 words in user dictionary. I've just checked, It's horrible. Impossible to make dictionary for other language.
    Phone: HP Veer
    Jabber: shura0@ya.ru
  17. #17  
    Quote Originally Posted by rcmarvin View Post
    It is possible export the user dictionary through command line:
    "Learned Words":
    Code:
    luna-send -n 1 palm://com.palm.smartKey/listUserWords '{"offset": 0, "limit": 200}'
    and to add "usb" to dictionary:
    Code:
    luna-send -n 1 palm://com.palm.smartKey/addUserWord '{"word": "usb"}'
    "Shortcut":
    Code:
    luna-send -n 1 palm://com.palm.smartKey/listAutoReplace'{"offset": 0, "limit": 200}'
    thanks for the code...any idea how to manually add a shortcut via command line, too?
    I am the creator of the PalmSpot entry “webOS Does, and Does, and Does Some More”, writes Save/Restore scripts and helps manage the script feed, and now writes webOS Nation's Tip of the Day

    Got a good tip for webOS Nation's Tip of the Day? Please send me a PM or use the Contact Us form and select "Suggest a tip"

    Like any of my work:
  18. rcmarvin's Avatar
    Posts
    46 Posts
    Global Posts
    66 Global Posts
    #18  
    Add "ur" to be auto replaced by "your":
    Code:
    luna-send -n 1 palm://com.palm.smartKey/addAutoReplace '{"shortcut": "ur", "substitution": "your"}'
  19. #19  
    rcmarvin -- Thanks so much for all the info... based on that, I was able to make a few modifications to the code for a Tip of the Day (posted on the homepage right now) and I worked with Rod to create a Save/Restore script that will automate the backup info!

    Thanks so much!!!!

    Adam
    I am the creator of the PalmSpot entry “webOS Does, and Does, and Does Some More”, writes Save/Restore scripts and helps manage the script feed, and now writes webOS Nation's Tip of the Day

    Got a good tip for webOS Nation's Tip of the Day? Please send me a PM or use the Contact Us form and select "Suggest a tip"

    Like any of my work:
  20. rcmarvin's Avatar
    Posts
    46 Posts
    Global Posts
    66 Global Posts
    #20  
    Glad to be helpful.
Page 1 of 2 12 LastLast

Posting Permissions