How duydev/vietnamese-conversion works
Key Components to Include:
Core Components
• Input Handler (handles incoming text and source charset)
• Charset Converter Engine
• Output Formatter
• Supported Charsets (Unicode, VNI, TCVN3, VIQR)
Component Details
a. Input Layer:
• Two entry points:
• Class-based interface (VietnameseConversion class)
• Functional interface (direct conversion functions)
• Input validation for text and charset type
b. Processing Layer:
• Charset Registry (from charsets.ts)
• Conversion Engine (core logic)
• Character Mapping System
• Transformation Rules
c. Output Layer:
• Output Formatter
• Result Validation
Specific Elements
a. Components:
• Use rounded rectangles for entry points
b. Connections:
Technical Details to Highlight
• TypeScript interfaces (from VietnameseConversionInterface.ts)
• Character set definitions
• Conversion functions
• Type definitions (from types.ts)
Additional Notes
• Both the OOP and functional pathways
• Where type checking occurs
• Error handling points
Remember to:
• Version/build workflow indicators
• Test coverage points
• Where configuration is loaded
• Entry points for both npm and yarn installations