- Status Closed
- Percent Complete
- Task Type Patches
- Category
- Assigned To No-one
- Operating System
- Severity Low
- Priority Very Low
- Reported Version
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
Opened by garrettderner - 2003-05-31
Last edited by bagder - 2003-07-24
FS#1405 - Text file viewer with word wrap; 12k buffer
Viewer with word wrap. Has controls to handle various
styles of text formatting. Has top-of-file and bottom-of-
file buttons.
Settings
F1(recorder) / On-Left(player): toggles Word mode
between Wrap and Chop:
. Wrap breaks lines at white space or hyphen.
. Chop breaks lines at the maximum column limit.
F2(recorder) / On-Menu-Right(player): cycles Line mode
through Normal, Join and Expand:
. Normal breaks lines at newline characters.
. Join ignores unpaired newline charaters (i.e., joins
lines). Useful for adopting the orphans that occur with e-
mail style (i.e., pre-wrapped) text files.
. Expand doubles unpaired newlines (i.e., adds a blank
line). Useful for making the paragraphs clearer in some
book style text files.
F3(recorder) / On-Right(player): toggles View mode
between Narrow and Wide:
. Narrow sets maximum column to the screen width.
. Wide sets maximum column to 940. Useful for
navigating large files.
(Currently, Wide and Join cannot be selected together.)
On-F1 (recorder only): toggles Page mode between
Normal and Overlap:
. Normal sets page-down/page-up to one full screen.
. Overlap tells page-down/page-up to retain one line from
previous screen.
On-F3 (recorder only): toggles Scrollbar mode, for the
current View mode.
. Narrow mode has no scrollbar by default, until toggled.
. Wide mode has a scrollbar by default, until toggled.
. If file fits on one screen, there is no scrollbar and On-
F3 has no effect.
Settings are sticky until power-down.
Navigation
Up(recorder) / Left(player): Page-up (one screen up)
Down(recorder) / Right(player): Page-down (one screen
down)
Left(recorder) / Menu-Left(player): Top of file (Narrow
mode); One screen left (Wide mode)
Right(recorder)/ Menu-Right(player): Bottom of file
(Narrow mode); One screen right (Wide mode)
On-Up (recorder only): One line up
On-Down (recorder only): One line down
On-Left (recorder only): One column left
On-Right (recorder only): One column right
Off(recorder) / Stop(player): Exit text viewer
Compatability
Correctly reads plain text files in unix, Win/DOS, or
Macintosh format. Latin-alphabet Unicode files are a l
m o s t r e a d a b l e .
Currently prefers fixed-width fonts. With proportional
fonts, pretends all characters are the width of a lower-
case ‘o’.
Currently messages are in English [please help with
translations!] Does not currently support right-to-left
languages.
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
Okay, I love this patch and I have been playing around with it
for a while. just a few suggestions:
1) make the ability to load another font on the system when
you enter the text viewer. I know if I am reading text on the
archos, then I am looking at it closely. Therefore, I would like
the smallest font possilbe (to fit the most info on the screen)
but, I still want a normal sized font in the dir browser.
2) If I change the views in F2 and I press down once, and
then I go to wide view (F3) the scrollbar ALWAYS appears.
3) A help text would be nice (I know it is here with this
patch, but it would be nice on the recorder)
4) I love this patch. I just finished reading Harry Potter on
the Archos!
Please resubmit a patch against CVS. 1.4 is ancient.
This patch only modifies viewer.c – it does not touch any
other file. This file has not changed since 1.0 or something
like that :)
This is a patch against CVS. When I said "against ver 1.4", I
forgot to say, I meant viewer.c 1.4 (the current one in CVS),
not Rockbox 1.4!
My apologies for barking without looking properly.
add it, add it :D:D:D
also make it the default viewer for .nfo's
I did builds which include both my text viewer patch and Ben
Metzler's bookmarking patch:
http://www.adfreeinternet.com/~garyd/rockbox/
Could you make this a plugin? Thanks.
Ok! Get patches 766096 and 766098.