diff options
Diffstat (limited to 'docs/ja')
| -rw-r--r-- | docs/ja/cli_commands.md | 14 | ||||
| -rw-r--r-- | docs/ja/cli_development.md | 4 | ||||
| -rw-r--r-- | docs/ja/compatible_microcontrollers.md | 2 | ||||
| -rw-r--r-- | docs/ja/feature_dip_switch.md | 16 | ||||
| -rw-r--r-- | docs/ja/feature_encoders.md | 10 | ||||
| -rw-r--r-- | docs/ja/feature_tap_dance.md | 2 | ||||
| -rw-r--r-- | docs/ja/reference_configurator_support.md | 2 | ||||
| -rw-r--r-- | docs/ja/reference_info_json.md | 4 |
8 files changed, 29 insertions, 25 deletions
diff --git a/docs/ja/cli_commands.md b/docs/ja/cli_commands.md index 81cb03cfe..35937dbbc 100644 --- a/docs/ja/cli_commands.md +++ b/docs/ja/cli_commands.md | |||
| @@ -211,7 +211,7 @@ qmk new-keymap [-kb KEYBOARD] [-km KEYMAP] | |||
| 211 | 211 | ||
| 212 | # 開発者用コマンド | 212 | # 開発者用コマンド |
| 213 | 213 | ||
| 214 | ## `qmk cformat` | 214 | ## `qmk format-c` |
| 215 | 215 | ||
| 216 | このコマンドは clang-format を使って C コードを整形します。 | 216 | このコマンドは clang-format を使って C コードを整形します。 |
| 217 | 217 | ||
| @@ -222,25 +222,25 @@ qmk new-keymap [-kb KEYBOARD] [-km KEYMAP] | |||
| 222 | **指定したファイルに対する使い方**: | 222 | **指定したファイルに対する使い方**: |
| 223 | 223 | ||
| 224 | ``` | 224 | ``` |
| 225 | qmk cformat [file1] [file2] [...] [fileN] | 225 | qmk format-c [file1] [file2] [...] [fileN] |
| 226 | ``` | 226 | ``` |
| 227 | 227 | ||
| 228 | **全てのコアファイルに対する使い方**: | 228 | **全てのコアファイルに対する使い方**: |
| 229 | 229 | ||
| 230 | ``` | 230 | ``` |
| 231 | qmk cformat -a | 231 | qmk format-c -a |
| 232 | ``` | 232 | ``` |
| 233 | 233 | ||
| 234 | **origin/master で変更されたファイルのみに対する使い方**: | 234 | **origin/master で変更されたファイルのみに対する使い方**: |
| 235 | 235 | ||
| 236 | ``` | 236 | ``` |
| 237 | qmk cformat | 237 | qmk format-c |
| 238 | ``` | 238 | ``` |
| 239 | 239 | ||
| 240 | **branch_name で変更されたファイルのみに対する使い方**: | 240 | **branch_name で変更されたファイルのみに対する使い方**: |
| 241 | 241 | ||
| 242 | ``` | 242 | ``` |
| 243 | qmk cformat -b branch_name | 243 | qmk format-c -b branch_name |
| 244 | ``` | 244 | ``` |
| 245 | 245 | ||
| 246 | ## `qmk docs` | 246 | ## `qmk docs` |
| @@ -275,14 +275,14 @@ $ qmk kle2json -f kle.txt -f | |||
| 275 | Ψ Wrote out to info.json | 275 | Ψ Wrote out to info.json |
| 276 | ``` | 276 | ``` |
| 277 | 277 | ||
| 278 | ## `qmk pyformat` | 278 | ## `qmk format-py` |
| 279 | 279 | ||
| 280 | このコマンドは `qmk_firmware` 内の python コードを整形します。 | 280 | このコマンドは `qmk_firmware` 内の python コードを整形します。 |
| 281 | 281 | ||
| 282 | **使用法**: | 282 | **使用法**: |
| 283 | 283 | ||
| 284 | ``` | 284 | ``` |
| 285 | qmk pyformat | 285 | qmk format-py |
| 286 | ``` | 286 | ``` |
| 287 | 287 | ||
| 288 | ## `qmk pytest` | 288 | ## `qmk pytest` |
diff --git a/docs/ja/cli_development.md b/docs/ja/cli_development.md index 47262213a..28cdd91c1 100644 --- a/docs/ja/cli_development.md +++ b/docs/ja/cli_development.md | |||
| @@ -192,7 +192,7 @@ cli.log.info('Reading from %s and writing to %s', cli.args.filename, cli.args.ou | |||
| 192 | 192 | ||
| 193 | # テスト、リントおよびフォーマット | 193 | # テスト、リントおよびフォーマット |
| 194 | 194 | ||
| 195 | nose2、flake8 および yapf を使ってコードをテスト、リントおよびフォーマットします。これらのテストを実行するために `pytest` と `pyformat` サブコマンドを使うことができます。 | 195 | nose2、flake8 および yapf を使ってコードをテスト、リントおよびフォーマットします。これらのテストを実行するために `pytest` と `format-py` サブコマンドを使うことができます。 |
| 196 | 196 | ||
| 197 | ### テストとリント | 197 | ### テストとリント |
| 198 | 198 | ||
| @@ -200,7 +200,7 @@ nose2、flake8 および yapf を使ってコードをテスト、リントお | |||
| 200 | 200 | ||
| 201 | ### フォーマット | 201 | ### フォーマット |
| 202 | 202 | ||
| 203 | qmk pyformat | 203 | qmk format-py |
| 204 | 204 | ||
| 205 | ## フォーマットの詳細 | 205 | ## フォーマットの詳細 |
| 206 | 206 | ||
diff --git a/docs/ja/compatible_microcontrollers.md b/docs/ja/compatible_microcontrollers.md index b675b038d..761a4cda4 100644 --- a/docs/ja/compatible_microcontrollers.md +++ b/docs/ja/compatible_microcontrollers.md | |||
| @@ -36,6 +36,8 @@ QMK は十分な容量のフラッシュメモリを備えた USB 対応 AVR ま | |||
| 36 | * [STM32F446](https://www.st.com/en/microcontrollers-microprocessors/stm32f446.html) | 36 | * [STM32F446](https://www.st.com/en/microcontrollers-microprocessors/stm32f446.html) |
| 37 | * [STM32G431](https://www.st.com/en/microcontrollers-microprocessors/stm32g4x1.html) | 37 | * [STM32G431](https://www.st.com/en/microcontrollers-microprocessors/stm32g4x1.html) |
| 38 | * [STM32G474](https://www.st.com/en/microcontrollers-microprocessors/stm32g4x4.html) | 38 | * [STM32G474](https://www.st.com/en/microcontrollers-microprocessors/stm32g4x4.html) |
| 39 | * [STM32L412](https://www.st.com/en/microcontrollers-microprocessors/stm32l4x2.html) | ||
| 40 | * [STM32L422](https://www.st.com/en/microcontrollers-microprocessors/stm32l4x2.html) | ||
| 39 | * [STM32L433](https://www.st.com/en/microcontrollers-microprocessors/stm32l4x3.html) | 41 | * [STM32L433](https://www.st.com/en/microcontrollers-microprocessors/stm32l4x3.html) |
| 40 | * [STM32L443](https://www.st.com/en/microcontrollers-microprocessors/stm32l4x3.html) | 42 | * [STM32L443](https://www.st.com/en/microcontrollers-microprocessors/stm32l4x3.html) |
| 41 | 43 | ||
diff --git a/docs/ja/feature_dip_switch.md b/docs/ja/feature_dip_switch.md index a0f6aeb00..a5436779f 100644 --- a/docs/ja/feature_dip_switch.md +++ b/docs/ja/feature_dip_switch.md | |||
| @@ -28,8 +28,9 @@ DIP スイッチは、以下を `rules.mk` に追加することでサポート | |||
| 28 | コールバック関数を `<keyboard>.c` に記述することができます: | 28 | コールバック関数を `<keyboard>.c` に記述することができます: |
| 29 | 29 | ||
| 30 | ```c | 30 | ```c |
| 31 | void dip_switch_update_kb(uint8_t index, bool active) { | 31 | bool dip_switch_update_kb(uint8_t index, bool active) { |
| 32 | dip_switch_update_user(index, active); | 32 | if !(dip_switch_update_user(index, active)) { return false; } |
| 33 | return true; | ||
| 33 | } | 34 | } |
| 34 | ``` | 35 | ``` |
| 35 | 36 | ||
| @@ -37,7 +38,7 @@ void dip_switch_update_kb(uint8_t index, bool active) { | |||
| 37 | あるいは `keymap.c` に記述することもできます: | 38 | あるいは `keymap.c` に記述することもできます: |
| 38 | 39 | ||
| 39 | ```c | 40 | ```c |
| 40 | void dip_switch_update_user(uint8_t index, bool active) { | 41 | bool dip_switch_update_user(uint8_t index, bool active) { |
| 41 | switch (index) { | 42 | switch (index) { |
| 42 | case 0: | 43 | case 0: |
| 43 | if(active) { audio_on(); } else { audio_off(); } | 44 | if(active) { audio_on(); } else { audio_off(); } |
| @@ -62,6 +63,7 @@ void dip_switch_update_user(uint8_t index, bool active) { | |||
| 62 | } | 63 | } |
| 63 | break; | 64 | break; |
| 64 | } | 65 | } |
| 66 | return true; | ||
| 65 | } | 67 | } |
| 66 | ``` | 68 | ``` |
| 67 | 69 | ||
| @@ -69,8 +71,9 @@ void dip_switch_update_user(uint8_t index, bool active) { | |||
| 69 | 71 | ||
| 70 | 72 | ||
| 71 | ```c | 73 | ```c |
| 72 | void dip_switch_update_mask_kb(uint32_t state) { | 74 | bool dip_switch_update_mask_kb(uint32_t state) { |
| 73 | dip_switch_update_mask_user(state); | 75 | if (!dip_switch_update_mask_user(state)) { return false; } |
| 76 | return true; | ||
| 74 | } | 77 | } |
| 75 | ``` | 78 | ``` |
| 76 | 79 | ||
| @@ -78,7 +81,7 @@ void dip_switch_update_mask_kb(uint32_t state) { | |||
| 78 | あるいは `keymap.c` に記述することもできます: | 81 | あるいは `keymap.c` に記述することもできます: |
| 79 | 82 | ||
| 80 | ```c | 83 | ```c |
| 81 | void dip_switch_update_mask_user(uint32_t state) { | 84 | bool dip_switch_update_mask_user(uint32_t state) { |
| 82 | if (state & (1UL<<0) && state & (1UL<<1)) { | 85 | if (state & (1UL<<0) && state & (1UL<<1)) { |
| 83 | layer_on(_ADJUST); // C on esc | 86 | layer_on(_ADJUST); // C on esc |
| 84 | } else { | 87 | } else { |
| @@ -94,6 +97,7 @@ void dip_switch_update_mask_user(uint32_t state) { | |||
| 94 | } else { | 97 | } else { |
| 95 | layer_off(_TEST_B); | 98 | layer_off(_TEST_B); |
| 96 | } | 99 | } |
| 100 | return true; | ||
| 97 | } | 101 | } |
| 98 | ``` | 102 | ``` |
| 99 | 103 | ||
diff --git a/docs/ja/feature_encoders.md b/docs/ja/feature_encoders.md index 7b7f394c8..21f42d38b 100644 --- a/docs/ja/feature_encoders.md +++ b/docs/ja/feature_encoders.md | |||
| @@ -51,15 +51,18 @@ ENCODER_ENABLE = yes | |||
| 51 | コールバック関数を `<keyboard>.c` に記述することができます: | 51 | コールバック関数を `<keyboard>.c` に記述することができます: |
| 52 | 52 | ||
| 53 | ```c | 53 | ```c |
| 54 | void encoder_update_kb(uint8_t index, bool clockwise) { | 54 | bool encoder_update_kb(uint8_t index, bool clockwise) { |
| 55 | encoder_update_user(index, clockwise); | 55 | if (!encoder_update_user(index, clockwise)) { |
| 56 | return false; | ||
| 57 | } | ||
| 58 | |||
| 56 | } | 59 | } |
| 57 | ``` | 60 | ``` |
| 58 | 61 | ||
| 59 | あるいは `keymap.c` に記述することもできます: | 62 | あるいは `keymap.c` に記述することもできます: |
| 60 | 63 | ||
| 61 | ```c | 64 | ```c |
| 62 | void encoder_update_user(uint8_t index, bool clockwise) { | 65 | bool encoder_update_user(uint8_t index, bool clockwise) { |
| 63 | if (index == 0) { /* First encoder */ | 66 | if (index == 0) { /* First encoder */ |
| 64 | if (clockwise) { | 67 | if (clockwise) { |
| 65 | tap_code(KC_PGDN); | 68 | tap_code(KC_PGDN); |
| @@ -73,6 +76,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
| 73 | tap_code(KC_UP); | 76 | tap_code(KC_UP); |
| 74 | } | 77 | } |
| 75 | } | 78 | } |
| 79 | return true; | ||
| 76 | } | 80 | } |
| 77 | ``` | 81 | ``` |
| 78 | 82 | ||
diff --git a/docs/ja/feature_tap_dance.md b/docs/ja/feature_tap_dance.md index 3d9d30ecf..dd2b8bdb6 100644 --- a/docs/ja/feature_tap_dance.md +++ b/docs/ja/feature_tap_dance.md | |||
| @@ -59,7 +59,7 @@ | |||
| 59 | 59 | ||
| 60 | このことは、あなたは再びキーをタップするまでの時間として `TAPPING_TERM` の時間を持っていることを意味します。そのため、あなたは1つの `TAPPING_TERM` の時間内に全てのタップを行う必要はありません。これにより、キーの反応への影響を最小限に抑えながら、より長いタップ回数を可能にします。 | 60 | このことは、あなたは再びキーをタップするまでの時間として `TAPPING_TERM` の時間を持っていることを意味します。そのため、あなたは1つの `TAPPING_TERM` の時間内に全てのタップを行う必要はありません。これにより、キーの反応への影響を最小限に抑えながら、より長いタップ回数を可能にします。 |
| 61 | 61 | ||
| 62 | 次は `matrix_scan_tap_dance()` です。この関数はタップダンスキーのタイムアウトを制御します。 | 62 | 次は `tap_dance_task()` です。この関数はタップダンスキーのタイムアウトを制御します。 |
| 63 | 63 | ||
| 64 | 柔軟性のために、タップダンスは、キーコードの組み合わせにも、ユーザー関数にもなることができます。後者は、より高度なタップ回数の制御や、LED を点滅させたり、バックライトをいじったり、等々の制御を可能にします。これは、1つの共用体と、いくつかの賢いマクロによって成し遂げられています。 | 64 | 柔軟性のために、タップダンスは、キーコードの組み合わせにも、ユーザー関数にもなることができます。後者は、より高度なタップ回数の制御や、LED を点滅させたり、バックライトをいじったり、等々の制御を可能にします。これは、1つの共用体と、いくつかの賢いマクロによって成し遂げられています。 |
| 65 | 65 | ||
diff --git a/docs/ja/reference_configurator_support.md b/docs/ja/reference_configurator_support.md index 4fb98fc0e..83d6d648d 100644 --- a/docs/ja/reference_configurator_support.md +++ b/docs/ja/reference_configurator_support.md | |||
| @@ -104,8 +104,6 @@ JSON ファイルをビルドする最も簡単な方法は、[Keyboard Layout E | |||
| 104 | "tags": { | 104 | "tags": { |
| 105 | "form_factor": "numpad" | 105 | "form_factor": "numpad" |
| 106 | }, | 106 | }, |
| 107 | "width": 4, | ||
| 108 | "height": 5, | ||
| 109 | "layouts": { | 107 | "layouts": { |
| 110 | "LAYOUT": { | 108 | "LAYOUT": { |
| 111 | "layout": [ | 109 | "layout": [ |
diff --git a/docs/ja/reference_info_json.md b/docs/ja/reference_info_json.md index 5b9a1b6b6..7346a6395 100644 --- a/docs/ja/reference_info_json.md +++ b/docs/ja/reference_info_json.md | |||
| @@ -20,10 +20,6 @@ | |||
| 20 | * キーボードの製品ページ、[QMK.fm/keyboards](https://qmk.fm/keyboards) のページ、あるいはキーボードに関する情報を説明する他のページの URL。 | 20 | * キーボードの製品ページ、[QMK.fm/keyboards](https://qmk.fm/keyboards) のページ、あるいはキーボードに関する情報を説明する他のページの URL。 |
| 21 | * `maintainer` | 21 | * `maintainer` |
| 22 | * メンテナの GitHub のユーザ名、あるいはコミュニティが管理するキーボードの場合は `qmk` | 22 | * メンテナの GitHub のユーザ名、あるいはコミュニティが管理するキーボードの場合は `qmk` |
| 23 | * `width` | ||
| 24 | * キー単位でのキーボードの幅 | ||
| 25 | * `height` | ||
| 26 | * キー単位でのキーボードの高さ | ||
| 27 | * `layouts` | 23 | * `layouts` |
| 28 | * 物理的なレイアウト表現。詳細は以下のセクションを見てください。 | 24 | * 物理的なレイアウト表現。詳細は以下のセクションを見てください。 |
| 29 | 25 | ||
