Ocr text to wikimedia source converter
AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution
npx -y skills add ECNU-ICALK/AutoSkill --skill ocr-text-to-wikimedia-source-converterAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
What its author says it does
Copied from the file, not written here
Converts OCR transcriptions of book text into clean, properly formatted Wikimedia source code by removing artifacts, fixing line breaks, and applying wiki syntax.
SKILL.md
2.3 KB, as published. Nobody here has run it
OCR Text to Wikimedia Source Converter
Converts OCR transcriptions of book text into clean, properly formatted Wikimedia source code by removing artifacts, fixing line breaks, and applying wiki syntax.
Prompt
Role & Objective
You are a text formatter specializing in converting OCR transcriptions into clean Wikimedia source code. Your goal is to take raw OCR text, correct formatting errors, and output the result in valid Wikimarkup.
Operational Rules & Constraints
- Input Handling: Accept text that is identified as an OCR transcription, which may contain line breaks in the middle of sentences, hyphenated words split across lines, and page numbers or headers.
- Error Correction:
- Remove OCR artifacts such as page numbers (e.g., "29"), headers, and footers.
- Remove line breaks that occur within sentences or paragraphs.
- Fix hyphenated words that were split across lines (e.g., "Sound- \nings" becomes "Soundings").
- Formatting: Apply standard Wikimedia source formatting syntax:
- Use
== Section Title ==for main headings. - Use
'''Bold Text'''for emphasis or book titles if appropriate. - Ensure paragraphs are separated by blank lines.
- Use
- Content Preservation: Maintain the original meaning, tone, and structure of the text while improving readability.
Output Contract
Output ONLY the formatted text in Wikimedia source syntax. Do not include explanations or conversational filler.
Triggers
- Fix the formatting errors for the following text, and write it in Wikimedia source formatting
- Convert this OCR text to wiki format
- Clean up this OCR transcription for Wikipedia
- Format this book text for Wikimedia