Description
Implement typographic character replacements and character entity substitutions in compliance with the AsciiDoc specification outline.
Specification Reference
Proposed Changes
- Tests (TDD):
- Add unit tests in
tests/test_inlines_parsing.py and tests/test_resolver.py.
- Add local TCK fixtures for typographic replacement rules.
- Implementation:
- Implement typographic substitutions in
src/asciidoctrine/resolver.py or dedicated inline replacement pipeline.
- Update
docutils_backend.py and serializer.py to preserve or translate entity replacements.
Description
Implement typographic character replacements and character entity substitutions in compliance with the AsciiDoc specification outline.
Specification Reference
--->—or—)-between digits ->–)...->…or…)(C)->©), Registered ((R)->®), Trademark ((TM)->™)->,<-,=>,<=)Ӓ,&name;,)Proposed Changes
tests/test_inlines_parsing.pyandtests/test_resolver.py.src/asciidoctrine/resolver.pyor dedicated inline replacement pipeline.docutils_backend.pyandserializer.pyto preserve or translate entity replacements.