Template:ja-accent-standard
- The following documentation is located at Template:ja-accent-standard/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
Usage
editUsage: {{ja-accent-standard|accent=accent type number|mora1|mora2|mora3...}}
accent type number: the accented mora, counting from left. 0 if no accented mora, i.e. heiban (平板型). So if the second mora is accented, this is 2. Note that small "っ", and "ー" (as in カード) count as one mora, whereas other small "ゅ", "ょ" etc, do not. Instead they're part of the proceeding mora. E.g. "せっしょく" consists of 4 morae: せ|っ|しょ|く.
Examples
edit{{ja-accent-standard|accent=0|し|め|い}}This gives: しめい [0]
{{ja-accent-standard|accent=1|あ|う}}This gives: あう [1]
{{ja-accent-standard|accent=3|こ|と|ば}}This gives: ことば [3]
{{ja-accent-standard|accent=2|に|ほ|ん}}This gives: にほん [2]
Limits
editCurrently only supports up to 10 morae and accent 0 to 4. Feel free to update template if necessary.