LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-05-2014, 11:39 PM   #1
amolredhat
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Rep: Reputation: Disabled
Facing issue with Aspell. (Conversion of .rws file to .txt file)


Hello,

Below are the steps which I had followed while Creating .rws file in Redhat linux.

1) # copy hindi-words.txt to /tmp
2) # dos2unix /tmp/hindi-words.txt (convert dos file format to unix file format)
3) # aspell --lang=hi --encoding=utf-8 create master /tmp/hindi-words.rws < /tmp/hindi-words.txt
4) Move file hindi-words.rws to /usr/lib/aspell-0.60
5) And, add hindi-words.rws name in hi-multi file.

Now situation is, I have only .rws file (in /usr/lib/aspell-0.60) which needed to converted in Hindi (Language). Please let us know how can I convert .rws file to .txt file in Hindi Language,so that words can be corrected in dictionary.

==================
# aspell -version:- International Ispell Version 3.1.20 (but really Aspell 0.60.3)]
# Server:- Red Hat Enterprise Linux Server release 5.8
==================

I have tried to convert .rws file to txt from aspell command but did not worked, but not able to view contents in the file, Whole file is showing in different characters....

Please help.
 
Old 05-16-2014, 06:47 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Hey Amol,

Quote:
I have tried to convert .rws file to txt from aspell command but did not worked, but not able to view contents in the file, Whole file is showing in different characters....
It's been compiled from a word list imported by Aspell. You did that when you ran this command
Code:
aspell --lang=hi --encoding=utf-8 create master /tmp/hindi-words.rws < /tmp/hindi-words.txt
If you want to edit it, edit the wordlist and recompile it.
Check
Code:
 aspell dump config
for the default directories aspell is looking for .rws files in, either move your rws file out of /tmp to /usr/lib/aspell/* or use the basedir switch to redirect aspell to /tmp. Change the name of your .rws file so it begins with hi, something like "hi_region_some_identifier.rws". Put your .multi file ~the file aspell is actually going to use to find a "hi" dict~ into the same directory and name it something like (hi_region_some_identifier.multi) and have it point to your shiny new rws file. (The multi files are not compiled, so you can open an existing one in nano or vi, edit it, and then save it under the new name.)
Once you've done that, running
Code:
 aspell -l hi dump master
Ought to give you your word list in Hindi

Hope that helps

I'd strongly encourage you to look at the site maintained by the aspell project, particularly sections 4 and 5 (customizing aspell and working with dictionaries). It would help you significantly.

Last edited by dijetlo; 05-16-2014 at 08:46 AM. Reason: I did some more research
 
  


Reply

Tags
aspell, dictionary project


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file conversion issue weebo1 Linux - Newbie 6 06-28-2013 12:56 PM
[SOLVED] Windows 7 txt file to Linux conversion problems battler Linux - Software 4 04-15-2012 03:49 PM
Windows 7 txt file to Linux conversion problems battler Linux - Software 1 04-15-2012 01:49 PM
How can read from file.txt C++ where can save this file(file.txt) to start reading sam_22 Programming 1 01-11-2007 05:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration