[Javascript] 한글과 영어 발음 상호 변환
- Korean, English Syllable JavaScript Romanizer , transliteration romanization
- 한글을 로마자로 바꾸기 or 로마자를 한글로 변경
* AaronO /kpop
https://github.com/AaronO/kpop - 10
- v0.1.1 , 2016.03
- Korean romanization utilities in JavaScript. Works everywhere (Browser, NodeJS,)
- 설치
npm install kpop
//-------------------------------------
- kpop 폴더로 이동, node_modules/kpop
- index.js 수정
- 전역 변수 설정
window.kpop = require('kpop');
//-------------------------------------
- Node.js 패키지를 브라우저에서 사용가능하게 수정
browserify index.js -o kpop.js
- 크기 : 453k (336k)
//-------------------------------------
- 사용
<script src="kpop.js"></script>
<script>
window.addEventListener('load', (event) => {
console.log(kpop.hangulify('yeoboseyo'));
console.log(kpop.romanize('안녕하세요'));
});
</script>
//-----------------------------------------------------------------------------
// 참고
//-------------------------------------
* dzcpy /transliteration
https://github.com/dzcpy/transliteration - 457
UTF-8 to ASCII transliteration / slugify module for node.js, browser
dzcpy.github.io/transliteration
- 영어 -> 한글 안됨
* victorteokw /kroman-js
https://github.com/victorteokw/kroman-js - 10
- Korean hangul romanization tool.
- 영어 -> 한글 안됨
* fujaru /aromanize-js
https://github.com/fujaru/aromanize-js - 4
- Korean transliteration utility for JavaScript
* vincenthanguk /McCune-Reischauer-Converter
https://github.com/vincenthanguk/McCune-Reischauer-Converter - 1
Converter Tool for Romanizing Korean Text
mccune-reischauer.netlify.app/
* yolstatrisch /korean-romanized-ime-js
https://github.com/yolstatrisch/korean-romanized-ime-js - 3
//------------------------
* anyascii /anyascii
https://github.com/anyascii/anyascii - 44
Unicode to ASCII transliteration - Go Java JS Julia PHP Python