regen.mde 0.8.1 → 0.8.2
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.
- package/LICENSE +16 -16
- package/bin/build-corpus-editor.js +83 -83
- package/bin/build-corpus.js +41 -41
- package/bin/regen-mdeditor-install.js +27 -27
- package/bin/regen-mdeditor-uninstall.js +19 -19
- package/bin/validate-katex.js +93 -93
- package/desktop/BuildCorpusEditor/BuildCorpusEditor.csproj +22 -22
- package/desktop/BuildCorpusEditor/EditorForm.cs +58 -58
- package/desktop/BuildCorpusEditor/app.manifest +16 -16
- package/dist/release/{regen-mde-0.8.0-win-x64.zip → regen-mde-0.6.1-win-x64.zip} +0 -0
- package/dist/release/{regen-mde-0.8.1-win-x64.zip → regen-mde-0.8.2-win-x64.zip} +0 -0
- package/dist/windows-editor/BuildCorpusEditor.dll +0 -0
- package/dist/windows-editor/BuildCorpusEditor.exe +0 -0
- package/dist/windows-editor/BuildCorpusEditor.pdb +0 -0
- package/dist/windows-editor/wwwroot/index.html +20 -20
- package/editor-web/index.html +21 -21
- package/editor-web/src/main.jsx +107 -107
- package/editor-web/src/styles.css +99 -99
- package/editor-web/vite.config.js +13 -13
- package/examples/build-corpus.config.example.json +21 -21
- package/installer/install-regen-mde.ps1 +214 -214
- package/installer/regen-mde.nsi +81 -81
- package/package.json +1 -1
- package/pyproject.toml +1 -1
- package/scripts/build-windows-editor.ps1 +47 -47
- package/scripts/package-windows-editor.ps1 +90 -90
- package/scripts/run-corpus.ps1 +28 -28
- package/scripts/run-editor-implementation-plane.ps1 +226 -226
- package/scripts/run-required-tests.ps1 +98 -98
- package/scripts/run-smoke.ps1 +28 -28
- package/src/build_corpus/__init__.py +3 -3
- package/src/build_corpus/docx_exporter.py +10 -4
- package/src/build_corpus/equations.py +1345 -1345
- package/src/build_corpus/templates/__init__.py +1 -1
- package/src/build_corpus/validate_assets.py +46 -46
- package/tools/audit_corpus.py +203 -203
- package/tools/collect_microsoft_word_templates.py +228 -228
- package/tools/collect_online_docx_corpus.py +272 -272
- package/tools/collect_online_pptx_corpus.py +252 -252
- package/tools/compare_pptx_inputs_outputs.py +87 -87
- package/tools/roundtrip_docx_corpus.py +171 -171
|
@@ -113,32 +113,32 @@ button.ghost {
|
|
|
113
113
|
background: transparent;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
main.app-shell {
|
|
117
|
-
width: 100vw;
|
|
118
|
-
height: 100vh;
|
|
119
|
-
min-height: 720px;
|
|
120
|
-
display: grid;
|
|
121
|
-
grid-template-columns: 58px 260px minmax(560px, 1fr) 320px;
|
|
116
|
+
main.app-shell {
|
|
117
|
+
width: 100vw;
|
|
118
|
+
height: 100vh;
|
|
119
|
+
min-height: 720px;
|
|
120
|
+
display: grid;
|
|
121
|
+
grid-template-columns: 58px 260px minmax(560px, 1fr) 320px;
|
|
122
122
|
grid-template-rows: 48px 1fr 30px;
|
|
123
123
|
overflow: hidden;
|
|
124
124
|
background:
|
|
125
125
|
linear-gradient(90deg, var(--grid-line-strong) 0 1px, transparent 1px 72px),
|
|
126
126
|
linear-gradient(var(--grid-line-soft) 0 1px, transparent 1px 72px),
|
|
127
|
-
var(--paper);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
main.app-shell.left-collapsed {
|
|
131
|
-
grid-template-columns: 58px 44px minmax(560px, 1fr) 320px;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
main.app-shell.right-collapsed {
|
|
135
|
-
grid-template-columns: 58px 260px minmax(560px, 1fr) 44px;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
main.app-shell.left-collapsed.right-collapsed {
|
|
139
|
-
grid-template-columns: 58px 44px minmax(560px, 1fr) 44px;
|
|
140
|
-
}
|
|
141
|
-
|
|
127
|
+
var(--paper);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
main.app-shell.left-collapsed {
|
|
131
|
+
grid-template-columns: 58px 44px minmax(560px, 1fr) 320px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
main.app-shell.right-collapsed {
|
|
135
|
+
grid-template-columns: 58px 260px minmax(560px, 1fr) 44px;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
main.app-shell.left-collapsed.right-collapsed {
|
|
139
|
+
grid-template-columns: 58px 44px minmax(560px, 1fr) 44px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
142
|
.brand-rail {
|
|
143
143
|
grid-row: 1 / 4;
|
|
144
144
|
border-right: 1px solid var(--line);
|
|
@@ -213,82 +213,82 @@ main.app-shell.left-collapsed.right-collapsed {
|
|
|
213
213
|
gap: 6px;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
.side-panel {
|
|
217
|
-
border-color: var(--line);
|
|
218
|
-
background: var(--panel-bg);
|
|
219
|
-
padding: 14px;
|
|
220
|
-
overflow: auto;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.side-panel.collapsed {
|
|
224
|
-
overflow: hidden;
|
|
225
|
-
padding: 8px 5px;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.left-panel {
|
|
229
|
-
grid-row: 2 / 3;
|
|
230
|
-
grid-column: 2 / 3;
|
|
231
|
-
border-right: 1px solid var(--line);
|
|
232
|
-
}
|
|
216
|
+
.side-panel {
|
|
217
|
+
border-color: var(--line);
|
|
218
|
+
background: var(--panel-bg);
|
|
219
|
+
padding: 14px;
|
|
220
|
+
overflow: auto;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.side-panel.collapsed {
|
|
224
|
+
overflow: hidden;
|
|
225
|
+
padding: 8px 5px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.left-panel {
|
|
229
|
+
grid-row: 2 / 3;
|
|
230
|
+
grid-column: 2 / 3;
|
|
231
|
+
border-right: 1px solid var(--line);
|
|
232
|
+
}
|
|
233
233
|
|
|
234
234
|
.right-panel {
|
|
235
235
|
grid-row: 2 / 3;
|
|
236
236
|
grid-column: 4 / 5;
|
|
237
|
-
border-left: 1px solid var(--line);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.panel-chrome {
|
|
241
|
-
min-height: 28px;
|
|
242
|
-
display: flex;
|
|
243
|
-
align-items: center;
|
|
244
|
-
justify-content: space-between;
|
|
245
|
-
gap: 8px;
|
|
246
|
-
margin-bottom: 10px;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.left-panel .panel-chrome {
|
|
250
|
-
flex-direction: row-reverse;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.panel-toggle {
|
|
254
|
-
width: 28px;
|
|
255
|
-
min-width: 28px;
|
|
256
|
-
height: 28px;
|
|
257
|
-
min-height: 28px;
|
|
258
|
-
display: grid;
|
|
259
|
-
place-items: center;
|
|
260
|
-
padding: 0;
|
|
261
|
-
font-size: 17px;
|
|
262
|
-
line-height: 1;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.side-panel.collapsed .panel-chrome {
|
|
266
|
-
height: 100%;
|
|
267
|
-
min-height: 0;
|
|
268
|
-
flex-direction: column;
|
|
269
|
-
justify-content: flex-start;
|
|
270
|
-
margin: 0;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.side-panel.collapsed .panel-title {
|
|
274
|
-
writing-mode: vertical-rl;
|
|
275
|
-
transform: rotate(180deg);
|
|
276
|
-
white-space: nowrap;
|
|
277
|
-
margin: 10px 0 0;
|
|
278
|
-
max-height: calc(100vh - 150px);
|
|
279
|
-
overflow: hidden;
|
|
280
|
-
text-overflow: ellipsis;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.side-panel.collapsed .panel-body {
|
|
284
|
-
display: none;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.panel-title {
|
|
288
|
-
margin: 0 0 10px;
|
|
289
|
-
color: var(--muted);
|
|
290
|
-
font-size: 11px;
|
|
291
|
-
font-weight: 800;
|
|
237
|
+
border-left: 1px solid var(--line);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.panel-chrome {
|
|
241
|
+
min-height: 28px;
|
|
242
|
+
display: flex;
|
|
243
|
+
align-items: center;
|
|
244
|
+
justify-content: space-between;
|
|
245
|
+
gap: 8px;
|
|
246
|
+
margin-bottom: 10px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.left-panel .panel-chrome {
|
|
250
|
+
flex-direction: row-reverse;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.panel-toggle {
|
|
254
|
+
width: 28px;
|
|
255
|
+
min-width: 28px;
|
|
256
|
+
height: 28px;
|
|
257
|
+
min-height: 28px;
|
|
258
|
+
display: grid;
|
|
259
|
+
place-items: center;
|
|
260
|
+
padding: 0;
|
|
261
|
+
font-size: 17px;
|
|
262
|
+
line-height: 1;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.side-panel.collapsed .panel-chrome {
|
|
266
|
+
height: 100%;
|
|
267
|
+
min-height: 0;
|
|
268
|
+
flex-direction: column;
|
|
269
|
+
justify-content: flex-start;
|
|
270
|
+
margin: 0;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.side-panel.collapsed .panel-title {
|
|
274
|
+
writing-mode: vertical-rl;
|
|
275
|
+
transform: rotate(180deg);
|
|
276
|
+
white-space: nowrap;
|
|
277
|
+
margin: 10px 0 0;
|
|
278
|
+
max-height: calc(100vh - 150px);
|
|
279
|
+
overflow: hidden;
|
|
280
|
+
text-overflow: ellipsis;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.side-panel.collapsed .panel-body {
|
|
284
|
+
display: none;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.panel-title {
|
|
288
|
+
margin: 0 0 10px;
|
|
289
|
+
color: var(--muted);
|
|
290
|
+
font-size: 11px;
|
|
291
|
+
font-weight: 800;
|
|
292
292
|
text-transform: uppercase;
|
|
293
293
|
}
|
|
294
294
|
|
|
@@ -749,12 +749,12 @@ main.app-shell.left-collapsed.right-collapsed {
|
|
|
749
749
|
white-space: nowrap;
|
|
750
750
|
}
|
|
751
751
|
|
|
752
|
-
@media (max-width: 840px) {
|
|
753
|
-
body {
|
|
754
|
-
min-width: 760px;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
main.app-shell {
|
|
752
|
+
@media (max-width: 840px) {
|
|
753
|
+
body {
|
|
754
|
+
min-width: 760px;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
main.app-shell {
|
|
758
758
|
grid-template-columns: 52px 1fr;
|
|
759
759
|
grid-template-rows: 48px 1fr 30px;
|
|
760
760
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineConfig } from "vite";
|
|
2
|
-
import react from "@vitejs/plugin-react";
|
|
3
|
-
import path from "node:path";
|
|
4
|
-
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
root: path.resolve(import.meta.dirname),
|
|
7
|
-
base: "./",
|
|
8
|
-
plugins: [react()],
|
|
9
|
-
build: {
|
|
10
|
-
outDir: "../desktop/BuildCorpusEditor/wwwroot",
|
|
11
|
-
emptyOutDir: true,
|
|
12
|
-
},
|
|
13
|
-
});
|
|
1
|
+
import { defineConfig } from "vite";
|
|
2
|
+
import react from "@vitejs/plugin-react";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
root: path.resolve(import.meta.dirname),
|
|
7
|
+
base: "./",
|
|
8
|
+
plugins: [react()],
|
|
9
|
+
build: {
|
|
10
|
+
outDir: "../desktop/BuildCorpusEditor/wwwroot",
|
|
11
|
+
emptyOutDir: true,
|
|
12
|
+
},
|
|
13
|
+
});
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
{
|
|
2
|
-
"conversion": {
|
|
3
|
-
"equations": "tex",
|
|
4
|
-
"images": "assets"
|
|
5
|
-
},
|
|
6
|
-
"output": {
|
|
7
|
-
"out": ".codex/build-corpus/out",
|
|
8
|
-
"out_same_dir": false
|
|
9
|
-
},
|
|
10
|
-
"s3": {
|
|
11
|
-
"bucket": "build-corpus-assets",
|
|
12
|
-
"public_base_url": "https://assets.example.com",
|
|
13
|
-
"prefix": "build-corpus",
|
|
14
|
-
"endpoint_url": "https://ACCOUNT_ID.r2.cloudflarestorage.com",
|
|
15
|
-
"region_name": "auto",
|
|
16
|
-
"access_key_id": "%R2_ACCESS_KEY_ID%",
|
|
17
|
-
"secret_access_key": "%R2_SECRET_ACCESS_KEY%",
|
|
18
|
-
"cache_control": "public, max-age=31536000, immutable",
|
|
19
|
-
"acl": null
|
|
20
|
-
}
|
|
21
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"conversion": {
|
|
3
|
+
"equations": "tex",
|
|
4
|
+
"images": "assets"
|
|
5
|
+
},
|
|
6
|
+
"output": {
|
|
7
|
+
"out": ".codex/build-corpus/out",
|
|
8
|
+
"out_same_dir": false
|
|
9
|
+
},
|
|
10
|
+
"s3": {
|
|
11
|
+
"bucket": "build-corpus-assets",
|
|
12
|
+
"public_base_url": "https://assets.example.com",
|
|
13
|
+
"prefix": "build-corpus",
|
|
14
|
+
"endpoint_url": "https://ACCOUNT_ID.r2.cloudflarestorage.com",
|
|
15
|
+
"region_name": "auto",
|
|
16
|
+
"access_key_id": "%R2_ACCESS_KEY_ID%",
|
|
17
|
+
"secret_access_key": "%R2_SECRET_ACCESS_KEY%",
|
|
18
|
+
"cache_control": "public, max-age=31536000, immutable",
|
|
19
|
+
"acl": null
|
|
20
|
+
}
|
|
21
|
+
}
|