mathconv 0.1.0a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mathconv-0.1.0a1/Cargo.lock +590 -0
- mathconv-0.1.0a1/Cargo.toml +35 -0
- mathconv-0.1.0a1/LICENSE +21 -0
- mathconv-0.1.0a1/NOTICE +54 -0
- mathconv-0.1.0a1/PKG-INFO +141 -0
- mathconv-0.1.0a1/README.md +105 -0
- mathconv-0.1.0a1/crates/mathconv/Cargo.toml +16 -0
- mathconv-0.1.0a1/crates/mathconv/src/ledger.rs +126 -0
- mathconv-0.1.0a1/crates/mathconv/src/lib.rs +412 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/annotation.rs +220 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/lower/content/apply.rs +841 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/lower/content/binding.rs +911 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/lower/content/calculus.rs +411 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/lower/content/constructors.rs +301 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/lower/content/mod.rs +414 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/lower/content/tokens.rs +271 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/lower/fence.rs +140 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/lower/fraction.rs +53 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/lower/mod.rs +676 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/lower/root.rs +21 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/lower/script.rs +106 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/lower/style.rs +281 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/lower/table.rs +843 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/lower/token.rs +649 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/lower/under_over.rs +157 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/mod.rs +62 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/names.rs +500 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/operators.rs +589 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mathml/parse.rs +735 -0
- mathconv-0.1.0a1/crates/mathconv/src/read/mod.rs +3 -0
- mathconv-0.1.0a1/crates/mathconv/src/rewrite/drop_empty_phantoms.rs +28 -0
- mathconv-0.1.0a1/crates/mathconv/src/rewrite/drop_invisible_operators.rs +37 -0
- mathconv-0.1.0a1/crates/mathconv/src/rewrite/flatten_rows.rs +117 -0
- mathconv-0.1.0a1/crates/mathconv/src/rewrite/mod.rs +954 -0
- mathconv-0.1.0a1/crates/mathconv/src/rewrite/pair_fences.rs +676 -0
- mathconv-0.1.0a1/crates/mathconv/src/rewrite/recognise_function_names.rs +190 -0
- mathconv-0.1.0a1/crates/mathconv/src/rewrite/unwrap_single_line_tables.rs +92 -0
- mathconv-0.1.0a1/crates/mathconv/src/tables/compositions.rs +976 -0
- mathconv-0.1.0a1/crates/mathconv/src/tables/entities.rs +2132 -0
- mathconv-0.1.0a1/crates/mathconv/src/tables/functions.rs +44 -0
- mathconv-0.1.0a1/crates/mathconv/src/tables/letters.rs +2274 -0
- mathconv-0.1.0a1/crates/mathconv/src/tables/mod.rs +390 -0
- mathconv-0.1.0a1/crates/mathconv/src/tables/operators.rs +1203 -0
- mathconv-0.1.0a1/crates/mathconv/src/tables/symbols.rs +9593 -0
- mathconv-0.1.0a1/crates/mathconv/src/tree/mod.rs +541 -0
- mathconv-0.1.0a1/crates/mathconv/src/tree/node.rs +875 -0
- mathconv-0.1.0a1/crates/mathconv/src/workspace.rs +45 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/latex/fence.rs +96 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/latex/fraction.rs +34 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/latex/mod.rs +642 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/latex/root.rs +22 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/latex/script.rs +240 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/latex/style.rs +68 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/latex/table.rs +211 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/latex/under_over.rs +188 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/mod.rs +695 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/text/fence.rs +45 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/text/fraction.rs +68 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/text/mod.rs +175 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/text/root.rs +25 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/text/script.rs +157 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/text/style.rs +54 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/text/table.rs +66 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/text/under_over.rs +118 -0
- mathconv-0.1.0a1/crates/mathconv/src/write/under_over.rs +300 -0
- mathconv-0.1.0a1/crates/mathconv-python/Cargo.toml +21 -0
- mathconv-0.1.0a1/crates/mathconv-python/src/lib.rs +308 -0
- mathconv-0.1.0a1/pyproject.toml +56 -0
- mathconv-0.1.0a1/python/mathconv/__init__.py +5 -0
- mathconv-0.1.0a1/python/mathconv/__init__.pyi +59 -0
- mathconv-0.1.0a1/python/mathconv/py.typed +0 -0
|
@@ -0,0 +1,590 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "adler2"
|
|
7
|
+
version = "2.0.1"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "anstream"
|
|
13
|
+
version = "1.0.1"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "85c097ce94629611e0a15ef1078a2fe2ce3b4a0f4b44708e85eeb09dd5f188eb"
|
|
16
|
+
dependencies = [
|
|
17
|
+
"anstyle",
|
|
18
|
+
"anstyle-parse",
|
|
19
|
+
"anstyle-query",
|
|
20
|
+
"anstyle-wincon",
|
|
21
|
+
"colorchoice",
|
|
22
|
+
"is_terminal_polyfill",
|
|
23
|
+
"utf8parse",
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
[[package]]
|
|
27
|
+
name = "anstyle"
|
|
28
|
+
version = "1.0.15"
|
|
29
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
30
|
+
checksum = "6c7a9e344b352bef7873e51ff425c2f90d5aa2a252db2b84289c93ff30beb3d7"
|
|
31
|
+
|
|
32
|
+
[[package]]
|
|
33
|
+
name = "anstyle-parse"
|
|
34
|
+
version = "1.0.1"
|
|
35
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
36
|
+
checksum = "a0571a23d2188b4aae7adc1df454cc81d6232cf37674fa717ac119f6c74d0dc1"
|
|
37
|
+
dependencies = [
|
|
38
|
+
"utf8parse",
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
[[package]]
|
|
42
|
+
name = "anstyle-query"
|
|
43
|
+
version = "1.1.6"
|
|
44
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
45
|
+
checksum = "76a5cf9d05ffa9c878c447b33b069605e890ebcd36d2761f86367873c2ecaa7f"
|
|
46
|
+
dependencies = [
|
|
47
|
+
"windows-sys",
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
[[package]]
|
|
51
|
+
name = "anstyle-wincon"
|
|
52
|
+
version = "3.0.12"
|
|
53
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
54
|
+
checksum = "2c2d00c1b2d84cef823d89d4da02ad8ff1e76c969e029da990b40f16dc834221"
|
|
55
|
+
dependencies = [
|
|
56
|
+
"anstyle",
|
|
57
|
+
"once_cell_polyfill",
|
|
58
|
+
"windows-sys",
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
[[package]]
|
|
62
|
+
name = "block-buffer"
|
|
63
|
+
version = "0.10.4"
|
|
64
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
65
|
+
checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
|
|
66
|
+
dependencies = [
|
|
67
|
+
"generic-array",
|
|
68
|
+
]
|
|
69
|
+
|
|
70
|
+
[[package]]
|
|
71
|
+
name = "cfg-if"
|
|
72
|
+
version = "1.0.5"
|
|
73
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
74
|
+
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
75
|
+
|
|
76
|
+
[[package]]
|
|
77
|
+
name = "clap"
|
|
78
|
+
version = "4.6.10"
|
|
79
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
80
|
+
checksum = "50066ca966813ca8957ee15361752f19424a8ff620dbe9c8993d9f99d99b04b3"
|
|
81
|
+
dependencies = [
|
|
82
|
+
"clap_builder",
|
|
83
|
+
"clap_derive",
|
|
84
|
+
]
|
|
85
|
+
|
|
86
|
+
[[package]]
|
|
87
|
+
name = "clap_builder"
|
|
88
|
+
version = "4.6.10"
|
|
89
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
90
|
+
checksum = "a0ed97c96ef4efb3cc84e09fa388df4463e7cc3224ec38d7b1d9e45749333590"
|
|
91
|
+
dependencies = [
|
|
92
|
+
"anstream",
|
|
93
|
+
"anstyle",
|
|
94
|
+
"clap_lex",
|
|
95
|
+
"strsim",
|
|
96
|
+
]
|
|
97
|
+
|
|
98
|
+
[[package]]
|
|
99
|
+
name = "clap_derive"
|
|
100
|
+
version = "4.6.9"
|
|
101
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
102
|
+
checksum = "b4c174f11f949b9ca8c60580925e282b9cbd5454750e506f08648b2038080cd7"
|
|
103
|
+
dependencies = [
|
|
104
|
+
"heck",
|
|
105
|
+
"proc-macro2",
|
|
106
|
+
"quote",
|
|
107
|
+
"syn",
|
|
108
|
+
]
|
|
109
|
+
|
|
110
|
+
[[package]]
|
|
111
|
+
name = "clap_lex"
|
|
112
|
+
version = "1.1.2"
|
|
113
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
114
|
+
checksum = "e0921b3876b3a1df8a1c9f912e7f94342458022c2e84288015893d83c4d62a79"
|
|
115
|
+
|
|
116
|
+
[[package]]
|
|
117
|
+
name = "colorchoice"
|
|
118
|
+
version = "1.0.6"
|
|
119
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
120
|
+
checksum = "8f7f11958434c85b6efac08f8299dc08bd263184ce080232e2168940cda4368e"
|
|
121
|
+
|
|
122
|
+
[[package]]
|
|
123
|
+
name = "cpufeatures"
|
|
124
|
+
version = "0.2.17"
|
|
125
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
126
|
+
checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
|
|
127
|
+
dependencies = [
|
|
128
|
+
"libc",
|
|
129
|
+
]
|
|
130
|
+
|
|
131
|
+
[[package]]
|
|
132
|
+
name = "crc32fast"
|
|
133
|
+
version = "1.5.6"
|
|
134
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
135
|
+
checksum = "fd9ae8fcb3ea71b0b26338b4ffb13006bb175de8fd07921089a906ce7e5e6945"
|
|
136
|
+
dependencies = [
|
|
137
|
+
"cfg-if",
|
|
138
|
+
]
|
|
139
|
+
|
|
140
|
+
[[package]]
|
|
141
|
+
name = "crypto-common"
|
|
142
|
+
version = "0.1.7"
|
|
143
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
144
|
+
checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
|
|
145
|
+
dependencies = [
|
|
146
|
+
"generic-array",
|
|
147
|
+
"typenum",
|
|
148
|
+
]
|
|
149
|
+
|
|
150
|
+
[[package]]
|
|
151
|
+
name = "digest"
|
|
152
|
+
version = "0.10.7"
|
|
153
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
154
|
+
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
|
155
|
+
dependencies = [
|
|
156
|
+
"block-buffer",
|
|
157
|
+
"crypto-common",
|
|
158
|
+
]
|
|
159
|
+
|
|
160
|
+
[[package]]
|
|
161
|
+
name = "equivalent"
|
|
162
|
+
version = "1.0.3"
|
|
163
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
164
|
+
checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826"
|
|
165
|
+
|
|
166
|
+
[[package]]
|
|
167
|
+
name = "escape8259"
|
|
168
|
+
version = "0.5.4"
|
|
169
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
170
|
+
checksum = "9f1f0d310082fd5de539d4f41601182241147498444a7695c520288a0cdbead6"
|
|
171
|
+
|
|
172
|
+
[[package]]
|
|
173
|
+
name = "flate2"
|
|
174
|
+
version = "1.1.11"
|
|
175
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
176
|
+
checksum = "626d4928326b646e70f65ed36fc7cf9f206bdb68a0019ee7c6b4709da4e084c4"
|
|
177
|
+
dependencies = [
|
|
178
|
+
"crc32fast",
|
|
179
|
+
"miniz_oxide",
|
|
180
|
+
"zlib-rs",
|
|
181
|
+
]
|
|
182
|
+
|
|
183
|
+
[[package]]
|
|
184
|
+
name = "generic-array"
|
|
185
|
+
version = "0.14.7"
|
|
186
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
187
|
+
checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
|
|
188
|
+
dependencies = [
|
|
189
|
+
"typenum",
|
|
190
|
+
"version_check",
|
|
191
|
+
]
|
|
192
|
+
|
|
193
|
+
[[package]]
|
|
194
|
+
name = "hashbrown"
|
|
195
|
+
version = "0.17.2"
|
|
196
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
197
|
+
checksum = "735eaa21a6a5ffb2e84362faaeb90c05ba8e19797ca30428478cb6ea3a4921bc"
|
|
198
|
+
|
|
199
|
+
[[package]]
|
|
200
|
+
name = "heck"
|
|
201
|
+
version = "0.5.0"
|
|
202
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
203
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
204
|
+
|
|
205
|
+
[[package]]
|
|
206
|
+
name = "indexmap"
|
|
207
|
+
version = "2.14.2"
|
|
208
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
209
|
+
checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
|
|
210
|
+
dependencies = [
|
|
211
|
+
"equivalent",
|
|
212
|
+
"hashbrown",
|
|
213
|
+
]
|
|
214
|
+
|
|
215
|
+
[[package]]
|
|
216
|
+
name = "is_terminal_polyfill"
|
|
217
|
+
version = "1.70.2"
|
|
218
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
219
|
+
checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
|
|
220
|
+
|
|
221
|
+
[[package]]
|
|
222
|
+
name = "itoa"
|
|
223
|
+
version = "1.0.19"
|
|
224
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
225
|
+
checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4"
|
|
226
|
+
|
|
227
|
+
[[package]]
|
|
228
|
+
name = "libc"
|
|
229
|
+
version = "0.2.191"
|
|
230
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
231
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
232
|
+
|
|
233
|
+
[[package]]
|
|
234
|
+
name = "libtest-mimic"
|
|
235
|
+
version = "0.8.2"
|
|
236
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
237
|
+
checksum = "14e6ba06f0ade6e504aff834d7c34298e5155c6baca353cc6a4aaff2f9fd7f33"
|
|
238
|
+
dependencies = [
|
|
239
|
+
"anstream",
|
|
240
|
+
"anstyle",
|
|
241
|
+
"clap",
|
|
242
|
+
"escape8259",
|
|
243
|
+
]
|
|
244
|
+
|
|
245
|
+
[[package]]
|
|
246
|
+
name = "mathconv"
|
|
247
|
+
version = "0.1.0-a1"
|
|
248
|
+
|
|
249
|
+
[[package]]
|
|
250
|
+
name = "mathconv-bench"
|
|
251
|
+
version = "0.0.0"
|
|
252
|
+
dependencies = [
|
|
253
|
+
"mathconv",
|
|
254
|
+
"toml_edit",
|
|
255
|
+
]
|
|
256
|
+
|
|
257
|
+
[[package]]
|
|
258
|
+
name = "mathconv-cases"
|
|
259
|
+
version = "0.0.0"
|
|
260
|
+
dependencies = [
|
|
261
|
+
"libtest-mimic",
|
|
262
|
+
"mathconv",
|
|
263
|
+
"mathconv-cases",
|
|
264
|
+
"toml_edit",
|
|
265
|
+
]
|
|
266
|
+
|
|
267
|
+
[[package]]
|
|
268
|
+
name = "mathconv-python"
|
|
269
|
+
version = "0.1.0-a1"
|
|
270
|
+
dependencies = [
|
|
271
|
+
"mathconv",
|
|
272
|
+
"pyo3",
|
|
273
|
+
]
|
|
274
|
+
|
|
275
|
+
[[package]]
|
|
276
|
+
name = "memchr"
|
|
277
|
+
version = "2.8.3"
|
|
278
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
279
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
280
|
+
|
|
281
|
+
[[package]]
|
|
282
|
+
name = "miniz_oxide"
|
|
283
|
+
version = "0.9.1"
|
|
284
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
285
|
+
checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c"
|
|
286
|
+
dependencies = [
|
|
287
|
+
"adler2",
|
|
288
|
+
"simd-adler32",
|
|
289
|
+
]
|
|
290
|
+
|
|
291
|
+
[[package]]
|
|
292
|
+
name = "once_cell"
|
|
293
|
+
version = "1.21.4"
|
|
294
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
295
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
296
|
+
|
|
297
|
+
[[package]]
|
|
298
|
+
name = "once_cell_polyfill"
|
|
299
|
+
version = "1.70.2"
|
|
300
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
301
|
+
checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
|
|
302
|
+
|
|
303
|
+
[[package]]
|
|
304
|
+
name = "portable-atomic"
|
|
305
|
+
version = "1.15.0"
|
|
306
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
307
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
308
|
+
|
|
309
|
+
[[package]]
|
|
310
|
+
name = "proc-macro2"
|
|
311
|
+
version = "1.0.107"
|
|
312
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
313
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
314
|
+
dependencies = [
|
|
315
|
+
"unicode-ident",
|
|
316
|
+
]
|
|
317
|
+
|
|
318
|
+
[[package]]
|
|
319
|
+
name = "pyo3"
|
|
320
|
+
version = "0.30.1"
|
|
321
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
322
|
+
checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
|
|
323
|
+
dependencies = [
|
|
324
|
+
"libc",
|
|
325
|
+
"once_cell",
|
|
326
|
+
"portable-atomic",
|
|
327
|
+
"pyo3-build-config",
|
|
328
|
+
"pyo3-ffi",
|
|
329
|
+
"pyo3-macros",
|
|
330
|
+
]
|
|
331
|
+
|
|
332
|
+
[[package]]
|
|
333
|
+
name = "pyo3-build-config"
|
|
334
|
+
version = "0.30.1"
|
|
335
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
336
|
+
checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
|
|
337
|
+
dependencies = [
|
|
338
|
+
"target-lexicon",
|
|
339
|
+
]
|
|
340
|
+
|
|
341
|
+
[[package]]
|
|
342
|
+
name = "pyo3-ffi"
|
|
343
|
+
version = "0.30.1"
|
|
344
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
345
|
+
checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
|
|
346
|
+
dependencies = [
|
|
347
|
+
"libc",
|
|
348
|
+
"pyo3-build-config",
|
|
349
|
+
]
|
|
350
|
+
|
|
351
|
+
[[package]]
|
|
352
|
+
name = "pyo3-macros"
|
|
353
|
+
version = "0.30.1"
|
|
354
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
355
|
+
checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
|
|
356
|
+
dependencies = [
|
|
357
|
+
"proc-macro2",
|
|
358
|
+
"pyo3-macros-backend",
|
|
359
|
+
"quote",
|
|
360
|
+
"syn",
|
|
361
|
+
]
|
|
362
|
+
|
|
363
|
+
[[package]]
|
|
364
|
+
name = "pyo3-macros-backend"
|
|
365
|
+
version = "0.30.1"
|
|
366
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
367
|
+
checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
|
|
368
|
+
dependencies = [
|
|
369
|
+
"heck",
|
|
370
|
+
"proc-macro2",
|
|
371
|
+
"quote",
|
|
372
|
+
"syn",
|
|
373
|
+
]
|
|
374
|
+
|
|
375
|
+
[[package]]
|
|
376
|
+
name = "quote"
|
|
377
|
+
version = "1.0.47"
|
|
378
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
379
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
380
|
+
dependencies = [
|
|
381
|
+
"proc-macro2",
|
|
382
|
+
]
|
|
383
|
+
|
|
384
|
+
[[package]]
|
|
385
|
+
name = "roxmltree"
|
|
386
|
+
version = "0.21.2"
|
|
387
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
388
|
+
checksum = "9da7f59328b09405b181fee1018925fad50f157afb43c0c0f5c522c256dd5907"
|
|
389
|
+
dependencies = [
|
|
390
|
+
"memchr",
|
|
391
|
+
]
|
|
392
|
+
|
|
393
|
+
[[package]]
|
|
394
|
+
name = "serde"
|
|
395
|
+
version = "1.0.229"
|
|
396
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
397
|
+
checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
|
|
398
|
+
dependencies = [
|
|
399
|
+
"serde_core",
|
|
400
|
+
"serde_derive",
|
|
401
|
+
]
|
|
402
|
+
|
|
403
|
+
[[package]]
|
|
404
|
+
name = "serde_core"
|
|
405
|
+
version = "1.0.229"
|
|
406
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
407
|
+
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
|
|
408
|
+
dependencies = [
|
|
409
|
+
"serde_derive",
|
|
410
|
+
]
|
|
411
|
+
|
|
412
|
+
[[package]]
|
|
413
|
+
name = "serde_derive"
|
|
414
|
+
version = "1.0.229"
|
|
415
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
416
|
+
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
417
|
+
dependencies = [
|
|
418
|
+
"proc-macro2",
|
|
419
|
+
"quote",
|
|
420
|
+
"syn",
|
|
421
|
+
]
|
|
422
|
+
|
|
423
|
+
[[package]]
|
|
424
|
+
name = "serde_json"
|
|
425
|
+
version = "1.0.154"
|
|
426
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
427
|
+
checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
|
|
428
|
+
dependencies = [
|
|
429
|
+
"itoa",
|
|
430
|
+
"memchr",
|
|
431
|
+
"serde",
|
|
432
|
+
"serde_core",
|
|
433
|
+
"zmij",
|
|
434
|
+
]
|
|
435
|
+
|
|
436
|
+
[[package]]
|
|
437
|
+
name = "sha2"
|
|
438
|
+
version = "0.10.9"
|
|
439
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
440
|
+
checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
|
|
441
|
+
dependencies = [
|
|
442
|
+
"cfg-if",
|
|
443
|
+
"cpufeatures",
|
|
444
|
+
"digest",
|
|
445
|
+
]
|
|
446
|
+
|
|
447
|
+
[[package]]
|
|
448
|
+
name = "simd-adler32"
|
|
449
|
+
version = "0.3.10"
|
|
450
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
451
|
+
checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
|
|
452
|
+
|
|
453
|
+
[[package]]
|
|
454
|
+
name = "strsim"
|
|
455
|
+
version = "0.11.1"
|
|
456
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
457
|
+
checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
|
|
458
|
+
|
|
459
|
+
[[package]]
|
|
460
|
+
name = "syn"
|
|
461
|
+
version = "3.0.10"
|
|
462
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
463
|
+
checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
|
|
464
|
+
dependencies = [
|
|
465
|
+
"proc-macro2",
|
|
466
|
+
"quote",
|
|
467
|
+
"unicode-ident",
|
|
468
|
+
]
|
|
469
|
+
|
|
470
|
+
[[package]]
|
|
471
|
+
name = "target-lexicon"
|
|
472
|
+
version = "0.13.6"
|
|
473
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
474
|
+
checksum = "8c447be3a2abfa84b2d91680c56600bd6b2873866de27b36ec911be705e291da"
|
|
475
|
+
|
|
476
|
+
[[package]]
|
|
477
|
+
name = "toml_datetime"
|
|
478
|
+
version = "0.7.5+spec-1.1.0"
|
|
479
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
480
|
+
checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347"
|
|
481
|
+
dependencies = [
|
|
482
|
+
"serde_core",
|
|
483
|
+
]
|
|
484
|
+
|
|
485
|
+
[[package]]
|
|
486
|
+
name = "toml_edit"
|
|
487
|
+
version = "0.23.10+spec-1.0.0"
|
|
488
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
489
|
+
checksum = "84c8b9f757e028cee9fa244aea147aab2a9ec09d5325a9b01e0a49730c2b5269"
|
|
490
|
+
dependencies = [
|
|
491
|
+
"indexmap",
|
|
492
|
+
"toml_datetime",
|
|
493
|
+
"toml_parser",
|
|
494
|
+
"toml_writer",
|
|
495
|
+
"winnow 0.7.15",
|
|
496
|
+
]
|
|
497
|
+
|
|
498
|
+
[[package]]
|
|
499
|
+
name = "toml_parser"
|
|
500
|
+
version = "1.1.7+spec-1.1.0"
|
|
501
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
502
|
+
checksum = "0bb28d6e049a9766c3bd91a8326e6179f5b132dec87906bb97018ef7a2f3431a"
|
|
503
|
+
dependencies = [
|
|
504
|
+
"winnow 1.0.5",
|
|
505
|
+
]
|
|
506
|
+
|
|
507
|
+
[[package]]
|
|
508
|
+
name = "toml_writer"
|
|
509
|
+
version = "1.2.0+spec-1.1.0"
|
|
510
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
511
|
+
checksum = "009dbb7700f11c55ef83aebbe4c0e9cf1f1ac0844bd8d6f00dc38f302026e13a"
|
|
512
|
+
|
|
513
|
+
[[package]]
|
|
514
|
+
name = "typenum"
|
|
515
|
+
version = "1.20.1"
|
|
516
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
517
|
+
checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
|
|
518
|
+
|
|
519
|
+
[[package]]
|
|
520
|
+
name = "unicode-ident"
|
|
521
|
+
version = "1.0.27"
|
|
522
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
523
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
524
|
+
|
|
525
|
+
[[package]]
|
|
526
|
+
name = "utf8parse"
|
|
527
|
+
version = "0.2.2"
|
|
528
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
529
|
+
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
|
|
530
|
+
|
|
531
|
+
[[package]]
|
|
532
|
+
name = "version_check"
|
|
533
|
+
version = "0.9.5"
|
|
534
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
535
|
+
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
|
536
|
+
|
|
537
|
+
[[package]]
|
|
538
|
+
name = "windows-link"
|
|
539
|
+
version = "0.101.0"
|
|
540
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
541
|
+
checksum = "f4e57b2aae53a240c62b65069a63eaf8d5fa747f5d0d8e670c5210a98847bce4"
|
|
542
|
+
|
|
543
|
+
[[package]]
|
|
544
|
+
name = "windows-sys"
|
|
545
|
+
version = "0.101.0"
|
|
546
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
547
|
+
checksum = "eed2df9f5f458664c87437f6758f0d93085b06433bf66b2b84c23c19f3d2012c"
|
|
548
|
+
dependencies = [
|
|
549
|
+
"windows-link",
|
|
550
|
+
]
|
|
551
|
+
|
|
552
|
+
[[package]]
|
|
553
|
+
name = "winnow"
|
|
554
|
+
version = "0.7.15"
|
|
555
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
556
|
+
checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945"
|
|
557
|
+
dependencies = [
|
|
558
|
+
"memchr",
|
|
559
|
+
]
|
|
560
|
+
|
|
561
|
+
[[package]]
|
|
562
|
+
name = "winnow"
|
|
563
|
+
version = "1.0.5"
|
|
564
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
565
|
+
checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef"
|
|
566
|
+
|
|
567
|
+
[[package]]
|
|
568
|
+
name = "xtask"
|
|
569
|
+
version = "0.0.0"
|
|
570
|
+
dependencies = [
|
|
571
|
+
"flate2",
|
|
572
|
+
"mathconv",
|
|
573
|
+
"mathconv-cases",
|
|
574
|
+
"roxmltree",
|
|
575
|
+
"serde",
|
|
576
|
+
"serde_json",
|
|
577
|
+
"sha2",
|
|
578
|
+
]
|
|
579
|
+
|
|
580
|
+
[[package]]
|
|
581
|
+
name = "zlib-rs"
|
|
582
|
+
version = "0.6.9"
|
|
583
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
584
|
+
checksum = "aa76918995d776d9dd34d371030be228d021137449771493d56e29f77e4148ac"
|
|
585
|
+
|
|
586
|
+
[[package]]
|
|
587
|
+
name = "zmij"
|
|
588
|
+
version = "1.0.23"
|
|
589
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
590
|
+
checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[workspace]
|
|
2
|
+
resolver = "3"
|
|
3
|
+
members = ["crates/mathconv", "crates/mathconv-python"]
|
|
4
|
+
|
|
5
|
+
[workspace.package]
|
|
6
|
+
version = "0.1.0-a1"
|
|
7
|
+
edition = "2024"
|
|
8
|
+
license = "MIT"
|
|
9
|
+
repository = "https://github.com/viktor-shcherb/mathconv"
|
|
10
|
+
|
|
11
|
+
[workspace.lints.rust]
|
|
12
|
+
unsafe_code = "forbid"
|
|
13
|
+
|
|
14
|
+
[workspace.lints.clippy]
|
|
15
|
+
pedantic = { level = "warn", priority = -1 }
|
|
16
|
+
module_name_repetitions = "allow"
|
|
17
|
+
must_use_candidate = "allow"
|
|
18
|
+
unwrap_used = "deny"
|
|
19
|
+
expect_used = "deny"
|
|
20
|
+
panic = "deny"
|
|
21
|
+
indexing_slicing = "deny"
|
|
22
|
+
todo = "deny"
|
|
23
|
+
unimplemented = "deny"
|
|
24
|
+
dbg_macro = "deny"
|
|
25
|
+
print_stdout = "deny"
|
|
26
|
+
print_stderr = "deny"
|
|
27
|
+
|
|
28
|
+
# Tests convert many inputs; a little optimisation makes them several
|
|
29
|
+
# times faster for a small cost in build time.
|
|
30
|
+
[profile.test]
|
|
31
|
+
opt-level = 1
|
|
32
|
+
|
|
33
|
+
[profile.release]
|
|
34
|
+
lto = "fat"
|
|
35
|
+
codegen-units = 1
|
mathconv-0.1.0a1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Viktor Shcherbakov
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
mathconv-0.1.0a1/NOTICE
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
mathconv includes data derived from unicode.xml of the W3C xml-entities
|
|
2
|
+
repository (https://github.com/w3c/xml-entities), commit
|
|
3
|
+
efed20d963c6f4f9f26645f385b28439f069f4e3:
|
|
4
|
+
|
|
5
|
+
unicode.xml
|
|
6
|
+
Copyright David Carlisle 1999-2025
|
|
7
|
+
Use and distribution of this code are permitted under the terms of the
|
|
8
|
+
W3C Software Notice and License.
|
|
9
|
+
http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231.html
|
|
10
|
+
|
|
11
|
+
The derived files are crates/mathconv/src/tables/symbols.rs, letters.rs,
|
|
12
|
+
entities.rs and operators.rs. `cargo xtask tables` produces them from
|
|
13
|
+
unicode.xml by selecting the LaTeX commands, styled letters, entity
|
|
14
|
+
names and operator dictionary entries and writing them as Rust arrays.
|
|
15
|
+
They were produced on 2026-12-03.
|
|
16
|
+
|
|
17
|
+
The W3C Software Notice and License (2002-12-31) follows.
|
|
18
|
+
|
|
19
|
+
By obtaining, using and/or copying this work, you (the licensee) agree
|
|
20
|
+
that you have read, understood, and will comply with the following
|
|
21
|
+
terms and conditions.
|
|
22
|
+
|
|
23
|
+
Permission to copy, modify, and distribute this software and its
|
|
24
|
+
documentation, with or without modification, for any purpose and
|
|
25
|
+
without fee or royalty is hereby granted, provided that you include
|
|
26
|
+
the following on ALL copies of the software and documentation or
|
|
27
|
+
portions thereof, including modifications:
|
|
28
|
+
|
|
29
|
+
1. The full text of this NOTICE in a location viewable to users of the
|
|
30
|
+
redistributed or derivative work.
|
|
31
|
+
2. Any pre-existing intellectual property disclaimers, notices, or
|
|
32
|
+
terms and conditions. If none exist, the W3C Software Short Notice
|
|
33
|
+
should be included (hypertext is preferred, text is permitted)
|
|
34
|
+
within the body of any redistributed or derivative code.
|
|
35
|
+
3. Notice of any changes or modifications to the files, including the
|
|
36
|
+
date changes were made. (We recommend you provide URIs to the
|
|
37
|
+
location from which the code is derived.)
|
|
38
|
+
|
|
39
|
+
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT
|
|
40
|
+
HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,
|
|
41
|
+
INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS
|
|
42
|
+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
|
|
43
|
+
DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
|
|
44
|
+
TRADEMARKS OR OTHER RIGHTS.
|
|
45
|
+
|
|
46
|
+
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL
|
|
47
|
+
OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
|
|
48
|
+
DOCUMENTATION.
|
|
49
|
+
|
|
50
|
+
The name and trademarks of copyright holders may NOT be used in
|
|
51
|
+
advertising or publicity pertaining to the software without specific,
|
|
52
|
+
written prior permission. Title to copyright in this software and any
|
|
53
|
+
associated documentation will at all times remain with copyright
|
|
54
|
+
holders.
|