aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTakeshi ISHII <2170248+mtei@users.noreply.github.com>2019-11-12 07:27:48 +0900
committerJames Young <18669334+noroadsleft@users.noreply.github.com>2019-11-11 14:27:48 -0800
commit80713a8a5802dfc28fe0c602ae73b40e3de800d4 (patch)
tree35f671ce76e925f1fb7defac4e374dd4f5225e29 /docs
parentf48986dda29f9ca4a88d4b4da9ba00dd7864914e (diff)
downloadqmk_firmware-80713a8a5802dfc28fe0c602ae73b40e3de800d4.tar.gz
qmk_firmware-80713a8a5802dfc28fe0c602ae73b40e3de800d4.zip
Japanese translation of newbs.md and related documents. (#7300)
* add docs/ja/newbs.md * Update docs/ja/newbs.md * Updated newbs.md * Updated newbs.md * add docs/ja/newbs_learn_more_resources.md * Update docs/ja/newbs.md * update link info 他人まかせ :-) * add docs/ja/newbs_testing_debugging.md * Update docs/ja/newbs_testing_debugging.md * Update docs/ja/newbs_testing_debugging.md * add docs/ja/newbs_building_firmware.md * update docs/ja/newbs_building_firmware.md * Update docs/ja/newbs_testing_debugging.md * Update docs/ja/newbs_building_firmware.md * Update docs/ja/newbs_building_firmware.md * Japanese translation of docs/newbs_getting_started.md * renamed: docs/QMK入門.md -> docs/ja/newbs_getting_started.md * update docs/ja/newbs_getting_started.md * add ja/newbs_best_practices.md There are no plans to translate this file. With the completion of #7231, I will open a new PR. * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * add docs/ja/newbs_flashing.md * add docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * update docs/ja/newbs_flashing.md * change original log format * update docs/ja/newbs_flashing.md * Update docs/ja/newbs_getting_started.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_building_firmware_configurator.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * Update docs/ja/newbs_flashing.md * copy docs/_langs.md and docs/index.html from #7248 Co-Authored-By: shela <shelaf@users.noreply.github.com> Co-Authored-By: takashiski <takashiskibb@gmail.com> Co-Authored-By: Takuya Urakawa <urkwtky@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/_langs.md1
-rw-r--r--docs/index.html2
-rw-r--r--docs/ja/newbs.md40
-rw-r--r--docs/ja/newbs_best_practices.md168
-rw-r--r--docs/ja/newbs_building_firmware.md98
-rw-r--r--docs/ja/newbs_building_firmware_configurator.md112
-rw-r--r--docs/ja/newbs_flashing.md399
-rw-r--r--docs/ja/newbs_getting_started.md121
-rw-r--r--docs/ja/newbs_learn_more_resources.md31
-rw-r--r--docs/ja/newbs_testing_debugging.md106
10 files changed, 1078 insertions, 0 deletions
diff --git a/docs/_langs.md b/docs/_langs.md
index 7a7f127a9..b318687d0 100644
--- a/docs/_langs.md
+++ b/docs/_langs.md
@@ -5,3 +5,4 @@
5 - [:fr: Français](/fr-fr/) 5 - [:fr: Français](/fr-fr/)
6 - [:he: עברית](/he-il/) 6 - [:he: עברית](/he-il/)
7 - [:ru: Русский](/ru-ru/) 7 - [:ru: Русский](/ru-ru/)
8 - [:ja: 日本語](/ja/)
diff --git a/docs/index.html b/docs/index.html
index 0cee19ecd..d2ba99897 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -41,11 +41,13 @@
41 placeholder: { 41 placeholder: {
42 '/es/': 'Buscar', 42 '/es/': 'Buscar',
43 '/zh-cn/': '搜索', 43 '/zh-cn/': '搜索',
44 '/ja/': '検索',
44 '/': 'Search' 45 '/': 'Search'
45 }, 46 },
46 noData: { 47 noData: {
47 '/es/': '¡Ningún resultado!', 48 '/es/': '¡Ningún resultado!',
48 '/zh-cn/': '没有结果!', 49 '/zh-cn/': '没有结果!',
50 '/ja/': '見つかりません!',
49 '/': 'No results!' 51 '/': 'No results!'
50 }, 52 },
51 depth: 6 53 depth: 6
diff --git a/docs/ja/newbs.md b/docs/ja/newbs.md
new file mode 100644
index 000000000..ec6e278ee
--- /dev/null
+++ b/docs/ja/newbs.md
@@ -0,0 +1,40 @@
1# QMK 初心者ガイド
2
3<!---
4 original document: ed0575fc8:docs/newbs.md
5 $ git diff ed0575fc8 HEAD docs/newbs.md
6-->
7
8QMK は、メカニカルキーボード用の強力なオープンソースファームウェアです。
9QMK を使用して、シンプルかつ強力な方法でキーボードをカスタマイズできます。
10完全な初心者からプログラマーに至るまで、あらゆるスキルレベルの人々が QMK を使用してキーボードをカスタマイズしています。
11このガイドは、あなたのスキルにかかわらず、同じことを行う手助けをします。
12
13お使いのキーボードで QMK を実行できるかどうか不明ですか?
14もし作成したキーボードがメカニカルキーボードの場合、実行できる可能性が高いです。
15QMK は[多くの趣味のキーボード](http://qmk.fm/keyboards/)をサポートしているため、もし現在のキーボードで QMK を実行できない場合でも、ニーズに合ったキーボードを見つけるのに問題はないはずです。
16
17## 概要
18
19このガイドには7つの主要なセクションがあります。
20
21* [はじめに](newbs_getting_started.md)
22* [コマンドラインを使用して初めてのファームウェアを構築する](newbs_building_firmware.md)
23* [オンライン GUI を使用して初めてのファームウェアを構築する](newbs_building_firmware_configurator.md)
24* [ファームウェアを書きこむ](newbs_flashing.md)
25* [テストとデバッグ](newbs_testing_debugging.md)
26* [Git の最良の慣行](newbs_best_practices.md)
27* [さらに学ぶための学習リソース](newbs_learn_more_resources.md)
28
29このガイドは、これまでソフトウェアをコンパイルしたことがない人を支援することに特化しています。
30その観点から選択と推奨を行います。
31これらの手順の多くには代替方法があり、これらの代替方法のほとんどをサポートしています。
32タスクを達成する方法について疑問がある場合は、[案内を求めることができます](getting_started_getting_help.md)。
33
34## 追加のリソース(英語)
35
36* [Thomas Baart's QMK Basics Blog](https://thomasbaart.nl/category/mechanical-keyboards/firmware/qmk/qmk-basics/) – 新規ユーザ視点から見た QMK ファームウェアの基本的な使用方法をカバーしたユーザ作成のブログ。
37
38## 追加のリソース(日本語)
39
40_日本語のリソース情報を募集中です。_
diff --git a/docs/ja/newbs_best_practices.md b/docs/ja/newbs_best_practices.md
new file mode 100644
index 000000000..ebb7d0fab
--- /dev/null
+++ b/docs/ja/newbs_best_practices.md
@@ -0,0 +1,168 @@
1# Best Practices
2
3<!---
4 original document: ed0575fc8:docs/newbs_best_practices.md
5 $ git diff ed0575fc8 HEAD docs/newbs_best_practices.md
6-->
7
8## Or, "How I Learned to Stop Worrying and Love Git."
9
10This document aims to instruct novices in the best ways to have a smooth experience in contributing to QMK. We will walk through the process of contributing to QMK, detailing some ways to make this task easier, and then later we'll break some things in order to teach you how to fix them.
11
12This document assumes a few things:
13
141. You have a GitHub account, and have [forked the qmk_firmware repository](getting_started_github.md) to your account.
152. You've [set up your build environment](newbs_getting_started.md?id=environment-setup).
16
17
18## Your fork's master: Update Often, Commit Never
19
20It is highly recommended for QMK development, regardless of what is being done or where, to keep your `master` branch updated, but ***never*** commit to it. Instead, do all your changes in a development branch and issue pull requests from your branches when you're developing.
21
22To reduce the chances of merge conflicts &mdash; instances where two or more users have edited the same part of a file concurrently &mdash; keep your `master` branch relatively up-to-date, and start any new developments by creating a new branch.
23
24### Updating your master branch
25
26To keep your `master` branch updated, it is recommended to add the QMK Firmware repository ("repo") as a remote repository in git. To do this, open your Git command line interface and enter:
27
28```
29git remote add upstream https://github.com/qmk/qmk_firmware.git
30```
31
32To verify that the repository has been added, run `git remote -v`, which should return the following:
33
34```
35$ git remote -v
36origin https://github.com/<your_username>/qmk_firmware.git (fetch)
37origin https://github.com/<your_username>/qmk_firmware.git (push)
38upstream https://github.com/qmk/qmk_firmware.git (fetch)
39upstream https://github.com/qmk/qmk_firmware.git (push)
40```
41
42Now that this is done, you can check for updates to the repo by running `git fetch upstream`. This retrieves the branches and tags &mdash; collectively referred to as "refs" &mdash; from the QMK repo, which now has the nickname `upstream`. We can now compare the data on our fork `origin` to that held by QMK.
43
44To update your fork's master, run the following, hitting the Enter key after each line:
45
46```
47git checkout master
48git fetch upstream
49git pull upstream master
50git push origin master
51```
52
53This switches you to your `master` branch, retrieves the refs from the QMK repo, downloads the current QMK `master` branch to your computer, and then uploads it to your fork.
54
55### Making Changes
56
57To make changes, create a new branch by entering:
58
59```
60git checkout -b dev_branch
61git push --set-upstream origin dev_branch
62```
63
64This creates a new branch named `dev_branch`, checks it out, and then saves the new branch to your fork. The `--set-upstream` argument tells git to use your fork and the `dev_branch` branch every time you use `git push` or `git pull` from this branch. It only needs to be used on the first push; after that, you can safely use `git push` or `git pull`, without the rest of the arguments.
65
66!> With `git push`, you can use `-u` in place of `--set-upstream` &mdash; `-u` is an alias for `--set-upstream`.
67
68You can name your branch nearly anything you want, though it is recommended to name it something related to the changes you are going to make.
69
70By default `git checkout -b` will base your new branch on the branch that is checked out. You can base your new branch on an existing branch that is not checked out by adding the name of the existing branch to the command:
71
72```
73git checkout -b dev_branch master
74```
75
76Now that you have a development branch, open your text editor and make whatever changes you need to make. It is recommended to make many small commits to your branch; that way, any change that causes issues can be more easily traced and undone if needed. To make your changes, edit and save any files that need to be updated, add them to Git's *staging area*, and then commit them to your branch:
77
78```
79git add path/to/updated_file
80git commit -m "My commit message."
81```
82
83`git add` adds files that have been changed to Git's *staging area*, which is Git's "loading zone." This contains the changes that are going to be *committed* by `git commit`, which saves the changes to the repo. Use descriptive commit messages so you can know what was changed at a glance.
84
85!> If you've changed a lot of files, but all the files are part of the same change, you can use `git add .` to add all the changed files that are in your current directory, rather than having to add each file individually.
86
87### Publishing Your Changes
88
89The last step is to push your changes to your fork. To do this, enter `git push`. Git now publishes the current state of `dev_branch` to your fork.
90
91
92## Resolving Merge Conflicts
93
94Sometimes when your work in a branch takes a long time to complete, changes that have been made by others conflict with changes you have made to your branch when you open a pull request. This is called a *merge conflict*, and is what happens when multiple people edit the same parts of the same files.
95
96### Rebasing Your Changes
97
98A *rebase* is Git's way of taking changes that were applied at one point, reversing them, and then applying the same changes to another point. In the case of a merge conflict, you can rebase your branch to grab the changes that were made between when you created your branch and the present time.
99
100To start, run the following:
101
102```
103git fetch upstream
104git rev-list --left-right --count HEAD...upstream/master
105```
106
107The `git rev-list` command entered here returns the number of commits that differ between the current branch and QMK's master branch. We run `git fetch` first to make sure we have the refs that represent the current state of the upstream repo. The output of the `git rev-list` command entered returns two numbers:
108
109```
110$ git rev-list --left-right --count HEAD...upstream/master
1117 35
112```
113
114The first number represents the number of commits on the current branch since it was created, and the second number is the number of commits made to `upstream/master` since the current branch was created, and thus, the changes that are not recorded in the current branch.
115
116Now that the current states of both the current branch and the upstream repo are known, we can start a rebase operation:
117
118```
119git rebase upstream/master
120```
121
122This tells Git to undo the commits on the current branch, and then reapply them against QMK's master branch.
123
124```
125$ git rebase upstream/master
126First, rewinding head to replay your work on top of it...
127Applying: Commit #1
128Using index info to reconstruct a base tree...
129M conflicting_file_1.txt
130Falling back to patching base and 3-way merge...
131Auto-merging conflicting_file_1.txt
132CONFLICT (content): Merge conflict in conflicting_file_1.txt
133error: Failed to merge in the changes.
134hint: Use 'git am --show-current-patch' to see the failed patch
135Patch failed at 0001 Commit #1
136
137Resolve all conflicts manually, mark them as resolved with
138"git add/rm <conflicted_files>", then run "git rebase --continue".
139You can instead skip this commit: run "git rebase --skip".
140To abort and get back to the state before "git rebase", run "git rebase --abort".
141```
142
143This tells us that we have a merge conflict, and gives the name of the file with the conflict. Open the conflicting file in your text editor, and somewhere in the file, you'll find something like this:
144
145```
146<<<<<<< HEAD
147<p>For help with any issues, email us at support@webhost.us.</p>
148=======
149<p>Need help? Email support@webhost.us.</p>
150>>>>>>> Commit #1
151```
152
153The line `<<<<<<< HEAD` marks the beginning of a merge conflict, and the `>>>>>>> Commit #1` line marks the end, with the conflicting sections separated by `=======`. The part on the `HEAD` side is from the QMK master version of the file, and the part marked with the commit message is from the current branch and commit.
154
155Because Git tracks *changes to files* rather than the contents of the files directly, if Git can't find the text that was in the file previous to the commit that was made, it won't know how to edit the file. Re-editing the file will solve the conflict. Make your changes, and then save the file.
156
157```
158<p>Need help? Email support@webhost.us.</p>
159```
160
161Now run:
162
163```
164git add conflicting_file_1.txt
165git rebase --continue
166```
167
168Git logs the changes to the conflicting file, and continues applying the commits from our branch until it reaches the end.
diff --git a/docs/ja/newbs_building_firmware.md b/docs/ja/newbs_building_firmware.md
new file mode 100644
index 000000000..32a7903fd
--- /dev/null
+++ b/docs/ja/newbs_building_firmware.md
@@ -0,0 +1,98 @@
1# 初めてのファームウェアを構築する(コマンドライン版)
2
3<!---
4 original document: ed0575fc8:docs/newbs_building_firmware.md
5 $ git diff ed0575fc8 HEAD docs/newbs_building_firmware.md
6-->
7
8ビルド環境をセットアップしたので、カスタムファームウェアのビルドを開始する準備ができました。
9ガイドのこのセクションでは、ファイルマネージャ、テキストエディタ、ターミナルウィンドウの3つのプログラム間を行き来します。
10キーボードファームウェアが完成して満足するまで、この3つすべてを開いたままにします。
11
12ガイドの最初の部分を読んだ後でターミナルウィンドウを閉じて再度開いていた場合は、ターミナルが正しいディレクトリにあるように `cd qmk_firmware` を忘れないでください。
13
14## キーマップフォルダに移動する
15
16あなたのキーボードの `keymaps`フォルダに移動することから始めます。
17
18macOS または Windows を使用している場合は、キーマップフォルダを簡単に開くために使用できるコマンドがあります。
19
20### macOS:
21
22``` open keyboards/<keyboard_folder>/keymaps ```
23
24### Windows:
25
26``` start .\\keyboards\\<keyboard_folder>\\keymaps ```
27
28## `default` キーマップのコピーを作成する
29
30`keymaps` フォルダを開いたら、`default`フォルダのコピーを作成します。
31フォルダには、あなたの GitHub でのユーザー名と同じ名前を付けることを強くお勧めしますが、小文字、数字、アンダースコアのみが含まれている限り、任意の名前を使用できます。
32
33この手順を自動化するために、`new_keymap.sh`スクリプトを実行する方法もあります。
34
35`qmk_firmware/util` ディレクトリに移動して、次を入力します。
36
37```
38./new_keymap.sh <keyboard path> <username>
39```
40
41たとえば、John という名前のユーザーが 1up60hse の新しいキーマップを作成しようとするには、次のように入力します。
42
43```
44./new_keymap.sh 1upkeyboards/1up60hse john
45```
46
47## あなたの好みのテキストエディタで `keymap.c` を開く
48
49`keymap.c`を開きます。
50このファイル内には、キーボードの動作を制御する構造があります。
51`keymap.c`の上部には、キーマップを読みやすくする `define` と `enum` があります。
52さらに下には、次のような行があります。
53
54 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
55
56この行はレイヤーのリストの開始を表わしています。
57その下には、`LAYOUT` または `KEYMAP` のいずれかを含む行があり、これらの行はレイヤーの開始を表わしています。
58その行の下には、その特定のレイヤーを構成するキーのリストがあります。
59
60!> キーマップファイルを編集するときは、カンマを追加したり削除したりしないように注意してください。そうするとファームウェアのコンパイルができなくなり、余分であったり欠落していたりするカンマがどこにあるのかを容易に把握できない場合があります。
61
62## 好みに合わせてレイアウトをカスタマイズ
63
64納得のいくまでこのステップを繰り返します。
65気になる点をひとつづつ変更して試すのもよし、全部作りなおすのもよし。
66あるレイヤー全体が必要ない場合はレイヤーを削除することもでき、必要があれば、合計 32 個までレイヤーを追加することもできます。
67ここで定義できる内容については、次のドキュメントを参照してください。
68
69* [キーコード](keycodes.md)
70* [機能](features.md)
71* [FAQ](faq.md)
72
73?> キーマップがどのように機能するかを感じながら、各変更を小さくしてください。大きな変更は、発生する問題のデバッグを困難にします。
74
75## ファームウェアをビルドする
76
77キーマップの変更が完了したら、ファームウェアをビルドする必要があります。これを行うには、ターミナルウィンドウに戻り、ビルドコマンドを実行します:
78
79 make <my_keyboard>:<my_keymap>
80
81たとえば、キーマップの名前が "xyverz" で、rev5 planck のキーマップを作成している場合、次のコマンドを使用します:
82
83 make planck/rev5:xyverz
84
85これがコンパイルされる間、どのファイルがコンパイルされているかを知らせる多くの出力が画面に表示されます。
86次のような出力で終わるはずです。
87
88```
89Linking: .build/planck_rev5_xyverz.elf [OK]
90Creating load file for flashing: .build/planck_rev5_xyverz.hex [OK]
91Copying planck_rev5_xyverz.hex to qmk_firmware folder [OK]
92Checking file size of planck_rev5_xyverz.hex [OK]
93 * File size is fine - 18392/28672
94```
95
96## ファームウェアを書きこむ
97
98[「ファームウェアを書きこむ」](newbs_flashing.md) に移動して、キーボードに新しいファームウェアを書き込む方法を学習します。
diff --git a/docs/ja/newbs_building_firmware_configurator.md b/docs/ja/newbs_building_firmware_configurator.md
new file mode 100644
index 000000000..0716e26ea
--- /dev/null
+++ b/docs/ja/newbs_building_firmware_configurator.md
@@ -0,0 +1,112 @@
1# QMK Configurator
2
3<!---
4 original document: ed0575fc8:docs/newbs_building_firmware_configurator.md
5 $ git diff ed0575fc8 HEAD docs/newbs_building_firmware_configurator.md
6-->
7
8[QMK Configurator](https://config.qmk.fm) は、QMKファームウェアの hex ファイルを生成するオンライングラフィカルユーザーインターフェイスです。
9
10?> **次の手順を順番に実行してください。**
11
12[Video Tutorial](https://youtu.be/tx54jkRC9ZY) を見てください。
13
14QMK Configurator は Chrome/Firefox で最適に動作します。
15
16!> **KLE や kbfirmware などの他のツールのファイルは、QMK Configurator と互換性がありません。それらをロードしたり、インポートしたりしないでください。QMK Configurator は異なるツールです。**
17
18## キーボードを選ぶ
19
20ドロップダウンボックスをクリックして、キーマップを作成するキーボードを選択します。
21
22?> **キーボードに複数のバージョンがある場合は、正しいバージョンを選択してください。**
23
24大事なことなのでもう一度言います。
25
26!> **正しいバージョンを選択してください!**
27
28キーボードが QMK を搭載していると宣伝されていてもリストにない場合は、開発者がまだ作業中か、私たちがまだマージするきっかけがなかった可能性があります。
29アクティブな [Pull Request](https://github.com/qmk/qmk_firmware/pulls?q=is%3Aopen+is%3Apr+label%3Akeyboard) がない場合、[qmk_firmware](https://github.com/qmk/qmk_firmware/issues)で報告して、その特定のキーボードのサポートをリクエストします。
30製作者自身の github アカウントにある QMK 搭載キーボードもあります。
31それも再確認してください。
32
33## キーボードのレイアウトを選択する
34
35作成したいと思うキーマップに最も近いレイアウトを選択します。一部のキーボードには、まだ十分なレイアウトまたは正しいレイアウトが定義されていません。これらは将来サポートされる予定です。
36
37## キーマップの名前
38
39お好みの名前をキーマップにつけます。
40
41?> コンパイル時に問題が発生した場合は、もしかすると QMK ファームウェアリポジトリに既に同じ名前が存在しているのかもしれません、名前を変更してみてください。
42
43## キーマップを作る
44
45キーコード入力は3つの方法で実行できます。
461. ドラッグ・アンド・ドロップ
472. レイアウト上の空の場所をクリックして、希望するキーコードをクリックします
483. レイアウト上の空の場所をクリックして、キーボードの物理キーを押します
49
50マウスをキーの上に置くと、そのキーコードの機能の短い説明文が出ます。より詳細な説明については以下を見てください。
51
52[Basic Keycode Reference](https://docs.qmk.fm/#/keycodes_basic)
53[Advanced Keycode Reference](https://docs.qmk.fm/#/feature_advanced_keycodes)
54
55キーマップをサポートするレイアウトが見つからない場合、例えばスペースバーが3分割されていたり、バックスペースが2分割されていたり、シフトが2分割されているような場合、それらを全て埋めてください。
56
57### 例:
58
593分割のスペースバー: 全てスペースバーで埋めます。
60
612分割のバックスペース: 両方ともバックスペースで埋めます。
62
632分割の右シフト: 両方とも右シフトで埋めます。
64
65左シフトとISOサポート用に1つずつ: 両方とも左シフトで埋めます。
66
675分割だが4キーのみ: 以前やったことがある人を推測して確認するか尋ねてください。
68
69## 後日のためにキーマップを保存する
70
71キーマップに満足するか、または後で作業したい場合は、`Export Keymap' ボタンを押します。上記で選択した名前に .json が追加されたキーマップが保存されます。
72
73後日、`Import Keymap` ボタンを押すことで、この .json ファイルをロードできます。
74
75!> **注意:** このファイルは、kbfirmware.com またはその他のツールに使用される .jsonファイルと同じ形式ではありません。これらのツールにこれを使用したり、QMK Configurator でこれらのツールの .json を使用しようとすると、キーボードが **爆発** する可能性があります。
76
77## ファームウェアファイルを生成する
78
79緑色の `Compile` ボタンを押します。
80
81コンパイルが完了すると、緑色の `Download Firmware` ボタンを押すことができます。
82
83## キーボードに書き込む(フラッシュする)
84
85[ファームウェアを書きこむ](newbs_flashing.md) を参照してください。
86
87## トラブルシューティング
88
89#### 私の .json ファイルが動きません
90
91.json ファイルが QMK Configurator で作ったものの場合、おめでとうございます。バグに遭遇しました。 [qmk_configurator](https://github.com/qmk/qmk_configurator/issues) で報告してください。
92
93そうでない場合は、... 他の .json ファイルを使用しないようにという、上に書いた注意書きを見逃してませんか?
94
95#### レイアウトに余分なスペースがありますか?どうすればいいですか?
96
97もしスペースバーが3つに分かれている場合は、全てスペースバーで埋めるのが最善の方法です。バックスペースやシフトについても同じことができます。
98
99#### キーコードってなに?
100
101以下を見てください。
102
103[Basic Keycode Reference](https://docs.qmk.fm/#/keycodes_basic)
104[Advanced Keycode Reference](https://docs.qmk.fm/#/feature_advanced_keycodes)
105
106#### コンパイルできません
107
108キーマップの他のレイヤーを再確認して、ランダムなキーが存在しないことを確認してください。
109
110## 問題とバグ
111
112私たちは利用者の依頼やバグレポートを常に受け入れています。[qmk_configurator](https://github.com/qmk/qmk_configurator/issues) で報告してください。
diff --git a/docs/ja/newbs_flashing.md b/docs/ja/newbs_flashing.md
new file mode 100644
index 000000000..54569e122
--- /dev/null
+++ b/docs/ja/newbs_flashing.md
@@ -0,0 +1,399 @@
1# ファームウェアを書きこむ
2
3<!---
4 original document: ed0575fc8:docs/newbs_flashing.md
5 $ git diff ed0575fc8 HEAD docs/newbs_flashing.md
6-->
7
8カスタムファームウェアは出来たので、キーボードに書き込みたくなるでしょう/フラッシュしたくなるでしょう。
9
10## QMK Toolbox を使ってキーボードに書き込む
11
12キーボードに書き込む最も簡単な方法は [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) を使うことです。
13
14ただし、QMK Toolbox は、現在は Windows と macOS でしか使えません。
15Linuxを使用している場合(および、コマンドラインでファームウェアを書き込みたい場合)は、下の方で概説する[方法](newbs_flashing.md#コマンドラインでファームウェアを書き込む)で行なう必要があります。
16
17### QMK Toolbox にファイルをロードする
18
19まず QMK Toolbox アプリケーションを起動します。
20Finder またはエクスプローラーでファームウェアのファイルを探します。
21ファイル名は `.hex` または `.bin` のどちらかの形式です。
22ビルド時に QMK は、キーボードに適した形式のものを `qmk_firmware` のトップフォルダにコピーしているはずです。
23
24Windows か macOS を使用しているときは現在のファームウェアフォルダをエクスプローラーか Finder で簡単に開くためのコマンドがあります。
25
26#### Windows
27
28```
29start .
30```
31
32#### macOS
33
34```
35open .
36```
37
38ファームウェアファイルは常に以下の命名形式に従っています。
39
40```
41<keyboard_name>_<keymap_name>.{bin,hex}
42```
43
44例えば、`plank/rev5` の `default` キーマップのファイル名は以下のようになります。
45
46```
47planck_rev5_default.hex
48```
49
50ファームウェアファイルを見つけたら、QMK Toolbox の "Local file" ボックスにドラッグするか、"Open" をクリックしてファームウェアファイルを指定します。
51
52### キーボードを DFU (Bootloader) モードにする
53
54ファームウェアを書き込むには、キーボードを普段とは違う特別な状態、フラッシュモードにする必要があります。
55このモードでは、キーボードはキーボードとしての機能をはたしません。
56ファームウェアの書き込み中にキーボードのケーブルを抜いたり、書き込みプロセスを中断したりしないことが非常に重要です。
57
58キーボードによって、この特別なモードに入る方法は異なります。
59キーボードが現在 QMK または TMK を実行しており、キーボードメーカーから具体的な指示が与えられていない場合は、次を順番に試してください。
60
61* 両方のシフトキーを押しながら、`Pause` キーを押す
62* 両方のシフトキーを押しながら、`B` キーを押す
63* キーボードのケーブルを抜いて、スペースバーとBを同時に押しながら、キーボードを再び接続し、1秒待ってからキーを放す
64* 基板(PCB)に付けられている物理的な `RESET` ボタンを押す
65* PCB 上の `BOOT0` か `RESET` のラベルの付いたヘッダピンを探し、PCB 接続中にそれらを互いにショートする
66
67うまくいけば、QMK Toolboxに次のようなメッセージが表示されます。
68
69```
70*** Clueboard - Clueboard 66% HotSwap disconnected -- 0xC1ED:0x2390
71*** DFU device connected
72```
73
74### キーボードへの書き込み
75
76QMK Toolbox の `Flash` ボタンをクリックします。
77次のような出力が表示されます。
78
79```
80*** Clueboard - Clueboard 66% HotSwap disconnected -- 0xC1ED:0x2390
81*** DFU device connected
82*** Attempting to flash, please don't remove device
83>>> dfu-programmer atmega32u4 erase --force
84 Erasing flash... Success
85 Checking memory from 0x0 to 0x6FFF... Empty.
86>>> dfu-programmer atmega32u4 flash /Users/skully/qmk_firmware/clueboard_66_hotswap_gen1_skully.hex
87 Checking memory from 0x0 to 0x55FF... Empty.
88 0% 100% Programming 0x5600 bytes...
89 [>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
90 0% 100% Reading 0x7000 bytes...
91 [>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
92 Validating... Success
93 0x5600 bytes written into 0x7000 bytes memory (76.79%).
94>>> dfu-programmer atmega32u4 reset
95
96*** DFU device disconnected
97*** Clueboard - Clueboard 66% HotSwap connected -- 0xC1ED:0x2390
98```
99
100## コマンドラインでファームウェアを書き込む
101
102これは、以前のものと比較して非常に単純になりました。
103ファームウェアをコンパイルして書き込む準備ができたら、ターミナルウィンドウを開いてビルドコマンドを実行します。
104
105 make <my_keyboard>:<my_keymap>:flash
106
107たとえば、キーマップの名前が xyverz で、rev5 planck のキーマップを作成している場合、次のコマンドを使用します。
108
109 make planck/rev5:xyverz:flash
110
111これにより、キーボードの構成が確認され、指定されたブートローダに基づいてキーボードへの書き込みが試行されます。
112これはあなたがキーボードが使用するブートローダを知る必要がないことを意味します。
113コマンドをただ実行して、コマンド自身に難しい処理を任せます。
114
115ただし、これはキーボードごとに設定されているブートローダに依存します。
116もしこの情報が設定されていない場合、または使用しているキーボードのファームウェアの書き込みにサポートしていないターゲットが設定されている場合、次のエラーが表示されます。
117
118 WARNING: This board's bootloader is not specified or is not supported by the ":flash" target at this time.
119
120この場合、あなたは明示的にブートローダを指定する方法を使わなければなりません。
121
122ブートローダは主に 5 種類のものが使われています。
123Pro Micro とそのクローンは Caterina を、Teensy は HalfKay を、OLKBの AVR ボードは QMK-DFU を、その他の ATmega32U4 ボードは DFU を、そして多くの ARM ボードは ARM DFU を使います。
124
125より詳しいブートローダの情報は、[Flashing Instructions and Bootloader Information](flashing.md) にあります。
126
127使用しているブートローダがわかっているならば、ファームウェアをコンパイルするときに、実は `make` コマンドにブートローダを指定するテキストを追加して、書き込みプロセスを自動化できます。
128
129### DFU
130
131DFU ブートローダの場合、ファームウェアをコンパイルして書き込む準備ができたら、ターミナルウィンドウを開いてビルドコマンドを実行します。
132
133 make <my_keyboard>:<my_keymap>:dfu
134
135たとえば、キーマップの名前が xyverz で、rev5 planck のキーマップを作成している場合、次のコマンドを使用します。
136
137 make planck/rev5:xyverz:dfu
138
139コンパイルが終了すると、以下の出力になるはずです。
140
141```
142Linking: .build/planck_rev5_xyverz.elf [OK]
143Creating load file for flashing: .build/planck_rev5_xyverz.hex [OK]
144Copying planck_rev5_xyverz.hex to qmk_firmware folder [OK]
145Checking file size of planck_rev5_xyverz.hex
146 * File size is fine - 18574/28672
147 ```
148
149ここまでくると、ビルドスクリプトは5秒ごとに DFU ブートローダを探します。
150デバイスが見つかるか、あなたがキャンセルするまで、以下を繰り返します。
151
152 dfu-programmer: no device present.
153 Error: Bootloader not found. Trying again in 5s.
154
155これを実行したら、コントローラーをリセットする必要があります。
156そして下のような出力が表示されます。
157
158```
159*** Attempting to flash, please don't remove device
160>>> dfu-programmer atmega32u4 erase --force
161 Erasing flash... Success
162 Checking memory from 0x0 to 0x6FFF... Empty.
163>>> dfu-programmer atmega32u4 flash /Users/skully/qmk_firmware/clueboard_66_hotswap_gen1_skully.hex
164 Checking memory from 0x0 to 0x55FF... Empty.
165 0% 100% Programming 0x5600 bytes...
166 [>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
167 0% 100% Reading 0x7000 bytes...
168 [>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
169 Validating... Success
170 0x5600 bytes written into 0x7000 bytes memory (76.79%).
171>>> dfu-programmer atmega32u4 reset
172```
173
174?> `dfu-programmer:no device present` など、これに関する問題がある場合は、[よくある質問](faq_build.md) を参照してください。
175
176#### DFU コマンド
177
178ファームウェアを DFU デバイスに書き込むために使用できる DFU コマンドがいくつかあります。
179
180* `:dfu` - これが通常のオプションで、DFUデバイスが使用可能になるまで待機したのちファームウェアを書き込みます。5秒ごとに、DFUデバイスが存在するかチェックしています。
181* `:dfu-ee` - 通常の hex ファイルの代わりに `eep` ファイルを書き込みます。これを使用するのはまれです。
182* `:dfu-split-left` - デフォルトオプション (`:dfu`) と同様に、通常のファームウェアが書き込まれます。ただし、分割キーボードの「左側の」 EEPROMファイルも書き込まれます。_これは、Elite C ベースの分割キーボードに最適です。_
183* `:dfu-split-right` - デフォルトオプション (`:dfu`) と同様に、通常のファームウェアが書き込まれます。ただし、分割キーボードの「右側の」EEPROMファイルも書き込まれます。_これは、Elite C ベースの分割キーボードに最適です。_
184
185
186### Caterina
187
188Arduino ボードとそれらのクローンの場合(たとえば SparkFun ProMicro)、ファームウェアをコンパイルして書き込む準備ができたら、ターミナルウィンドウを開いてビルドコマンドを実行します。
189
190 make <my_keyboard>:<my_keymap>:avrdude
191
192たとえば、キーマップの名前が xyverz で、rev2 Lets Split のキーマップを作成している場合、次のコマンドを使用します。
193
194 make lets_split/rev2:xyverz:avrdude
195
196ファームウェアのコンパイルが完了すると、以下のように出力されます。
197
198```
199Linking: .build/lets_split_rev2_xyverz.elf [OK]
200Creating load file for flashing: .build/lets_split_rev2_xyverz.hex [OK]
201Checking file size of lets_split_rev2_xyverz.hex [OK]
202 * File size is fine - 27938/28672
203Detecting USB port, reset your controller now..............
204```
205
206この時点で、キーボードをリセットすると、スクリプトがブートローダを検出し、キーボードに書き込みます。出力は次のようになります。
207
208```
209Detected controller on USB port at /dev/ttyS15
210
211Connecting to programmer: .
212Found programmer: Id = "CATERIN"; type = S
213 Software Version = 1.0; No Hardware Version given.
214Programmer supports auto addr increment.
215Programmer supports buffered memory access with buffersize=128 bytes.
216
217Programmer supports the following devices:
218 Device code: 0x44
219
220avrdude.exe: AVR device initialized and ready to accept instructions
221
222Reading | ################################################## | 100% 0.00s
223
224avrdude.exe: Device signature = 0x1e9587 (probably m32u4)
225avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
226 To disable this feature, specify the -D option.
227avrdude.exe: erasing chip
228avrdude.exe: reading input file "./.build/lets_split_rev2_xyverz.hex"
229avrdude.exe: input file ./.build/lets_split_rev2_xyverz.hex auto detected as Intel Hex
230avrdude.exe: writing flash (27938 bytes):
231
232Writing | ################################################## | 100% 2.40s
233
234avrdude.exe: 27938 bytes of flash written
235avrdude.exe: verifying flash memory against ./.build/lets_split_rev2_xyverz.hex:
236avrdude.exe: load data flash data from input file ./.build/lets_split_rev2_xyverz.hex:
237avrdude.exe: input file ./.build/lets_split_rev2_xyverz.hex auto detected as Intel Hex
238avrdude.exe: input file ./.build/lets_split_rev2_xyverz.hex contains 27938 bytes
239avrdude.exe: reading on-chip flash data:
240
241Reading | ################################################## | 100% 0.43s
242
243avrdude.exe: verifying ...
244avrdude.exe: 27938 bytes of flash verified
245
246avrdude.exe: safemode: Fuses OK (E:CB, H:D8, L:FF)
247
248avrdude.exe done. Thank you.
249```
250うまくいかない時は、以下のようにする必要があるかもしれません。
251
252 sudo make <my_keyboard>:<my_keymap>:avrdude
253
254
255#### Caterina コマンド
256
257ファームウェアを DFU デバイスに書き込むために使用できる DFU コマンドがいくつかあります。
258
259* `:avrdude` - これが通常のオプションで、Caterina デバイスが(新しい COM ポートを検出して)使用可能になるまで待機し、ファームウェアを書き込みます。
260* `:avrdude-loop` - これは `:avrdude` と同じです。ただし書き込みが終了すると再び Caterina デバイスの書き込み待ちに戻ります。これは何台ものデバイスへの書き込みに便利です。_Control+C を押して、手動でこの繰り返しを終了させる必要があります。_
261* `:avrdude-split-left` - デフォルトオプション(`:avrdude`)と同様に通常のファームウェアが書き込まれます。ただし、分割キーボードの「左側の」EEPROMファイルもフラッシュされます。 _これは、Pro Micro ベースの分割キーボードに最適です。_
262* `:avrdude-split-right` - デフォルトオプション(`:avrdude`)と同様に通常のファームウェアが書き込まれます。ただし、分割キーボードの「右側の」EEPROMファイルもフラッシュされます。 _これは、Pro Micro ベースの分割キーボードに最適です。_
263
264### HalfKay
265
266PJRC デバイス(Teensy シリーズ)の場合、ファームウェアをコンパイルして書き込む準備ができたら、ターミナルウィンドウを開いてビルドコマンドを実行します。
267
268 make <my_keyboard>:<my_keymap>:teensy
269
270たとえば、キーマップの名前が xyverz で、Ergodox または Ergodox EZ のキーマップを作成している場合、次のコマンドを使用します。
271
272 make ergodox_ez:xyverz:teensy
273
274ファームウェアのコンパイルが完了すると、以下のように出力されます。
275
276```
277Linking: .build/ergodox_ez_xyverz.elf [OK]
278Creating load file for flashing: .build/ergodox_ez_xyverz.hex [OK]
279Checking file size of ergodox_ez_xyverz.hex [OK]
280 * File size is fine - 25584/32256
281 Teensy Loader, Command Line, Version 2.1
282Read "./.build/ergodox_ez_xyverz.hex": 25584 bytes, 79.3% usage
283Waiting for Teensy device...
284 (hint: press the reset button)
285 ```
286
287この時点で、キーボードをリセットします。すると、次のような出力が表示されます。
288
289 ```
290 Found HalfKay Bootloader
291Read "./.build/ergodox_ez_xyverz.hex": 28532 bytes, 88.5% usage
292Programming............................................................................................................................................................................
293...................................................
294Booting
295```
296
297### STM32 (ARM)
298
299主な ARM ボード (Proton C, Planck Rev 6, Preonic Rev 3 を含む)の場合、ファームウェアをコンパイルして書き込む準備ができたら、ターミナルウィンドウを開いてビルドコマンドを実行します。
300
301 make <my_keyboard>:<my_keymap>:dfu-util
302
303たとえば、キーマップの名前が xyverz で、Planck Revision 6 のキーマップを作成している場合、次のコマンドを使用し、(コンパイルが終わる前に)キーボードを再起動してブートローダを起動します:
304
305 make planck/rev6:xyverz:dfu-util
306
307ファームウェアのコンパイルが完了すると、以下のように出力されます。
308
309```
310Linking: .build/planck_rev6_xyverz.elf [OK]
311Creating binary load file for flashing: .build/planck_rev6_xyverz.bin [OK]
312Creating load file for flashing: .build/planck_rev6_xyverz.hex [OK]
313
314Size after:
315 text data bss dec hex filename
316 0 41820 0 41820 a35c .build/planck_rev6_xyverz.hex
317
318Copying planck_rev6_xyverz.bin to qmk_firmware folder [OK]
319dfu-util 0.9
320
321Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
322Copyright 2010-2016 Tormod Volden and Stefan Schmidt
323This program is Free Software and has ABSOLUTELY NO WARRANTY
324Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
325
326Invalid DFU suffix signature
327A valid DFU suffix will be required in a future dfu-util release!!!
328Opening DFU capable USB device...
329ID 0483:df11
330Run-time device DFU version 011a
331Claiming USB DFU Interface...
332Setting Alternate Setting #0 ...
333Determining device status: state = dfuERROR, status = 10
334dfuERROR, clearing status
335Determining device status: state = dfuIDLE, status = 0
336dfuIDLE, continuing
337DFU mode device DFU version 011a
338Device returned transfer size 2048
339DfuSe interface name: "Internal Flash "
340Downloading to address = 0x08000000, size = 41824
341Download [=========================] 100% 41824 bytes
342Download done.
343File downloaded successfully
344Transitioning to dfuMANIFEST state
345```
346
347#### STM32 コマンド
348
349ファームウェアを STM32 デバイスに書き込むために使用できる DFU コマンドがいくつかあります。
350
351* `:dfu-util` - STM32 デバイスに書き込むためのデフォルトコマンドで、STM32 ブートローダが見つかるまで待機します。
352* `:dfu-util-split-left` - デフォルトのオプション (`:dfu-util`) と同様に、通常のファームウェアが書き込まれます。 ただし、分割キーボードの「左側の」EEPROM の設定も行われます。
353* `:dfu-util-split-right` - デフォルトのオプション (`:dfu-util`) と同様に、通常のファームウェアが書き込まれます。 ただし、分割キーボードの「右側の」EEPROM の設定も行われます。
354* `:st-link-cli` - dfu-util ではなく、ST-LINK の CLI ユーティリティを介してファームウェアを書き込めます。
355
356### BootloadHID
357
358Bootmapper Client(BMC)/bootloadHID/ATmega32A ベースのキーボードの場合、ファームウェアをコンパイルして書き込む準備ができたら、ターミナルウィンドウを開いてビルドコマンドを実行します。
359
360 make <my_keyboard>:<my_keymap>:bootloaderHID
361
362たとえば、キーマップの名前が xyverz で、jj40 のキーマップを作成している場合、次のコマンドを使用します。
363
364 make jj40:xyverz:bootloaderHID
365
366ファームウェアのコンパイルが完了すると、以下のように出力されます。
367
368```
369Linking: .build/jj40_default.elf [OK]
370Creating load file for flashing: .build/jj40_default.hex [OK]
371Copying jj40_default.hex to qmk_firmware folder [OK]
372Checking file size of jj40_default.hex [OK]
373 * The firmware size is fine - 21920/28672 (6752 bytes free)
374```
375
376ここまでくると、ビルドスクリプトは5秒ごとに DFU ブートローダを探します。
377デバイスが見つかるか、あなたがキャンセルするまで、以下を繰り返します。
378
379```
380Error opening HIDBoot device: The specified device was not found
381Trying again in 5s.
382```
383
384これを実行したら、コントローラーをリセットする必要があります。
385そして下のような出力が表示されます。
386
387```
388Page size = 128 (0x80)
389Device size = 32768 (0x8000); 30720 bytes remaining
390Uploading 22016 (0x5600) bytes starting at 0 (0x0)
3910x05580 ... 0x05600
392```
393
394## テストしましょう!
395
396おめでとうございます! カスタムファームウェアがキーボードにプログラムされました!
397
398使ってみて、すべてがあなたの望むように動作するかどうか確認してください。
399この初心者ガイドを完全なものにするために [テストとデバッグ](newbs_testing_debugging.md) を書いたので、カスタム機能のトラブルシューティング方法については、こちらをご覧ください。
diff --git a/docs/ja/newbs_getting_started.md b/docs/ja/newbs_getting_started.md
new file mode 100644
index 000000000..653922b6e
--- /dev/null
+++ b/docs/ja/newbs_getting_started.md
@@ -0,0 +1,121 @@
1# イントロダクション
2
3<!---
4 original document: docs/newbs_getting_started.md
5 $ git diff 161d469 HEAD docs/newbs_getting_started.md
6-->
7
8キーボードにはプロセッサが入っており、それはコンピュータに入っているものと大して違わないものです。
9このプロセッサでは、キーボードのボタンの押し下げの検出を担当しキーボードのどのボタンが押されている/離されているかのレポートをコンピュータに送信するソフトウェアが動作しています。
10QMK は、そのソフトウェアの役割を果たし、ボタンの押下を検出しその情報をホストコンピュータに渡します。
11カスタムキーマップを作るということは、キーボード上で動くプログラムを作るということなのです。
12
13QMK は、簡単なことは簡単に、そして、難しいことを可能なことにすることで、あなたの手にたくさんのパワーをもたらします。
14パワフルなキーマップを作るためにプログラムを作成する方法を知る必要はありません。いくつかのシンプルな文法に従うだけでOKです。
15
16# はじめに
17
18キーマップをビルドする前に、いくつかのソフトウェアをインストールしてビルド環境を構築する必要があります。
19ファームウェアをコンパイルするキーボードの数に関わらず、この作業を一度だけ実行する必要があります。
20
21もし、GUI で作業をしたい場合、オンラインで作業できる [QMK Configurator](https://config.qmk.fm) を使ってください。
22使い方は [Building Your First Firmware using the online GUI](newbs_building_firmware_configurator.md) を参照してください。
23
24## ソフトウェアのダウンロード
25
26### テキストエディタ
27
28GUI を使わない場合、プレーンテキストを編集・保存できるエディタが必要です。
29Windows の場合、メモ帳が使えます。Linux の場合、gedit が使えます。
30どちらもシンプルですが機能的なテキストエディタです。
31macOS では、デフォルトのテキストエディットアプリに注意してください。_フォーマット_ メニューから _標準テキストにする_ を選択しない限り、プレーンテキストとして保存されません。
32
33[Sublime Text](https://www.sublimetext.com/) や [VS Code](https://code.visualstudio.com/) のような専用のテキストエディタをダウンロードしてインストールすることもできます。これらのプログラムはコードを編集するために特別に作成されているため、これはプラットフォームに関係なくベストな方法です。
34
35?> どのエディタを使えば良いか分からない場合、Laurence Bradford が書いたこの記事 [a great introduction](https://learntocodewith.me/programming/basics/text-editors/) を読んでください。
36
37### QMK Toolbox
38
39QMK Toolbox は、Windows と macOS で使える GUI を備えたプログラムで、カスタムキーボードのプログラミングとデバッグの両方ができます。
40このプログラムは、キーボードに簡単にファームウェアを書き込んだり、出力されるデバッグメッセージを確認する際に、かけがえのないものであることがわかるでしょう。
41
42[QMK Toolbox の最新版](https://github.com/qmk/qmk_toolbox/releases/latest)
43
44* Windows 版: `qmk_toolbox.exe` (portable) または `qmk_toolbox_install.exe` (installer)
45* macOS 版: `QMK.Toolbox.app.zip` (portable) または `QMK.Toolbox.pkg` (installer)
46
47## 環境構築
48
49私たちは、QMK を可能な限り簡単に構築できるように努力しています。
50Linux か Unix 環境を用意するだけで、QMK に残りをインストールさせることができます。
51
52?> もし、Linux か Unix のコマンドを使ったことがない場合、こちらで基本的な概念や各種コマンドを学んでください。これらの教材で QMK を使うのに必要なことを学ぶことができます。
53
54[Must Know Linux Commands](https://www.guru99.com/must-know-linux-commands.html)<br>
55[Some Basic Unix Commands](https://www.tjhsst.edu/~dhyatt/superap/unixcmd.html)
56
57### Windows
58
59MSYS2 と Git のインストールが必要です。
60
61* [MSYS2 homepage](http://www.msys2.org) の手順に従って MSYS2 をインストールします。
62* 開いている MSYS2 の全ターミナル画面を閉じて、新しい MSYS2 MinGW 64-bit のターミナル画面を開きます。
63* `pacman -S git` を実行して Git をインストールします。
64
65### macOS
66
67[Homebrew homepage](https://brew.sh) の手順に従って Homebrew をインストールしてください。
68
69Homebrew をインストールしたら、以下の _QMK の設定_ に進んでください。そのステップでは、他のパッケージをインストールするスクリプトを実行します。
70
71### Linux
72
73Git のインストールが必要です。既にインストールされている可能性は高いですが、そうでない場合、次のコマンドでインストールできます。
74
75* Debian / Ubuntu / Devuan: `apt-get install git`
76* Fedora / Red Hat / CentOS: `yum install git`
77* Arch: `pacman -S git`
78
79?> 全てのプラットフォームにおいて、Docker を使うことも可能です。[詳細はこちらをクリックしてください](getting_started_build_tools.md#docker)。
80
81## QMK の設定
82
83Linux/Unix 環境が準備できたら QMK のダウンロードの準備は完了です。Git を使用して QMK のリポジトリを「クローン」することで QMK をダウンロードします。ターミナルか MSYS2 MinGW ウィンドウを開いて、このガイドの残りの部分では開いたままにします。そのウィンドウ内で、次の2つのコマンドを実行します。
84
85```shell
86git clone --recurse-submodules https://github.com/qmk/qmk_firmware.git
87cd qmk_firmware
88```
89
90?> 既に [GitHub の使いかた](getting_started_github.md)を知っているなら、clone ではなく fork を勧めます。この一文の意味が分からない場合、このメッセージは無視してかまいません。
91
92QMK には、必要な残りの設定を手助けするスクリプトが含まれています。
93セットアップ作業を完了させるため、次のコマンドを実行します。
94
95 util/qmk_install.sh
96
97## ビルド環境の確認
98
99これで QMK のビルド環境が用意できましたので、キーボードのファームウェアをビルドできます。
100キーボードのデフォルトキーマップをビルドすることから始めます。次の形式のコマンドでビルドできるはずです。
101
102 make <keyboard>:default
103
104例)Clueboard 66% のファームウェアをビルドする
105
106 make clueboard/66/rev3:default
107
108大量の出力の最後に次のように出力されると完了です。
109
110```
111Linking: .build/clueboard_66_rev3_default.elf [OK]
112Creating load file for flashing: .build/clueboard_66_rev3_default.hex [OK]
113Copying clueboard_66_rev3_default.hex to qmk_firmware folder [OK]
114Checking file size of clueboard_66_rev3_default.hex [OK]
115 * The firmware size is fine - 26356/28672 (2316 bytes free)
116```
117
118# キーマップの作成
119
120これであなた専用のキーマップを作成する準備ができました!
121次は [Building Your First Firmware](newbs_building_firmware.md) で専用のキーマップを作成します。
diff --git a/docs/ja/newbs_learn_more_resources.md b/docs/ja/newbs_learn_more_resources.md
new file mode 100644
index 000000000..3247d04f7
--- /dev/null
+++ b/docs/ja/newbs_learn_more_resources.md
@@ -0,0 +1,31 @@
1# 学習リソース
2
3<!---
4 original document: ed0575fc8:docs/newbs_learn_more_resources.md
5 $ git diff ed0575fc8 HEAD docs/newbs_learn_more_resources.md
6-->
7
8これらのリソースは、QMKコミュニティの新しいメンバーに、初心者向けドキュメントで提供されている情報に対する理解を深めることを目的としています。
9
10## Git に関するリース:
11
12### 英語
13
14* [Great General Tutorial](https://www.codecademy.com/learn/learn-git)
15* [Git Game To Learn From Examples](https://learngitbranching.js.org/)
16* [Git Resources to Learn More About Github](getting_started_github.md)
17* [Git Resources Aimed Specifically toward QMK](contributing.md)
18
19### 日本語
20
21_日本語のリソース情報を募集中です。_
22
23## コマンドラインに関するリソース:
24
25### 英語
26
27* [Good General Tutorial on Command Line](https://www.codecademy.com/learn/learn-the-command-line)
28
29### 日本語
30
31_日本語のリソース情報を募集中です。_
diff --git a/docs/ja/newbs_testing_debugging.md b/docs/ja/newbs_testing_debugging.md
new file mode 100644
index 000000000..04905755c
--- /dev/null
+++ b/docs/ja/newbs_testing_debugging.md
@@ -0,0 +1,106 @@
1# テストとデバッグ
2
3<!---
4 original document: ed0575fc8:docs/newbs_testing_debugging.md
5 $ git diff ed0575fc8 HEAD docs/newbs_testing_debugging.md
6-->
7
8カスタムファームウェアをキーボードへ書き込んだら、テストする準備が整います。運が良ければ全て問題なく動作しているはずですが、もしそうでなければこのドキュメントがどこが悪いのか調べるのに役立ちます。
9
10## テスト
11
12通常、キーボードをテストするのは非常に簡単です。全てのキーをひとつずつ押して、期待されるキーが送信されていることを確認します。キーを押したことを見逃さないためのプログラムもあります。
13
14メモ: これらのプログラムはQMKによって提供・承認されたものではありません。
15
16* [QMK Configurator](https://config.qmk.fm/#/test/) (Web Based)
17* [Switch Hitter](https://web.archive.org/web/20190413233743/https://elitekeyboards.com/switchhitter.php) (Windows Only)
18* [Keyboard Viewer](https://www.imore.com/how-use-keyboard-viewer-your-mac) (Mac Only)
19* [Keyboard Tester](http://www.keyboardtester.com) (Web Based)
20* [Keyboard Checker](http://keyboardchecker.com) (Web Based)
21
22## デバッグ
23
24`rules.mk`へ`CONSOLE_ENABLE = yes`の設定をするとキーボードはデバッグ情報を出力します。デフォルトの出力は非常に限られたものですが、デバッグモードをオンにすることでデバッグ情報の量を増やすことが出来ます。キーマップの`DEBUG`キーコードを使用するか、デバッグモードを有効にする [Command](feature_command.md) 機能を使用するか、以下のコードをキーマップに追加します。
25
26```c
27void keyboard_post_init_user(void) {
28 // Customise these values to desired behaviour
29 debug_enable=true;
30 debug_matrix=true;
31 //debug_keyboard=true;
32 //debug_mouse=true;
33}
34```
35
36### QMK Toolboxを使ったデバッグ
37
38互換性のある環境では、[QMK Toolbox](https://github.com/qmk/qmk_toolbox)を使うことでキーボードからのデバッグメッセージを表示できます。
39
40### hid_listenを使ったデバッグ
41
42ターミナルベースの方法がお好みですか?PJRCが提供する[hid_listen](https://www.pjrc.com/teensy/hid_listen.html)もデバッグメッセージの表示に使用できます。ビルド済みの実行ファイルはWindows, Linux, MacOS用が用意されています。
43
44<!-- FIXME: Describe the debugging messages here. -->
45
46## 独自のデバッグメッセージを送信する
47
48[custom code](custom_quantum_functions.md)内からデバッグメッセージを出力すると便利な場合があります。それはとても簡単です。ファイルの先頭に`print.h`のインクルードを追加します:
49
50 #include <print.h>
51
52そのあとは、いくつかの異なったprint関数を使用することが出来ます。
53
54* `print("string")`: シンプルな文字列を出力します
55* `uprintf("%s string", var)`: フォーマットされた文字列を出力します
56* `dprint("string")` デバッグモードが有効な場合のみ、シンプルな文字列を出力します
57* `dprintf("%s string", var)`: デバッグモードが有効な場合のみ、フォーマットされた文字列を出力します
58
59## デバッグの例
60
61以下は現実世界での実際のデバッグ手法の例を集めたものです。追加情報は[Debugging/Troubleshooting QMK](faq_debug.md)を参照してください。
62
63### マトリックス上のどの場所でキー押下が起こったか?
64
65移植する、PCBの問題を診断する場合、キー入力が正しくスキャンされているかどうかを確認することが役立つ場合があります。この手法でのロギングを有効化するには、`keymap.c`へ以下のコードを追加します。
66
67```c
68bool process_record_user(uint16_t keycode, keyrecord_t *record) {
69 // コンソールが有効化されている場合、マトリックス上の位置とキー押下状態を出力します
70#ifdef CONSOLE_ENABLE
71 uprintf("KL: kc: %u, col: %u, row: %u, pressed: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed);
72#endif
73 return true;
74}
75```
76
77出力の例
78```text
79Waiting for device:.......
80Listening:
81KL: kc: 169, col: 0, row: 0, pressed: 1
82KL: kc: 169, col: 0, row: 0, pressed: 0
83KL: kc: 174, col: 1, row: 0, pressed: 1
84KL: kc: 174, col: 1, row: 0, pressed: 0
85KL: kc: 172, col: 2, row: 0, pressed: 1
86KL: kc: 172, col: 2, row: 0, pressed: 0
87```
88
89### キースキャンにかかる時間の測定
90
91パフォーマンスの問題をテストする場合、スイッチマトリックスをスキャンする頻度を知ることが役立ちます。この手法でのロギングを有効化するには`config.h`へ以下のコードを追加します。
92
93
94```c
95#define DEBUG_MATRIX_SCAN_RATE
96```
97
98出力例
99```text
100 > matrix scan frequency: 315
101 > matrix scan frequency: 313
102 > matrix scan frequency: 316
103 > matrix scan frequency: 316
104 > matrix scan frequency: 316
105 > matrix scan frequency: 316
106```