{"id":89,"date":"2024-03-09T00:48:22","date_gmt":"2024-03-08T15:48:22","guid":{"rendered":"https:\/\/www.flumen-jp.com\/wordpress\/?p=89"},"modified":"2024-03-14T18:34:48","modified_gmt":"2024-03-14T09:34:48","slug":"fail_md_translate","status":"publish","type":"post","link":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/2024\/03\/09\/fail_md_translate\/","title":{"rendered":"Markdown \u306e\u81ea\u52d5\u7ffb\u8a33\u672a\u9042"},"content":{"rendered":"\n<p>\u3000\u4eca\u65e5\u3001\u548c\u6587\u3067\u66f8\u3044\u305f <a href=\"https:\/\/ja.wikipedia.org\/wiki\/Markdown\">Markdown<\/a> \u3092\u82f1\u6587\u306e\u305d\u308c\u306b\u7ffb\u8a33\u3059\u308b\u4e8b\u6848\u304c\u767a\u751f\u3057\u305f\u3002<br>\u3000\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u3067\u691c\u7d22\u3057\u305f\u3068\u3053\u308d <a href=\"https:\/\/github.com\/ilyachch\/md_docs-trans-app\">md_docs_trans-app<\/a> \u3068\u3044\u3046 Python \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u767a\u898b\u3057\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>git clone https:\/\/github.com\/ilyachch\/md_docs-trans-app.git\ncd md_docs-trans-app\npip install . -t .\\Lib<\/code><\/pre><\/div>\n\n\n\n<p>\u3000\u3053\u3046\u3059\u308b\u3068 .\\Lib\\bin\\md-translate.exe \u304c\u751f\u6210\u3055\u308c\u308b\u306e\u3067\u30b5\u30f3\u30d7\u30eb\u3068\u3057\u3066\u4e0b\u306b\u3057\u3081\u3059 test.md \u3092\u7528\u610f\u3057\u305f\u3046\u3048\u3067<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code># \u6761\u4ef6\u3092\u5206\u5c90\u3055\u305b\u308b\u305f\u3081\u306e IF \u6587\u306e\u4f7f\u3044\u65b9\u3068\u306f\uff1f\n## \u6761\u4ef6\u5206\u5c90\u3063\u3066\u4f55\uff1f\n\u6761\u4ef6\u5206\u5c90\u3068\u306f\u3001\u6307\u5b9a\u3057\u305f\u6761\u4ef6\u3067\u51e6\u7406\u3092\u5206\u3051\u308b\u65b9\u6cd5\n* \u8acb\u6c42\u66f8\u306e\u7de0\u3081\u6708\u304c\u4e0a\u671f\u3060\u3063\u305f\u5834\u5408\u306f\u3001\u3007\u3007\u3092\u4f7f\u3063\u3066\u8a08\u7b97\u3059\u308b\n* \u90e8\u7f72\u30b3\u30fc\u30c9\u304c A0001 \u306e\u5834\u5408\u306f\u958b\u767a\u90e8\u3001B0001 \u306e\u5834\u5408\u306fWEB\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u90e8\n* \u51e6\u7406\u6708\u304c 2014 \u5e74 4 \u672a\u6e80\u3060\u3063\u305f\u5834\u5408\u306f\u6d88\u8cbb\u7a0e 5%\u3001\u305d\u308c\u4ee5\u5916\u306f 8% \u3067\u8a08\u7b97\n## IF \u6587\u306e\u57fa\u790e\u7684\u306a\u4f7f\u3044\u65b9\n### \u6761\u4ef6\u304c 1 \u3064\u306e\u307f\n```vb\nIF \u6761\u4ef6 Then\n    &#39;\u6761\u4ef6\u306b\u4e00\u81f4\u3057\u305f\u3068\u304d\u306e\u51e6\u7406\u3092\u3053\u3053\u306b\u304b\u304f\nEnd if\n```<\/code><\/pre><\/div>\n\n\n\n<p>\u3000\u6b21\u306e\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u3067\u30c6\u30b9\u30c8\u3057\u3066\u307f\u305f\u3002\u7ffb\u8a33\u30a8\u30f3\u30b8\u30f3\u306f deepl \u3092\u6307\u5b9a\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>@echo off\nsetlocal\nset PYTHONHOME=C:\\Users\\.......\\Python\\Python312\nset PYTHONPATH=%~dp0Lib;%PYTHONHOME%\\Lib\nset PROG=%~dp0Lib\\bin\\md-translate.exe\nnkf test.md &gt; tmp.md\n%PROG% tmp.md -v -F japanese -T english -P deepl\nnkf -w8 tmp.md &gt; %%~ni-en.md<\/code><\/pre><\/div>\n\n\n\n<p> \u3000\u3059\u308b\u3068\u51fa\u529b\u30d5\u30a1\u30a4\u30eb test-en.md \u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u90e8\u5206\u7684\u306b\u82f1\u8a9e\u306b\u306a\u3063\u3066\u3044\u308b\u3082\u306e\u306e\u5927\u534a\u306f\u65e5\u672c\u8a9e\u306e\u307e\u307e\u304b\u3042\u308b\u3044\u306f [&#8230;] \u3068\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>&lt;!-- TRANSLATED by md-translate --&gt;\n# \u6761\u4ef6\u3092\u5206\u5c90\u3055\u305b\u308b\u305f\u3081\u306e IF \u6587\u306e\u4f7f\u3044\u65b9\u3068\u306f\uff1f\n# How to use IF statements to branch conditions?\n## \u6761\u4ef6\u5206\u5c90\u3063\u3066\u4f55\uff1f\n## What is conditional branching?\n\u6761\u4ef6\u5206\u5c90\u3068\u306f\u3001\u6307\u5b9a\u3057\u305f\u6761\u4ef6\u3067\u51e6\u7406\u3092\u5206\u3051\u308b\u65b9\u6cd5\nConditional branching is a method of separating processing under specified conditions.\n* \u8acb\u6c42\u66f8\u306e\u7de0\u3081\u6708\u304c\u4e0a\u671f\u3060\u3063\u305f\u5834\u5408\u306f\u3001\u3007\u3007\u3092\u4f7f\u3063\u3066\u8a08\u7b97\u3059\u308b\n* \u90e8\u7f72\u30b3\u30fc\u30c9\u304c A0001 \u306e\u5834\u5408\u306f\u958b\u767a\u90e8\u3001B0001 \u306e\u5834\u5408\u306fWEB\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u90e8\n* \u51e6\u7406\u6708\u304c 2014 \u5e74 4 \u672a\u6e80\u3060\u3063\u305f\u5834\u5408\u306f\u6d88\u8cbb\u7a0e 5%\u3001\u305d\u308c\u4ee5\u5916\u306f 8% \u3067\u8a08\u7b97\n*\n[...]\n[...]\n## IF \u6587\u306e\u57fa\u790e\u7684\u306a\u4f7f\u3044\u65b9\n## Basic usage of IF statement\n### \u6761\u4ef6\u304c 1 \u3064\u306e\u307f\n### Only one condition\n```vb\nIF \u6761\u4ef6 Then\n    &#39;\u6761\u4ef6\u306b\u4e00\u81f4\u3057\u305f\u3068\u304d\u306e\u51e6\u7406\u3092\u3053\u3053\u306b\u304b\u304f\nEnd if\n```\nmeter (i.e. a gauge) [...]  [...]<\/code><\/pre><\/div>\n\n\n\n<p>\u3000\u9014\u4e2d <a href=\"https:\/\/www.selenium.dev\/ja\/documentation\/\">selenium<\/a> \u304c\u8d77\u52d5\u3059\u308b Chrome \u306e\u753b\u9762\u3067\u306f <a href=\"https:\/\/www.deepl.com\/translator\">deepl<\/a> \u304c\u30ad\u30c1\u30f3\u3068\u52d5\u3044\u3066\u3044\u308b\u3088\u3046\u307f\u3048\u305f\u306e\u3067\u3001\u666e\u901a\u306b test.md \u306e\u30c6\u30ad\u30b9\u30c8\u3092 deepl \u306b\u8cbc\u308a\u4ed8\u3051\u3066\u7ffb\u8a33\u3055\u305b\u305f\u30c6\u30ad\u30b9\u30c8\u3092 .md \u3092\u62e1\u5f35\u5b50\u306b\u6301\u3064\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u51fa\u3057\u3066\u30d7\u30ec\u30f4\u30e5\u30fc\u3059\u308b\u3068\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u3002\u3084\u306f\u308a deepl \u306f\u6b63\u5e38\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3088\u3046\u3060\uff08\u30bd\u30fc\u30b9\u304c Markdown \u3067\u3042\u308b\u3053\u3068\u3082\u691c\u77e5\u3057\u3066\u3044\u308b\uff1f\uff09\u3002<br>\u3000\u4ee5\u4e0a\u3001\u60dc\u3057\u3044\u3068\u3053\u308d\u307e\u3067\u306f\u6765\u3066\u3044\u308b\u3068\u601d\u3046\u306e\u3067\u4e0a\u624b\u304f\u3044\u3063\u305f\u3089\u5831\u544a\u3059\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"844\" height=\"638\" src=\"https:\/\/www.flumen-jp.com\/wordpress\/wp-content\/uploads\/2024\/03\/deepl.png\" alt=\"\" class=\"wp-image-90\" srcset=\"https:\/\/www.flumen-jp.com\/wordpress\/wp-content\/uploads\/2024\/03\/deepl.png 844w, https:\/\/www.flumen-jp.com\/wordpress\/wp-content\/uploads\/2024\/03\/deepl-300x227.png 300w, https:\/\/www.flumen-jp.com\/wordpress\/wp-content\/uploads\/2024\/03\/deepl-768x581.png 768w\" sizes=\"auto, (max-width: 844px) 100vw, 844px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u4eca\u65e5\u3001\u548c\u6587\u3067\u66f8\u3044\u305f Markdown \u3092\u82f1\u6587\u306e\u305d\u308c\u306b\u7ffb\u8a33\u3059\u308b\u4e8b\u6848\u304c\u767a\u751f\u3057\u305f\u3002\u3000\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u3067\u691c\u7d22\u3057\u305f\u3068\u3053\u308d md_docs_trans-app \u3068\u3044\u3046 Python \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u767a\u898b\u3057\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f\u3002  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[10,12,9,11],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-it","tag-deepl","tag-markdown","tag-md_translate","tag-selenium"],"_links":{"self":[{"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":9,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":107,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/89\/revisions\/107"}],"wp:attachment":[{"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}