10-17-2007, 05:01 PM | #1 |
Connoisseur
Posts: 68
Karma: 203
Join Date: Oct 2007
Device: Razr/iLiad
|
Reading Text Files ?
Hi,
I have a fair number of source code files *.tcl *.py etc... I would like to be able to move them around and read the rascals on my iLiad. It appears that the iLiad only recognizes files as text files if they end in 'txt'. Is there some way to register foo.py or foo.tcl, say, as text files without having to change the name? To bad they don't use the unix "magic"... Thanks Jerry |
10-17-2007, 05:51 PM | #2 | |
Addicted to Porting
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
|
Quote:
It's all managed in /mnt/settings/registry/registry.xml I'm not sure if using the default mobipocket viewer would be best for these files as the viewer creates additional metadata for the files. FBReader, or the html viewer might work better. You'll have to do some testing on work works best for you. |
|
Advert | |
|
10-17-2007, 06:48 PM | #3 |
Connoisseur
Posts: 68
Karma: 203
Join Date: Oct 2007
Device: Razr/iLiad
|
At this time all I have is mrxvt...
I was hoping that some sort of tweek might do the job... Is the ssh package removeable if something goes wrong I did notice that each text file seems to generate a *.mbp file... Is there any doc on how to write a shell script that can be executed from the content lister? Thanks, Jerry |
10-17-2007, 09:08 PM | #4 |
Connoisseur
Posts: 68
Karma: 203
Join Date: Oct 2007
Device: Razr/iLiad
|
Sigh,
I just installed the FBReader program that I found on the wiki. I installed the program on the CF card. I maneuvered to the directory where some *.py files and *.tcl files but, alas, fbreader could not see the rascals... It appears that FBReader needs a *.txt extension... Jerry |
10-17-2007, 10:51 PM | #5 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
I think what you ready need is a simple editor that can also serve as a viewer. I found two candidates in the Maemo (Nokia 770/N800) application catalog: pygtkeditor sounded perfect, but is only for Maemo, leafpad is a very lightweight editor and may be a good choice for the iLiad. I tried it on my Pepper Pad 3, and it is has a very simple interface. So far as I can tell, it does not support key-bindings so I don't know if page-down (flipbar) will work or not. It does support line numbers and line wrapping, but not syntax highlighting.
There are heavier-weight editors, e.g. gedit, which support tabs and syntax highlighting. However, they may be harder to get working on the iLiad. |
Advert | |
|
10-17-2007, 11:13 PM | #6 |
Connoisseur
Posts: 68
Karma: 203
Join Date: Oct 2007
Device: Razr/iLiad
|
Grrr,
I just want to be able to view text files without having to rename the rascals... I also found out that one cannot change the name of an unrecognized file from the Content Lister. Jerry |
10-17-2007, 11:35 PM | #7 |
Addict
Posts: 323
Karma: 358
Join Date: May 2007
Device: Tablet PC and Nokia N800
|
In the Windows version of FBReader, the Library also seems to be hard-coded to only show certain file extensions. However, if I right-click on a *.py file, I can chose to "open with" FBReader and the text displays just fine. Perhaps there is a way to do something similar on the iLiad.
|
10-18-2007, 12:03 AM | #8 | |
Gadget Guy
Posts: 76
Karma: 84
Join Date: Apr 2007
Location: Minnesota
Device: iLiad - iPhone - OSX
|
Quote:
Why not create an Automator app or Folder Action to rename the files in batch before moving them over to the iLiad? |
|
10-18-2007, 12:20 AM | #9 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
I tried opening a .c file with Windows FBReader and that did not work. I renamed it to file_c.txt and FBReader opened the file, but it also "reflowed" comment and define lines. FBReader could probably be made to work on source code, but it obviously isn't its primary focus.
An approach like ConvertLIT+FBReader for .lit files might work. There are python2html and py2html programs for example. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reading software with marking text | nettomb | Android Devices | 9 | 10-01-2010 03:55 PM |
PRS-300 reading in direct sunlight - text is very faint | admdvs | Sony Reader | 45 | 11-19-2009 09:09 PM |
Can I Change Text File Reading Font? | ibishop | Sony Reader Dev Corner | 1 | 08-15-2008 05:19 PM |
PRS-500 Can I Change Text File Reading Font? | ibishop | Sony Reader Dev Corner | 1 | 08-15-2008 03:41 PM |
Text tool for formatting Gutenberg text files | bob_ninja | Workshop | 5 | 11-13-2007 01:28 PM |