mirror of
https://github.com/typst/typst
synced 2025-08-15 07:28:32 +08:00
Merge 356941bf8d039a62f1ebaf2ff23a73254fc71b08 into 1b2714e1a758d6ee0f9471fd1e49cb02f6d8cde4
This commit is contained in:
commit
b210f87202
28
README.md
28
README.md
@ -104,34 +104,22 @@ Let's dissect what's going on:
|
|||||||
</details>
|
</details>
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
It is installation of my unofficial package.
|
||||||
|
|
||||||
Typst's CLI is available from different sources:
|
Typst's CLI is available from different sources:
|
||||||
|
|
||||||
- You can get sources and pre-built binaries for the latest release of Typst
|
- 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
|
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`. To stay up to date with future
|
place it in a directory that is in your `PATH`.
|
||||||
releases, you can simply run `typst update`.
|
|
||||||
|
|
||||||
- You can install Typst through different package managers. Note that the
|
- You can install Typst through different package managers. Note that the
|
||||||
versions in the package managers might lag behind the latest release.
|
versions in the package managers might lag behind the latest release.
|
||||||
- Linux:
|
- Windows: download all files from [manifests folder](manifests/n/NoAIHelper/Typst/0.13.1) and install with command
|
||||||
- View [Typst on Repology][repology]
|
`winget install -m path/to/manifests/folder/where/all/files`
|
||||||
- View [Typst's Snap][snap]
|
|
||||||
- macOS: `brew install typst`
|
|
||||||
- Windows: `winget install --id Typst.Typst`
|
|
||||||
|
|
||||||
- If you have a [Rust][rust] toolchain installed, you can install
|
- If you have a [Rust][rust] toolchain installed, you can install
|
||||||
- the latest released Typst version with
|
- git clone or download zip and compile from source
|
||||||
`cargo install --locked typst-cli`
|
`cargo build --release`
|
||||||
- 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`.
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
Once you have installed Typst, you can use it like this:
|
Once you have installed Typst, you can use it like this:
|
||||||
|
@ -257,6 +257,10 @@ pub enum NumberingKind {
|
|||||||
LowerLatin,
|
LowerLatin,
|
||||||
/// Uppercase Latin letters (A, B, C, etc.). Items beyond Z use base-26.
|
/// Uppercase Latin letters (A, B, C, etc.). Items beyond Z use base-26.
|
||||||
UpperLatin,
|
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.).
|
/// Lowercase Roman numerals (i, ii, iii, etc.).
|
||||||
LowerRoman,
|
LowerRoman,
|
||||||
/// Uppercase Roman numerals (I, II, III, etc.).
|
/// Uppercase Roman numerals (I, II, III, etc.).
|
||||||
@ -323,6 +327,8 @@ impl NumberingKind {
|
|||||||
'1' => NumberingKind::Arabic,
|
'1' => NumberingKind::Arabic,
|
||||||
'a' => NumberingKind::LowerLatin,
|
'a' => NumberingKind::LowerLatin,
|
||||||
'A' => NumberingKind::UpperLatin,
|
'A' => NumberingKind::UpperLatin,
|
||||||
|
'а' => NumberingKind::LowerRussian,
|
||||||
|
'А' => NumberingKind::UpperRussian,
|
||||||
'i' => NumberingKind::LowerRoman,
|
'i' => NumberingKind::LowerRoman,
|
||||||
'I' => NumberingKind::UpperRoman,
|
'I' => NumberingKind::UpperRoman,
|
||||||
'α' => NumberingKind::LowerGreek,
|
'α' => NumberingKind::LowerGreek,
|
||||||
@ -354,6 +360,8 @@ impl NumberingKind {
|
|||||||
Self::Arabic => '1',
|
Self::Arabic => '1',
|
||||||
Self::LowerLatin => 'a',
|
Self::LowerLatin => 'a',
|
||||||
Self::UpperLatin => 'A',
|
Self::UpperLatin => 'A',
|
||||||
|
Self::LowerRussian => 'а',
|
||||||
|
Self::UpperRussian => 'А',
|
||||||
Self::LowerRoman => 'i',
|
Self::LowerRoman => 'i',
|
||||||
Self::UpperRoman => 'I',
|
Self::UpperRoman => 'I',
|
||||||
Self::LowerGreek => 'α',
|
Self::LowerGreek => 'α',
|
||||||
@ -412,6 +420,20 @@ impl NumberingKind {
|
|||||||
],
|
],
|
||||||
n,
|
n,
|
||||||
),
|
),
|
||||||
|
Self::LowerRussian => zeroless(
|
||||||
|
[
|
||||||
|
'а', 'б', 'в', 'г', 'д', 'е', 'ж', 'з', 'и', 'к', 'л', 'м', 'н', 'о',
|
||||||
|
'п', 'р', 'с', 'т', 'у', 'ф', 'х', 'ц', 'ч', 'ш', 'щ', 'э', 'ю', 'я',
|
||||||
|
],
|
||||||
|
n,
|
||||||
|
),
|
||||||
|
Self::UpperRussian => zeroless(
|
||||||
|
[
|
||||||
|
'А', 'Б', 'В', 'Г', 'Д', 'Е', 'Ж', 'З', 'И', 'К', 'Л', 'М', 'Н', 'О',
|
||||||
|
'П', 'Р', 'С', 'Т', 'У', 'Ф', 'Х', 'Ц', 'Ч', 'Ш', 'Щ', 'Э', 'Ю', 'Я',
|
||||||
|
],
|
||||||
|
n,
|
||||||
|
),
|
||||||
Self::HiraganaAiueo => zeroless(
|
Self::HiraganaAiueo => zeroless(
|
||||||
[
|
[
|
||||||
'あ', 'い', 'う', 'え', 'お', 'か', 'き', 'く', 'け', 'こ', 'さ',
|
'あ', 'い', 'う', 'え', 'お', 'か', 'き', 'く', 'け', 'こ', 'さ',
|
||||||
|
@ -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
|
@ -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
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user