[gnome-maps/wip/mlundblad/codespell-fixes] Fix typos found with codespell
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/codespell-fixes] Fix typos found with codespell
- Date: Tue, 27 Oct 2020 21:47:32 +0000 (UTC)
commit 2ae590f5d2e6564703d706fcee236b0302f18f9a
Author: Marcus Lundblad <ml update uu se>
Date: Mon Oct 26 22:18:51 2020 +0100
Fix typos found with codespell
src/color.js | 4 ++--
src/contextMenu.js | 2 +-
src/mapSource.js | 2 +-
src/mapView.js | 2 +-
src/osmAccountDialog.js | 4 ++--
src/osmConnection.js | 2 +-
src/osmEdit.js | 2 +-
src/osmTypes.js | 2 +-
src/placeEntry.js | 2 +-
src/sidebar.js | 2 +-
src/transitBoardMarker.js | 2 +-
src/transitItineraryRow.js | 4 ++--
src/transitLegRow.js | 2 +-
src/transitPlan.js | 12 ++++++------
src/transitWalkMarker.js | 2 +-
src/turnPointMarker.js | 2 +-
src/utils.js | 4 ++--
tests/addressTest.js | 2 +-
18 files changed, 27 insertions(+), 27 deletions(-)
---
diff --git a/src/color.js b/src/color.js
index feb630a3..36f21f24 100644
--- a/src/color.js
+++ b/src/color.js
@@ -57,7 +57,7 @@ function relativeLuminance(color) {
/**
* Returns the contrast ratio between two colors, expressed in HTML notation
- * (i.e. ffffff for white) according to the W3C WCAG defintion:
+ * (i.e. ffffff for white) according to the W3C WCAG definition:
* https://www.w3.org/WAI/GL/wiki/Contrast_ratio
*/
function contrastRatio(color1, color2) {
@@ -74,7 +74,7 @@ function contrastRatio(color1, color2) {
* Finds a suitable foreground (text) color for a given background color.
* If the desiredForegroundColor argument is defined, return this color if it
* has enough contrast against the background, otherwise (or if that argument
- * is undefined), return the one of black or white giving the higest contrast
+ * is undefined), return the one of black or white giving the highest contrast
*/
function getContrastingForegroundColor(backgroundColor,
desiredForegroundColor) {
diff --git a/src/contextMenu.js b/src/contextMenu.js
index 6a4727a2..bfa04d79 100644
--- a/src/contextMenu.js
+++ b/src/contextMenu.js
@@ -152,7 +152,7 @@ var ContextMenu = GObject.registerClass({
_onAddOSMLocationActivated() {
let osmEdit = Application.osmEdit;
- /* if the user is not alread signed in, show the account dialog */
+ /* if the user is not already signed in, show the account dialog */
if (!osmEdit.isSignedIn) {
let dialog = osmEdit.createAccountDialog(this._mainWindow, true);
diff --git a/src/mapSource.js b/src/mapSource.js
index b653b42b..5006ac6b 100644
--- a/src/mapSource.js
+++ b/src/mapSource.js
@@ -37,7 +37,7 @@ const _MEMORY_CACHE_SIZE_LIMIT = 100; /* number of tiles */
const _LOGO_PADDING_X = 10;
const _LOGO_PADDING_Y = 25;
-// extra pading below logo in RTL, where scale will be on the right side
+// extra padding below logo in RTL, where scale will be on the right side
const _LOGO_PADDING_Y_RTL = 35;
var AttributionLogo = GObject.registerClass({},
diff --git a/src/mapView.js b/src/mapView.js
index d14b678a..f6166599 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -226,7 +226,7 @@ var MapView = GObject.registerClass({
}
/* handler to draw background for dark theme,
- * theese three functions should not be needed later with a native GTK
+ * these three functions should not be needed later with a native GTK
* widget (Shumate)
*/
_drawDarkBackground(canvas, cr, width, height) {
diff --git a/src/osmAccountDialog.js b/src/osmAccountDialog.js
index b9a0ae7d..c93cad27 100644
--- a/src/osmAccountDialog.js
+++ b/src/osmAccountDialog.js
@@ -79,7 +79,7 @@ var OSMAccountDialog = GObject.registerClass({
this._stack.visible_child_name = 'logged-in';
}
- /* initilize verification web view, we do it programmatically rather
+ /* initialize verification web view, we do it programmatically rather
* declare it in the .ui file to be able to enable WebKit sandboxing
*/
let webContext = WebKit2.WebContext.get_default();
@@ -174,7 +174,7 @@ var OSMAccountDialog = GObject.registerClass({
}
_onVerificationEntryActivated() {
- /* proceed with verfication if a code has been entered */
+ /* proceed with verification if a code has been entered */
let verificationCode = this._verificationEntry.text;
if (verificationCode && verificationCode.length > 0)
diff --git a/src/osmConnection.js b/src/osmConnection.js
index fcb1183a..7cbee11d 100644
--- a/src/osmConnection.js
+++ b/src/osmConnection.js
@@ -88,7 +88,7 @@ var OSMConnection = class OSMConnection {
openChangeset(comment, callback) {
/* we assume that this would only be called if there's already been an
- OAuth access token enrolled, so, if the currently instanciated
+ OAuth access token enrolled, so, if the currently instantiated
proxy instance doesn't have a token set, we could safely count on
it being present in the keyring */
if (this._callProxy.get_token() === null) {
diff --git a/src/osmEdit.js b/src/osmEdit.js
index cfb92069..fa1a7e5d 100644
--- a/src/osmEdit.js
+++ b/src/osmEdit.js
@@ -77,7 +77,7 @@ var OSMEdit = class OSMEdit {
fetchObject(place, callback, cancellable) {
let osmType = Utils.osmTypeToString(place.osmType);
- /* reset currenly edited object */
+ /* reset currently edited object */
this._osmObject = null;
this._osmConnection.getOSMObject(osmType, place.osm_id,
(function(success, status, osmObject, osmType) {
diff --git a/src/osmTypes.js b/src/osmTypes.js
index 8020043a..aa7d7c68 100644
--- a/src/osmTypes.js
+++ b/src/osmTypes.js
@@ -34,7 +34,7 @@ const OSM_TYPE_MAP = JSON.parse(Utils.getBufferText(_buffer));
/* Lists the OSM tags we base our notion of location types on */
var OSM_TYPE_TAGS = ['aeroway', 'amenity', 'leisure', 'office', 'place', 'shop', 'tourism' ];
-/* Sort function comparing two type values accoring to the locale-specific
+/* Sort function comparing two type values according to the locale-specific
* comparison of the type title */
function _sortType(t1, t2) {
return t1.title.toLocaleLowerCase().localeCompare(t2.title.toLocaleLowerCase());
diff --git a/src/placeEntry.js b/src/placeEntry.js
index 3f0749f6..7be0aa04 100644
--- a/src/placeEntry.js
+++ b/src/placeEntry.js
@@ -127,7 +127,7 @@ var PlaceEntry = GObject.registerClass({
if (this._cancellable)
return;
- /* start search if more than the threashold number of characters have
+ /* start search if more than the threshold number of characters have
* been entered, or if the first character is in the ideographic CJK
* block, as for these, shorter strings could be meaningful
*/
diff --git a/src/sidebar.js b/src/sidebar.js
index d3f84316..d07f33f1 100644
--- a/src/sidebar.js
+++ b/src/sidebar.js
@@ -529,7 +529,7 @@ var Sidebar = GObject.registerClass({
/* The reason we don't just use the array .reverse() function is that we
* need to update the place parameters on the actual point objects in the
- * array to fire the query notify signal that will iniate an update.
+ * array to fire the query notify signal that will initiate an update.
*/
_reverseRoutePoints() {
let points = this._query.points;
diff --git a/src/transitBoardMarker.js b/src/transitBoardMarker.js
index 2bd33027..2409614e 100644
--- a/src/transitBoardMarker.js
+++ b/src/transitBoardMarker.js
@@ -63,7 +63,7 @@ class TransitBoardMarker extends MapMarker.MapMarker {
* attribute and background color taken from the transit legs color
* attribute.
* Also draw an outline in the same color as the icon in case the
- * background color above a threashold to improve readability against the
+ * background color above a threshold to improve readability against the
* map background.
*/
_createActor(leg) {
diff --git a/src/transitItineraryRow.js b/src/transitItineraryRow.js
index 6c5c965b..8d97e8cf 100644
--- a/src/transitItineraryRow.js
+++ b/src/transitItineraryRow.js
@@ -90,10 +90,10 @@ var TransitItineraryRow = GObject.registerClass({
});
}
- /* calculate an estimated relative space-consuption for rendering,
+ /* calculate an estimated relative space-consumption for rendering,
* this is done based on route label character lengths and a fixed
* "placeholder" amount for mode icons and separators, since doing an
- * exact pixel-correct calculation would be hard depeding on fonts and
+ * exact pixel-correct calculation would be hard depending on fonts and
* themes
*/
_calculateEstimatedSpace() {
diff --git a/src/transitLegRow.js b/src/transitLegRow.js
index 142cf7c9..c4db72aa 100644
--- a/src/transitLegRow.js
+++ b/src/transitLegRow.js
@@ -191,7 +191,7 @@ var TransitLegRow = GObject.registerClass({
}
} else {
/* don't output the starting and ending instructions from the walk
- * route, since these are explicitely added by the itinerary
+ * route, since these are explicitly added by the itinerary
*/
for (let index = 1;
index < this._leg.walkingInstructions.length - 1;
diff --git a/src/transitPlan.js b/src/transitPlan.js
index 96ba2416..46fc246d 100644
--- a/src/transitPlan.js
+++ b/src/transitPlan.js
@@ -47,21 +47,21 @@ var RouteType = {
TRAIN: 2,
BUS: 3,
FERRY: 4,
- /* Cable car referres to street-level cabel cars, where the propulsive
- * cable runs in a slot between the tracks beneeth the car
+ /* Cable car refers to street-level cabel cars, where the propulsive
+ * cable runs in a slot between the tracks beneath the car
* https://en.wikipedia.org/wiki/Cable_car_%28railway%29
- * For example the cable cars in San Fransisco
+ * For example the cable cars in San Francisco
* https://en.wikipedia.org/wiki/San_Francisco_cable_car_system
*/
CABLE_CAR: 5,
- /* Gondola referres to a suspended cable car, typically aerial cable cars
+ /* Gondola refers to a suspended cable car, typically aerial cable cars
* where the car is suspended from the cable
* https://en.wikipedia.org/wiki/Gondola_lift
* For example the "Emirates Air Line" in London
* https://en.wikipedia.org/wiki/Emirates_Air_Line_%28cable_car%29
*/
GONDOLA: 6,
- /* Funicular referres to a railway system designed for steep inclines,
+ /* Funicular refers to a railway system designed for steep inclines,
* https://en.wikipedia.org/wiki/Funicular
*/
FUNICULAR: 7,
@@ -279,7 +279,7 @@ class Itinerary extends GObject.Object {
if (!leg.transit) {
if (i === 0) {
/* for the first leg subtract the walking time plus a
- * safty slack from the departure time of the following
+ * safety slack from the departure time of the following
* leg
*/
let nextLeg = this.legs[i + 1];
diff --git a/src/transitWalkMarker.js b/src/transitWalkMarker.js
index 93c642ba..60f72f57 100644
--- a/src/transitWalkMarker.js
+++ b/src/transitWalkMarker.js
@@ -31,7 +31,7 @@ var TransitWalkMarker = GObject.registerClass(
class TransitWalkMarker extends MapMarker.MapMarker {
_init(params) {
- /* if there is a preceeding leg, put the marker at the end of that leg
+ /* if there is a preceding leg, put the marker at the end of that leg
* to avoid gaps, since we will "fill out" the walking leg path line
* since sometimes the walking route might not reach exactly to the
* transit stop's position
diff --git a/src/turnPointMarker.js b/src/turnPointMarker.js
index ef810490..c5e872ee 100644
--- a/src/turnPointMarker.js
+++ b/src/turnPointMarker.js
@@ -79,7 +79,7 @@ class TurnPointMarker extends MapMarker.MapMarker {
_getColor() {
/* Use the route color from the transit leg when representing part of
- * a transit trip, otherwise let the fallback functionallity of the
+ * a transit trip, otherwise let the fallback functionality of the
* utility function use a GNOMEish blue color for turn-by-turn routing.
*/
let color = this._transitLeg ? this._transitLeg.color : null;
diff --git a/src/utils.js b/src/utils.js
index fd4a2266..5d3d45fd 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -233,7 +233,7 @@ function getMeasurementSystem() {
}
/**
- * Get the higest priority bare lange currently in use.
+ * Get the highest priority bare lange currently in use.
*/
function getLanguage() {
let locale = GLib.get_language_names()[0];
@@ -332,7 +332,7 @@ function prettyTime(time) {
return _("%s h").format(hoursStr);
} else if (hours > 0) {
/* Translators: this is a duration with hours and minutes parts
- * using abbreviations for hours and minutes, correspoding to 'h'
+ * using abbreviations for hours and minutes, corresponding to 'h'
* and 'min' in English. The minutes has appropriate plural variations
*/
return ngettext("%s h %s min", "%s h %s min",
diff --git a/tests/addressTest.js b/tests/addressTest.js
index 3ad92bde..811a2cee 100644
--- a/tests/addressTest.js
+++ b/tests/addressTest.js
@@ -50,7 +50,7 @@ function streetAddressForCountryCodeTest() {
JsUnit.assertEquals('Calle Mapas No° 42',
Address.streetAddressForCountryCode('Calle Mapas',
'42', 'CL'));
- /* Test fallback to "Number Street name" scheme for unknown contries,
+ /* Test fallback to "Number Street name" scheme for unknown countries,
* using fictionary "UT" (Utopia)
*/
JsUnit.assertEquals('42 Some Street',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]