Skip to content

Splitting your Korean sentence to each character likes 'Initial', 'Medial', 'Final'.

License

Notifications You must be signed in to change notification settings

yojkim/YKHangul

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

  • Create an YKHangul class in any swift file
class ViewController {

    // Create UILabel
    @IBOutlet var stringLabel: UILabel!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        let hangulSystem = YKHangul()
        
        /* result = ㅇㄴㅎㅅㅇ ㅈㄴ yojkim ㅇㄴㄷ. */
        stringLabel.text = hangulSystem.getStringConsonant(string: "안녕하세요 저는 yojkim 입니다.",
                                                           consonantType: .Initial)
    }
}
  • You can use different type of consonant
.Initial // 초성
.Medial  // 중성 
.Final   // 종성
  • Character except Korean represents originally

About

Splitting your Korean sentence to each character likes 'Initial', 'Medial', 'Final'.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages