Package: yabasic Version: 2.763-1 Severity: minor Tags: patch
Found many typos in '/usr/share/man/man1/yabasic.1.gz', see attached '.diff'. Note: several typos are left over from: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=325327 Hope this helps... -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15-1-686 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Versions of packages yabasic depends on: ii libc6 2.3.5-12 GNU C Library: Shared libraries an ii libice6 6.9.0.dfsg.1-4 Inter-Client Exchange library ii libncurses5 5.5-1 Shared libraries for terminal hand ii libsm6 6.9.0.dfsg.1-4 X Window System Session Management ii libx11-6 6.9.0.dfsg.1-4 X Window System protocol client li ii xlibs 6.9.0.dfsg.1-4 X Window System client libraries m yabasic recommends no packages. -- no debconf information
--- yabasic.1 2005-10-03 15:10:27.000000000 -0400 +++ /tmp/yabasic.1 2006-02-02 05:18:22.000000000 -0500 @@ -179,9 +179,9 @@ Starting yabasic Once, yabasic has been set up correctly, there are three ways to start it: - 1. Rightclick on your desktop: The desktop menu appears with a submenu + 1. Right click on your desktop: The desktop menu appears with a submenu named new. From this submenu choose yabasic. This will create a new icon - on your desktop. If you rightclick on this icon, its context menu will + on your desktop. If you right click on this icon, its context menu will appear; choose Execute to execute the program. 2. As a variant of the way described above, you may simply create a file with the ending .yab (e.g. with your favorite editor). Everything else @@ -202,7 +202,7 @@ Under Windows yabasic will mostly be invoked by double-clicking on an appropriate icon; this way you do not have a chance to specify any of the - commandline options below. However, advanced users may add some of those + command line options below. However, advanced users may add some of those options to the appropriate entries in the registry. All the options below may be abbreviated, as long as the abbreviation does @@ -232,7 +232,7 @@ -bind NAME-OF-STANDALONE-PROGRAM Create a standalone program (whose name is specified by NAME-OF-STANDALONE-PROGRAM) from the yabasic-program, that is - specified on the commandline. See the section about creating a + specified on the command line. See the section about creating a standalone-program for details. -execute A-PROGRAM-AS-A-SINGLE-STRING @@ -271,7 +271,7 @@ Execute This will invoke yabasic to execute your program. The same happens, - if you doubleclick on the icon. + if you double click on the icon. Edit notepad will be invoked, allowing you to edit your program. @@ -319,9 +319,9 @@ Options - yabasic accepts a number of options on the commandline. All these options + yabasic accepts a number of options on the command line. All these options below may be abbreviated, as long as the abbreviation does not become - ambigous. For example you may write -e instead of -execute. + ambiguous. For example you may write -e instead of -execute. -help or -? Prints a short help message, which itself describes two further @@ -332,13 +332,13 @@ -fg FOREGROUND-COLOR or -foreground FOREGROUND-COLOR Define the foreground color for the graphics-window (that will be - opened with open window). The usual X11 colornames, like red, green, + opened with open window). The usual X11 color names, like red, green, ... are accepted. This value cannot be changed, once yabasic has been started. -bg BACKGROUND-COLOR or -background BACKGROUND-COLOR Define the background color for the graphics-window. The usual X11 - colornames are accepted. This value cannot be changed, once yabasic + color names are accepted. This value cannot be changed, once yabasic has been started. -geometry +X-POSITION+Y-POSITION @@ -372,7 +372,7 @@ -bind NAME-OF-STANDALONE-PROGRAM Create a standalone program (whose name is specified by NAME-OF-STANDALONE-PROGRAM) from the yabasic-program, that is - specified on the commandline. See the section about creating a + specified on the command line. See the section about creating a standalone-program for details. -infolevel INFOLEVEL @@ -1017,7 +1017,7 @@ draws a circle in the graphic-window clear - Erase circles, rectangles or triangless + Erase circles, rectangles or triangles clear window clear the graphic window and begin a new page, if printing is under @@ -1530,7 +1530,7 @@ As with the color-command, the new background color can either be specified as a triple of three numbers or as a single string, that contains those - three numbers sperated by commas. + three numbers separated by commas. Example @@ -1678,7 +1678,7 @@ See also The section about creating a standalone-program, the peek-function and the - commandline options for Unix and Windows. + command line options for Unix and Windows. _________________________________________________________________ Name @@ -2342,7 +2342,7 @@ an example would be 4-05-27-2004-Thu-May. This string consists of various fields separated by hyphens ("-"): * The day within the week as a number in the range 0 (=Sunday) to 6 - (=Saturday) (in the example above: 4, i.e. thursday). + (=Saturday) (in the example above: 4, i.e. Thursday). * The month as a number in the range 1 (=January) to 12 (=December) (in the example: 5 which stands for May). * The day within the month as a number in the range 1 to 31 (in the @@ -2510,7 +2510,7 @@ end sub - This example creates a 2-dimenional array (i.e. a matrix) with the + This example creates a 2-dimensional array (i.e. a matrix) with the dim-statement and fills it with random numbers. The second dim-statement enlarges the array, all new elements are filled with 0. @@ -2569,7 +2569,7 @@ Introduces a comment, which spans up to the end of the line. But other than the rem-comment, any docu-comment is collected within the special docu$-array and might be retrieved later on. Moreover you might invoke - yabasic -docu foo.yab on the commandline to retrieve the embedded + yabasic -docu foo.yab on the command line to retrieve the embedded documentation within the program foo.yab. Instead of doc you may just as well write docu or even documentation. @@ -3376,7 +3376,7 @@ Any for-statement can be replaced by a set of ifs and gotos; as you may infer from the example below this is normally not feasible. However if you want to know in detail how the for-statement works, you should study this - example, which presents a for-statement and an exactly equivalant series of + example, which presents a for-statement and an exactly equivalent series of ifs and gotos. Example @@ -3767,7 +3767,7 @@ (where elsif and else are optional, whereas endif is not. According to the requirements of your program, you may specify: + elsif(...), which specifies a condition, that will be evaluated only - if the condition(s) whithin if or any preceding elsif did not + if the condition(s) within if or any preceding elsif did not match. + else, which introduces a sequence of commands, that will be executed, if none of the conditions above did match. @@ -3897,8 +3897,8 @@ function keys you will get f1, f2 and so on. Other special keys will return these strings respectively: enter, backspace, del, esc, scrnup (for screen up), scrndown and tab. Modifier keys (e.g. ctrl, alt or shift) by themselves - can not be detected (however, if you press shift and e.g. a simultaniously, - inkey$ will return the letter A instead of a of course). + can not be detected (e.g. if you simultaneously press shift and 'a', + inkey$ will return the letter 'A' instead of 'a' of course). If a graphical window has been opened (via open window) any mouseclick within this window will be returned by inkey$ too. The string returned (e.g. @@ -5549,7 +5549,7 @@ Description The peek-function has many different and mostly unrelated uses. It is a kind - of grabbag for retrieving all kinds of numerical information, internal to + of grab-bag for retrieving all kinds of numerical information, internal to yabasic. The meaning of the numbers returned be the peek-function depends on the string or number passed as an argument. @@ -5584,12 +5584,12 @@ peek("screenheight") Return the height in characters of the window, wherein yabasic runs. - If you have not called clear screen yet, this peekwill return 0, + If you have not called clear screen yet, this peek will return 0, regardless of the size of your terminal. peek("screenwidth") Return the width in characters of the window, wherein yabasic runs. - If you have not called clear screen yet, this peekwill return 0, + If you have not called clear screen yet, this peek will return 0, regardless of the size of your terminal. peek("argument") @@ -5598,9 +5598,9 @@ foo.yab bar baz, then peek("argument") will return 2. This is because foo.yab is treated as the name of the program to run, whereas bar and baz are considered arguments to the program, which are passed on the - commandline. Note, that for windows-users, who tend to click on the + command line. Note, that for windows-users, who tend to click on the icon (as opposed to starting yabasic on the command line), this - peekwill mostly return 0. + peek will mostly return 0. The function peek("argument") can be written as peek("arguments") too. @@ -5690,7 +5690,7 @@ Description The peek$-function has many different and unrelated uses. It is a kind of - grabbag for retrieving all kinds of string information, internal to yabasic; + grab-bag for retrieving all kinds of string information, internal to yabasic; the exact nature of the strings returned be the peek$-function depends on the string passed as an argument. @@ -5704,7 +5704,7 @@ peek$("infolevel") Returns either "debug", "note", "warning", "error" or "fatal", depending on the current infolevel. This value can be specified with - an option (either under windows or unix) on the commandline or + an option (either under windows or unix) on the command line or changed during the execution of the program with the corresponding poke; however, normally only the author of yabasic (me !) would want to change this from its default value "warning". @@ -5757,7 +5757,7 @@ Return the environment variable specified by NAME (which may be any string expression). Which kind of environment variables are available on your system depends, as well as their meaning, on your system; - however typing env on the commandline will produce a list (for + however typing env on the command line will produce a list (for Windows and Unix alike). Note, that peek$("env",...) can be written as peek$("environment",...) too. @@ -5768,10 +5768,10 @@ foo.yab bar baz, then the first call to peek$("argument") will return bar. This is because foo.yab is treated as the name of the program to run, whereas bar and baz are considered arguments to this program, - which are passed on the commandline. The second call to + which are passed on the command line. The second call to peek$("argument") will return baz. Note, that for windows-users, who tend to click on the icon (as opposed to starting yabasic on the - command line), this peekwill mostly return the empty string. + command line), this peek will mostly return the empty string. Note, that peek$("argument") can be written as peek$("arguments"). @@ -5787,7 +5787,7 @@ If you save this program in a file foo.yab and execute it via yabasic t.yab - a b c (for windows users: please use the commandline for this), your will + a b c (for windows users: please use the command line for this), your will get this output: 3a 2b @@ -6256,7 +6256,7 @@ loop - This example will print a cloured bell-curve. + This example will print a colored bell-curve. See also @@ -6320,8 +6320,8 @@ The rectangle-command (also known as box or rect, for short) draws a rectangle; it accepts four parameters: The x- and y-coordinates of two - facing cornerpoints of the rectangle. With the optional clauses clear and - fill (which may appear both and in any sequence) the rectangle can be + facing corners of the rectangle. With the optional clauses clear and + fill (which may appear in any sequence) the rectangle can be cleared and filled respectively. Example @@ -6537,7 +6537,7 @@ to place multiple return-statements within your subroutine; it's a nice way of controlling the flow of execution. - The second (but historicially first) use of return is to return to the + The second (but historically first) use of return is to return to the position, where a prior gosub has left off. In that case return may not carry a value. @@ -6927,8 +6927,8 @@ Description - The sleep-command has many different names: You may write pause, sleep or - wait interchangable; whatever you write, yabasic will always do exactly the + The sleep command has many different names: You may write pause, sleep or + wait interchangeable; whatever you write, yabasic will always do exactly the same. Therefore you should refer to the entry for the pause-function for further @@ -6974,7 +6974,7 @@ token-function, which focuses on the tokens), hence its name. The second argument is a reference on a string-array, where the tokens will - be stored; this array will be expanded (or shrinked) to have room for all + be stored; this array will be expanded (or shrunk) to have room for all tokens, if necessary. The first argument finally contains the text, that will be split into @@ -7240,10 +7240,10 @@ shows up within the result. ##,###.## and an additional argument of ".," x3.141,59 Similar to the example above, but colon and dot are replaced with dot and colon - respectivly. + respectively. ##,###.## and an additional argument of "_," x3_141,59 Similar to the example above, but colon and dot are replaced with underscore and colon - respectivly. + respectively. ##### x3142 The format string does not contain a dot, and therefore the result does not have any fractional digits. ##.### ##.### As 1000*pi has 4 digits in front of the decimal dot and the @@ -7473,7 +7473,7 @@ T - tan() - return the tangens of its argument + tan() - return the tangent of its argument tell - get the current position within an open file text - write text into your graphic-window then - tell the long from the short form of the if-statement @@ -7486,7 +7486,7 @@ Name - tan() - return the tangens of its argument + tan() - return the tangent of its argument Synopsis @@ -7494,8 +7494,8 @@ Description - The tan-function computes the tangens of its arguments (which should be - specified in radian). + The tan-function computes the tangent of its arguments (which should be + specified in radians). Example @@ -7504,8 +7504,8 @@ next a - This example simply prints the tangens of all angles between 0 and 45 - degree. + This example simply prints the tangent of all angles between 0 and 45 + degrees. See also @@ -7753,7 +7753,7 @@ which focuses on the separators). The second argument is a reference on a string-array, where the tokens will - be stored; this array will be expanded (or shrinked) as necessary to have + be stored; this array will be expanded (or shrunk) as necessary to have room for all tokens. The first argument finally contains the text, that will be split into @@ -7875,7 +7875,7 @@ Description - The trim$-function removes all whitespaces from the left and from the right + The trim$-function removes all whitespace from the left and from the right end of a string and returns the result. Calling trim$ is equivalent to calling rtrim$(ltrim$()). @@ -7997,7 +7997,7 @@ This program asks for a sentence and marks the first (if any) occurrence of - the letter 'e' by coverting it to upper case (in contrast to the rest of the + the letter 'e' by converting it to upper case (in contrast to the rest of the sentence, which is converted to lower case). See also @@ -8627,7 +8627,7 @@ Creating a standalone program from your yabasic-program - Creating a standalone-program from the commandline + Creating a standalone-program from the command line Creating a standalone-program from within your program Downsides of creating a standalone program See also @@ -8664,10 +8664,10 @@ of a standalone program. With these bits you know enough to create a standalone-program. Actually - there are two ways to do this: on the commandline and from within your + there are two ways to do this: on the command line and from within your program. -Creating a standalone-program from the commandline +Creating a standalone-program from the command line Let's say you have the following very simple program within the file foo.yab: @@ -8742,7 +8742,7 @@ See also - The bind-command, the peek-function and the commandline options for Unix and + The bind-command, the peek-function and the command line options for Unix and Windows. Chapter 8. A few example programs