FS#1378 - Text file viewer with word wrap.

Attached to Project: Rockbox
Opened by Garrett Derner (garrettderner) - Tuesday, 20 May 2003, 19:50 GMT
Last edited by Daniel Stenberg (bagder) - Thursday, 05 June 2003, 06:13 GMT
Task Type Patches
Status Closed
Assigned To No-one
Operating System
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


Viewer with word wrap. Has controls to handle various
styles of text formatting. Has top-of-file and bottom-of-
file buttons.

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 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 114. 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.

Up(recorder) / Left(player): Page-up (one screen up).
Down(recorder) / Right(player): Page-down (one screen
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.

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
This task depends upon

Closed by  Daniel Stenberg (bagder)
Thursday, 05 June 2003, 06:13 GMT
Reason for closing:  Duplicate
Additional comments about closing:  Logged In: YES

Replaced by #746474
Comment by Anonymous Submitter - Wednesday, 21 May 2003, 12:00 GMT

a good thing to add to the current release...
Comment by David L. Reis (bu88a1) - Wednesday, 21 May 2003, 15:05 GMT

This is a great upgrade from the current text viewing

Defenitely should be placed in base project.

Comment by Anonymous Submitter - Friday, 23 May 2003, 00:47 GMT

Very nice, needs a little clean up but its a huge improvement
over the previous text viewer
Comment by Daniel Stenberg (bagder) - Thursday, 05 June 2003, 06:13 GMT

Replaced by #746474