diff options
| author | Fritz Rehde <fritzrehde.work@gmail.com> | 2023-10-30 23:25:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-30 23:25:28 +0100 |
| commit | c3114fa380d80e7268e14d631b08511b2ebf58ec (patch) | |
| tree | a0c4faba3a8dc8aa131d30d8eaba703da39c017e /crates/typst-library | |
| parent | a5d72c2ac16a2608d140ac0b6d5f388b7c4ae411 (diff) | |
Fixed typos (#2524)
Diffstat (limited to 'crates/typst-library')
| -rw-r--r-- | crates/typst-library/src/layout/par.rs | 2 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/spacing.rs | 2 | ||||
| -rw-r--r-- | crates/typst-library/src/meta/figure.rs | 2 | ||||
| -rw-r--r-- | crates/typst-library/src/text/quote.rs | 6 | ||||
| -rw-r--r-- | crates/typst-library/src/visualize/image.rs | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/crates/typst-library/src/layout/par.rs b/crates/typst-library/src/layout/par.rs index cfc20416..10f78ef2 100644 --- a/crates/typst-library/src/layout/par.rs +++ b/crates/typst-library/src/layout/par.rs @@ -808,7 +808,7 @@ fn shape_range<'a>( let mut cursor = range.start; // Group by embedding level and script. If the text's script is explicitly - // set (rather than inferred from the glpyhs), we keep the script at an + // set (rather than inferred from the glyphs), we keep the script at an // unchanging `Script::Unknown` so that only level changes cause breaks. for i in range.clone() { if !bidi.text.is_char_boundary(i) { diff --git a/crates/typst-library/src/layout/spacing.rs b/crates/typst-library/src/layout/spacing.rs index cf69f6d9..9af54237 100644 --- a/crates/typst-library/src/layout/spacing.rs +++ b/crates/typst-library/src/layout/spacing.rs @@ -31,7 +31,7 @@ pub struct HElem { /// next to weak spacing, you can explicitly write `[#" "]` (for a normal /// space) or `[~]` (for a non-breaking space). The latter can be useful to /// create a construct that always attaches to the preceding word with one - /// non-breaking space, independently of wether a markup space existed in + /// non-breaking space, independently of whether a markup space existed in /// front or not. /// /// ```example diff --git a/crates/typst-library/src/meta/figure.rs b/crates/typst-library/src/meta/figure.rs index 0a02df57..bed2071a 100644 --- a/crates/typst-library/src/meta/figure.rs +++ b/crates/typst-library/src/meta/figure.rs @@ -61,7 +61,7 @@ use crate::visualize::ImageElem; /// breakable and non-breakable blocks. /// /// # Caption customization -/// You can modify the apperance of the figure's caption with its associated +/// You can modify the appearance of the figure's caption with its associated /// [`caption`]($figure.caption) function. In the example below, we emphasize /// all captions: /// diff --git a/crates/typst-library/src/text/quote.rs b/crates/typst-library/src/text/quote.rs index 13a95436..01d94114 100644 --- a/crates/typst-library/src/text/quote.rs +++ b/crates/typst-library/src/text/quote.rs @@ -8,7 +8,7 @@ use crate::prelude::*; /// # Example /// ```example /// Plato is often misquoted as the author of #quote[I know that I know -/// nothing], however, this is a derivation form his orginal quote: +/// nothing], however, this is a derivation form his original quote: /// #set quote(block: true) /// #quote(attribution: [Plato])[ /// ... ἔοικα γοῦν τούτου γε σμικρῷ τινι αὐτῷ τούτῳ σοφώτερος εἶναι, ὅτι @@ -92,7 +92,7 @@ pub struct QuoteElem { /// ``` /// /// Note that bilbiography styles which do not include the author in the - /// citation (label, numberic and notes) currently produce attributions such + /// citation (label, numeric and notes) currently produce attributions such /// as `[---#super[1]]` or `[--- [1]]`, this will be fixed soon with CSL /// support. In the mean time you can simply cite yourself: /// ```example @@ -161,7 +161,7 @@ impl Show for QuoteElem { // TODO: these should use the citation-format attribute, once CSL // is implemented and retrieve the authors for non-author formats - // themeselves, see: + // themselves, see: // - https://github.com/typst/typst/pull/2252#issuecomment-1741146989 // - https://github.com/typst/typst/pull/2252#issuecomment-1744634132 Ok(match bib.style(styles) { diff --git a/crates/typst-library/src/visualize/image.rs b/crates/typst-library/src/visualize/image.rs index 05a9c352..931e38c6 100644 --- a/crates/typst-library/src/visualize/image.rs +++ b/crates/typst-library/src/visualize/image.rs @@ -128,7 +128,7 @@ impl Layout for ImageElem { styles: StyleChain, regions: Regions, ) -> SourceResult<Fragment> { - // Take the format that was explicitly defined, or parse the extention, + // Take the format that was explicitly defined, or parse the extension, // or try to detect the format. let data = self.data(); let format = match self.format(styles) { |
