Shiny New E-Book Gizmo: The Amazon Kindle


View Full Version : Reading Text Files ?


grayfox
10-17-2007, 04:01 PM
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

Adam B.
10-17-2007, 04:51 PM
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

Do you have ssh access to your iLiad? Mrxvt would probably work with vi, but I wouldn't recomend it...

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.

grayfox
10-17-2007, 05:48 PM
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

grayfox
10-17-2007, 08:08 PM
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

wallcraft
10-17-2007, 09:51 PM
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 (http://maemo.org/downloads/product/pygtkeditor) sounded perfect, but is only for Maemo, leafpad (http://tarot.freeshell.org/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.

grayfox
10-17-2007, 10:13 PM
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

jbenny
10-17-2007, 10:35 PM
Sigh,
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

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.

ig88
10-17-2007, 11:03 PM
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.
I see you are a Mac OS X user...

Why not create an Automator app or Folder Action to rename the files in batch before moving them over to the iLiad?

wallcraft
10-17-2007, 11:20 PM
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.