{"id":389,"date":"2025-08-10T05:37:08","date_gmt":"2025-08-10T05:37:08","guid":{"rendered":"https:\/\/hotro.org\/?p=389"},"modified":"2025-08-10T10:13:24","modified_gmt":"2025-08-10T10:13:24","slug":"cong-cu-chuyen-doi-tieng-viet-co-dau-sang-khong-dau","status":"publish","type":"post","link":"https:\/\/hotro.org\/?p=389","title":{"rendered":"C\u00f4ng c\u1ee5 chuy\u1ec3n \u0111\u1ed5i Ti\u1ebfng Vi\u1ec7t c\u00f3 d\u1ea5u sang kh\u00f4ng d\u1ea5u"},"content":{"rendered":"\n<div class=\"diacritic-converter\">\n<h1>Chuy\u1ec3n Ti\u1ebfng Vi\u1ec7t c\u00f3 d\u1ea5u th\u00e0nh kh\u00f4ng d\u1ea5u<\/h1>\n<textarea id=\"inputText\" placeholder=\"Nh\u1eadp v\u0103n b\u1ea3n c\u00f3 d\u1ea5u...\" rows=\"4\"><\/textarea>\n<div class=\"option\">\n<input type=\"checkbox\" id=\"toLowerCase\" checked>\n<label for=\"toLowerCase\">X\u00f3a d\u1ea5u, chuy\u1ec3n ch\u1eef th\u01b0\u1eddng<\/label>\n<\/div>\n<div class=\"option\">\n<input type=\"checkbox\" id=\"addHyphen\">\n<label for=\"addHyphen\">Th\u00eam d\u1ea5u &#8211; gi\u1eefa c\u00e1c t\u1eeb<\/label>\n<\/div>\n<div class=\"option\">\n<input type=\"checkbox\" id=\"toUpperCase\">\n<label for=\"toUpperCase\">Gi\u1eef d\u1ea5u, in hoa to\u00e0n b\u1ed9<\/label>\n<\/div>\n<div class=\"option\">\n<input type=\"checkbox\" id=\"keepDiacriticsLower\">\n<label for=\"keepDiacriticsLower\">Gi\u1eef d\u1ea5u, vi\u1ebft th\u01b0\u1eddng t\u1ea5t c\u1ea3<\/label>\n<\/div>\n<button type=\"button\" onclick=\"convertText()\">Chuy\u1ec3n \u0111\u1ed5i<\/button>\n<div id=\"result\" class=\"result-container\">\n<span id=\"resultText\">K\u1ebft qu\u1ea3 s\u1ebd hi\u1ec3n th\u1ecb \u1edf \u0111\u00e2y&#8230;<\/span>\n<button type=\"button\" class=\"copy-button\" onclick=\"copyResult()\"><i class=\"fas fa-copy\"><\/i> Copy<\/button>\n<div id=\"toast\" class=\"toast\"><\/div>\n<\/div>\n<style>\n@import url('https:\/\/fonts.googleapis.com\/css2?family=Roboto&display=swap');\n@import url('https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/5.15.4\/css\/all.min.css');\n.diacritic-converter h1{text-align:center;color:#333;font-size:24px;margin-bottom:20px}\n.diacritic-converter button{display:block;width:100%;padding:10px;background:#007bff;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:16px}\n.diacritic-converter button:hover{background:#0056b3}\n.diacritic-converter .copy-button{position:absolute;top:5px;right:5px;width:auto;padding:5px 10px;font-size:14px;background:#28a745;border-radius:3px;display:flex;align-items:center}\n.diacritic-converter .copy-button:active{background:#1e7e34;transition:background-color .2s}\n.diacritic-converter .copy-button i{margin-right:5px}\n.diacritic-converter .copy-button:hover{background:#218838}\n.diacritic-converter .option{display:flex;align-items:center;gap:8px;margin:10px 0}\n.diacritic-converter .option input[type=\"checkbox\"]{margin:0}\n.diacritic-converter .option label{margin:0}\n.diacritic-converter .toast{position:absolute;bottom:-40px;right:5px;padding:8px 16px;background:#333;color:#fff;border-radius:4px;opacity:0;transition:opacity .3s;z-index:10;font-family:'Roboto',Arial,sans-serif;font-size:14px}\n.diacritic-converter .toast.show{opacity:1}\n@media (min-width: 768px) {\n.diacritic-converter{font-family:'Roboto',Arial,sans-serif;max-width:100%;margin:10px auto;padding:30px 60px;background:#fff;border-radius:8px;box-shadow:0 0 10px rgba(0,0,0,0.1)}\n.diacritic-converter textarea{width:100%;margin:10px 0;padding:10px;border:1px solid #ccc;border-radius:4px;resize:vertical;box-sizing:border-box;font-family:'Roboto',Arial,sans-serif}\n.diacritic-converter .result-container{position:relative;margin-top:20px;padding:10px;background:#e9ecef;border-radius:4px;min-height:50px;font-family:'Roboto',Arial,sans-serif}\n}\n@media (max-width: 767px) {\n.diacritic-converter{font-family:'Roboto',Arial,sans-serif;max-width:100%;margin:0 auto;padding:20px 0;background:#fff;border-radius:8px;box-shadow:none}\n.diacritic-converter textarea{width:100%;min-height:200px;margin:10px 0;padding:10px;border:1px solid #ccc;border-radius:4px;resize:vertical;box-sizing:border-box;font-family:'Roboto',Arial,sans-serif}\n.diacritic-converter .result-container{position:relative;margin-top:20px;padding:10px;background:#e9ecef;border-radius:4px;min-height:150px;font-family:'Roboto',Arial,sans-serif}\n}\n<\/style>\n<script>\n!function(){function e(e){return e.normalize(\"NFD\").replace(\/[\\u0300-\\u036f]\/g,\"\").replace(\/\u0111\/g,\"d\").replace(\/\u0110\/g,\"D\")}window.convertText=function(){var t=document.getElementById(\"inputText\").value.trim(),o=document.getElementById(\"toUpperCase\").checked,n=document.getElementById(\"toLowerCase\").checked,c=document.getElementById(\"keepDiacriticsLower\").checked,l=document.getElementById(\"addHyphen\").checked;t=o?t.toUpperCase():c?t.toLowerCase():(t=e(t),n&&(t=t.toLowerCase())),l&&(t=t.replace(\/\\s+\/g,\"-\")),document.getElementById(\"resultText\").textContent=t||\"K\u1ebft qu\u1ea3 s\u1ebd hi\u1ec3n th\u1ecb \u1edf \u0111\u00e2y...\"},window.copyResult=function(){var e=document.getElementById(\"resultText\").textContent;if(\"K\u1ebft qu\u1ea3 s\u1ebd hi\u1ec3n th\u1ecb \u1edf \u0111\u00e2y...\"!==e){try{var t=document.createElement(\"textarea\");t.value=e,document.body.appendChild(t),t.select(),document.execCommand(\"copy\"),document.body.removeChild(t),o(\"\u0110\u00e3 copy!\")}catch(e){o(\"L\u1ed7i khi copy!\")}}else o(\"Ch\u01b0a c\u00f3 k\u1ebft qu\u1ea3 \u0111\u1ec3 copy!\")};function o(e){var t=document.getElementById(\"toast\");t.textContent=e,t.classList.add(\"show\"),setTimeout(function(){t.classList.remove(\"show\")},2e3)}}();\n<\/script>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Chuy\u1ec3n Ti\u1ebfng Vi\u1ec7t c\u00f3 d\u1ea5u th\u00e0nh kh\u00f4ng d\u1ea5u X\u00f3a d\u1ea5u, chuy\u1ec3n ch\u1eef th\u01b0\u1eddng Th\u00eam d\u1ea5u &#8211; gi\u1eefa c\u00e1c t\u1eeb Gi\u1eef d\u1ea5u, in hoa to\u00e0n b\u1ed9 Gi\u1eef d\u1ea5u, vi\u1ebft th\u01b0\u1eddng t\u1ea5t c\u1ea3 Chuy\u1ec3n \u0111\u1ed5i K\u1ebft qu\u1ea3 s\u1ebd hi\u1ec3n th\u1ecb \u1edf \u0111\u00e2y&#8230; Copy<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"categories":[26,23],"tags":[],"class_list":["post-389","post","type-post","status-publish","format-standard","hentry","category-mien-phi","category-tai-nguyen"],"_links":{"self":[{"href":"https:\/\/hotro.org\/index.php?rest_route=\/wp\/v2\/posts\/389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hotro.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hotro.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hotro.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hotro.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=389"}],"version-history":[{"count":3,"href":"https:\/\/hotro.org\/index.php?rest_route=\/wp\/v2\/posts\/389\/revisions"}],"predecessor-version":[{"id":392,"href":"https:\/\/hotro.org\/index.php?rest_route=\/wp\/v2\/posts\/389\/revisions\/392"}],"wp:attachment":[{"href":"https:\/\/hotro.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hotro.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hotro.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}