Skip to content

Commit ec7f866

Browse files
committed
Duplicate predefined counter styles (allows atoms crate to be published)
Signed-off-by: Nico Burns <[email protected]>
1 parent 35e0fa2 commit ec7f866

File tree

2 files changed

+67
-1
lines changed

2 files changed

+67
-1
lines changed

atoms/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fn main() {
2222
}
2323
}
2424
}
25-
include!("../style/counter_style/predefined.rs");
25+
include!("./predefined_counter_styles.rs");
2626

2727
atom_type
2828
.atoms(static_atoms.lines().map(Result::unwrap))

atoms/predefined_counter_styles.rs

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4+
5+
// THIS FILE IS DUPLICATED FROM styles/counter_style/predefined.rs.
6+
// TO UPDATE IT:
7+
// - Run `python style/counter_style/updated_predefined.py`
8+
// - Re-copy styles/counter_style/predefined.rs to this location
9+
10+
predefined! {
11+
"decimal",
12+
"decimal-leading-zero",
13+
"arabic-indic",
14+
"armenian",
15+
"upper-armenian",
16+
"lower-armenian",
17+
"bengali",
18+
"cambodian",
19+
"khmer",
20+
"cjk-decimal",
21+
"devanagari",
22+
"georgian",
23+
"gujarati",
24+
"gurmukhi",
25+
"hebrew",
26+
"kannada",
27+
"lao",
28+
"malayalam",
29+
"mongolian",
30+
"myanmar",
31+
"oriya",
32+
"persian",
33+
"lower-roman",
34+
"upper-roman",
35+
"tamil",
36+
"telugu",
37+
"thai",
38+
"tibetan",
39+
"lower-alpha",
40+
"lower-latin",
41+
"upper-alpha",
42+
"upper-latin",
43+
"cjk-earthly-branch",
44+
"cjk-heavenly-stem",
45+
"lower-greek",
46+
"hiragana",
47+
"hiragana-iroha",
48+
"katakana",
49+
"katakana-iroha",
50+
"disc",
51+
"circle",
52+
"square",
53+
"disclosure-open",
54+
"disclosure-closed",
55+
"japanese-informal",
56+
"japanese-formal",
57+
"korean-hangul-formal",
58+
"korean-hanja-informal",
59+
"korean-hanja-formal",
60+
"simp-chinese-informal",
61+
"simp-chinese-formal",
62+
"trad-chinese-informal",
63+
"trad-chinese-formal",
64+
"cjk-ideographic",
65+
"ethiopic-numeric",
66+
}

0 commit comments

Comments
 (0)