{"id":101,"date":"2026-10-03T21:06:00","date_gmt":"2026-10-03T13:06:00","guid":{"rendered":"https:\/\/xwyer.lykns.cn\/?p=101"},"modified":"2026-10-03T22:16:39","modified_gmt":"2026-10-03T14:16:39","slug":"%e5%ad%a6%e4%b9%a0%e9%80%9a%e7%ae%80%e7%ad%94%e9%a2%98%e7%b2%98%e8%b4%b4%e4%bb%a3%e7%a0%81%e7%94%9f%e6%88%90","status":"publish","type":"post","link":"https:\/\/xwyer.lykns.cn\/?p=101","title":{"rendered":"\u5b66\u4e60\u901a\u7b80\u7b54\u9898\u7c98\u8d34\u4ee3\u7801\u751f\u6210"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5c06 Word \u5185\u5bb9\u7c98\u8d34\u5230\u4e0b\u65b9\uff0c\u81ea\u52a8\u751f\u6210\u81ea\u52a8\u5339\u914d\u5b8b\u4f53\u548c<a href=\"https:\/\/fonts.adobe.com\/fonts\/times-new-roman\" target=\"_blank\" rel=\"noopener\"><\/a>Times New Roman\u7684\u6ce8\u5165\u4ee3\u7801\uff1a<\/p>\n\n\n\n<script data-wp-block-html=\"js\">\n(function(){\n    function initCxTool(){\n        var btn = document.getElementById('cx-generate-btn');\n        if(!btn){ setTimeout(initCxTool, 300); return; }\n\n        btn.addEventListener('click', function(){\n            var text = document.getElementById('cx-input-text').value;\n            if(!text.trim()){ alert('\u8bf7\u5148\u7c98\u8d34\u5185\u5bb9\uff01'); return; }\n\n            var lines = text.replace(\/\\r\\n\/g, '\\n').replace(\/\\r\/g, '\\n').split('\\n');\n            var html = buildHTML(lines);\n\n            var outArea = document.getElementById('cx-output-code');\n            var wrapDiv = document.getElementById('cx-output-wrap');\n            var statusSpan = document.getElementById('cx-status');\n            \n            \/\/ \u2705 \u73b0\u5728\u76f4\u63a5\u8f93\u51fa\u7eaf\u51c0\u7684 HTML\uff0c\u4e0d\u518d\u5305\u88f9 IIFE\n            outArea.value = html;\n            wrapDiv.style.display = 'block';\n\n            var hasClipboard = typeof navigator.clipboard !== 'undefined';\n            var isSecure = window.isSecureContext === true;\n            var canAutoCopy = hasClipboard * isSecure; \n\n            if(canAutoCopy === 1){\n                navigator.clipboard.writeText(html).then(function(){ \n                    showStatus(statusSpan); \n                }).catch(function(){ \n                    fallbackCopy(outArea, statusSpan); \n                });\n            } else {\n                fallbackCopy(outArea, statusSpan);\n            }\n        });\n    }\n\n    function buildHTML(lines){\n        var result = [];\n        for(var i = 0; i < lines.length; i++){\n            var line = lines[i];\n            if(line.trim() === ''){ \n                result.push('<p><br><\/p>'); \n                continue; \n            }\n            result.push('<p>' + parseLine(line) + '<\/p>');\n        }\n        return result.join('');\n    }\n\n    function parseLine(line){\n        var re = \/([^\\u4e00-\\u9fa5]+)\/g;\n        var out = '', last = 0, m;\n        while((m = re.exec(line)) !== null){\n            if(m.index > last){\n                out += '<span style=\"font-family:\u5b8b\u4f53,SimSun;font-size:16px;\">' + escHtml(line.substring(last, m.index)) + '<\/span>';\n            }\n            out += '<span style=\"font-family:&quot;times new roman&quot;,Times New Roman,serif;font-size:16px;\">' + escHtml(m[0]) + '<\/span>';\n            last = re.lastIndex;\n        }\n        if(last < line.length){\n            out += '<span style=\"font-family:\u5b8b\u4f53,SimSun;font-size:16px;\">' + escHtml(line.substring(last)) + '<\/span>';\n        }\n        return out;\n    }\n\n    function escHtml(s){\n        var d = document.createElement('div');\n        d.appendChild(document.createTextNode(s));\n        return d.innerHTML;\n    }\n\n    function fallbackCopy(ta, st){\n        ta.select(); \n        ta.setSelectionRange(0, 99999);\n        try{ document.execCommand('copy'); showStatus(st); }\n        catch(e){ alert('\u81ea\u52a8\u590d\u5236\u5931\u8d25\uff0c\u8bf7\u624b\u52a8\u5168\u9009\u4e0b\u65b9\u6587\u672c\u6846\u4e2d\u7684\u4ee3\u7801\u5e76\u590d\u5236\u3002'); }\n    }\n\n    function showStatus(el){ \n        el.style.opacity = '1'; \n        setTimeout(function(){ el.style.opacity = '0'; }, 3000); \n    }\n\n    if(document.readyState === 'loading'){\n        document.addEventListener('DOMContentLoaded', initCxTool);\n    } else {\n        initCxTool();\n    }\n})();\n<\/script>\n\n<div class=\"wp-block-group has-background\" style=\"padding:24px;border-radius:8px;\">\n    <textarea id=\"cx-input-text\" class=\"wp-block-search__input\" placeholder=\"\u5728\u6b64\u5904\u7c98\u8d34\u4f60\u7684Word\u5185\u5bb9...\n\u7b2c\u4e00\u884cEnglish\n\u7b2c\u4e8c\u884cEnglish\" style=\"min-height:160px;width:100%;font-family:'Times New Roman',SimSun,serif;margin-bottom:16px;\"><\/textarea>\n    \n    <div style=\"display:flex;align-items:center;gap:12px;flex-wrap:wrap;\">\n        <button id=\"cx-generate-btn\" class=\"wp-block-button__link wp-element-button\">\u751f\u6210\u6ce8\u5165\u4ee3\u7801\u5e76\u590d\u5236<\/button>\n        <span id=\"cx-status\" style=\"font-size:14px;font-weight:bold;color:var(--wp--preset--color--vivid-green-cyan,#00a32a);opacity:0;transition:opacity .3s;\">\u2705 \u4ee3\u7801\u5df2\u590d\u5236\uff01<\/span>\n    <\/div>\n\n    <div id=\"cx-output-wrap\" style=\"display:none;margin-top:24px;padding-top:20px;border-top:1px dashed var(--wp--preset--color--gray-400,#ccc);\">\n        <p><strong>\u751f\u6210\u7684 JS \u6ce8\u5165\u4ee3\u7801\uff1a<\/strong> <span style=\"font-size:12px;opacity:.7;\">(\u82e5\u81ea\u52a8\u590d\u5236\u5931\u8d25\u8bf7\u624b\u52a8\u5168\u9009\u590d\u5236)<\/span><\/p>\n        <textarea id=\"cx-output-code\" class=\"wp-block-code\" readonly=\"\" style=\"width:100%;height:140px;resize:none;margin-top:8px;\"><\/textarea>\n    <\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c06 Word \u5185\u5bb9\u7c98\u8d34\u5230\u4e0b\u65b9\uff0c\u81ea\u52a8\u751f\u6210\u81ea\u52a8\u5339\u914d\u5b8b\u4f53\u548cTimes New Roman\u7684\u6ce8\u5165\u4ee3\u7801\uff1a \u751f\u6210\u6ce8\u5165\u4ee3\u7801\u5e76 &#8230; <a title=\"\u5b66\u4e60\u901a\u7b80\u7b54\u9898\u7c98\u8d34\u4ee3\u7801\u751f\u6210\" class=\"read-more\" href=\"https:\/\/xwyer.lykns.cn\/?p=101\" aria-label=\"\u9605\u8bfb \u5b66\u4e60\u901a\u7b80\u7b54\u9898\u7c98\u8d34\u4ee3\u7801\u751f\u6210\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_ppma_block_editor_authors":""},"categories":[5],"tags":[],"ppma_author":[7],"class_list":["post-101","post","type-post","status-publish","format-standard","hentry","category-tools","author-captb"],"authors":[{"term_id":7,"user_id":1,"is_guest":0,"slug":"captb","display_name":"CaptB","avatar_url":{"url":"https:\/\/xwyer.lykns.cn\/wp-content\/uploads\/2026\/10\/CaptB.png","url2x":"https:\/\/xwyer.lykns.cn\/wp-content\/uploads\/2026\/10\/CaptB.png"},"avatar_alt":"","avatar_decorative":"","author_category":"1","first_name":"","last_name":"","user_url":"https:\/\/www.lykns.cn\/people\/captb\/","job_title":"LYKNS \u4e3b\u5e2d\u3001\u7ba1\u7406\u7ec4\u53ca\u8fd0\u8425\u7ec4\u6210\u5458","description":"<p>1966 \u5e74\u30012006 \u5e74\u4e24\u5ea6\u8363\u81ba\u300a\u65f6\u4ee3\u5468\u520a\u300b\u5e74\u5ea6\u98ce\u4e91\u4eba\u7269\uff1b2008 \u5e74\u83b7\u8bc4\u300a\u611f\u52a8\u4e2d\u56fd\u300b\u5e74\u5ea6\u4eba\u7269\uff1b2019 \u5e74\u83b7\u8054\u5408\u56fd\u201c\u5730\u7403\u536b\u58eb\u5956\u201d\u8054\u5408\u5956\uff1b2020 \u5e74\u83b7\u300a\u611f\u52a8\u4e2d\u56fd\u300b\u7279\u522b\u81f4\u656c\uff1b2022 \u5e74\u4e0e\u56e2\u961f\u5171\u83b7\u56fd\u9645\u5965\u59d4\u4f1a\u201c\u5965\u6797\u5339\u514b\u5956\u676f\u201d\u3002<\/p>"}],"_links":{"self":[{"href":"https:\/\/xwyer.lykns.cn\/index.php?rest_route=\/wp\/v2\/posts\/101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xwyer.lykns.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xwyer.lykns.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xwyer.lykns.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xwyer.lykns.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=101"}],"version-history":[{"count":1,"href":"https:\/\/xwyer.lykns.cn\/index.php?rest_route=\/wp\/v2\/posts\/101\/revisions"}],"predecessor-version":[{"id":102,"href":"https:\/\/xwyer.lykns.cn\/index.php?rest_route=\/wp\/v2\/posts\/101\/revisions\/102"}],"wp:attachment":[{"href":"https:\/\/xwyer.lykns.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xwyer.lykns.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xwyer.lykns.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=101"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/xwyer.lykns.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fppma_author&post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}