Skip to content

Commit

Permalink
style: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed Sep 16, 2024
1 parent c44c6ab commit a34871e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
![Hieroglyphic](data/icons/io.github.finefindus.Hieroglyphic.svg)

If you work with LaTeX, you know it's difficult to memorize the names of all the symbols. Hieroglyphic allows you to search through over 1000 different LaTeX symbols by sketching. Once you found the desired symbol you can copy it to the clipboard by clicking on the entry.
Hieroglyphic is powered by a machine learning model, trained on a modfied version of the [detexify data](https://github.com/kirel/detexify-data).
Hieroglyphic is powered by a machine learning model, trained on a modified version of the [detexify data](https://github.com/kirel/detexify-data).



Expand Down
2 changes: 1 addition & 1 deletion data/io.github.finefindus.Hieroglyphic.gschema.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</key>
<key name="contribute-data" type="b">
<default>false</default>
<summary>Whether to constribute recognized strokes</summary>
<summary>Whether to contribute recognized strokes</summary>
</key>
</schema>
</schemalist>
Expand Down
4 changes: 2 additions & 2 deletions scripts/prepare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# Training the model
#
# 1. Run this file. It will generate the traning images,
# 1. Run this file. It will generate the training images,
# split them into train, val and test sets and combine
# them into a tar file.
#
Expand Down Expand Up @@ -73,7 +73,7 @@ def draw_image(strokes):
print(f"Created {created_counter} images")


# split data into trainig data
# split data into training data
print("Splitting data")

os.makedirs(f"images_data{SIZE}/train", exist_ok = True)
Expand Down
2 changes: 1 addition & 1 deletion src/classify/point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl Point {
}
}

/// Check if the given [`Point`] is withhin [`DELTA`] of self.
/// Check if the given [`Point`] is within [`DELTA`] of self.
pub(super) fn approx_eq(&self, p: Point) -> bool {
self.euclidean_distance(&p) < DELTA
}
Expand Down
6 changes: 3 additions & 3 deletions src/classify/rect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ impl Rect {
}
}

/// Rturns whether the Rect is ony a point.
/// Returns whether the Rect is only a point.
pub(super) fn is_point(self) -> bool {
self.lower_left == self.upper_right
}

/// Rturns the width of the rect.
/// Returns the width of the rect.
pub(super) fn width(self) -> f64 {
self.upper_right.x - self.lower_left.x
}

/// Rturns the height of the rect.
/// Returns the height of the rect.
pub(super) fn height(self) -> f64 {
self.upper_right.y - self.lower_left.y
}
Expand Down
2 changes: 1 addition & 1 deletion src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ impl HieroglyphicWindow {
.send_json(strokes)
{
Ok(_) => {
tracing::info!("Sucesfully uploaded data");
tracing::info!("Successfully uploaded data");
}
Err(err) => {
tracing::warn!("Failed to upload strokes: {}", err);
Expand Down

0 comments on commit a34871e

Please sign in to comment.