Skip to content

Commit

Permalink
Fix typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinballing committed Feb 22, 2024
1 parent 198d586 commit 550b53b
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/MapModel/MapModel-Shared/OcadImport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1914,7 +1914,7 @@ PointF[] PointsFromOcadCoord(OcadCoord[] coords)
// 3. holes when none are allowed.
// If holes are allowed, counts how many there are.
// Also returns if there are any cutout flags.
// CONDIER: we should somehow log these errors and show them to the user.
// CONSIDER: we should somehow log these errors and show them to the user.
#if TEST
internal
#endif
Expand Down
6 changes: 3 additions & 3 deletions src/MapModel/MapModel-Shared/OpenMapperImport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1412,14 +1412,14 @@ private TemplateInfo ImportTemplateInfo(OpenMapperTemplate openMapperTemplate, b
}
catch (Exception) {
// An argument exception occurs in the template info has bad characters. Other weird exceptions are possible.
// Just use the absoluate or relative name in this case.
// Just use the absolute or relative name in this case.
absoluteFileName = string.IsNullOrWhiteSpace(openMapperTemplate.path) ? openMapperTemplate.relPath : openMapperTemplate.path;
}
}

if (openMapperTemplate.georef) {
// CONSIDER: This isn't correct if the template is georeferenced with a different coordindate system than the map.
// Probaly should check crs_spec, and do something (what??) if the coordinate systems are different.
// CONSIDER: This isn't correct if the template is georeferenced with a different coordinate system than the map.
// Probably should check crs_spec, and do something (what??) if the coordinate systems are different.
float[] worldFileParameters = ReadWorldFile(absoluteFileName);
if (worldFileParameters != null) {
Size pixelSize = BitmapPixelSize(absoluteFileName);
Expand Down
4 changes: 2 additions & 2 deletions src/MapModel/MapModel-Shared/SymPath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ internal static double EuclidDistance(PointF pt1, PointF pt2) {
return Math.Sqrt(delta1 * delta1 + delta2 * delta2);
}

// Determines the Bizzarro distance between two points. This should be just the Pythagorian formula, but
// Determines the Bizzarro distance between two points. This should be just the Pythagorean formula, but
// for unknown reasons OCAD uses this metric for text along a path, and for dashes along a path. It makes no sense AT ALL.
internal static double BizzarroDistance(PointF point1, PointF point2)
{
Expand Down Expand Up @@ -1848,7 +1848,7 @@ public override string ToString()
StringBuilder builder = new StringBuilder();
for (int i = 0; i < kinds.Length; i++) {
if (i != 0)
builder.Append("--"); // seperate points with two dashes.
builder.Append("--"); // separate points with two dashes.

switch (kinds[i]) {
case PointKind.Normal: builder.Append('N'); break;
Expand Down
2 changes: 1 addition & 1 deletion src/MapModel/MapModel-Shared/Symbol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ public TextSymbol(TextSymDef def, string[] text, PointF location, float angle, f
this.horizAlignment = horizAlignment;
this.vertAlignment = vertAlignment;

// We break the text into lines seperated by paragraph marks. We also ignore an initial
// We break the text into lines separated by paragraph marks. We also ignore an initial
// newline for OCAD compatibility. We can't just remove that on import, or else roundtripping
// an object with two initial newlines wouldn't work.
if (width > 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/PurplePen/ChangeEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public static void ChangeControlExchange(EventDB eventDB, Id<CourseControl> cour
}
}

// Change the event title. Seperate lines with "|".
// Change the event title. separate lines with "|".
public static void ChangeEventTitle(EventDB eventDB, string newTitle)
{
Event e = eventDB.GetEvent();
Expand Down
2 changes: 1 addition & 1 deletion src/PurplePen/Reports.cs
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ internal string CreateCrossReferenceReport(EventDB eventDB)
return xrefString;
}

// Convert set of ordinals to command seperated string. negative goes to "*".
// Convert set of ordinals to command separated string. negative goes to "*".
private string XrefString(SortedSet<int> set)
{
if (set == null || set.Count == 0)
Expand Down
2 changes: 1 addition & 1 deletion src/PurplePen/symbols.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ for the symbols.
plural-modifiers - true/false if the language uses plural forms of modifiers that modify plural nouns (default: false)
gender-modifiers - true/false if the language uses gendered forms of modifiers depending on the
gender of the object being modified (default: false)
genders - list of genders, seperated by commas, if gender-modifiers is true
genders - list of genders, separated by commas, if gender-modifiers is true
cased-nouns - true/false if the language changes the case of nouns based on modifiers
cases - list of cases, separated by commas, if cased-nouns is true. First must be the default case
if no modifier is present.
Expand Down
2 changes: 1 addition & 1 deletion src/TestFiles/desclocalize/symbols-to-merge.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ for the symbols.
plural-modifiers - true/false if the language uses plural forms of modifiers that modify plural nouns (default: false)
gender-modifiers - true/false if the language uses gendered forms of modifiers depending on the
gender of the object being modified (default: false)
genders - list of genders, seperated by commas, if gender-modifiers is true
genders - list of genders, separated by commas, if gender-modifiers is true
Expand Down
2 changes: 1 addition & 1 deletion src/TestFiles/desclocalize/symbols.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ for the symbols.
plural-modifiers - true/false if the language uses plural forms of modifiers that modify plural nouns (default: false)
gender-modifiers - true/false if the language uses gendered forms of modifiers depending on the
gender of the object being modified (default: false)
genders - list of genders, seperated by commas, if gender-modifiers is true
genders - list of genders, separated by commas, if gender-modifiers is true
Expand Down
2 changes: 1 addition & 1 deletion src/TestFiles/desclocalize/symbols_working.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ for the symbols.
plural-modifiers - true/false if the language uses plural forms of modifiers that modify plural nouns (default: false)
gender-modifiers - true/false if the language uses gendered forms of modifiers depending on the
gender of the object being modified (default: false)
genders - list of genders, seperated by commas, if gender-modifiers is true
genders - list of genders, separated by commas, if gender-modifiers is true
Expand Down
2 changes: 1 addition & 1 deletion src/TestFiles/textifier/de_symbols.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ for the symbols.
plural-modifiers - true/false if the language uses plural forms of modifiers that modify plural nouns (default: false)
gender-modifiers - true/false if the language uses gendered forms of modifiers depending on the
gender of the object being modified (default: false)
genders - list of genders, seperated by commas, if gender-modifiers is true
genders - list of genders, separated by commas, if gender-modifiers is true
Expand Down
2 changes: 1 addition & 1 deletion src/TestFiles/textifier/pl-symbols.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ for the symbols.
plural-modifiers - true/false if the language uses plural forms of modifiers that modify plural nouns (default: false)
gender-modifiers - true/false if the language uses gendered forms of modifiers depending on the
gender of the object being modified (default: false)
genders - list of genders, seperated by commas, if gender-modifiers is true
genders - list of genders, separated by commas, if gender-modifiers is true
cased-nouns - true/false if the language changes the case of nouns based on modifiers
cases - list of cases, separated by commas, if cased-nouns is true. First must be the default case
if no modifier is present.
Expand Down
2 changes: 1 addition & 1 deletion src/Tools/SymbolImages/symbols.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ for the symbols.
plural-modifiers - true/false if the language uses plural forms of modifiers that modify plural nouns (default: false)
gender-modifiers - true/false if the language uses gendered forms of modifiers depending on the
gender of the object being modified (default: false)
genders - list of genders, seperated by commas, if gender-modifiers is true
genders - list of genders, separated by commas, if gender-modifiers is true
cased-nouns - true/false if the language changes the case of nouns based on modifiers
cases - list of cases, separated by commas, if cased-nouns is true. First must be the default case
if no modifier is present.
Expand Down

0 comments on commit 550b53b

Please sign in to comment.