Khmer Unicode Sorter & Fixer
Fixes corrupted or misordered Khmer Unicode text sequences caused by old keyboard layouts or PDF extractions. Ensures perfect rendering across all browsers and devices.
á˘áááááááááááá˝áá ááá˝á áááá ááááá áááḠPDF áŹááááááááá áśáá ááááááá˝ááááá áśáááááááááťááááááá áŹáážáááźá á
About & How It Works
Technical calculation logic, standards, and operational details
The Khmer Unicode Sorter & Fixer is a specialized text normalization tool that resolves one of the most persistent issues in Khmer digital publishing: incorrect Unicode codepoint ordering within syllable clusters. Khmer script is an Abugida â each consonant carries an inherent vowel, and diacritics, subscript consonants (Coeng, U+17D2), and vowel signs must appear in a precise Unicode sequence. When text is typed on legacy NiDA or Limon keyboard layouts, exported from PDF documents, or copied from poorly encoded websites, the codepoint order frequently deviates from the Unicode 3.0 specification for Khmer (U+1780âU+17FF). This produces visible symptoms: floating dotted circles (â, U+25CC), displaced vowel glyphs, subscripts appearing above baseline, or outright character substitution errors in font rendering engines.
Algorithmic Logic & Calculation
The normalizer applies a rule-based Unicode reordering algorithm modeled on the ICU (International Components for Unicode) Khmer break iterator logic. It identifies syllable boundaries by detecting base consonants (U+1780âU+17A2), then reorders any misplaced dependent vowels (U+17B6âU+17C5), subscript markers (Coeng U+17D2), diacritical marks (U+17C6âU+17D1), and independent vowels (U+17A3âU+17B3) into their canonical positions. The result is a clean NFC-normalized Unicode string that renders identically across Chrome, Firefox, Safari, and all major Khmer-aware font engines including Noto Khmer and Khmer OS.
Follows Unicode Standard 15.0 Khmer Block specification (U+1780âU+17FF), ICU Khmer break iterator rules, and Unicode Normalization Form C (NFC) as defined by Unicode Technical Report #15.
Key Features & Capabilities
Dotted Circle (â) Eliminator
Automatically detects and corrects syllable clusters that trigger the â placeholder glyph in Unicode-compliant renderers.
PDF & Legacy Keyboard Fix
Repairs text exported from Khmer PDF documents or typed on NiDA/Limon legacy keyboard layouts.
Cross-Browser Font Compatibility
Output renders consistently on Chrome, Firefox, Safari, and Khmer OS/Noto fonts without substitution errors.
NFC Unicode Normalization
Outputs NFC-normalized Khmer text conforming to Unicode Normalization Form C for maximum interoperability.
Practical Real-World Use Cases
Digital Publishing & Journalism
Editors paste PDF-extracted Khmer article text and normalize it before uploading to CMS platforms like WordPress or Kiripost.
Database & Search Engine Indexing
Sanitize Khmer strings before inserting into Elasticsearch, PostgreSQL, or SQL databases to prevent duplicate entries caused by encoding variants.
Font Testing & Typography QA
Type designers test how their Khmer OpenType lookups (pref, blwf, pstf) respond to canonical Unicode sequences after normalization.
How to Use
- Paste the text with broken rendering or misplaced Khmer letters.
- Click "Normalize & Fix".
- Copy the corrected Unicode text.
Complete Guide to Cambodian Riel (KHR) & Khmer Numerals
An in-depth guide exploring the historical origins of Khmer numerals (á -áŠ), linguistic counting structures, official National Bank of Cambodia formatting rules, and invoice word spelling.
Frequently Asked Questions
Related Khmer Tools
View all âKhmer Number Converter
Convert Arabic numbers to Khmer numerals and spelled-out words in Riel & USD.
Khmer Text Utilities & ZWSP
Count Khmer words, characters, remove or inspect Zero-Width Spaces (ZWSP).
Khmer Date & Buddhist Era (B.E.)
Convert Gregorian dates to Khmer Buddhist Era (á.á.), 12 animal zodiac, and Sak.
