Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 108 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "codex"
version = "0.2.0"
authors = ["The Typst Project Developers"]
edition = "2021"
edition = "2024"
description = "Human-friendly notation for Unicode symbols."
repository = "https://github.com/typst/codex"
readme = "README.md"
Expand All @@ -11,9 +11,13 @@ categories = ["encoding", "text-processing"]
keywords = ["unicode", "symbols"]

[features]
default = ["styling"]
default = ["numeral-systems", "styling"]
numeral-systems = ["chinese-number"]
styling = []
_test-unicode-conformance = ["ureq"]

[dependencies]
chinese-number = { version = "0.7.7", default-features = false, features = ["number-to-chinese"], optional = true }

[build-dependencies]
ureq = { version = "3.0.12", optional = true }
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ pub use self::shared::ModifierSet;

mod shared;

#[cfg(feature = "numeral-systems")]
pub mod numeral_systems;

#[cfg(feature = "styling")]
pub mod styling;

Expand Down Expand Up @@ -159,10 +162,7 @@ mod test {
#[test]
fn random_sample() {
for (key, control) in [
(
"backslash",
[("", "\\"), ("not", "⧷"), ("o", "⦸")].as_slice(),
),
("backslash", [("", "\\"), ("not", "⧷"), ("o", "⦸")].as_slice()),
("chi", &[("", "χ")]),
("forces", &[("", "⊩"), ("not", "⊮")]),
("interleave", &[("", "⫴"), ("big", "⫼"), ("struck", "⫵")]),
Expand Down
Loading