diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04aa0e8ad..c0931c685 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: - run: cargo doc --workspace --no-deps min-version: - name: Check mininum Rust version + name: Check minimum Rust version runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/crates/typst-cli/src/terminal.rs b/crates/typst-cli/src/terminal.rs index 45b8c82be..cdf22ac54 100644 --- a/crates/typst-cli/src/terminal.rs +++ b/crates/typst-cli/src/terminal.rs @@ -59,7 +59,7 @@ impl TermOut { // We don't want to clear anything that is not a TTY. if self.inner.stream.supports_color() { // First, move the cursor up `lines` lines. - // Then, clear everything between between the cursor to end of screen. + // Then, clear everything between the cursor to end of screen. let mut stream = self.inner.stream.lock(); write!(stream, "\x1B[1F\x1B[0J")?; stream.flush()?; diff --git a/crates/typst-kit/Cargo.toml b/crates/typst-kit/Cargo.toml index 770722c62..de412ac8a 100644 --- a/crates/typst-kit/Cargo.toml +++ b/crates/typst-kit/Cargo.toml @@ -33,7 +33,7 @@ openssl = { workspace = true, optional = true } [features] default = ["fonts", "packages"] -# Add font loading utilitites +# Add font loading utilities fonts = ["dep:fontdb", "fontdb/memmap", "fontdb/fontconfig"] # Add generic downloading utilities diff --git a/crates/typst-kit/src/fonts.rs b/crates/typst-kit/src/fonts.rs index 07a41f4b2..8f85bfdc9 100644 --- a/crates/typst-kit/src/fonts.rs +++ b/crates/typst-kit/src/fonts.rs @@ -161,7 +161,7 @@ impl FontSearcher { let path = match &face.source { Source::File(path) | Source::SharedFile(path, _) => path, // We never add binary sources to the database, so there - // shouln't be any. + // shouldn't be any. Source::Binary(_) => continue, }; diff --git a/crates/typst-kit/src/lib.rs b/crates/typst-kit/src/lib.rs index 4301727fb..d0ea82efc 100644 --- a/crates/typst-kit/src/lib.rs +++ b/crates/typst-kit/src/lib.rs @@ -11,7 +11,7 @@ //! - For math: New Computer Modern Math //! - For code: Deja Vu Sans Mono //! - [download] contains functionality for making simple web requests with -//! status reporting, useful for downloading packages from package registires. +//! status reporting, useful for downloading packages from package registries. //! It is enabled by the `downloads` feature flag, additionally the //! `vendor-openssl` can be used on operating systems other than macOS and //! Windows to vendor OpenSSL when building. diff --git a/crates/typst-kit/src/package.rs b/crates/typst-kit/src/package.rs index 3c9e65293..c5c470db8 100644 --- a/crates/typst-kit/src/package.rs +++ b/crates/typst-kit/src/package.rs @@ -52,13 +52,13 @@ impl PackageStorage { } } - /// Returns a the path at which non-local packages should be stored when + /// Returns the path at which non-local packages should be stored when /// downloaded. pub fn package_cache_path(&self) -> Option<&Path> { self.package_cache_path.as_deref() } - /// Returns a the path at which local packages are stored. + /// Returns the path at which local packages are stored. pub fn package_path(&self) -> Option<&Path> { self.package_path.as_deref() } diff --git a/crates/typst-pdf/src/font.rs b/crates/typst-pdf/src/font.rs index c88c2bfde..eb2c2b3b3 100644 --- a/crates/typst-pdf/src/font.rs +++ b/crates/typst-pdf/src/font.rs @@ -198,7 +198,7 @@ pub fn write_font_descriptor<'a>( #[typst_macros::time(name = "subset font")] fn subset_font(font: &Font, glyph_remapper: &GlyphRemapper) -> Arc> { let data = font.data(); - // TODO: Fail export instead of unwrapping once export diagnoistics exist. + // TODO: Fail export instead of unwrapping once export diagnostics exist. let subsetted = subsetter::subset(data, font.index(), glyph_remapper).unwrap(); let mut data = subsetted.as_ref(); diff --git a/crates/typst-pdf/src/image.rs b/crates/typst-pdf/src/image.rs index 837975013..7bcd83e7f 100644 --- a/crates/typst-pdf/src/image.rs +++ b/crates/typst-pdf/src/image.rs @@ -183,7 +183,7 @@ fn encode_alpha(raster: &RasterImage) -> (Vec, Filter) { /// Encode an SVG into a chunk of PDF objects. #[typst_macros::time(name = "encode svg")] fn encode_svg(svg: &SvgImage) -> (Chunk, Ref) { - // TODO: Don't unwrap once we have export diagostics. + // TODO: Don't unwrap once we have export diagnostics. svg2pdf::to_chunk(svg.tree(), svg2pdf::ConversionOptions::default()).unwrap() } diff --git a/crates/typst-pdf/src/lib.rs b/crates/typst-pdf/src/lib.rs index 9af830bd3..ae05a43b4 100644 --- a/crates/typst-pdf/src/lib.rs +++ b/crates/typst-pdf/src/lib.rs @@ -417,7 +417,7 @@ struct PdfChunk { /// chunk, and should be remapped. /// /// This is a constant (large enough to avoid collisions) and not -/// dependant on self.alloc to allow for better memoization of steps, if +/// dependent on self.alloc to allow for better memoization of steps, if /// needed in the future. const TEMPORARY_REFS_START: i32 = 1_000_000_000; diff --git a/crates/typst-syntax/src/ast.rs b/crates/typst-syntax/src/ast.rs index 5cd28de39..34bd0110a 100644 --- a/crates/typst-syntax/src/ast.rs +++ b/crates/typst-syntax/src/ast.rs @@ -675,7 +675,7 @@ impl<'a> TermItem<'a> { } node! { - /// A mathemathical equation: `$x$`, `$ x^2 $`. + /// A mathematical equation: `$x$`, `$ x^2 $`. Equation } diff --git a/crates/typst-syntax/src/parser.rs b/crates/typst-syntax/src/parser.rs index aa0431e9a..20ff58f0b 100644 --- a/crates/typst-syntax/src/parser.rs +++ b/crates/typst-syntax/src/parser.rs @@ -1789,7 +1789,7 @@ impl<'s> Parser<'s> { fn next_non_trivia(lexer: &mut Lexer<'s>) -> SyntaxKind { loop { let next = lexer.next(); - // Loop is terminatable, because SyntaxKind::End is not a trivia. + // Loop is terminable, because SyntaxKind::End is not a trivia. if !next.is_trivia() { break next; } diff --git a/crates/typst/src/foundations/content.rs b/crates/typst/src/foundations/content.rs index 91c911ed9..9e26b179a 100644 --- a/crates/typst/src/foundations/content.rs +++ b/crates/typst/src/foundations/content.rs @@ -72,7 +72,7 @@ use crate::utils::{fat, singleton, LazyHash, SmallBitSet}; #[derive(Clone, Hash)] #[allow(clippy::derived_hash_with_manual_eq)] pub struct Content { - /// The partially element-dependant inner data. + /// The partially element-dependent inner data. inner: Arc>, /// The element's source code location. span: Span, diff --git a/crates/typst/src/foundations/func.rs b/crates/typst/src/foundations/func.rs index 87f3dc4c7..7ba7496f2 100644 --- a/crates/typst/src/foundations/func.rs +++ b/crates/typst/src/foundations/func.rs @@ -356,7 +356,7 @@ impl Func { /// #show heading.where(level: 2): set text(blue) /// = Section /// == Subsection - /// === Sub-subection + /// === Sub-subsection /// ``` #[func] pub fn where_( diff --git a/crates/typst/src/introspection/locator.rs b/crates/typst/src/introspection/locator.rs index e6a707e91..3e9e5c897 100644 --- a/crates/typst/src/introspection/locator.rs +++ b/crates/typst/src/introspection/locator.rs @@ -62,7 +62,7 @@ use crate::introspection::{Introspector, Location}; /// - A very simple way to generate unique IDs would be to just increase a /// counter for each element. In this setup, (1) is somewhat satisfied: In /// principle, the counter will line up across iterations, but things start to -/// break down once we generate content dependant on introspection since the +/// break down once we generate content dependent on introspection since the /// IDs generated for that new content will shift the IDs for all following /// elements in the document. (2) is not satisfied since an edit in the middle /// of the document shifts all later IDs. (3) is obviously not satisfied. @@ -76,7 +76,7 @@ use crate::introspection::{Introspector, Location}; /// e.g. `#for _ in range(5) { figure(..) }`. To handle this case, we can then /// disambiguate elements with the same span with an increasing counter. In /// this setup, (1) is mostly satisfied: Unless we do stuff like generating -/// colliding counter updates dependant on introspection, things will line up. +/// colliding counter updates dependent on introspection, things will line up. /// (2) is also reasonably well satisfied, as typical edits will only affect /// the single element at the currently edited span. Only if we edit inside of /// a function, loop, or similar construct, we will affect multiple elements. @@ -114,7 +114,7 @@ use crate::introspection::{Introspector, Location}; /// locations assigned during measurement match up exactly with the locations of /// real document elements. Without this guarantee, many introspection-driven /// features (like counters, state, and citations) don't work correctly (since -/// they perform queries dependant on concrete locations). +/// they perform queries dependent on concrete locations). /// /// This is all fine and good, but things get really tricky when the _user_ /// measures such introspecting content since the user isn't kindly managing @@ -168,7 +168,7 @@ impl<'a> Locator<'a> { /// Creates a new synthetic locator. /// - /// This can be used to create a new dependant layout based on an element. + /// This can be used to create a new dependent layout based on an element. /// This is used for layouting footnote entries based on the location /// of the associated footnote. pub fn synthesize(location: Location) -> Self { diff --git a/crates/typst/src/layout/corners.rs b/crates/typst/src/layout/corners.rs index cfd6b7acf..075f51bcf 100644 --- a/crates/typst/src/layout/corners.rs +++ b/crates/typst/src/layout/corners.rs @@ -241,7 +241,7 @@ impl Resolve for Corners { impl Fold for Corners> { fn fold(self, outer: Self) -> Self { - // Usually, folding an inner `None` with an `outer` preferres the + // Usually, folding an inner `None` with an `outer` prefers the // explicit `None`. However, here `None` means unspecified and thus // we want `outer`, so we use `fold_or` to opt into such behavior. self.zip(outer).map(|(inner, outer)| inner.fold_or(outer)) diff --git a/crates/typst/src/layout/inline/line.rs b/crates/typst/src/layout/inline/line.rs index 7115630ef..a7c419776 100644 --- a/crates/typst/src/layout/inline/line.rs +++ b/crates/typst/src/layout/inline/line.rs @@ -225,7 +225,7 @@ fn collect_items<'a>( items } -/// Calls `f` for the the BiDi-reordered ranges of a line. +/// Calls `f` for the BiDi-reordered ranges of a line. fn reorder(p: &Preparation, range: Range, mut f: F) where F: FnMut(Range, bool), diff --git a/crates/typst/src/layout/inline/shaping.rs b/crates/typst/src/layout/inline/shaping.rs index 0b4a17d75..4344192c1 100644 --- a/crates/typst/src/layout/inline/shaping.rs +++ b/crates/typst/src/layout/inline/shaping.rs @@ -88,7 +88,7 @@ pub struct ShapedGlyph { #[derive(Debug, Clone, Default)] pub struct Adjustability { - /// The left and right strechability + /// The left and right stretchability pub stretchability: (Em, Em), /// The left and right shrinkability pub shrinkability: (Em, Em), diff --git a/crates/typst/src/layout/pages/collect.rs b/crates/typst/src/layout/pages/collect.rs index f1db63c7a..934fa415c 100644 --- a/crates/typst/src/layout/pages/collect.rs +++ b/crates/typst/src/layout/pages/collect.rs @@ -117,7 +117,7 @@ pub fn collect<'a>( items } -/// Migrates trailing start tags without accompanying end tags tags from before +/// Migrates trailing start tags without accompanying end tags from before /// a pagebreak to after it. Returns the position right after the last /// non-migrated tag. /// diff --git a/crates/typst/src/layout/sides.rs b/crates/typst/src/layout/sides.rs index 75d4e25b3..61d6a1fd2 100644 --- a/crates/typst/src/layout/sides.rs +++ b/crates/typst/src/layout/sides.rs @@ -254,7 +254,7 @@ impl Resolve for Sides { impl Fold for Sides> { fn fold(self, outer: Self) -> Self { - // Usually, folding an inner `None` with an `outer` preferres the + // Usually, folding an inner `None` with an `outer` prefers the // explicit `None`. However, here `None` means unspecified and thus // we want `outer`, so we use `fold_or` to opt into such behavior. self.zip(outer).map(|(inner, outer)| inner.fold_or(outer)) diff --git a/crates/typst/src/math/equation.rs b/crates/typst/src/math/equation.rs index ffefea741..bf5ef9dd4 100644 --- a/crates/typst/src/math/equation.rs +++ b/crates/typst/src/math/equation.rs @@ -513,7 +513,7 @@ fn add_equation_number( equation } -/// Resize the equation's frame accordingly so that it emcompasses the number. +/// Resize the equation's frame accordingly so that it encompasses the number. fn resize_equation( equation: &mut Frame, number: &Frame, diff --git a/crates/typst/src/math/matrix.rs b/crates/typst/src/math/matrix.rs index 345c66050..a8b8bacf3 100644 --- a/crates/typst/src/math/matrix.rs +++ b/crates/typst/src/math/matrix.rs @@ -683,7 +683,7 @@ impl Fold for Augment { (Smart::Custom(inner), Smart::Custom(outer)) => { Smart::Custom(inner.fold(outer)) } - // Usually, folding an inner `auto` with an `outer` preferres + // Usually, folding an inner `auto` with an `outer` prefers // the explicit `auto`. However, here `auto` means unspecified // and thus we want `outer`. (inner, outer) => inner.or(outer), diff --git a/crates/typst/src/model/enum.rs b/crates/typst/src/model/enum.rs index 32a400e82..7976a537b 100644 --- a/crates/typst/src/model/enum.rs +++ b/crates/typst/src/model/enum.rs @@ -140,7 +140,7 @@ pub struct EnumElem { /// #set enum(numbering: "1.a)", full: true) /// + Cook /// + Heat water - /// + Add integredients + /// + Add ingredients /// + Eat /// ``` #[default(false)] diff --git a/crates/typst/src/realize.rs b/crates/typst/src/realize.rs index 775935549..97c53ace8 100644 --- a/crates/typst/src/realize.rs +++ b/crates/typst/src/realize.rs @@ -257,7 +257,7 @@ fn visit<'a>( return Ok(()); } - // Apply show rules rules and preparation. + // Apply show rules and preparation. if visit_show_rules(s, content, styles)? { return Ok(()); } diff --git a/crates/typst/src/visualize/color.rs b/crates/typst/src/visualize/color.rs index e8ae4f900..0af520941 100644 --- a/crates/typst/src/visualize/color.rs +++ b/crates/typst/src/visualize/color.rs @@ -1947,7 +1947,7 @@ fn map() -> Module { Module::new("map", scope) } -/// Defines a tradient preset as a series of colors expressed as u32s. +/// Defines a gradient preset as a series of colors expressed as u32s. macro_rules! preset { ($name:ident; $($colors:literal),* $(,)*) => { fn $name() -> Array { diff --git a/crates/typst/src/visualize/image/mod.rs b/crates/typst/src/visualize/image/mod.rs index aeebb4716..bb1b2b50a 100644 --- a/crates/typst/src/visualize/image/mod.rs +++ b/crates/typst/src/visualize/image/mod.rs @@ -370,7 +370,7 @@ impl Image { Ok(Self(Arc::new(LazyHash::new(Repr { kind, alt })))) } - /// Create a possibly font-dependant image from a buffer and a format. + /// Create a possibly font-dependent image from a buffer and a format. #[comemo::memoize] #[typst_macros::time(name = "load image")] pub fn with_fonts( diff --git a/crates/typst/src/visualize/shape.rs b/crates/typst/src/visualize/shape.rs index 633872ccf..56ecd0296 100644 --- a/crates/typst/src/visualize/shape.rs +++ b/crates/typst/src/visualize/shape.rs @@ -51,7 +51,7 @@ pub struct RectElem { /// - `{auto}` for a stroke of `{1pt + black}` if and if only if no fill is /// given. /// - Any kind of [stroke] - /// - A dictionary describing the stroke for each side inidvidually. The + /// - A dictionary describing the stroke for each side individually. The /// dictionary can contain the following keys in order of precedence: /// - `top`: The top stroke. /// - `right`: The right stroke. diff --git a/docs/changelog.md b/docs/changelog.md index 42cd40274..88c029c50 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -861,7 +861,7 @@ description: | - Import autocompletion now only shows the latest package version until a colon is typed - Fixed autocompletion for dictionary key containing a space - - Fixed autocompletion for for loops + - Fixed autocompletion for `for` loops - Command line interface - Added `typst query` subcommand to execute a @@ -895,7 +895,7 @@ description: | - Development - Extracted parser and syntax tree into `typst-syntax` crate - - The `World::today` implementation of Typst dependants may need fixing if + - The `World::today` implementation of Typst dependents may need fixing if they have the same [bug](https://github.com/typst/typst/issues/1842) that the CLI world had @@ -1009,7 +1009,7 @@ description: | path must contain `[{n}]` if the document has multiple pages. - Added `--diagnostic-format=short` for Unix-style short diagnostics - Doesn't emit color codes anymore if stderr isn't a TTY - - Now sets the correct exit when invoked with a non-existent file + - Now sets the correct exit when invoked with a nonexistent file - Now ignores UTF-8 BOM in Typst files - Miscellaneous Improvements diff --git a/docs/guides/guide-for-latex-users.md b/docs/guides/guide-for-latex-users.md index 8c3b56013..c845747b3 100644 --- a/docs/guides/guide-for-latex-users.md +++ b/docs/guides/guide-for-latex-users.md @@ -469,7 +469,7 @@ Aside from the official package repository, you might also want to check out the compiles a curated list of resources created for Typst. If you need to load functions and variables from another file within your -project, for example to use a template, you can use use the same +project, for example to use a template, you can use the same [`{import}`]($scripting/#modules) statement with a file name rather than a package specification. To instead include the textual content of another file, you can use an [`{include}`]($scripting/#modules) statement. It will retrieve diff --git a/docs/guides/page-setup.md b/docs/guides/page-setup.md index f37ec3b4d..0c5bdf6dd 100644 --- a/docs/guides/page-setup.md +++ b/docs/guides/page-setup.md @@ -188,7 +188,7 @@ conditionally remove the header on the first page: This example may look intimidating, but let's break it down: By using the `{context}` keyword, we are telling Typst that the header depends on where we are in the document. We then ask Typst if the page [counter] is larger than one -at our (context-dependant) current position. The page counter starts at one, so +at our (context-dependent) current position. The page counter starts at one, so we are skipping the header on a single page. Counters may have multiple levels. This feature is used for items like headings, but the page counter will always have a single level, so we can just look at the first one. diff --git a/docs/guides/tables.md b/docs/guides/tables.md index 9a61117d9..39eb39f6f 100644 --- a/docs/guides/tables.md +++ b/docs/guides/tables.md @@ -714,7 +714,7 @@ very first and last line. align: center + horizon, table.header[Technique][Advantage][Drawback], [Diegetic], [Immersive], [May be contrived], - [Extradiegetic], [Breaks immersion], [Obstrusive], + [Extradiegetic], [Breaks immersion], [Obtrusive], [Omitted], [Fosters engagement], [May fracture audience], ) ``` @@ -746,7 +746,7 @@ below the first row: >>> align: center + horizon, >>> table.header[Technique][Advantage][Drawback], >>> [Diegetic], [Immersive], [May be contrived], ->>> [Extradiegetic], [Breaks immersion], [Obstrusive], +>>> [Extradiegetic], [Breaks immersion], [Obtrusive], >>> [Omitted], [Fosters engagement], [May fracture audience], >>> ) ``` @@ -777,7 +777,7 @@ The next example shows how to draw all but the outer lines: >>> align: center + horizon, >>> table.header[Technique][Advantage][Drawback], >>> [Diegetic], [Immersive], [May be contrived], ->>> [Extradiegetic], [Breaks immersion], [Obstrusive], +>>> [Extradiegetic], [Breaks immersion], [Obtrusive], >>> [Omitted], [Fosters engagement], [May fracture audience], >>> ) ``` @@ -812,7 +812,7 @@ calendar. >>> align: center + horizon, >>> table.header[Technique][Advantage][Drawback], >>> [Diegetic], [Immersive], [May be contrived], ->>> [Extradiegetic], [Breaks immersion], [Obstrusive], +>>> [Extradiegetic], [Breaks immersion], [Obtrusive], >>> [Omitted], [Fosters engagement], [May fracture audience], >>> ) ``` diff --git a/docs/reference/context.md b/docs/reference/context.md index 8c6ee9de2..0ea889750 100644 --- a/docs/reference/context.md +++ b/docs/reference/context.md @@ -59,11 +59,11 @@ context is known. The body of a context expression may be evaluated zero, one, or multiple times, depending on how many different places it is put into. ## Location context -Context can not only give us access to set rule values. It can also let us know +Context cannot only give us access to set rule values. It can also let us know _where_ in the document we currently are, relative to other elements, and absolutely on the pages. We can use this information to create very flexible interactions between different document parts. This underpins features like -heading numbering, the table of contents, or page headers dependant on section +heading numbering, the table of contents, or page headers dependent on section headings. Some functions like [`counter.get`]($counter.get) implicitly access the current diff --git a/docs/src/main.rs b/docs/src/main.rs index 3f53dfc84..d87e359b9 100644 --- a/docs/src/main.rs +++ b/docs/src/main.rs @@ -90,7 +90,7 @@ struct Args { /// This option controls where to spit them out. The HTML generation will /// assume that this output directory is served at `${base_url}/assets/*`. /// The default is `assets`. For example, if the base URL is `/docs/` then - /// the gemerated HTML might look like `` + /// the generated HTML might look like `` /// even though the `--assets-dir` was set to `/tmp/images` or something. #[arg(long, default_value = "assets")] assets_dir: PathBuf, diff --git a/tests/ref/emph-syntax.png b/tests/ref/emph-syntax.png index 66f117a8e..32b7de71f 100644 Binary files a/tests/ref/emph-syntax.png and b/tests/ref/emph-syntax.png differ diff --git a/tests/ref/hyphenate-es-captalized-names.png b/tests/ref/hyphenate-es-capitalized-names.png similarity index 100% rename from tests/ref/hyphenate-es-captalized-names.png rename to tests/ref/hyphenate-es-capitalized-names.png diff --git a/tests/suite/foundations/dict.typ b/tests/suite/foundations/dict.typ index c1cf3f21e..af9ad5e1a 100644 --- a/tests/suite/foundations/dict.typ +++ b/tests/suite/foundations/dict.typ @@ -170,7 +170,7 @@ dict.nonfunc() } ---- dict-dynamic-uplicate-key --- +--- dict-dynamic-duplicate-key --- #let a = "hello" #let b = "world" #let c = "value" diff --git a/tests/suite/foundations/str.typ b/tests/suite/foundations/str.typ index 0da11c316..56756416d 100644 --- a/tests/suite/foundations/str.typ +++ b/tests/suite/foundations/str.typ @@ -212,7 +212,7 @@ #test(timesum("2:70"), "3:10") #test(timesum("1:20, 2:10, 0:40"), "4:10") ---- stgring-replace --- +--- string-replace --- // Test the `replace` method with `Str` replacements. #test("ABC".replace("", "-"), "-A-B-C-") #test("Ok".replace("Ok", "Nope", count: 0), "Ok") diff --git a/tests/suite/layout/container.typ b/tests/suite/layout/container.typ index 508f1a368..d054175a2 100644 --- a/tests/suite/layout/container.typ +++ b/tests/suite/layout/container.typ @@ -191,7 +191,7 @@ Hello #box(width: 1em, height: 1em, clip: true)[#rect(width: 3em, height: 3em, f world 2 --- block-clip-text --- -// Test cliping text +// Test clipping text #block(width: 5em, height: 2em, clip: false, stroke: 1pt + black)[ But, soft! what light through ] diff --git a/tests/suite/layout/inline/hyphenate.typ b/tests/suite/layout/inline/hyphenate.typ index 2324ba64c..dcacb4f0a 100644 --- a/tests/suite/layout/inline/hyphenate.typ +++ b/tests/suite/layout/inline/hyphenate.typ @@ -102,7 +102,7 @@ Lo que entendemos por nivel léxico-semántico, en cuanto su sentido más gramatical: es aquel que estudia el origen y forma de las palabras de un idioma. ---- hyphenate-es-captalized-names --- +--- hyphenate-es-capitalized-names --- // If the hyphen is followed by a capitalized word we shall not repeat // the hyphen at the next line #set page(width: 6.2cm) diff --git a/tests/suite/math/call.typ b/tests/suite/math/call.typ index bd66c4004..2477d9b6d 100644 --- a/tests/suite/math/call.typ +++ b/tests/suite/math/call.typ @@ -23,7 +23,7 @@ $ pi(a,b,) $ $ pi(a;b) $ --- math-call-2d-semicolon-priority --- -// If the semicolon directlry follows a hash expression, it terminates that +// If the semicolon directly follows a hash expression, it terminates that // instead of indicating 2d arguments. $ mat(#"math" ; "wins") $ $ mat(#"code"; "wins") $ diff --git a/tests/suite/math/multiline.typ b/tests/suite/math/multiline.typ index b6d970f36..8377b93e6 100644 --- a/tests/suite/math/multiline.typ +++ b/tests/suite/math/multiline.typ @@ -63,7 +63,7 @@ Multiple trailing line breaks. #hrule(70pt)$e^(pi i)+1 = 0$ --- math-linebreaking-lr --- -// LR groups prevent linbreaking. +// LR groups prevent linebreaking. #let hrule(x) = box(line(length: x)) #hrule(76pt)$a+b$\ #hrule(74pt)$(a+b)$\ diff --git a/tests/suite/model/emph-strong.typ b/tests/suite/model/emph-strong.typ index 2af8bb160..0c0748e4f 100644 --- a/tests/suite/model/emph-strong.typ +++ b/tests/suite/model/emph-strong.typ @@ -12,7 +12,7 @@ hello_world Nutzer*innen 日本語では、*太字*や_斜体_を使って強調します。 -中文中混有*Strong*和_Empasis_。 +中文中混有*Strong*和_Emphasis_。 // Can contain paragraph in nested content block. _Still #[ diff --git a/tests/suite/model/heading.typ b/tests/suite/model/heading.typ index 5d50eeeec..3be9e52bc 100644 --- a/tests/suite/model/heading.typ +++ b/tests/suite/model/heading.typ @@ -75,6 +75,6 @@ Not in heading --- heading-numbering-hint --- = Heading -// Error: 1:20-1:26 cannot reference heading without numbering -// Hint: 1:20-1:26 you can enable heading numbering with `#set heading(numbering: "1.")` -Can not be used as @intro +// Error: 1:19-1:25 cannot reference heading without numbering +// Hint: 1:19-1:25 you can enable heading numbering with `#set heading(numbering: "1.")` +Cannot be used as @intro diff --git a/tests/suite/styling/set.typ b/tests/suite/styling/set.typ index ca0809776..ea4c0d84e 100644 --- a/tests/suite/styling/set.typ +++ b/tests/suite/styling/set.typ @@ -19,7 +19,7 @@ Hello *#x* - No more fruit --- set-text-override --- -// Test that that block spacing and text style are respected from +// Test that block spacing and text style are respected from // the outside, but the more specific fill is respected. #set par(spacing: 4pt) #set text(style: "italic", fill: eastern) diff --git a/tests/suite/text/font.typ b/tests/suite/text/font.typ index ecc4c5c78..8396b237a 100644 --- a/tests/suite/text/font.typ +++ b/tests/suite/text/font.typ @@ -67,12 +67,12 @@ Emoji: 🐪, 🌋, 🏞 --- text-unknown-font-family-warning --- #text(font: "linux libertine", "I exist, ") -// Warning: 13-27 unknown font family: non-existing -#text(font: "non-existing", "but") -// Warning: 17-36 unknown font family: also-non-existing -#set text(font: "also-non-existing") +// Warning: 13-26 unknown font family: nonexistent +#text(font: "nonexistent", "but") +// Warning: 17-35 unknown font family: also-nonexistent +#set text(font: "also-nonexistent") I -// Warning: 23-56 unknown font family: list-of -// Warning: 23-56 unknown font family: non-existing-fonts -#let var = text(font: ("list-of", "non-existing-fonts"))[don't] +// Warning: 23-55 unknown font family: list-of +// Warning: 23-55 unknown font family: nonexistent-fonts +#let var = text(font: ("list-of", "nonexistent-fonts"))[don't] #var diff --git a/tests/suite/text/shift.typ b/tests/suite/text/shift.typ index 090f6ee8f..3b8d2ccbd 100644 --- a/tests/suite/text/shift.typ +++ b/tests/suite/text/shift.typ @@ -1,4 +1,4 @@ -// Test sub- and superscipt shifts. +// Test sub- and superscript shifts. --- sub-super --- #table( diff --git a/tools/test-helper/src/extension.ts b/tools/test-helper/src/extension.ts index 8d8a155fb..1f2cbd26c 100644 --- a/tools/test-helper/src/extension.ts +++ b/tools/test-helper/src/extension.ts @@ -371,7 +371,7 @@ class TestHelper { ); } - // Confgiures whether the run and save buttons are enabled. + // Configures whether the run and save buttons are enabled. private setRunButtonEnabled(enabled: boolean) { vscode.commands.executeCommand( "setContext",