Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
Old 10-17-2007, 04:01 PM   #1
grayfox
Connoisseur
grayfox doesn't littergrayfox doesn't littergrayfox doesn't litter
 
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
grayfox is offline   Reply With Quote
Old 10-17-2007, 04:51 PM   #2
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
Quote:
Originally Posted by grayfox View Post
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.
Adam B. is offline   Reply With Quote
Advert
Old 10-17-2007, 05:48 PM   #3
grayfox
Connoisseur
grayfox doesn't littergrayfox doesn't littergrayfox doesn't litter
 
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
grayfox is offline   Reply With Quote
Old 10-17-2007, 08:08 PM   #4
grayfox
Connoisseur
grayfox doesn't littergrayfox doesn't littergrayfox doesn't litter
 
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
grayfox is offline   Reply With Quote
Old 10-17-2007, 09:51 PM   #5
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
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.
wallcraft is offline   Reply With Quote
Advert
Old 10-17-2007, 10:13 PM   #6
grayfox
Connoisseur
grayfox doesn't littergrayfox doesn't littergrayfox doesn't litter
 
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
grayfox is offline   Reply With Quote
Old 10-17-2007, 10:35 PM   #7
jbenny
Addict
jbenny has a complete set of Star Wars action figures.jbenny has a complete set of Star Wars action figures.jbenny has a complete set of Star Wars action figures.jbenny has a complete set of Star Wars action figures.
 
Posts: 323
Karma: 358
Join Date: May 2007
Device: Tablet PC and Nokia N800
Quote:
Originally Posted by grayfox View Post
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.
jbenny is offline   Reply With Quote
Old 10-17-2007, 11:03 PM   #8
ig88
Gadget Guy
ig88 has learned how to buy an e-book online
 
ig88's Avatar
 
Posts: 76
Karma: 84
Join Date: Apr 2007
Location: Minnesota
Device: iLiad - iPhone - OSX
Quote:
Originally Posted by grayfox View Post
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?
ig88 is offline   Reply With Quote
Old 10-17-2007, 11:20 PM   #9
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
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.
wallcraft is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading software with marking text nettomb Android Devices 9 10-01-2010 02:55 PM
PRS-300 reading in direct sunlight - text is very faint admdvs Sony Reader 45 11-19-2009 08:09 PM
Can I Change Text File Reading Font? ibishop Sony Reader Dev Corner 1 08-15-2008 04:19 PM
PRS-500 Can I Change Text File Reading Font? ibishop Sony Reader Dev Corner 1 08-15-2008 02:41 PM
Text tool for formatting Gutenberg text files bob_ninja Workshop 5 11-13-2007 12:28 PM


All times are GMT -4. The time now is 06:04 PM.


MobileRead.com is a privately owned, operated and funded community.