From dita-tools
Replaces HTML entity references like , —, © with Unicode equivalents in AsciiDoc files using Ruby script for DITA compatibility. Useful for fixing entities or DITA prep in .adoc files.
npx claudepluginhub redhat-documentation/redhat-docs-agent-tools --plugin dita-toolsThis skill is limited to using the following tools:
Replace unsupported HTML character entity references with their Unicode equivalents for DITA compatibility.
Removes hard line breaks from AsciiDoc files using Ruby script for DITA compatibility. Use when fixing line breaks, removing forced breaks, or preparing files for DITA conversion.
Reviews AsciiDoc (.adoc) files for Red Hat modular documentation compliance: module types (concept, procedure, reference), assembly structure, anchor IDs with _{context}, context variables, and include directives.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
Replace unsupported HTML character entity references with their Unicode equivalents for DITA compatibility.
This skill uses the entity_reference.rb Ruby script to find and replace HTML character entity references (like , —, ©) with their Unicode character equivalents. DITA only supports five XML entities: &, <, >, ', and ".
| Entity | Unicode | Description |
|---|---|---|
| | Non-breaking space |
– | – | En dash |
— | — | Em dash |
… | … | Horizontal ellipsis |
© | © | Copyright |
® | ® | Registered trademark |
™ | ™ | Trademark |
→ | → | Right arrow |
← | ← | Left arrow |
When the user asks to fix entity references:
.adoc files in the target locationruby scripts/entity_reference.rb <file>
To preview changes without modifying files:
ruby scripts/entity_reference.rb <file> --dry-run
ruby scripts/entity_reference.rb <file> -o <output.adoc>
&, <, >, ', and " are left unchangedsubs="replacements" or subs="normal"<file>: Replaced N entity reference(s)
Unknown entities (not replaced):
Line X: &unknown;
The Ruby script is located at: scripts/entity_reference.rb