$ show Rocq-zh/SF-zh
This repository hosts a Chinese translation of the Software Foundations textbook series, providing an interactive web-based platform for learning formal methods and programming language theory using the Coq proof assistant. The architecture consists of volume-specific directories (LF, PLF, QC, SECF, SLF, VC, VFA) containing Coq source files, generated HTML, and shared interactive components. Key features include in-browser Coq proof checking via jsCoq, proof visibility toggling, bilingual term highlighting, and slide presentation mode. The system relies on external dependencies like jsCoq, jQuery, and jQuery UI for its interactive functionality.
The LLM identified 3 files worth highlighting for reuse:
Implements show/hide functionality for proof blocks in the interactive textbook. Uses event delegation to efficiently handle dynamic content and could be extracted for any educational content with collapsible sections.
Provides bilingual term highlighting by replacing English terms with Chinese equivalents (and vice versa) in the HTML. Self-contained with a term dictionary, reusable for any bilingual documentation or educational material.
Implements keyboard-navigable slide presentation with left/right arrow keys and slide counter. Manages slide state and UI updates, suitable for reuse in any web-based slide show or presentation system.