1
0
Fork 0

pointless spelling fixes

This commit is contained in:
mfranz 2007-06-22 18:49:38 +00:00
parent 199756d189
commit cfd9c1b48f
8 changed files with 13 additions and 11 deletions

View file

@ -290,7 +290,7 @@ incAileron = func {
## ##
# arg[0] is the elevator increment # arg[0] is the elevator increment
# arg[1] is the autopilot target alitude increment # arg[1] is the autopilot target altitude increment
incElevator = func { incElevator = func {
auto = props.globals.getNode("/autopilot/locks/altitude", 1); auto = props.globals.getNode("/autopilot/locks/altitude", 1);
if ( !auto.getValue() or auto.getValue() == 0 ) { if ( !auto.getValue() or auto.getValue() == 0 ) {

View file

@ -198,7 +198,7 @@ var bt = backtrace;
## ##
# Excecutes function f with optional arguments and prints execution # Executes function f with optional arguments and prints execution
# time in seconds. Examples: # time in seconds. Examples:
# #
# var test = func(n) { for (var i = 0; i < n; i +=1) { print(i) } # var test = func(n) { for (var i = 0; i < n; i +=1) { print(i) }

View file

@ -286,10 +286,12 @@ var tile_path = func(lat, lon) {
p ~= "/" ~ tile_index(lat, lon) ~ ".stg"; p ~= "/" ~ tile_index(lat, lon) ~ ".stg";
} }
var put_model = func(path, c, arg...) { var put_model = func(path, c, arg...) {
call(_put_model, [path] ~ (isa(c, Coord) ? c.latlon() : [c]) ~ arg); call(_put_model, [path] ~ (isa(c, Coord) ? c.latlon() : [c]) ~ arg);
} }
var _put_model = func(path, lat, lon, elev_m = nil, hdg = 0, pitch = 0, roll = 0) { var _put_model = func(path, lat, lon, elev_m = nil, hdg = 0, pitch = 0, roll = 0) {
if (elev_m == nil) if (elev_m == nil)
elev_m = elevation(lat, lon); elev_m = elevation(lat, lon);

View file

@ -27,7 +27,7 @@ fgcommand = func(cmd, node=nil) {
## ##
# Returns the SGPropertyNode argument to the currently executing # Returns the SGPropertyNode argument to the currently executing
# function. Wrapper for the internal _cmdarg function that retrieves # function. Wrapper for the internal _cmdarg function that retrieves
# the ghost handlet to the argument and wraps it in a # the ghost handle to the argument and wraps it in a
# props.Node object. # props.Node object.
# #
cmdarg = func { props.wrapNode(_cmdarg()) } cmdarg = func { props.wrapNode(_cmdarg()) }

View file

@ -248,14 +248,14 @@ Dialog = {
# pattern ... array with shell pattern or nil (which is equivalent to "*") # pattern ... array with shell pattern or nil (which is equivalent to "*")
# dir ... starting dir ($FG_ROOT if unset) # dir ... starting dir ($FG_ROOT if unset)
# file ... pre-selected default file name # file ... pre-selected default file name
# dotfiles ... flag that decids whether UNIX dotfiles should be shown (1) or not (0) # dotfiles ... flag that decides whether UNIX dotfiles should be shown (1) or not (0)
# #
# EXAMPLE: # EXAMPLE:
# #
# var report = func { print("file ", cmdarg().getValue(), " selected") } # var report = func { print("file ", cmdarg().getValue(), " selected") }
# var selector = gui.FileSelector.new( # var selector = gui.FileSelector.new(
# report, # callback function # report, # callback function
# "Save Flight", # dialot title # "Save Flight", # dialog title
# "Save", # button text # "Save", # button text
# ["*.sav", "*.xml"], # pattern for displayed files # ["*.sav", "*.xml"], # pattern for displayed files
# "/tmp", # start dir # "/tmp", # start dir

View file

@ -33,7 +33,7 @@
## ##
# convert string for output; replaces tabs by spaces, and skips # convert string for output; replaces tabs by spaces, and skips
# delimitiers and the voice part in "{text|voice}" constructions # delimiters and the voice part in "{text|voice}" constructions
# #
var sanitize = func(s) { var sanitize = func(s) {
var r = ""; var r = "";

View file

@ -63,9 +63,9 @@ var imatch = func(a, b) match(lc(a), lc(b));
# #
# Rules: # Rules:
# ? stands for any single character # ? stands for any single character
# * stands for zero or any number of arbitrary characters # * stands for any number (including zero) of arbitrary characters
# \ escapes the next character and makes it stand for itself; that is: # \ escapes the next character and makes it stand for itself; that is:
# \? stands for a question mark (not "any single character") # \? stands for a question mark (not "any single character" placeholder)
# [] stands for a group of characters: # [] stands for a group of characters:
# [abc] stands for letters a or b or c # [abc] stands for letters a or b or c
# [^abc] stands for any character but any of a, b, and c # [^abc] stands for any character but any of a, b, and c
@ -74,7 +74,7 @@ var imatch = func(a, b) match(lc(a), lc(b));
# [-1-4] same as above # [-1-4] same as above
# [1-3-6] stands for digits 1 to 3, minus, and 6 # [1-3-6] stands for digits 1 to 3, minus, and 6
# [1-3-6-9] stands for digits 1 to 3, minus, and 6 to 9 # [1-3-6-9] stands for digits 1 to 3, minus, and 6 to 9
# [][] stands for the closing and the opening bracket (']' must come first!) # [][] stands for the closing and the opening bracket (']' must be first!)
# [^^] stands for all characters but the caret symbol # [^^] stands for all characters but the caret symbol
# #
# Example: # Example:
@ -141,7 +141,7 @@ var match = func(str, patt) {
## ##
# Removes superfluous slashes, emtpy and "." elements, expands # Removes superfluous slashes, empty and "." elements, expands
# all ".." elements, and turns all backslashes into slashes. # all ".." elements, and turns all backslashes into slashes.
# The result will start with a slash if it started with a slash # The result will start with a slash if it started with a slash
# or backslash, it will end without slash. Should be applied on # or backslash, it will end without slash. Should be applied on

View file

@ -444,7 +444,7 @@ var say = func(what, who = "copilot", delay = 0) {
# #
var init_nasal = func { var init_nasal = func {
globals.__tutorial = { globals.__tutorial = {
say : say, # just exporting tutorial.say as __turorial.say say : say, # just exporting tutorial.say as __tutorial.say
next : func(n = 1) { current_step += n; is_first_step = 1; }, next : func(n = 1) { current_step += n; is_first_step = 1; },
previous : func(n = 1) { previous : func(n = 1) {
current_step -= n; current_step -= n;