Description
Replace precomposed macron vowels with their corresponding unmarked ASCII vowel, preserving case.
Unicode text can be counted as code points, UTF-16 units, encoded bytes, or grapheme clusters. A literal character transformation follows a specific mapping and may preserve distinctions that a broader normalization would remove.
Replace precomposed macron vowels with their corresponding unmarked ASCII vowel, preserving case.
When to use this tool
Use Japanese Macron Romanization Search Variant when you need one explicitly bounded Unicode mapping, count, or encoding component.
How to use the tool and how it works
- Enter romanizedText. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read searchVariant. Use the output convention below.
Replace precomposed macron vowels with their corresponding unmarked ASCII vowel, preserving case. Also remove a combining macron immediately after an ASCII vowel.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| romanizedText | Romanized Text | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| searchVariant | Search Variant | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"romanizedText": "Tōkyō"
},
"output": {
"searchVariant": "Tokyo"
}
} Limitations and assumptions
- This is a specific lossy search transformation without general Unicode normalization, complete romanization equivalence, or preferred Japanese name verification.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Choose normalization and comparison rules for the intended language and preserve the original text when creating a search variant.
References
Similar or alternative tools
- Korean Name Hyphen Search Variant
Remove every ASCII hyphen from romanizedName and preserve all other characters as searchVariant.
- Public Orthography Diacritic Preserver
Return text unchanged and count code points whose Unicode category is a mark.