Skip to content

Commit 98d3e91

Browse files
authored
Fix typos (user facing and non-user facing) (#733)
Found via `codespell`
1 parent e050b0e commit 98d3e91

11 files changed

+19
-19
lines changed

locale/audacity.pot

+1-1
Original file line numberDiff line numberDiff line change
@@ -11542,7 +11542,7 @@ msgstr ""
1154211542
msgid "Unable to get fill buffer"
1154311543
msgstr ""
1154411544

11545-
#. i18n-hint: 'Raw' means 'unprocessed' here and should usually be tanslated.
11545+
#. i18n-hint: 'Raw' means 'unprocessed' here and should usually be translated.
1154611546
#: src/import/ImportRaw.cpp
1154711547
msgid "Import Raw"
1154811548
msgstr ""

locale/diagnostics.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ done | sort -n -k3
1818

1919
echo
2020

21-
# detect whether this sequence occures in any .po file. It will break
21+
# detect whether this sequence occurs in any .po file. It will break
2222
# msgfmt on Windows.
2323
echo "Files with illegal comment sequence:"
2424
fgrep -l '#~|' *.po

nyquist/aud-do-support.lsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
(defun char-remove (ch str)
11-
;;; Remove all occurances of character from string.
11+
;;; Remove all occurrences of character from string.
1212
(do ((out "")
1313
(i 0 (1+ i)))
1414
((= i (length str)) out)

nyquist/dspprims.lsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
(ny:error "ALPASS" 4 '((POSITIVE) "min-hz") min-hz))
143143
(setf max-delay (/ (float min-hz)))
144144
; make sure delay is between 0 and max-delay
145-
; use clip function, which is symetric, with an offset
145+
; use clip function, which is symmetric, with an offset
146146
(setf delay (snd-offset (clip (snd-offset delay (* max-delay -0.5))
147147
(* max-delay 0.5))
148148
(* max-delay 0.5)))

nyquist/evalenv.lsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
;; The answer is you can use the evalhook facility. The evalhook function
88
;; will evaluate an expression using an environment given to it as an
99
;; argument. But then the problem is "how do you get the current
10-
;; environment?" Well the getenv macro, below obtains the environent by
10+
;; environment?" Well the getenv macro, below obtains the environment by
1111
;; using an *evalhook* form.
1212
;;
1313
;; The following two macros do the job. Insteading of executing (eval <expr>)

nyquist/nyquist.lsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2346,7 +2346,7 @@ loop
23462346

23472347
;; SELECT-IMPLEMENTATION-1-2 -- 1 sound arg, 2 selectors
23482348
;;
2349-
;; choose implemenation according to args 2 and 3. In this implementation,
2349+
;; choose implementation according to args 2 and 3. In this implementation,
23502350
;; since we have two arguments to test for types, we return from prog
23512351
;; if we find good types. That way, we can fall through the decision tree
23522352
;; and all paths lead to one call to ERROR if good types are not found.

nyquist/sal-parse.lsp

+9-9
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
(:/ "/" /)
5252
(:% "%" rem)
5353
(:^ "^" expt)
54-
(:= "=" sal-equal) ; equality and assigment
54+
(:= "=" sal-equal) ; equality and assignment
5555
(:!= "!=" not-sal-equal)
5656
(:< "<" <)
5757
(:> ">" >)
@@ -62,9 +62,9 @@
6262
(:-= "-=" -=) ; assignment increment-and-store
6363
(:*= "*=" *=) ; assignment multiply-and-store
6464
(:/= "/=" /=) ; assignment multiply-and-store
65-
(:&= "&=" &=) ; assigment list collecting
66-
(:@= "@=" @=) ; assigment list prepending
67-
(:^= "^=" ^=) ; assigment list appending
65+
(:&= "&=" &=) ; assignment list collecting
66+
(:@= "@=" @=) ; assignment list prepending
67+
(:^= "^=" ^=) ; assignment list appending
6868
(:! "!" not)
6969
(:& "&" and)
7070
(:\| "|" or)
@@ -211,7 +211,7 @@
211211
(setf line-no (pos-to-line beg source))
212212
; (display "pperror" beg end (sal-error-start x))
213213

214-
;; print the error. include the specfic line of input containing
214+
;; print the error. include the specific line of input containing
215215
;; the error as well as a line below it marking the error position
216216
;; with an arrow: ^
217217
(let* ((pos (- (sal-error-start x) beg))
@@ -484,7 +484,7 @@
484484
(setq end (search-delim input delimit start len))
485485
(if (equal start end) ; have a delimiter
486486
(cond ((char= char +semic+)
487-
;; comment skips to next line and trys again...
487+
;; comment skips to next line and try again...
488488
(while (and (< start len)
489489
(char/= (char input start) #\newline))
490490
(incf start))
@@ -1015,7 +1015,7 @@
10151015
;; with embedded operator symbols, e.g. x+y results in a warning
10161016
;; that this is an odd variable name. But if the symbol is declared
10171017
;; as a local, a parameter, a function name, or a global variable,
1018-
;; then the warning is supressed.
1018+
;; then the warning is suppressed.
10191019
;;
10201020
(defun token-is (type &optional (suspicious-id-warn t))
10211021
(let ((token-type
@@ -1174,7 +1174,7 @@
11741174
;; kargs is a flag indicating previous parameter was a keyword (all
11751175
;; the following parameters must then also be keyword parameters)
11761176
;; returns: (<keyword> <default>) or (nil <identifier>)
1177-
;; where <keyword> is a keyward parameter name (nil if not a keyword parm)
1177+
;; where <keyword> is a keyword parameter name (nil if not a keyword parm)
11781178
;; <default> is an expression for the default value
11791179
;; <identifier> is the parameter name (if not a keyword parm)
11801180
(let (key default-value id)
@@ -1450,7 +1450,7 @@
14501450
((eq op '^=) (setq expr `(nconc ,vref (append ,expr nil))))
14511451
((eq op '<=) (setq expr `(min ,vref ,expr)))
14521452
((eq op '>=) (setq expr `(max ,vref ,expr)))
1453-
(t (errexit (format nil "unknown assigment operator ~A" op))))
1453+
(t (errexit (format nil "unknown assignment operator ~A" op))))
14541454
(push (list 'setf vref expr) rslt))
14551455
(setf rslt (add-line-info-to-stmts rslt set-token))
14561456
(if (> (length rslt) 1)

nyquist/sliders.lsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
;;
4343
;; This code takes advantage of the fact that dotimes and dolist
4444
;; return nil when they end normally, so we signal that we found
45-
;; or did not find i by explictly returning. Note that RETURN
45+
;; or did not find i by explicitly returning. Note that RETURN
4646
;; returns from the innermost dotimes or dolist -- they do not
4747
;; return from allocate-slider-num.
4848
;;

nyquist/spectral-analysis.lsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
(:hann (hann-window len))
136136
(:none nil)
137137
(:hamming (hamming-window len))
138-
(t (print "Warning: invalid window-type paramter: ~A~%" win-type)
138+
(t (print "Warning: invalid window-type parameter: ~A~%" win-type)
139139
(print " Using :HAMMING instead.~%")
140140
(hamming-window len))))
141141

src/Dependencies.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
2424
\class AliasedFile
2525
\brief An audio file that is referenced (pointed into) directly from
26-
an Audacity .aup file rather thna Audacity having its own copies of the
26+
an Audacity .aup file rather than Audacity having its own copies of the
2727
data.
2828
2929
*//*****************************************************************//**

src/SseMathFuncs.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ _PS_CONST(coscof_p2, 4.166664568298827E-002);
364364
_PS_CONST(cephes_FOPI, 1.27323954473516); // 4 / M_PI
365365

366366

367-
/* evaluation of 4 sines at onces, using only SSE1+MMX intrinsics so
367+
/* evaluation of 4 sines at once, using only SSE1+MMX intrinsics so
368368
it runs also on old athlons XPs and the pentium III of your grand
369369
mother.
370370

0 commit comments

Comments
 (0)