diff options
author | Takeshi ISHII <2170248+mtei@users.noreply.github.com> | 2019-11-12 07:27:48 +0900 |
---|---|---|
committer | James Young <18669334+noroadsleft@users.noreply.github.com> | 2019-11-11 14:27:48 -0800 |
commit | 80713a8a5802dfc28fe0c602ae73b40e3de800d4 (patch) | |
tree | 35f671ce76e925f1fb7defac4e374dd4f5225e29 /docs/ja/newbs_building_firmware.md | |
parent | f48986dda29f9ca4a88d4b4da9ba00dd7864914e (diff) | |
download | qmk_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/ja/newbs_building_firmware.md')
-rw-r--r-- | docs/ja/newbs_building_firmware.md | 98 |
1 files changed, 98 insertions, 0 deletions
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 | |||
18 | macOS または 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 | ``` | ||
89 | Linking: .build/planck_rev5_xyverz.elf [OK] | ||
90 | Creating load file for flashing: .build/planck_rev5_xyverz.hex [OK] | ||
91 | Copying planck_rev5_xyverz.hex to qmk_firmware folder [OK] | ||
92 | Checking file size of planck_rev5_xyverz.hex [OK] | ||
93 | * File size is fine - 18392/28672 | ||
94 | ``` | ||
95 | |||
96 | ## ファームウェアを書きこむ | ||
97 | |||
98 | [「ファームウェアを書きこむ」](newbs_flashing.md) に移動して、キーボードに新しいファームウェアを書き込む方法を学習します。 | ||