From 6c6df995b85dd28790ff02d97d43522503a7cf09 Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Tue, 10 Dec 2024 15:48:19 +1300 Subject: [PATCH] Duplicate predefined counter styles (allows atoms crate to be published) Signed-off-by: Nico Burns --- atoms/build.rs | 2 +- atoms/predefined_counter_styles.rs | 66 ++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 atoms/predefined_counter_styles.rs diff --git a/atoms/build.rs b/atoms/build.rs index 6bd2de3703..b5f6775724 100644 --- a/atoms/build.rs +++ b/atoms/build.rs @@ -22,7 +22,7 @@ fn main() { } } } - include!("../style/counter_style/predefined.rs"); + include!("./predefined_counter_styles.rs"); atom_type .atoms(static_atoms.lines().map(Result::unwrap)) diff --git a/atoms/predefined_counter_styles.rs b/atoms/predefined_counter_styles.rs new file mode 100644 index 0000000000..f376981e32 --- /dev/null +++ b/atoms/predefined_counter_styles.rs @@ -0,0 +1,66 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + + // THIS FILE IS DUPLICATED FROM style/counter_style/predefined.rs. + // TO UPDATE IT: + // - Run `python style/counter_style/updated_predefined.py` + // - Re-copy style/counter_style/predefined.rs to this location + +predefined! { + "decimal", + "decimal-leading-zero", + "arabic-indic", + "armenian", + "upper-armenian", + "lower-armenian", + "bengali", + "cambodian", + "khmer", + "cjk-decimal", + "devanagari", + "georgian", + "gujarati", + "gurmukhi", + "hebrew", + "kannada", + "lao", + "malayalam", + "mongolian", + "myanmar", + "oriya", + "persian", + "lower-roman", + "upper-roman", + "tamil", + "telugu", + "thai", + "tibetan", + "lower-alpha", + "lower-latin", + "upper-alpha", + "upper-latin", + "cjk-earthly-branch", + "cjk-heavenly-stem", + "lower-greek", + "hiragana", + "hiragana-iroha", + "katakana", + "katakana-iroha", + "disc", + "circle", + "square", + "disclosure-open", + "disclosure-closed", + "japanese-informal", + "japanese-formal", + "korean-hangul-formal", + "korean-hanja-informal", + "korean-hanja-formal", + "simp-chinese-informal", + "simp-chinese-formal", + "trad-chinese-informal", + "trad-chinese-formal", + "cjk-ideographic", + "ethiopic-numeric", +}