From a483321aa08e435c159d19c0d559e2413c1272f9 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 7 Mar 2024 10:56:37 +0100 Subject: Remove dependency on unicode_names2 (#3570) --- docs/Cargo.toml | 1 - docs/src/lib.rs | 3 --- docs/src/model.rs | 1 - 3 files changed, 5 deletions(-) (limited to 'docs') diff --git a/docs/Cargo.toml b/docs/Cargo.toml index c24ec02f..b2bfcd43 100644 --- a/docs/Cargo.toml +++ b/docs/Cargo.toml @@ -31,7 +31,6 @@ serde = { workspace = true } serde_yaml = { workspace = true } syntect = { workspace = true, features = ["html"] } typed-arena = { workspace = true } -unicode_names2 = { workspace = true } unscanny = { workspace = true } yaml-front-matter = { workspace = true } clap = { workspace = true, optional = true } diff --git a/docs/src/lib.rs b/docs/src/lib.rs index 3856b1be..53221381 100644 --- a/docs/src/lib.rs +++ b/docs/src/lib.rs @@ -11,7 +11,6 @@ pub use self::model::*; use comemo::Prehashed; use ecow::{eco_format, EcoString}; -use heck::ToTitleCase; use once_cell::sync::Lazy; use serde::Deserialize; use serde_yaml as yaml; @@ -663,8 +662,6 @@ fn symbols_model(resolver: &dyn Resolver, group: &GroupData) -> SymbolsModel { math_shorthand: shorthand(typst::syntax::ast::Shorthand::MATH_LIST), codepoint: c as u32, accent: typst::symbols::Symbol::combining_accent(c).is_some(), - unicode_name: unicode_names2::name(c) - .map(|s| s.to_string().to_title_case().into()), alternates: symbol .variants() .filter(|(other, _)| other != &variant) diff --git a/docs/src/model.rs b/docs/src/model.rs index 1564ef2f..a4416c3d 100644 --- a/docs/src/model.rs +++ b/docs/src/model.rs @@ -159,7 +159,6 @@ pub struct SymbolModel { pub name: EcoString, pub codepoint: u32, pub accent: bool, - pub unicode_name: Option, pub alternates: Vec, pub markup_shorthand: Option<&'static str>, pub math_shorthand: Option<&'static str>, -- cgit v1.2.3