Namespace: misc

hangul. misc

Miscellaneous functions
Source:

Methods

<static> applyFullWidthStyle(text)

Writes the specified hangul text in a full-width (全角) style.
Parameters:
Name Type Description
text string
Source:

<static> getInitials(text)

Writes the specified hangul text in an initials-only style (초성체).
Parameters:
Name Type Description
text string
Source:

<static> nudgeFinals(text)

Moves every final of hangul syllables in the text to the initial of the next syllable as long as the pronunciation is same (종성 내려 쓰기).
Parameters:
Name Type Description
text string
Source:
Example
hangul.misc.nudgeFinals('남이섬에 가요');  // returns '나미서메 가요'

<static> serialize(text)

Writes the specified hangul text in a serialized style (풀어쓰기).
Parameters:
Name Type Description
text string
Source:

<static> tugInitials(text)

Moves every initial of hangul syllables in the text to the final of the previous syllable as long as the pronunciation is same (초성 올려 쓰기).
Parameters:
Name Type Description
text string
Source:
Example
hangul.misc.tugInitials('여기서 놉세');  // returns '역잇어 놊에'

<static> withNoShift(text, layout)

Writes the specified hangul text as if it is typed without using the shift key.
Parameters:
Name Type Description
text string
layout namespace hangul.dubeol or hangul.sebeol
Source:

<static> withShift(text, layout)

Writes the specified hangul text as if it is typed with the shift key pressed all the time.
Parameters:
Name Type Description
text string
layout namespace hangul.dubeol or hangul.sebeol
Source: