diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2006-04-03 22:45:01 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2006-04-03 22:45:01 +0000 |
commit | 8c177221b31d9b86aa286092ede463a1c5f0a4b4 (patch) | |
tree | 885e5749966e3c4e7e29ef86222b299f29a0f4d6 /manual/plugins/text_viewer.tex | |
parent | c42c971d6c2e466d6a9de971aa759460346dc704 (diff) |
Added environment to unify button mapping tables. Adjust plugins to use it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9475 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'manual/plugins/text_viewer.tex')
-rw-r--r-- | manual/plugins/text_viewer.tex | 155 |
1 files changed, 88 insertions, 67 deletions
diff --git a/manual/plugins/text_viewer.tex b/manual/plugins/text_viewer.tex index 60ef396993..f35994dac3 100644 --- a/manual/plugins/text_viewer.tex +++ b/manual/plugins/text_viewer.tex @@ -2,111 +2,132 @@ This is a Viewer for text files with word wrap. Just open a .txt file to display it. The text vewer features controls to handle various styles of text formatting, has top{}-of{}-file and bottom{}-of{}-file buttons. You can view -files without a \fname{.txt} extension by using \textbf{Open with} from the -\textbf{File Menu} (see page \pageref{ref:Filemenu}). +files without a \fname{.txt} extension by using \emph{Open with} from the +\emph{File Menu} (see page \pageref{ref:Filemenu}). \subsubsection{Mode settings} -\begin{itemize} -\item\textbf{Word mode} toggles between Wrap and Chop. - \begin{itemize} - \item\textbf{Wrap} breaks lines at white space or hyphen. - \item\textbf{Chop} breaks lines at the maximum column limit. - \end{itemize} -\item\textbf{Line mode} cycles through Normal, Join and Expand. - \begin{itemize} - \item\textbf{Normal} breaks lines at newline characters. - \item\textbf{Join} ignores unpaired newline characters (i.e., joins lines). Useful for adopting the orphans that occur with e{}-mail style (i.e.,pre{}-wrapped) text files. - \item\textbf{Expand} doubles unpaired newlines (i.e., adds a blank line). Useful for making the paragraphs clearer in some book style text files. - \end{itemize} -\item\textbf{View mode} toggles between Narrow and Wide. - \begin{itemize} - \item\textbf{Narrow} sets maximum column to the screen width. - \item\textbf{Wide} sets maximum column to 114. Useful for navigating large files. (Currently, Wide and Join cannot be selected together.) - \end{itemize} +\begin{description} +\item[Word mode] toggles between Wrap and Chop. + \begin{description} + \item[Wrap] breaks lines at white space or hyphen. + \item[Chop] breaks lines at the maximum column limit. + \end{description} +\item[Line mode] cycles through Normal, Join and Expand. + \begin{description} + \item[Normal] breaks lines at newline characters. + \item[Join] ignores unpaired newline characters (i.e., joins lines). + Useful for adopting the orphans that occur with e{}-mail style + (i.e.,pre{}-wrapped) text files. + \item[Expand] doubles unpaired newlines (i.e., adds a blank line). + Useful for making the paragraphs clearer in some book style text files. + \end{description} +\item[View mode] toggles between Narrow and Wide. + \begin{description} + \item[Narrow] sets maximum column to the screen width. + \item[Wide] sets maximum column to 114. Useful for navigating large files. (Currently, Wide and Join cannot be selected together.) + \end{description} \opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,IPOD_4G_PAD}{ -\item\textbf{Page mode} toggles between Normal and Overlap. - \begin{itemize} - \item\textbf{Normal} sets page{}-down/page{}-up to one full screen. - \item\textbf{Overlap} tells page{}-down/page{}-up to retain one line from previous screen. - \end{itemize} -\item\textbf{Scrollbar mode} toggles scrollbar for the current View mode. - \begin{itemize} - \item\textbf{Narrow mode} has no scrollbar by default, until toggled. - \item\textbf{Wide mode} has a scrollbar by default, until toggled. - \end{itemize} +\item[Page mode] toggles between Normal and Overlap. + \begin{description} + \item[Normal] sets page{}-down/page{}-up to one full screen. + \item[Overlap] tells page{}-down/page{}-up to retain one line from previous screen. + \end{description} +\item[Scrollbar mode] toggles scrollbar for the current View mode. + \begin{description} + \item[Narrow mode] has no scrollbar by default, until toggled. + \item[Wide mode] has a scrollbar by default, until toggled. + \end{description} } -\end{itemize} +\end{description} Settings are not remembered after the viewer has been exited. \opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,IPOD_4G_PAD}{ If file fits on one screen, there is no scrollbar and toggling Scrollbar mode has no effect.} -\begin{table}[ht!] - \begin{center} - \begin{tabular}{ll}\toprule - \textbf{Key} & \textbf{Action}\\\midrule - \opt{PLAYER_PAD}{\ButtonLeft}\opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD} - {\ButtonUp}\opt{IPOD_4G_PAD}{\ButtonScrollBack} & Page{}-up (one screen up)\\ +\begin{table} + \begin{btnmap}{}{} + \opt{PLAYER_PAD}{\ButtonLeft} + \opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD}{\ButtonUp} + \opt{IPOD_4G_PAD}{\ButtonScrollBack} + & Page{}-up (one screen up)\\ - \opt{PLAYER_PAD}{\ButtonRight}\opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD} - {\ButtonDown}\opt{IPOD_4G_PAD}{\ButtonScrollFwd} & Page{}-down (one screen down)\\ + \opt{PLAYER_PAD}{\ButtonRight} + \opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD}{\ButtonDown} + \opt{IPOD_4G_PAD}{\ButtonScrollFwd} + & Page{}-down (one screen down)\\ \opt{PLAYER_PAD}{\ButtonMenu+\ButtonLeft} - \opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,IPOD_4G_PAD,IAUDIO_X5_PAD} - {\ButtonLeft} & Top of file (Narrow mode) One screen left (Wide mode)\\ + \opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,IPOD_4G_PAD,IAUDIO_X5_PAD}{\ButtonLeft} + & Top of file (Narrow mode) One screen left (Wide mode)\\ \opt{PLAYER_PAD}{\ButtonMenu+\ButtonRight} - \opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,IPOD_4G_PAD,IAUDIO_X5_PAD} - {\ButtonRight} & Bottom of file (Narrow mode) One screen right (Wide mode)\\ + \opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,IPOD_4G_PAD,IAUDIO_X5_PAD} + {\ButtonRight} + & Bottom of file (Narrow mode) One screen right (Wide mode)\\ - \opt{RECORDER_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOn+\ButtonUp & One line up\\} + \opt{RECORDER_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD} + {\ButtonOn+\ButtonUp & One line up\\} - \opt{RECORDER_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOn+\ButtonDown & One line down\\} + \opt{RECORDER_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD} + {\ButtonOn+\ButtonDown & One line down\\} - \opt{RECORDER_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOn+\ButtonLeft & One column left\\} + \opt{RECORDER_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD} + {\ButtonOn+\ButtonLeft & One column left\\} - \opt{RECORDER_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOn+\ButtonRight & One column right\\} + \opt{RECORDER_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD} + {\ButtonOn+\ButtonRight & One column right\\} - \opt{PLAYER_PAD}{\ButtonOn+\ButtonLeft}\opt{RECORDER_PAD}{\ButtonFOne} - \opt{ONDIO_PAD}{\ButtonMenu+\ButtonLeft}\opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonRec} - \opt{IPOD_4G_PAD}{\ButtonSelect+\ButtonLeft}\opt{IAUDIO_X5_PAD}{\ButtonPlay} + \opt{PLAYER_PAD}{\ButtonOn+\ButtonLeft} + \opt{RECORDER_PAD}{\ButtonFOne} + \opt{ONDIO_PAD}{\ButtonMenu+\ButtonLeft} + \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonRec} + \opt{IPOD_4G_PAD}{\ButtonSelect+\ButtonLeft}\opt{IAUDIO_X5_PAD}{\ButtonPlay} & Toggles Word mode\\ - \opt{PLAYER_PAD}{\ButtonOn+\ButtonMenu+\ButtonRight}\opt{RECORDER_PAD}{\ButtonFTwo} - \opt{ONDIO_PAD}{\ButtonMenu+\ButtonUp}\opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonMode} - \opt{IPOD_4G_PAD}{\ButtonSelect+\ButtonPlay}\opt{IAUDIO_X5_PAD}{Long press on \ButtonPlay} + \opt{PLAYER_PAD}{\ButtonOn+\ButtonMenu+\ButtonRight} + \opt{RECORDER_PAD}{\ButtonFTwo} + \opt{ONDIO_PAD}{\ButtonMenu+\ButtonUp} + \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonMode} + \opt{IPOD_4G_PAD}{\ButtonSelect+\ButtonPlay} + \opt{IAUDIO_X5_PAD}{Long press on \ButtonPlay} & Cycles line mode\\ - \opt{PLAYER_PAD}{\ButtonOn+\ButtonRight}\opt{RECORDER_PAD}{\ButtonFThree} - \opt{ONDIO_PAD}{\ButtonMenu+\ButtonRight}\opt{IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD}{\ButtonSelect} - \opt{IPOD_4G_PAD}{\ButtonSelect+\ButtonRight} + \opt{PLAYER_PAD}{\ButtonOn+\ButtonRight} + \opt{RECORDER_PAD}{\ButtonFThree} + \opt{ONDIO_PAD}{\ButtonMenu+\ButtonRight} + \opt{IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD}{\ButtonSelect} + \opt{IPOD_4G_PAD}{\ButtonSelect+\ButtonRight} & Toggles view mode\\ \opt{RECORDER_PAD}{\ButtonOn+\ButtonFOne & Toggles page mode\\} \opt{ONDIO_PAD}{\ButtonMenu+\ButtonDown & Toggles page mode\\} - \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOn+\ButtonMode & Toggles page mode\\} - \opt{IPOD_4G_PAD}{\ButtonSelect+\ButtonMenu+\ButtonLeft & Toggles page mode\\} + \opt{IRIVER_H100_PAD,IRIVER_H300_PAD} + {\ButtonOn+\ButtonMode & Toggles page mode\\} + \opt{IPOD_4G_PAD} + {\ButtonSelect+\ButtonMenu+\ButtonLeft & Toggles page mode\\} \opt{RECORDER_PAD}{\ButtonOn+\ButtonFThree & Toggles scrollbar mode\\} \opt{ONDIO_PAD}{\ButtonMenu+\ButtonOff & Toggles scrollbar mode\\} - \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOn+\ButtonRec & Toggles scrollbar mode\\} - \opt{IPOD_4G_PAD}{\ButtonSelect+\ButtonLeft+\ButtonRight & Toggles scrollbar mode\\} + \opt{IRIVER_H100_PAD,IRIVER_H300_PAD} + {\ButtonOn+\ButtonRec & Toggles scrollbar mode\\} + \opt{IPOD_4G_PAD} + {\ButtonSelect+\ButtonLeft+\ButtonRight & Toggles scrollbar mode\\} - \opt{PLAYER_PAD}{\ButtonStop}\opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD} - {\ButtonOff}\opt{IPOD_4G_PAD}{\ButtonMenu}\opt{IAUDIO_X5_PAD}{\ButtonPower} - & Exit text viewer\\\bottomrule - \end{tabular} - \end{center} + \opt{PLAYER_PAD}{\ButtonStop} + \opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOff} + \opt{IPOD_4G_PAD}{\ButtonMenu} + \opt{IAUDIO_X5_PAD}{\ButtonPower} + & Exit text viewer\\ + \end{btnmap} \end{table} \subsubsection{Compatibility} \begin{itemize} \item 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. +format. Latin{}-alphabet Unicode files are \emph{almost} readable. \item Currently prefers fixed{}-width fonts. With proportional fonts, -pretends all characters are the width of a lower{}-case 'o'. +pretends all characters are the width of a lower{}-case `o'. \item Currently messages are in English \item Does not currently support right{}-to{}-left languages. \end{itemize} |