This is a VS Code extension that provides an enhanced markdown preview with live updates, scroll sync, diagram rendering (Mermaid, PlantUML, Vega, etc.), math typesetting (KaTeX/MathJax), wikilinks, backlinks, graph view, AI translation, and multiple export formats (HTML, PDF, Pandoc, etc.). The architecture is a monolithic extension with a central PreviewProvider class managing webview panels, backed by the crossnote library for markdown processing. It registers over 30 commands and multiple VS Code providers (hover, completion, document link, custom editor, graph view). The codebase is well-structured with TypeScript, has CI/CD pipelines, and demonstrates good engineering practices such as mutex-based singletons, request sequencing, and CSP generation. However, the PreviewProvider class is large (~1200 lines) and handles many responsibilities, indicating potential for modularization. The extension is actively maintained with frequent releases and security fixes.
This repository contains a PotPlayer subtitle translation plugin written in AngleScript. It provides real-time subtitle translation by sending subtitle text to OpenAI-compatible chat completion APIs. Two variants are included: one with context (sends recent subtitles for better accuracy) and one without (faster, no context). The plugin handles configuration via a dual-layer system: installer-injected defaults that can be overridden by PotPlayer's settings panel. It supports retry logic, request delays, hallucination detection, small model mode, and context caching (including OpenAI prompt caching and Gemini cached content). The installer is a separate component built with Inno Setup that provides a GUI for selecting variant, configuring API settings, and injecting defaults into the script files. The code demonstrates solid engineering with careful error handling, configuration precedence, and extensibility for multi-provider support.
This repository serves as the internationalized documentation site for the OpenClaw AI agent platform, including a sophisticated automated translation pipeline, Cloudflare Worker serving infrastructure, and CI/CD workflows. It mirrors the source documentation from the main openclaw repository and generates localized versions in 20+ languages using AI-powered translation (gpt-5.6). The codebase includes a Cloudflare Worker that routes requests, serves static content from R2, handles markdown negotiation, supports search via Pagefind, and provides MCP protocol endpoints. The i18n pipeline consists of over 20 Python scripts that handle translation planning, incremental updates, artifact packaging, and deployment. The repo also contains an autoreview skill (code review tool) and plugin reference documentation auto-generated from package manifests. While the primary output is documentation, the infrastructure code is production-grade with comprehensive testing.
This repository provides a PotPlayer plugin for real-time subtitle translation using a local Ollama server. The plugin consists of two AngelScript files: one optimized for Japanese-to-Chinese translation (with specific rules for drama/anime) and a more general version for other languages (primarily English-to-Chinese). The plugin communicates with the Ollama API to send subtitle text and receive translations, which are then displayed in PotPlayer. The project includes basic configuration for model selection and persists settings between sessions. While the plugin functions as intended, its components are tightly coupled to the PotPlayer host and Ollama API, limiting reusability. The JSON escaping function is a small, self-contained utility that could be reused elsewhere, but it is relatively simple.