|
|
#1 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Antiword for iLiad
Antiword official site: http://www.winfield.demon.nl/
This is an interesting program. It can convert MS Word file (.doc) to text and display the contents in console. No GUI . If I can make antiword correctly convert Chinese text, I will make a GUI program to display the contents. It's not a tough task. Install: unpack the attached zip. Put the dir ".antiword" in "/home/root", and the file "antiword" in "/usr/bin" (or anywhere you want, just don't forget to chmod). Usage: In console mode, type "./antiword your_word_file.doc" and see the output. PS. Antiword also supports xml format output. Last edited by ericshliao; 05-24-2009 at 02:15 PM. |
|
|
|
|
|
#2 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Alright, I figured out how to convert Chinese word doc correctly. Just use "-m utf-8.txt" option. It should be working for other non-English word files.
If someone (maybe I will) provide a GUI program to dispaly text contents, we can have a MS Word reader for iLiad. I guess it should be easier to write a shell script to: 1. execute Antiword to convert doc to a temporary text file 2. execute Leafpad to read that temporary text file Last edited by ericshliao; 05-24-2009 at 03:05 PM. |
|
|
|
|
|
#3 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
In essence, I have a MS Word reader now. Here is a package for you to try.
Special note: I don't know if the package work for original FW2.12. I have upgraded my GTK+ libs and I have no original FW2.12 to test. But I guess it should be working. Install: 1. unpack "leafpad.zip" (with dir "leafpad") to /media/card/programs. 2. Unpack "antiword.zip" (with dir "antiword") to /usr/share. 3. modify your /mnt/registry/registry.xml, add these sections Code:
<application type="MSWORD">
<appCategory>viewer</appCategory>
<argMask>_FILENAME_</argMask>
<execute>/media/card/programs/leafpad/run.sh</execute>
<supportFormat>
<extName>doc</extName>
</supportFormat>
<xResourceName>sh</xResourceName>
<ipcChannel>14</ipcChannel>
<appIconPath/>
</application>
Code:
<extensionInfo>
<associateApp>MSWORD</associateApp>
<extName>doc</extName>
<extIcon>/usr/share/contentlister/Icon_doc.png</extIcon>
</extensionInfo>
Last edited by ericshliao; 05-24-2009 at 03:19 PM. |
|
|
|
|
|
#4 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Ah, I forgot to put xepdmgr in the package. Please get Antartica's xepdmgr and put it in "/usr/bin".
If you have FBReader installed, you can use it as a text viewer (replace leafpad). |
|
|
|
|
|
#5 |
|
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: May 2009
Location: Heidelberg, Germany
Device: iLiad (broken screen! cry), x61t tablet
|
Hrmmm - I thought I posted this reply last night, but I guess not!
Anyway, Eric, thanks tons for all this. I spent awhile trying to get this to work yesterday without (full) success-- at the end of my efforts clicking on a Word document made the thing flash, but not load into Leafpad, though it did create the tmp.txt. I think you're right that the GTK libraries are needed to get the new Leafpad to work; it gives some error about pango-something. Is it (relatively) safe to put your library set in? You say something in that package about what you need to keep in - does that mean one should manually delete the others? And if I use FBReader instead, would you suggest editing the /usr/bin/fbreader.sh script to handle .docs as a special case, following the method you use with the run.sh script in leafpad, or what? Thanks tons for writing this! |
|
|
|
|
|
#6 | ||
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Quote:
Quote:
Added: To use leafpad, xepdmgr is a must-have. I forgot to include it in the attachment. Please get it. It's not needed for FBReader 0.8.14. Last edited by ericshliao; 05-27-2009 at 01:27 AM. |
||
|
|
|
|
|
#7 |
|
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: May 2009
Location: Heidelberg, Germany
Device: iLiad (broken screen! cry), x61t tablet
|
Thanks!
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| iliad-regutils: Easy editing of the iLiad registry | Martijn | iRex | 7 | 09-04-2010 07:12 AM |
| POLL to Iliad owners: Should people buy an Iliad or not? | ali | iRex | 20 | 01-20-2010 07:11 AM |
| iLiad How to make iliad into a SSH server and connect with iLiad | tudou331100 | iRex Developer's Corner | 21 | 02-06-2009 06:35 AM |
| Ended Iliad iRex + Iliad cover for sale in London | acorral | Flea Market | 0 | 01-16-2009 07:09 AM |
| iLiad Book Edition slower than iLiad v2: different sw version? | SecondoMe | iRex | 17 | 05-14-2008 02:42 PM |