Back to skills
SKILL.md
897 Feature Text Canonicalizer E05cbcc2
ASecurityTechnical implementation notes for text normalization.
- 9 stars
- 0 votes
- 0 copies
- 0 views
- Added October 11, 2026
Security analysis
100/100npx -y skills add tools-only/X-Skills --skill 897-feature-text-canonicalizer_e05cbcc2 --agent claude-codeAre you the author of 897 Feature Text Canonicalizer E05cbcc2?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-897-feature-text-canonicalizer-e05cbcc2)---
phase: implementation
title: Implementation - Text Canonicalizer
description: Technical implementation notes for text normalization.
---
# Implementation Guide
## Code Structure
**How is the code organized?**
- `pdf_to_epub/validation/text_canonicalizer.py`
## Implementation Notes
**Key technical details to remember:**
### Unicode
Use python's `unicodedata` module.
### Ligatures Mapping
Include at least:
- `fi` -> `fi`
- `fl` -> `fl`
- `ff` -> `ff`
- `ffi` -> `ffi`
- `ffl` -> `ffl`
- `æ` -> `ae`
- `œ` -> `oe`
### Hyphenation Regex
`r"-\s*\n\s*"` should be replaced with `""` (empty string) to join words.
## Error Handling
**How do we handle failures?**
- Ensure it handles `None` input.
- Log instances where aggressive mode makes "destructive" changes if possible.
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.