From e6bcb7b86cef56a4145a162d3000dbf0c6ca2d44 Mon Sep 17 00:00:00 2001 From: AI Date: Sat, 15 Mar 2025 15:45:50 +0300 Subject: [PATCH 1/3] Added Russian numbering --- crates/typst-library/src/model/numbering.rs | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/crates/typst-library/src/model/numbering.rs b/crates/typst-library/src/model/numbering.rs index ada8a3965..0a7a96162 100644 --- a/crates/typst-library/src/model/numbering.rs +++ b/crates/typst-library/src/model/numbering.rs @@ -257,6 +257,10 @@ pub enum NumberingKind { LowerLatin, /// Uppercase Latin letters (A, B, C, etc.). Items beyond Z use base-26. UpperLatin, + /// Lowercase Russian letters (а, б, в, etc.). Items beyond я use base-28. Excluding some letters (ё, й, ъ, ы, ь) + LowerRussian, + /// Uppercase Russian letters (А, Б, В, etc.). Items beyond Я use base-28. Excluding some letters (Ё, Й, Ъ, Ы, Ь) + UpperRussian, /// Lowercase Roman numerals (i, ii, iii, etc.). LowerRoman, /// Uppercase Roman numerals (I, II, III, etc.). @@ -323,6 +327,8 @@ impl NumberingKind { '1' => NumberingKind::Arabic, 'a' => NumberingKind::LowerLatin, 'A' => NumberingKind::UpperLatin, + 'а' => NumberingKind::LowerRussian, + 'А' => NumberingKind::UpperRussian, 'i' => NumberingKind::LowerRoman, 'I' => NumberingKind::UpperRoman, 'α' => NumberingKind::LowerGreek, @@ -354,6 +360,8 @@ impl NumberingKind { Self::Arabic => '1', Self::LowerLatin => 'a', Self::UpperLatin => 'A', + Self::LowerRussian => 'а', + Self::UpperRussian => 'А', Self::LowerRoman => 'i', Self::UpperRoman => 'I', Self::LowerGreek => 'α', @@ -412,6 +420,20 @@ impl NumberingKind { ], n, ), + Self::LowerRussian => zeroless( + [ + 'а', 'б', 'в', 'г', 'д', 'е', 'ж', 'з', 'и', 'к', 'л', 'м', 'н', 'о', + 'п', 'р', 'с', 'т', 'у', 'ф', 'х', 'ц', 'ч', 'ш', 'щ', 'э', 'ю', 'я', + ], + n, + ), + Self::UpperRussian => zeroless( + [ + 'А', 'Б', 'В', 'Г', 'Д', 'Е', 'Ж', 'З', 'И', 'К', 'Л', 'М', 'Н', 'О', + 'П', 'Р', 'С', 'Т', 'У', 'Ф', 'Х', 'Ц', 'Ч', 'Ш', 'Щ', 'Э', 'Ю', 'Я', + ], + n, + ), Self::HiraganaAiueo => zeroless( [ 'あ', 'い', 'う', 'え', 'お', 'か', 'き', 'く', 'け', 'こ', 'さ', From 5cedd38e39755afa732f66733a893d4ffa85da73 Mon Sep 17 00:00:00 2001 From: AI Date: Sat, 15 Mar 2025 22:29:55 +0300 Subject: [PATCH 2/3] Add manifest for local installation with winget --- .../0.13.1/NoAIHelper.Typst.installer.yaml | 24 +++++++++++++++++++ .../0.13.1/NoAIHelper.Typst.locale.en-US.yaml | 15 ++++++++++++ .../Typst/0.13.1/NoAIHelper.Typst.yaml | 8 +++++++ 3 files changed, 47 insertions(+) create mode 100644 manifests/n/NoAIHelper/Typst/0.13.1/NoAIHelper.Typst.installer.yaml create mode 100644 manifests/n/NoAIHelper/Typst/0.13.1/NoAIHelper.Typst.locale.en-US.yaml create mode 100644 manifests/n/NoAIHelper/Typst/0.13.1/NoAIHelper.Typst.yaml diff --git a/manifests/n/NoAIHelper/Typst/0.13.1/NoAIHelper.Typst.installer.yaml b/manifests/n/NoAIHelper/Typst/0.13.1/NoAIHelper.Typst.installer.yaml new file mode 100644 index 000000000..226b0037e --- /dev/null +++ b/manifests/n/NoAIHelper/Typst/0.13.1/NoAIHelper.Typst.installer.yaml @@ -0,0 +1,24 @@ +# Created using wingetcreate 1.9.4.0 +# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.9.0.schema.json + +PackageIdentifier: NoAIHelper.Typst +PackageVersion: 0.13.1 +InstallerType: zip +NestedInstallerType: portable +ArchiveBinariesDependOnPath: true +Installers: +- Architecture: x64 + NestedInstallerFiles: + - RelativeFilePath: typst-x86_64-pc-windows-msvc\typst.exe + PortableCommandAlias: typst + InstallerUrl: https://github.com/NoAIHelper/typst/releases/download/v0.13.1/typst-x86_64-pc-windows-msvc.zip + InstallerSha256: E94B75BD3A07C50AC70327CA31B1922AC7CE3AECC84E800CC6E30F266C3BB890 +- Architecture: x86 + NestedInstallerFiles: + - RelativeFilePath: typst-i686-pc-windows-msvc\typst.exe + PortableCommandAlias: typst + InstallerUrl: https://github.com/NoAIHelper/typst/releases/download/v0.13.1/typst-i686-pc-windows-msvc.zip + InstallerSha256: 3CEDE9260F1E51FDED020B0596CC39261F9F0AB4C68646A83749ABEFD37352F6 +ManifestType: installer +ManifestVersion: 1.9.0 +ReleaseDate: 2025-03-15 diff --git a/manifests/n/NoAIHelper/Typst/0.13.1/NoAIHelper.Typst.locale.en-US.yaml b/manifests/n/NoAIHelper/Typst/0.13.1/NoAIHelper.Typst.locale.en-US.yaml new file mode 100644 index 000000000..c4ed5be42 --- /dev/null +++ b/manifests/n/NoAIHelper/Typst/0.13.1/NoAIHelper.Typst.locale.en-US.yaml @@ -0,0 +1,15 @@ +# Created using wingetcreate 1.9.4.0 +# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.9.0.schema.json + +PackageIdentifier: NoAIHelper.Typst +PackageVersion: 0.13.1 +PackageLocale: en-US +Publisher: NoAIHelper +PublisherUrl: https://github.com/NoAIHelper +PackageName: Typst +PackageUrl: https://github.com/NoAIHelper/typst +License: Apache-2.0 +ShortDescription: A new markup-based typesetting system that is powerful and easy to learn. +ReleaseNotesUrl: https://github.com/NoAIHelper/typst/releases/tag/v0.13.1 +ManifestType: defaultLocale +ManifestVersion: 1.9.0 diff --git a/manifests/n/NoAIHelper/Typst/0.13.1/NoAIHelper.Typst.yaml b/manifests/n/NoAIHelper/Typst/0.13.1/NoAIHelper.Typst.yaml new file mode 100644 index 000000000..df4d3b05b --- /dev/null +++ b/manifests/n/NoAIHelper/Typst/0.13.1/NoAIHelper.Typst.yaml @@ -0,0 +1,8 @@ +# Created using wingetcreate 1.9.4.0 +# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.9.0.schema.json + +PackageIdentifier: NoAIHelper.Typst +PackageVersion: 0.13.1 +DefaultLocale: en-US +ManifestType: version +ManifestVersion: 1.9.0 From 356941bf8d039a62f1ebaf2ff23a73254fc71b08 Mon Sep 17 00:00:00 2001 From: NoAIHelper Date: Sat, 15 Mar 2025 22:45:54 +0300 Subject: [PATCH 3/3] Update README.md --- README.md | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 41f465152..c8a68c34a 100644 --- a/README.md +++ b/README.md @@ -104,34 +104,22 @@ Let's dissect what's going on: ## Installation +It is installation of my unofficial package. + Typst's CLI is available from different sources: - You can get sources and pre-built binaries for the latest release of Typst - from the [releases page][releases]. Download the archive for your platform and - place it in a directory that is in your `PATH`. To stay up to date with future - releases, you can simply run `typst update`. + from the [releases](https://github.com/NoAIHelper/typst/releases). Download the archive for your platform and + place it in a directory that is in your `PATH`. - You can install Typst through different package managers. Note that the versions in the package managers might lag behind the latest release. - - Linux: - - View [Typst on Repology][repology] - - View [Typst's Snap][snap] - - macOS: `brew install typst` - - Windows: `winget install --id Typst.Typst` + - Windows: download all files from [manifests folder](manifests/n/NoAIHelper/Typst/0.13.1) and install with command + `winget install -m path/to/manifests/folder/where/all/files` - If you have a [Rust][rust] toolchain installed, you can install - - the latest released Typst version with - `cargo install --locked typst-cli` - - a development version with - `cargo install --git https://github.com/typst/typst --locked typst-cli` - -- Nix users can - - use the `typst` package with `nix-shell -p typst` - - build and run a development version with - `nix run github:typst/typst -- --version`. - -- Docker users can run a prebuilt image with - `docker run ghcr.io/typst/typst:latest --help`. + - git clone or download zip and compile from source + `cargo build --release` ## Usage Once you have installed Typst, you can use it like this: