summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Lundblad <ml@update.uu.se>2020-10-26 22:18:51 +0100
committerMarcus Lundblad <ml@update.uu.se>2020-11-15 22:56:15 +0100
commitbd8f883c0523efa551178080ea49e9f2344aee20 (patch)
tree7aafbe98aa418319397b1e0923d112260fb20472
parent6e38a8a74097f13b9cb2b201b7d2d5bab934f8d9 (diff)
downloadgnome-maps-wip/mlundblad/codespell-fixes.tar.gz
Fix typos found with codespellwip/mlundblad/codespell-fixes
-rw-r--r--src/color.js4
-rw-r--r--src/contextMenu.js2
-rw-r--r--src/mapBubble.js2
-rw-r--r--src/mapSource.js2
-rw-r--r--src/mapView.js2
-rw-r--r--src/osmAccountDialog.js4
-rw-r--r--src/osmConnection.js2
-rw-r--r--src/osmEdit.js2
-rw-r--r--src/osmTypes.js2
-rw-r--r--src/placeEntry.js2
-rw-r--r--src/sidebar.js2
-rw-r--r--src/transitBoardMarker.js2
-rw-r--r--src/transitItineraryRow.js4
-rw-r--r--src/transitLegRow.js2
-rw-r--r--src/transitPlan.js12
-rw-r--r--src/transitRouter.js2
-rw-r--r--src/transitWalkMarker.js2
-rw-r--r--src/transitplugins/openTripPlanner.js16
-rw-r--r--src/transitplugins/resrobot.js4
-rw-r--r--src/turnPointMarker.js2
-rw-r--r--src/utils.js4
-rw-r--r--tests/addressTest.js2
22 files changed, 39 insertions, 39 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/mapBubble.js b/src/mapBubble.js
index 5dfad9cf..024cded4 100644
--- a/src/mapBubble.js
+++ b/src/mapBubble.js
@@ -248,7 +248,7 @@ class MapBubble extends Gtk.Popover {
_onEditClicked() {
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.get_toplevel(), 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/transitRouter.js b/src/transitRouter.js
index 4114d09e..61d8650a 100644
--- a/src/transitRouter.js
+++ b/src/transitRouter.js
@@ -223,7 +223,7 @@ var TransitRouter = class TransitRoute {
return [provider, instance];
} catch (e) {
- Utils.debug('Failed to instanciate transit plugin: ' +
+ Utils.debug('Failed to instantiate transit plugin: ' +
plugin + ": " + e);
}
} else {
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/transitplugins/openTripPlanner.js b/src/transitplugins/openTripPlanner.js
index d1a3e3d3..b0910bf4 100644
--- a/src/transitplugins/openTripPlanner.js
+++ b/src/transitplugins/openTripPlanner.js
@@ -52,7 +52,7 @@ const Utils = imports.utils;
* These call into an entry point function "_fatchRoute()".
* "_fetchRoutes()" is called.
* In the case where there is no OSM data (onlyTransitData is true), it
- * asyncronously calls "_fetchTransitStops()" to get closest transit stop for
+ * asynchronously calls "_fetchTransitStops()" to get closest transit stop for
* each of the query point, this function will involve OpenTripPlanner calls to
* find stops within a search circle around the coordinate and then calls out
* to GraphHopper to find the actual walking distance and selects the closest
@@ -72,7 +72,7 @@ const Utils = imports.utils;
* API docs for OpenTripPlanner can be found at: http://dev.opentripplanner.org/apidoc/1.0.0/
*/
-/* minimum distance when an explicit walk route will be requested to suppliment
+/* minimum distance when an explicit walk route will be requested to supplement
* the transit route
*/
const MIN_WALK_ROUTING_DISTANCE = 100;
@@ -97,7 +97,7 @@ const MAX_WALK_OPTIMIZATION_DISTANCE_DIFFERENCE = 500;
const MIN_INTERMEDIATE_WALKING_SLACK = 60;
/* maximum walking distance, filter out itineraries containing walking legs
- * whith longer walking after refined by GraphHopper
+ * with longer walking after being refined by GraphHopper
*/
const MAX_WALKING_DISTANCE = 2000;
@@ -565,7 +565,7 @@ var OpenTripPlanner = class OpenTripPlanner {
/* Indicate that no routes where found, either shows the "No route found"
* message, or in case of loading additional (later/earlier) results,
* indicate no such where found, so that the sidebar can disable the
- * "load more" functionallity as appropriate.
+ * "load more" functionality as appropriate.
*/
_noRouteFound() {
if (this._extendPrevious) {
@@ -598,7 +598,7 @@ var OpenTripPlanner = class OpenTripPlanner {
if (itineraries.length === 0) {
/* don't reset query points, unlike for turn-based
- * routing, since options and timeing might influence
+ * routing, since options and timing might influence
* results */
this._noRouteFound();
} else {
@@ -639,7 +639,7 @@ var OpenTripPlanner = class OpenTripPlanner {
if (!leg.transit) {
/* if a walking leg exceeds the maximum desired walking
* distance, or for a leg "in-between" two transit legs, if
- * there's insufficent switch time
+ * there's insufficient switch time
*/
if (leg.distance > MAX_WALKING_DISTANCE) {
return false;
@@ -679,7 +679,7 @@ var OpenTripPlanner = class OpenTripPlanner {
});
} else {
/* filter out itineraries where there are intermediate walking legs
- * that are too narrow time-wise, this is nessesary since running
+ * that are too narrow time-wise, this is necessary since running
* OTP with only transit data can result in some over-optimistic
* walking itinerary legs, since it will use "line-of-sight"
* distances.
@@ -725,7 +725,7 @@ var OpenTripPlanner = class OpenTripPlanner {
callback(newItinerary);
});
} else if (itinerary.legs.length === 1 && itinerary.legs[0].transit) {
- // special case if there is extactly one transit leg
+ // special case if there is exactly one transit leg
let leg = itinerary.legs[0];
let startLeg = GraphHopperTransit.createQueryPointForCoord(leg.fromCoordinate);
let endLeg = GraphHopperTransit.createQueryPointForCoord(leg.toCoordinate);
diff --git a/src/transitplugins/resrobot.js b/src/transitplugins/resrobot.js
index 39c1cb3b..113f5faf 100644
--- a/src/transitplugins/resrobot.js
+++ b/src/transitplugins/resrobot.js
@@ -306,7 +306,7 @@ var Resrobot = class Resrobot {
/* Indicate that no routes where found, either shows the "No route found"
* message, or in case of loading additional (later/earlier) results,
* indicate no such where found, so that the sidebar can disable the
- * "load more" functionallity as appropriate.
+ * "load more" functionality as appropriate.
*/
_noRouteFound() {
if (this._extendPrevious) {
@@ -393,7 +393,7 @@ var Resrobot = class Resrobot {
*/
_canLegBeIgnored(leg) {
if (!leg.isTransit) {
- /* check that the distance is below the threashold and also that
+ /* check that the distance is below the threshold and also that
* the duration is below 1 min, since the API in some occasions
* apparently gives distance 0, even though a walking leg has
* longer duration, and spans a distance in coordinates.
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 8ab7b263..3ef85fbb 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];
@@ -348,7 +348,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',