summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/typst-docs/src/model.rs2
-rw-r--r--crates/typst-library/src/layout/par.rs2
-rw-r--r--crates/typst-library/src/layout/spacing.rs2
-rw-r--r--crates/typst-library/src/meta/figure.rs2
-rw-r--r--crates/typst-library/src/text/quote.rs6
-rw-r--r--crates/typst-library/src/visualize/image.rs2
-rw-r--r--crates/typst-macros/src/func.rs2
-rw-r--r--crates/typst-syntax/src/node.rs2
-rw-r--r--crates/typst/src/diag.rs6
-rw-r--r--crates/typst/src/eval/mod.rs2
-rw-r--r--crates/typst/src/model/content.rs4
-rw-r--r--docs/guides/guide-for-latex-users.md4
-rw-r--r--tests/ref/layout/pagebreak-parity.pngbin4860 -> 4906 bytes
-rw-r--r--tests/typ/layout/pagebreak-parity.typ2
14 files changed, 19 insertions, 19 deletions
diff --git a/crates/typst-docs/src/model.rs b/crates/typst-docs/src/model.rs
index 46d979a2..580ae0d3 100644
--- a/crates/typst-docs/src/model.rs
+++ b/crates/typst-docs/src/model.rs
@@ -88,7 +88,7 @@ pub struct FuncModel {
pub element: bool,
pub details: Html,
/// This example is only for nested function models. Others can have
- /// their example directly in their detals.
+ /// their example directly in their details.
pub example: Option<Html>,
#[serde(rename = "self")]
pub self_: bool,
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) {
diff --git a/crates/typst-macros/src/func.rs b/crates/typst-macros/src/func.rs
index b67fb909..916cf419 100644
--- a/crates/typst-macros/src/func.rs
+++ b/crates/typst-macros/src/func.rs
@@ -119,7 +119,7 @@ fn parse(stream: TokenStream, item: &syn::ItemFn) -> Result<Func> {
})
}
-/// Parse details about a functino parameter.
+/// Parse details about a function parameter.
fn parse_param(
special: &mut SpecialParams,
params: &mut Vec<Param>,
diff --git a/crates/typst-syntax/src/node.rs b/crates/typst-syntax/src/node.rs
index 9b73dd7f..d9c80a24 100644
--- a/crates/typst-syntax/src/node.rs
+++ b/crates/typst-syntax/src/node.rs
@@ -650,7 +650,7 @@ pub struct SyntaxError {
pub span: Span,
/// The error message.
pub message: EcoString,
- /// Additonal hints to the user, indicating how this error could be avoided
+ /// Additional hints to the user, indicating how this error could be avoided
/// or worked around.
pub hints: EcoVec<EcoString>,
}
diff --git a/crates/typst/src/diag.rs b/crates/typst/src/diag.rs
index 9342606e..d5589678 100644
--- a/crates/typst/src/diag.rs
+++ b/crates/typst/src/diag.rs
@@ -92,7 +92,7 @@ pub struct SourceDiagnostic {
pub message: EcoString,
/// The trace of function calls leading to the problem.
pub trace: EcoVec<Spanned<Tracepoint>>,
- /// Additonal hints to the user, indicating how this problem could be avoided
+ /// Additional hints to the user, indicating how this problem could be avoided
/// or worked around.
pub hints: EcoVec<EcoString>,
}
@@ -256,7 +256,7 @@ pub type HintedStrResult<T> = Result<T, HintedString>;
pub struct HintedString {
/// A diagnostic message describing the problem.
pub message: EcoString,
- /// Additonal hints to the user, indicating how this error could be avoided
+ /// Additional hints to the user, indicating how this error could be avoided
/// or worked around.
pub hints: Vec<EcoString>,
}
@@ -382,7 +382,7 @@ impl From<FileError> for EcoString {
/// A result type with a package-related error.
pub type PackageResult<T> = Result<T, PackageError>;
-/// An error that occured while trying to load a package.
+/// An error that occurred while trying to load a package.
///
/// Some variants have an optional string can give more details, if available.
#[derive(Debug, Clone, Eq, PartialEq, Hash)]
diff --git a/crates/typst/src/eval/mod.rs b/crates/typst/src/eval/mod.rs
index b527bed1..3dea512e 100644
--- a/crates/typst/src/eval/mod.rs
+++ b/crates/typst/src/eval/mod.rs
@@ -1187,7 +1187,7 @@ impl Eval for ast::FuncCall<'_> {
// allowed for functions, types, modules (because they are scopes),
// and symbols (because they have modifiers).
//
- // For dictionaries, it is not allowed because it would be ambigious
+ // For dictionaries, it is not allowed because it would be ambiguous
// (prioritizing associated functions would make an addition of a
// new associated function a breaking change and prioritizing fields
// would break associated functions for certain dictionaries).
diff --git a/crates/typst/src/model/content.rs b/crates/typst/src/model/content.rs
index 9205f4d8..c5aa4e58 100644
--- a/crates/typst/src/model/content.rs
+++ b/crates/typst/src/model/content.rs
@@ -135,8 +135,8 @@ impl Content {
/// Also auto expands sequence of sequences into flat sequence
pub fn sequence_recursive_for_each(&self, f: &mut impl FnMut(&Self)) {
- if let Some(childs) = self.to_sequence() {
- childs.for_each(|c| c.sequence_recursive_for_each(f));
+ if let Some(children) = self.to_sequence() {
+ children.for_each(|c| c.sequence_recursive_for_each(f));
} else {
f(self);
}
diff --git a/docs/guides/guide-for-latex-users.md b/docs/guides/guide-for-latex-users.md
index d0fb92cb..0ac26309 100644
--- a/docs/guides/guide-for-latex-users.md
+++ b/docs/guides/guide-for-latex-users.md
@@ -486,7 +486,7 @@ $ f(x) = (x + 1) / x $
to include more than one value in a sub- or superscript, enclose their contents
in parentheses: `{$x_(a -> epsilon)$}`.
-Since variables in math mode do not need to be preprended with a `#` or a `/`,
+Since variables in math mode do not need to be prepended with a `#` or a `/`,
you can also call functions without these special characters:
```example
@@ -545,7 +545,7 @@ The example below
- sets wide [margins]($page.margin)
- enables [justification]($par.justify), [tighter lines]($par.leading) and
[first-line-indent]($par.first-line-indent)
-- [sets the font]($text.font) to "New Computer Modern", an OpenType derivate of
+- [sets the font]($text.font) to "New Computer Modern", an OpenType derivative of
Computer Modern for both text and [code blocks]($raw)
- disables paragraph [spacing]($block.spacing)
- increases [spacing]($block.spacing) around [headings]($heading)
diff --git a/tests/ref/layout/pagebreak-parity.png b/tests/ref/layout/pagebreak-parity.png
index 8c05dc92..0dbabe7a 100644
--- a/tests/ref/layout/pagebreak-parity.png
+++ b/tests/ref/layout/pagebreak-parity.png
Binary files differ
diff --git a/tests/typ/layout/pagebreak-parity.typ b/tests/typ/layout/pagebreak-parity.typ
index 1cfbd450..4dbf723e 100644
--- a/tests/typ/layout/pagebreak-parity.typ
+++ b/tests/typ/layout/pagebreak-parity.typ
@@ -12,7 +12,7 @@ Sixth
#pagebreak()
Seventh
#pagebreak(to: "odd")
-#page[Nineth]
+#page[Ninth]
---
#set page(width: auto, height: auto)