[librsvg] Fix typos, courtesy of codespell
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Fix typos, courtesy of codespell
- Date: Fri, 19 Jun 2020 18:29:33 +0000 (UTC)
commit 765dae735d32711e00b87b536df52947bf246400
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Jun 19 13:29:07 2020 -0500
Fix typos, courtesy of codespell
https://github.com/codespell-project/codespell
doc/Makefile.am | 2 +-
librsvg/rsvg-handle.c | 6 +++---
librsvg/rsvg-pixbuf.c | 4 ++--
rsvg_internals/src/css.rs | 2 +-
rsvg_internals/src/document.rs | 2 +-
rsvg_internals/src/gradient.rs | 2 +-
rsvg_internals/src/node.rs | 2 +-
rsvg_internals/src/path_builder.rs | 2 +-
rsvg_internals/src/path_parser.rs | 2 +-
tests/README.md | 2 +-
10 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/doc/Makefile.am b/doc/Makefile.am
index ffa4c668..11aca9d0 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -85,7 +85,7 @@ content_files = \
recommendations.xml \
version.xml
-# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
+# SGML files where gtk-doc abbreviations (#GtkWidget) are expanded
# These files must be listed here *and* in content_files
# e.g. expand_content_files=running.sgml
expand_content_files =
diff --git a/librsvg/rsvg-handle.c b/librsvg/rsvg-handle.c
index f3539f0a..8902460d 100644
--- a/librsvg/rsvg-handle.c
+++ b/librsvg/rsvg-handle.c
@@ -609,8 +609,8 @@ rsvg_handle_new_from_stream_sync (GInputStream *input_stream,
* Deprecated: 2.46. Use rsvg_handle_read_stream_sync() or the constructor
* functions rsvg_handle_new_from_gfile_sync() or
* rsvg_handle_new_from_stream_sync(). This function is deprecated because it
- * will accumlate data from the @buf in memory until rsvg_handle_close() gets
- * called. To avoid a big temporary buffer, use the suggested funtions, which
+ * will accumulate data from the @buf in memory until rsvg_handle_close() gets
+ * called. To avoid a big temporary buffer, use the suggested functions, which
* take a #GFile or a #GInputStream and do not require a temporary buffer.
**/
gboolean
@@ -1353,7 +1353,7 @@ rsvg_handle_render_layer (RsvgHandle *handle,
* @out_logical_rect: (out)(optional): Place to store the logical rectangle of the element.
* @error: (optional): a location to store a #GError, or %NULL
*
- * Computes the ink rectangle and logical rectangle of a singe SVG element.
+ * Computes the ink rectangle and logical rectangle of a single SVG element.
*
* While `rsvg_handle_get_geometry_for_layer` computes the geometry of an SVG element subtree with
* its transformation matrix, this other function will compute the element's geometry
diff --git a/librsvg/rsvg-pixbuf.c b/librsvg/rsvg-pixbuf.c
index 6299e759..e86db8e7 100644
--- a/librsvg/rsvg-pixbuf.c
+++ b/librsvg/rsvg-pixbuf.c
@@ -108,7 +108,7 @@ rsvg_pixbuf_from_file_at_zoom (const gchar *filename,
* @x_zoom: The horizontal zoom factor
* @y_zoom: The vertical zoom factor
* @max_width: The requested max width
- * @max_height: The requested max heigh
+ * @max_height: The requested max height
* @error: return location for errors
*
* Loads a new #GdkPixbuf from @filename and returns it. This pixbuf is scaled
@@ -160,7 +160,7 @@ rsvg_pixbuf_from_file_at_size (const gchar *filename,
* rsvg_pixbuf_from_file_at_max_size:
* @filename: A file name
* @max_width: The requested max width
- * @max_height: The requested max heigh
+ * @max_height: The requested max height
* @error: return location for errors
*
* Loads a new #GdkPixbuf from @filename and returns it. This pixbuf is uniformly
diff --git a/rsvg_internals/src/css.rs b/rsvg_internals/src/css.rs
index 15a5a101..a6de029b 100644
--- a/rsvg_internals/src/css.rs
+++ b/rsvg_internals/src/css.rs
@@ -36,7 +36,7 @@
//! **declarations**, one for the `fill` **property** and one for the
//! `stroke` property.
//!
-//! After ther first qualified rule, we have a second qualified rule with
+//! After the first qualified rule, we have a second qualified rule with
//! a single selector for the `#baz` id, with a single declaration for the
//! `stroke-width` property.
//!
diff --git a/rsvg_internals/src/document.rs b/rsvg_internals/src/document.rs
index 76250817..dac32ac7 100644
--- a/rsvg_internals/src/document.rs
+++ b/rsvg_internals/src/document.rs
@@ -98,7 +98,7 @@ impl Document {
/// Runs the CSS cascade on the document tree
///
- /// This uses the deafault UserAgent stylesheet, the document's internal stylesheets,
+ /// This uses the default UserAgent stylesheet, the document's internal stylesheets,
/// plus an extra set of stylesheets supplied by the caller.
pub fn cascade(&mut self, extra: &[Stylesheet]) {
css::cascade(&mut self.tree, &UA_STYLESHEETS, &self.stylesheets, extra);
diff --git a/rsvg_internals/src/gradient.rs b/rsvg_internals/src/gradient.rs
index ad319e89..29790301 100644
--- a/rsvg_internals/src/gradient.rs
+++ b/rsvg_internals/src/gradient.rs
@@ -37,7 +37,7 @@ struct ColorStop {
opacity: UnitInterval,
}
-// gradientUnits attibute; its default is objectBoundingBox
+// gradientUnits attribute; its default is objectBoundingBox
coord_units!(GradientUnits, CoordUnits::ObjectBoundingBox);
/// spreadMethod attribute for gradients
diff --git a/rsvg_internals/src/node.rs b/rsvg_internals/src/node.rs
index 125edaa7..a6bdd850 100644
--- a/rsvg_internals/src/node.rs
+++ b/rsvg_internals/src/node.rs
@@ -142,7 +142,7 @@ impl<'a> CascadedValues<'a> {
/// `values`
///
/// This is for the `<use>` element, which draws the element which it references with the
- /// `<use>`'s own cascade, not wih the element's original cascade.
+ /// `<use>`'s own cascade, not with the element's original cascade.
pub fn new_from_values(node: &'a Node, values: &ComputedValues) -> CascadedValues<'a> {
let mut v = values.clone();
node.borrow_element()
diff --git a/rsvg_internals/src/path_builder.rs b/rsvg_internals/src/path_builder.rs
index c67c1903..75492a33 100644
--- a/rsvg_internals/src/path_builder.rs
+++ b/rsvg_internals/src/path_builder.rs
@@ -54,7 +54,7 @@ impl CubicBezierCurve {
}
/// When attempting to compute the center parameterization of the arc,
-/// out of range parameters may see an arc omited or treated as a line.
+/// out of range parameters may see an arc omitted or treated as a line.
pub enum ArcParameterization {
/// Center parameterization of the arc.
CenterParameters {
diff --git a/rsvg_internals/src/path_parser.rs b/rsvg_internals/src/path_parser.rs
index fa0b973b..9154a36d 100644
--- a/rsvg_internals/src/path_parser.rs
+++ b/rsvg_internals/src/path_parser.rs
@@ -223,7 +223,7 @@ struct PathParser<'b> {
// as specified in https://www.w3.org/TR/SVG/paths.html#PathDataBNF
// Some peculiarities:
//
-// - SVG allows optional commas inside coordiante pairs, and between
+// - SVG allows optional commas inside coordinate pairs, and between
// coordinate pairs. So, for example, these are equivalent:
//
// M 10 20 30 40
diff --git a/tests/README.md b/tests/README.md
index f7ae781a..3744e712 100644
--- a/tests/README.md
+++ b/tests/README.md
@@ -284,7 +284,7 @@ public APIs should get tested here.
## Loading tests for `loading.c`
These test the code that decompresses compressed SVGs and feeds the
-XML reader, by tring to load SVG data one or two bytes at a time. The
+XML reader, by trying to load SVG data one or two bytes at a time. The
SVG and SVGZ images are in the `fixtures/loading` directory.
## Crash tests for `crash.c`
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]