Last active
September 15, 2021 15:03
-
-
Save nshermione/70598bbb098d150d2d88621d7b2517c3 to your computer and use it in GitHub Desktop.
Vietnamese characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const d = `qwertyuiopasdfghjklzxcvbnm | |
đ | |
ý ỳ ỵ ỹ ỷ | |
ă â | |
á ắ ấ | |
à ằ ầ | |
ã ẵ ẫ | |
ả ẳ ẩ | |
ạ ặ ậ | |
ơ ô | |
ó ớ ố | |
ò ờ ồ | |
õ ỡ ỗ | |
ỏ ở ổ | |
ọ ợ ộ | |
ư | |
ú ứ | |
ù ừ | |
ũ ữ | |
ủ ử | |
ụ ự | |
ê | |
é ế | |
è ề | |
ẽ ễ | |
ẻ ể | |
ẹ ệ | |
í | |
ì | |
ĩ | |
ỉ | |
ị` | |
lower = d.replace(/(\n| |\t)/g, '') | |
upper = ''; | |
for (let char of lower) { | |
upper += char.toUpperCase(); | |
} | |
sample = lower + upper + '1234567890!@#$%^&*()-_=+.,?/><;:"\\[]{}\''; | |
console.log(sample); | |
// qwertyuiopasdfghjklzxcvbnmđýỳỵỹỷăâáắấàằầãẵẫảẳẩạặậơôóớốòờồõỡỗỏởổọợộưúứùừũữủửụựêéếèềẽễẻểẹệíìĩỉịQWERTYUIOPASDFGHJKLZXCVBNMĐÝỲỴỸỶĂÂÁẮẤÀẰẦÃẴẪẢẲẨẠẶẬƠÔÓỚỐÒỜỒÕỠỖỎỞỔỌỢỘƯÚỨÙỪŨỮỦỬỤỰÊÉẾÈỀẼỄẺỂẸỆÍÌĨỈỊ1234567890!@#$%^&*()-_=+.,?/><;:"\[]{}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment