You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**CRITICAL**: Blackboard bold letters (especially **𝔻**) frequently appear in exams and MUST be converted to HTML entities. This is a common source of accessibility violations.
104
+
103
105
### Step 6: Handle Images (Diagrams, Figures)
104
106
**IMPORTANT**: Many exams contain diagrams (commutative diagrams, geometric figures, knot diagrams, etc.) that are extracted by Mathpix.
105
107
@@ -221,36 +223,131 @@ After saving the HTML file, you MUST update the link in `graduate/general_exams.
221
223
- Clearly labeling the PDF as "for printing" to indicate its purpose
222
224
- Using ARIA labels to communicate that PDFs may have accessibility limitations
223
225
224
-
### Step 10: Final Review - Read Both Files
225
-
After completing all processing steps, you MUST read both the original PDF and the generated HTML file to provide a final quality assessment:
226
+
### Step 10: COMPREHENSIVE LEGAL COMPLIANCE AUDIT
227
+
**⚠️ CRITICAL**: This step is MANDATORY as accessibility violations expose the website to ADA lawsuits. All items must pass.
228
+
229
+
After completing all processing steps, you MUST:
230
+
1. Read both the original PDF and the generated HTML file
231
+
2. Perform a thorough WCAG 2.1 Level AA compliance audit
232
+
3. Fix any violations immediately before declaring the file production-ready
226
233
227
234
```bash
228
235
# Read both files
229
236
Read <PATH_TO_PDF>
230
237
Read <PATH_TO_HTML>
231
238
```
232
239
233
-
**Review and report on:**
234
-
1. **Content Accuracy**: Verify that all mathematical expressions, problems, and text from the PDF are correctly represented in the HTML
235
-
2. **MathML Quality**: Confirm that math expressions render correctly as MathML (not SVG or Unicode)
236
-
3. **Accessibility**: Check that all accessibility features are present and correct:
237
-
- Proper title and H1 heading
238
-
- **H2 headings for EVERY problem** (e.g., "Problem 1", "Problem 2", etc.)
239
-
- Breadcrumb and back button navigation
240
-
- ARIA labels on math elements
241
-
- Semantic HTML structure
242
-
4. **Formatting and Spacing**: Ensure the HTML preserves the PDF's visual structure:
243
-
- Proper vertical spacing between main problems
244
-
- Problem structure is clear and readable
245
-
5. **Completeness**: Verify nothing was lost or corrupted during conversion
246
-
- Count problems in PDF and verify matching H2 headings in HTML
247
-
248
-
**Provide a concise summary stating:**
249
-
- ✓ What looks correct
250
-
- ⚠️ Any issues found (and fix them if possible)
251
-
- Overall assessment: "Ready for production" or "Needs fixes"
252
-
253
-
This final human-in-the-loop check ensures quality before the files go live.
240
+
## WCAG 2.1 Level AA Compliance Checklist
241
+
242
+
### 1. Document Structure (WCAG 1.3.1, 2.4.1)
243
+
- [ ] Valid HTML5 DOCTYPE present
244
+
- [ ] `lang="en"` attribute on `<html>` element
245
+
- [ ] UTF-8 character encoding declared
246
+
- [ ] Viewport meta tag for mobile accessibility
247
+
248
+
### 2. Page Title (WCAG 2.4.2)
249
+
- [ ] Descriptive `<title>` tag present (e.g., "Analysis General Exam August 2017 - UVA Mathematics")
0 commit comments