Template:Ko-rm/doc
This is the documentation page for Ko-rm. It contains usage information, categories, and other content not part of the original template page. | ||
|---|---|---|
| Main | Documentation | Usage |
Template to automate the romanization of Korean text based on the Honkai: Nexus Anima Wiki:Korean guidelines.
Syntax
{{ko-rm|Korean text|capi = include to capitalize everything|sent = include to use sentence case}}
- ^ will capitalize the following syllable.
- _ will decapitalize the following syllable.
- Hyphenation and spacing corrections
- < > can be added to insert a space into the romanization. This should only be used when a space is needed around punctuation. Do not use this to break words into two. For example:
- {{ko-rm|…으윽…< >흠.|sent = 1}} yields: ...Eueuk... Heum.
- <-> can be added to insert a hyphen into the romanization. For example:
- {{ko-rm|나<->의}} yields: na-ui
- <・: > can be used instead of just ・ to romanize it as a space instead of a spaced hyphen.
- {{ko-rm|야곱<・: >머스크|capi = 1}} yields: Yagop Meoseukeu
- Irregular pronunciation corrections
- nn — {{ko-rm|Korean text|nn = position of the syllable containing ᄅ}} will transcribe the specified intersyllabic "ᆫᄅ" sequence as nn instead of the default ll. For example:
- {{ko-rm|생산량|nn = 3}} yields: saengsannyang
- ni — {{ko-rm|Korean text|ni = position of the syllable containing 이/야/여/요/유}} will add the "ㄴ" to the specified syllable for the "ㄴ addition" rule. For example:
- {{ko-rm|옛이야기|ni = 2}} yields: yenniyagi
- bcred — {{ko-rm|Korean text|bcred = position of the syllable containing the batchim to reduce}} will reduce the consonant cluster in the specified syllable or neutralize the batchim in the specified syllable prior to consonant assimilation. This can also be used to block palatalization. For example:
- When counting positions, spaces are included in the count but not punctuation.
- If multiple of each irregularity exists, their positions may be listed with commas. For example:
- {{ko-rm|생산량, 곧이어, 생산량, 곧이어|nn = 3,11|bcred = 5,13}} yields: saengsannyang, godieo, saengsannyang, godieo
- Given names
- Surround any part of the Korean text with // on both sides for given names to romanize with the exceptions noted in the guidelines. For example:
- {{ko-rm|//종려//의 운명의 별}} yields: Jongnyeo-ui unmyeong'ui byeol
- Numbers
- The reading of numbers can be added into the original text in the format <number:reading in Hangul>. For example:
- {{ko-rm|<11:열한>시 <11:십일>분}} yields: yeolhansi sibilbun
Examples
- Default
{{ko-rm|「외눈박이 월드」}} yields: "oenunbagi woldeu"
- Forced capitalization
{{ko-rm|방^랑자}} yields: bangNangja
- Title case
{{ko-rm|새벽의 어둠|capi = 1}} yields: Saebyeogui Eodum
{{ko-rm|…으윽…< >흠, 유쾌하지 않은 일들이 생각났어|capi = 1}} yields: ...Eueuk... Heum, Yukwaehaji Aneun Ildeuri Saenggangnasseo
{{ko-rm|1 = 속세를 비웃는 백 가지 {{tt|자태|姿態}}자태자태{{Sino|ko}}[※][※]|capi = 1}} yields: Soksereul Biunneun Baek Gaji Jatae
- Sentence case
{{ko-rm|…으윽…흠, 유쾌하지 않은 일들이 생각났어|sent = 1}} yields: ...Eueuk...Heum, yukwaehaji aneun ildeuri saenggangnasseo
{{ko-rm|1 = 속세를 비웃는 백 가지 {{tt|자태|姿態}}자태자태{{Sino|ko}}[※][※]|sent = 1}} yields: Soksereul biunneun baek gaji jatae
Template Data
Template to automate the romanization of Korean text
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text | 1 | Korean text to be romanized.
| String | required |
| Title Case | capi | Transform the romanization into title case. | Boolean | suggested |
| Sentence Case | sent | Transform the romanization into sentence case. | Boolean | suggested |
| ᆫᄅ as nn | nn | Romanize the initial of the specified character as if it were ㄴ. | String | suggested |
| ㄴ Addition | ni | Add a ㄴ before the specified character. | String | suggested |
| Batchim Reduction | bcred | Reduce the batchim of the specified character. | String | suggested |