2020-01-07 17:42:10 +00:00
|
|
|
|
# 貢獻
|
|
|
|
|
|
2020-06-02 00:13:46 +00:00
|
|
|
|
🎌
|
2020-05-05 17:30:37 +00:00
|
|
|
|
[Deutsch][DE],
|
2020-01-07 17:42:10 +00:00
|
|
|
|
[English][EN],
|
2020-02-26 20:38:18 +00:00
|
|
|
|
[Español][ES],
|
2020-03-01 20:32:10 +00:00
|
|
|
|
[Français][FR],
|
2020-08-01 01:03:24 +00:00
|
|
|
|
[Kurdi][KU],
|
2020-02-26 10:18:07 +00:00
|
|
|
|
[Nederlands][NL],
|
2020-01-07 17:42:10 +00:00
|
|
|
|
[Português][PT_BR],
|
|
|
|
|
[Türkçe][TR],
|
|
|
|
|
[العربية][AR],
|
2020-08-17 18:19:05 +00:00
|
|
|
|
[日本語][JA],
|
2020-01-07 17:42:10 +00:00
|
|
|
|
**正體中文**,
|
2020-02-27 18:31:08 +00:00
|
|
|
|
[简体中文][ZH_CN],
|
2020-01-07 17:42:10 +00:00
|
|
|
|
[한국어][KO_KR]
|
|
|
|
|
|
|
|
|
|
[AR]:CONTRIBUTING.ar.md
|
2020-05-05 17:30:37 +00:00
|
|
|
|
[DE]:CONTRIBUTING.de.md
|
2020-01-07 17:42:10 +00:00
|
|
|
|
[EN]:CONTRIBUTING.md
|
2020-02-26 20:38:18 +00:00
|
|
|
|
[ES]:CONTRIBUTING.es.md
|
2020-02-27 18:21:57 +00:00
|
|
|
|
[FR]:CONTRIBUTING.fr.md
|
2020-08-17 18:19:05 +00:00
|
|
|
|
[JA]:CONTRIBUTING.ja.md
|
2020-01-07 17:42:10 +00:00
|
|
|
|
[KO_KR]:CONTRIBUTING.ko_kr.md
|
2020-08-01 01:03:24 +00:00
|
|
|
|
[KU]:CONTRIBUTING.ku.md
|
2020-02-27 18:31:08 +00:00
|
|
|
|
[NL]:CONTRIBUTING.nl.md
|
2020-01-07 17:42:10 +00:00
|
|
|
|
[PT_BR]:CONTRIBUTING.pt_br.md
|
|
|
|
|
[TR]:CONTRIBUTING.tr.md
|
2020-02-27 18:31:08 +00:00
|
|
|
|
[ZH_CN]:CONTRIBUTING.zh_cn.md
|
2020-01-07 17:42:10 +00:00
|
|
|
|
[ZH_TW]:CONTRIBUTING.zh_tw.md
|
|
|
|
|
|
|
|
|
|
這個倉庫的原始碼,是透過列印出的紙本輸出,予以手動數位化。所以可能會不小心出現錯字和其他出入。程式碼應當修正到與紙本掃描的輸出一致:
|
|
|
|
|
|
2020-06-01 23:29:19 +00:00
|
|
|
|
- [AGC printouts for Comanche][8]
|
|
|
|
|
- [AGC printouts for Luminary][9]
|
2020-01-07 17:42:10 +00:00
|
|
|
|
|
|
|
|
|
## 實用套件
|
|
|
|
|
|
2020-02-21 02:50:25 +00:00
|
|
|
|
GitHub 內建 AGC 組語語法支援,但你的編輯器本身並沒有。不過,某些編輯器有提供 AGC 語法突顯的語言套件:
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-02-21 01:40:19 +00:00
|
|
|
|
- [Atom][Atom]†
|
|
|
|
|
- [CodeBlocks][CodeBlocks]
|
|
|
|
|
- [Eclipse][Eclipse]
|
|
|
|
|
- [Kate][Kate]
|
|
|
|
|
- [ProgrammersNotepad][ProgrammersNotepad]
|
|
|
|
|
- [Sublime Text 3][Sublime Text]†
|
|
|
|
|
- [TextPad][TextPad]
|
|
|
|
|
- [Vim][Vim]
|
|
|
|
|
- [Visual Studio Code][VisualStudioCode]†
|
|
|
|
|
- [jEdit][jEdit]
|
|
|
|
|
|
2020-02-21 02:50:25 +00:00
|
|
|
|
† 支援自動格式化
|
2020-02-21 01:40:19 +00:00
|
|
|
|
|
|
|
|
|
[Atom]:https://github.com/Alhadis/language-agc
|
|
|
|
|
[CodeBlocks]:https://github.com/virtualagc/virtualagc/tree/master/Contributed/SyntaxHighlight/CodeBlocks
|
|
|
|
|
[Eclipse]:https://github.com/virtualagc/virtualagc/tree/master/Contributed/SyntaxHighlight/Eclipse
|
|
|
|
|
[Kate]:https://github.com/virtualagc/virtualagc/tree/master/Contributed/SyntaxHighlight/Kate
|
|
|
|
|
[ProgrammersNotepad]:https://github.com/virtualagc/virtualagc/tree/master/Contributed/SyntaxHighlight/ProgrammersNotepad
|
|
|
|
|
[Sublime Text]:https://github.com/jimlawton/AGC-Assembly
|
|
|
|
|
[TextPad]:https://github.com/virtualagc/virtualagc/tree/master/Contributed/SyntaxHighlight/TextPad
|
|
|
|
|
[Vim]:https://github.com/wsdjeg/vim-assembly
|
|
|
|
|
[VisualStudioCode]:https://github.com/wopian/agc-assembly
|
|
|
|
|
[jEdit]:https://github.com/virtualagc/virtualagc/tree/master/Contributed/SyntaxHighlight/jEdit
|
2020-01-07 17:42:10 +00:00
|
|
|
|
|
|
|
|
|
## 格式化
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-01-07 17:42:10 +00:00
|
|
|
|
**注意:**GitHub 與上面列出的套件,會自動確保您使用正確的格式。
|
|
|
|
|
|
|
|
|
|
- 用 tab 縮排
|
|
|
|
|
- tab 寬度為 8
|
|
|
|
|
- 去除底部空白
|
|
|
|
|
|
|
|
|
|
## 如何檢查?
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-01-07 17:42:10 +00:00
|
|
|
|
掃描與倉庫原始碼的差異會包括:
|
|
|
|
|
|
|
|
|
|
### 註解
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-01-07 17:42:10 +00:00
|
|
|
|
- 抄寫的註解要和掃描一模一樣。
|
|
|
|
|
- 這包括刻意的拼寫錯誤、或是刪除/增加整個註解。
|
|
|
|
|
|
|
|
|
|
### 換行
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-01-07 17:42:10 +00:00
|
|
|
|
- 在第一列(column 1)*有著* `R0000` 的換行,要和掃描一模一樣。
|
|
|
|
|
- 在第一列*沒有* `R0000` 的換行,在一行(row)只能留有一到兩個空白行。
|
|
|
|
|
- 如果空白行超過兩個,請刪去額外的空白行。
|
|
|
|
|
- 如果在第一列有 `R0000` 的話,就不要這麼做。
|
|
|
|
|
- 在原始圖片中,這些都是由第八列(column 8)的未列印數字所產生。2 強制用兩個(也就是單一空白行)、3 強制用三個(也就是雙空行)、4-8 有定義,但從未使用過。請參閱 [#159][7] 的詳細訊息。
|
|
|
|
|
|
|
|
|
|
例如以下程式:
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-01-07 17:42:10 +00:00
|
|
|
|
```plain
|
|
|
|
|
R0819 SUBROUTINE TO SKIP...
|
|
|
|
|
R0820
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0821 LAMPTEST CS IMODES33
|
|
|
|
|
```
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-01-07 17:42:10 +00:00
|
|
|
|
要改寫成:
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-01-07 17:42:10 +00:00
|
|
|
|
```plain
|
|
|
|
|
R0819 SUBROUTINE TO SKIP...
|
|
|
|
|
R0820
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0820 LAMPTEST CS IMODES33
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 空白
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-01-07 17:42:10 +00:00
|
|
|
|
- 在字元內,兩個單字之間的空白必須遵照以下慣例(請參閱 [#316][10] 的討論):
|
|
|
|
|
- 單字間空一格。
|
|
|
|
|
- 句子間空兩格。
|
|
|
|
|
- 縮排間空三格。
|
|
|
|
|
|
|
|
|
|
例如以下程式:
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-01-07 17:42:10 +00:00
|
|
|
|
```plain
|
|
|
|
|
1) FOO BAR BAZ QUX QUUX QUUZ. CORGE, GRAULT,
|
|
|
|
|
GARPLY, WALDO.
|
|
|
|
|
```
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-01-07 17:42:10 +00:00
|
|
|
|
要改寫成:
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-01-07 17:42:10 +00:00
|
|
|
|
```plain
|
|
|
|
|
1) FOO BAR BAZ QUX QUUX QUUZ. CORGE, GRAULT,
|
|
|
|
|
GARPLY, WALDO.
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 注意
|
|
|
|
|
|
|
|
|
|
在發 PR 前,請確保您的修改與掃描輸出一模一樣!
|
|
|
|
|
|
|
|
|
|
[0]:https://github.com/chrislgarry/Apollo-11/pull/new/master
|
|
|
|
|
[1]:http://www.ibiblio.org/apollo/ScansForConversion/Luminary099/
|
|
|
|
|
[2]:http://www.ibiblio.org/apollo/ScansForConversion/Comanche055/
|
|
|
|
|
[3]:https://github.com/wopian/agc-assembly
|
|
|
|
|
[4]:https://github.com/jimlawton/AGC-Assembly
|
|
|
|
|
[5]:https://github.com/Alhadis/language-agc
|
|
|
|
|
[6]:https://github.com/wopian/agc-assembly#user-settings
|
|
|
|
|
[7]:https://github.com/chrislgarry/Apollo-11/issues/159
|
|
|
|
|
[8]:http://www.ibiblio.org/apollo/ScansForConversion/Comanche055/
|
|
|
|
|
[9]:http://www.ibiblio.org/apollo/ScansForConversion/Luminary099/
|
|
|
|
|
[10]:https://github.com/chrislgarry/Apollo-11/pull/316#pullrequestreview-102892741
|