[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KJ8RANMT1JNYC5RN4YA1C4":3,"skill-same:01M6KJ8RANMT1JNYC5RN4YA1C4":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":13,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M6KJ8RANMT1JNYC5RN4YA1C4","pandoc-unicode-sanitize",null,"Pre-process Markdown to replace non-ASCII characters before pandoc PDF conversion","AG064\u002FOpenSpace","AG064","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184930299?v=4","01M6KHVFG7TB73NHX3RDYSTMH2","01M6KHVFMM7XA2PZA9Z83PHS3V",0,"MIT","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpandoc-unicode-sanitize\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31],"sanitize","pandoc","Unicode","pandoc unicode sanitize","PDF","markdown","process","conversion","ascii","2026-11-10 10:12:30",false,"---\nname: pandoc-unicode-sanitize\ndescription: Pre-process Markdown to replace non-ASCII characters before pandoc PDF conversion\n---\n\n# Pandoc Unicode Sanitization for PDF Conversion\n\n## Problem\n\nLaTeX (used by pandoc for PDF output) may fail or produce errors when encountering non-ASCII Unicode characters like currency symbols (₹, €, £), special quotes, or other Unicode characters not supported by the default LaTeX engine.\n\n## Solution\n\nPre-process Markdown files to replace problematic Unicode characters with ASCII equivalents before running pandoc PDF conversion.\n\n## Steps\n\n### 1. Identify Problematic Characters\n\nCommon problematic characters include:\n- Currency symbols: ₹, €, £, ¥\n- Special quotes: \" \" ' '\n- Arrows: →, ←, ↑, ↓\n- Bullets: •, ◦\n- Other symbols: ©, ®, ™, ±, ×, ÷, —, –\n\n### 2. Create a Sed Substitution Script\n\nCreate a shell script for reusable sanitization:\n\n```bash\n#!\u002Fbin\u002Fbash\n# sanitize-for-pdf.sh\n\nsed -e 's\u002F₹\u002FRs\u002Fg' \\\n    -e 's\u002F€\u002FEUR\u002Fg' \\\n    -e 's\u002F£\u002FGBP\u002Fg' \\\n    -e 's\u002F¥\u002FJPY\u002Fg' \\\n    -e 's\u002F\"\u002F\"\u002Fg' \\\n    -e 's\u002F\"\u002F\"\u002Fg' \\\n    -e \"s\u002F'\u002F'\u002Fg\" \\\n    -e \"s\u002F'\u002F'\u002Fg\" \\\n    -e 's\u002F→\u002F->\u002Fg' \\\n    -e 's\u002F←\u002F\u003C-\u002Fg' \\\n    -e 's\u002F•\u002F-\u002Fg' \\\n    -e 's\u002F©\u002F(c)\u002Fg' \\\n    -e 's\u002F®\u002F(R)\u002Fg' \\\n    -e 's\u002F™\u002F(TM)\u002Fg' \\\n    -e 's\u002F±\u002F+\u002F -\u002Fg' \\\n    -e 's\u002F×\u002Fx\u002Fg' \\\n    -e 's\u002F÷\u002F\\\u002F\u002Fg' \\\n    -e 's\u002F—\u002F--\u002Fg' \\\n    -e 's\u002F–\u002F-\u002Fg' \\\n    \"$1\"\n```\n\n### 3. Run Sanitization Before Pandoc\n\n```bash\n# Using the script\n.\u002Fsanitize-for-pdf.sh input.md > sanitized.md\npandoc sanitized.md -o output.pdf\n\n# Or inline\ncat input.md | sed 's\u002F₹\u002FRs\u002Fg; s\u002F€\u002FEUR\u002Fg; s\u002F£\u002FGBP\u002Fg' | pandoc -o output.pdf\n```\n\n### 4. Alternative: Use iconv for Automatic Transliteration\n\nFor broader Unicode coverage:\n\n```bash\niconv -f UTF-8 -t ASCII\u002F\u002FTRANSLIT \u003C input.md > sanitized.md\npandoc sanitized.md -o output.pdf\n```\n\n### 5. Alternative: Use XeLaTeX or LuaLaTeX Engine\n\nIf you want to preserve Unicode characters, use a Unicode-capable engine:\n\n```bash\npandoc input.md -o output.pdf --pdf-engine=xelatex\n# or\npandoc input.md -o output.pdf --pdf-engine=lualatex\n```\n\n## Best Practices\n\n- Sanitize files before conversion rather than debugging LaTeX errors after\n- Keep a mapping of your organization's common symbols and preferred replacements\n- Test with a small sample before processing large documents\n- Consider using XeLaTeX\u002FLuaLaTeX if Unicode preservation is required\n- Document which characters cause issues in your specific environment\n\n## Common Error Signs\n\nLook for these LaTeX errors that indicate Unicode issues:\n- `Package inputenc Error: Unicode character ... not set up`\n- `LaTeX Error: Unicode character ... cannot be used with pdflatex`\n- Missing or garbled characters in the output PDF","# Pandoc Unicode Sanitization for PDF Conversion\n\n## Problem\n\nLaTeX (used by pandoc for PDF output) may fail or produce errors when encountering non-ASCII Unicode characters like currency symbols (₹, €, £), special quotes, or other Unicode characters not supported by the default LaTeX engine.\n\n## Solution\n\nPre-process Markdown files to replace problematic Unicode characters with ASCII equivalents before running pandoc PDF conversion.\n\n## Steps\n\n### 1. Identify Problematic Characters\n\nCommon problematic characters include:\n- Currency symbols: ₹, €, £, ¥\n- Special quotes: \" \" ' '\n- Arrows: →, ←, ↑, ↓\n- Bullets: •, ◦\n- Other symbols: ©, ®, ™, ±, ×, ÷, —, –\n\n### 2. Create a Sed Substitution Script\n\nCreate a shell script for reusable sanitization:\n\n```bash\n#!\u002Fbin\u002Fbash\n# sanitize-for-pdf.sh\n\nsed -e 's\u002F₹\u002FRs\u002Fg' \\\n    -e 's\u002F€\u002FEUR\u002Fg' \\\n    -e 's\u002F£\u002FGBP\u002Fg' \\\n    -e 's\u002F¥\u002FJPY\u002Fg' \\\n    -e 's\u002F\"\u002F\"\u002Fg' \\\n    -e 's\u002F\"\u002F\"\u002Fg' \\\n    -e \"s\u002F'\u002F'\u002Fg\" \\\n    -e \"s\u002F'\u002F'\u002Fg\" \\\n    -e 's\u002F→\u002F->\u002Fg' \\\n    -e 's\u002F←\u002F\u003C-\u002Fg' \\\n    -e 's\u002F•\u002F-\u002Fg' \\\n    -e 's\u002F©\u002F(c)\u002Fg' \\\n    -e 's\u002F®\u002F(R)\u002Fg' \\\n    -e 's\u002F™\u002F(TM)\u002Fg' \\\n    -e 's\u002F±\u002F+\u002F -\u002Fg' \\\n    -e 's\u002F×\u002Fx\u002Fg' \\\n    -e 's\u002F÷\u002F\\\u002F\u002Fg' \\\n    -e 's\u002F—\u002F--\u002Fg' \\\n    -e 's\u002F–\u002F-\u002Fg' \\\n    \"$1\"\n```\n\n### 3. Run Sanitization Before Pandoc\n\n```bash\n# Using the script\n.\u002Fsanitize-for-pdf.sh input.md > sanitized.md\npandoc sanitized.md -o output.pdf\n\n# Or inline\ncat input.md | sed 's\u002F₹\u002FRs\u002Fg; s\u002F€\u002FEUR\u002Fg; s\u002F£\u002FGBP\u002Fg' | pandoc -o output.pdf\n```\n\n### 4. Alternative: Use iconv for Automatic Transliteration\n\nFor broader Unicode coverage:\n\n```bash\niconv -f UTF-8 -t ASCII\u002F\u002FTRANSLIT \u003C input.md > sanitized.md\npandoc sanitized.md -o output.pdf\n```\n\n### 5. Alternative: Use XeLaTeX or LuaLaTeX Engine\n\nIf you want to preserve Unicode characters, use a Unicode-capable engine:\n\n```bash\npandoc input.md -o output.pdf --pdf-engine=xelatex\n# or\npandoc input.md -o output.pdf --pdf-engine=lualatex\n```\n\n## Best Practices\n\n- Sanitize files before conversion rather than debugging LaTeX errors after\n- Keep a mapping of your organization's common symbols and preferred replacements\n- Test with a small sample before processing large documents\n- Consider using XeLaTeX\u002FLuaLaTeX if Unicode preservation is required\n- Document which characters cause issues in your specific environment\n\n## Common Error Signs\n\nLook for these LaTeX errors that indicate Unicode issues:\n- `Package inputenc Error: Unicode character ... not set up`\n- `LaTeX Error: Unicode character ... cannot be used with pdflatex`\n- Missing or garbled characters in the output PDF",{"name":5,"description":7},"main","ff671ef61ed6587c49bd54c81cdc751c0b99e363","gdpval_bench\u002Fskills\u002Fpandoc-unicode-sanitize","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace","https:\u002F\u002Fgithub.com\u002FAG064","AG064, E.Mi.\r\n\r\nA person who thinks all the time, yet all they have to think about is nothing. I want to improve the world and work on open source projects","2026-10-08 06:53:48",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add AG064\u002FOpenSpace --skill pandoc-unicode-sanitize",{"tool":50,"command":51},"bunx","bunx skills add AG064\u002FOpenSpace --skill pandoc-unicode-sanitize",{"tool":53,"command":54},"pnpm","pnpm dlx skills add AG064\u002FOpenSpace --skill pandoc-unicode-sanitize","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpandoc-unicode-sanitize\u002FSKILL.md",true,[58],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},".skill_id","OTHER","其他",37,"https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpandoc-unicode-sanitize\u002F.skill_id",[65,89,106,115,145,161],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":32},"01M6KKMPWA0B5SCCH766F8M5EA","write-special-chars-ts-check","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) using a Python heredoc script, plus a reliable TypeScript type-checking step that filters output to only the newly-written files to avoid being misled by pre-existing errors.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-ts-check\u002FSKILL.md",[],[72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88],"write special chars ts check","check","write","filters","Existing","type-checking","for","errors","script","output","type","files","only","template","file","python","typescript",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":32},"01M6KKMJXVBNVEY3TRK055F4A7","write-special-chars-readback","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) using a Python heredoc script, with mandatory post-write verification via read_file and cleanup of \u002Ftmp helper scripts.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-readback\u002FSKILL.md",[],[96,97,74,85,98,99,86,87,100,101,102,103,104,78,80,105],"readback","write special chars readback","cleanup","read","scripts","verification","via","post","helper","with",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":32},"01M6KKMEGX9M9NC105J0W3Q5B9","write-special-chars-heredoc","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) by using a Python heredoc script executed via shell.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-heredoc\u002FSKILL.md",[],[74,113,87,78,102,85,114,86,80],"write special chars heredoc","shell",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":126,"publishedAt":32},"01M6KKM8EJ2AATVHZBNB916WT0","worldmonitor-reference","Curated architecture index of the WorldMonitor open-source dashboard. Reference for extracting patterns — vanilla TypeScript, Panel class hierarchy, service layer, CSS grid, API edge functions, refresh scheduler, and 60+ data source integrations.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fworldmonitor-reference\u002FSKILL.md",[121],{"categoryNo":122,"categoryName":123,"taxonomyType":124,"taxonomyTypeDesc":125},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[127,128,129,130,88,131,132,133,134,135,78,136,137,138,139,140,141,142,143,144],"reference","worldmonitor","worldmonitor reference","dashboard","css","architecture","extracting","hierarchy","source","layer","panel","patterns","edge functions","integrations","open","api","data","scheduler",{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":32},"01M6KKM39PHYK627F19GE2B9XN","virtual-list","Implement efficient virtual scrolling for rendering large lists with DOM recycling, chunk-based rendering, and performance optimizations","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fvirtual-list\u002FSKILL.md",[],[152,153,154,155,78,156,105,157,158,159,160],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":32},"01M6KKKY7T2P61Y0JH54CDEJKQ","verify-directory-structure","Diagnose and resolve file access issues by first verifying the directory structure.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fverify-directory-structure\u002FSKILL.md",[],[168,169,170,171,172,173,86,174,175,176],"directory","verify","structure","verify directory structure","access","first","issues","diagnose","file access"]