2017-02-13 23:56:53 +00:00
# Contributing
2018-04-05 01:33:15 +00:00
:crossed_flags:
English,
2019-06-16 15:47:45 +00:00
[العربية][AR],
2019-10-14 20:10:11 +00:00
[한국어][KO_KR],
[Türkçe][TR]
2018-04-05 01:33:15 +00:00
[EN]:CONTRIBUTING.md
2019-06-16 15:47:45 +00:00
[AR]:CONTRIBUTING.ar.md
2018-04-05 01:33:15 +00:00
[KO_KR]:CONTRIBUTING.ko_kr.md
2019-10-14 20:10:11 +00:00
[TR]:CONTRIBUTING.tr.md
2017-11-11 04:39:52 +00:00
2019-01-28 04:35:40 +00:00
The source code in this repository was digitized manually from paper printouts, so typos and other discrepancies have been introduced accidentally. The code shall be modified to be made consistent with the scanned printouts:
* [AGC printouts for Comanche][8]
* [AGC printouts for Luminary][9]
2017-03-05 18:28:48 +00:00
## Useful Extensions
GitHub has syntax support for the AGC assembly language built-in.
Unfortunately your code editor will not, however there are
AGC language extensions that provides syntax highlighting for the
following editors:
- [Atom][5]
- [Sublime Text 3][4]
- [Visual Studio Code][3]
## Formatting
**Note:** GitHub and the 3 extensions listed above will ensure
you're using the correct formatting automatically.
- Use tab indentation
- Use tab width of 8
- Trim trailing whitespace
2017-02-14 00:10:18 +00:00
## What do I check?
2019-01-28 04:35:40 +00:00
Any discrepancies between the scans and the source code in this repository, including:
2017-02-13 23:56:53 +00:00
### Comments
2017-02-22 04:55:56 +00:00
- Comments in the transcribed code should match the scans exactly
2017-02-13 23:56:53 +00:00
- This could involve creating a deliberate typo or removing/adding
an entire comment.
### Line breaks
2017-02-22 04:55:56 +00:00
- Line breaks *with* `R0000` in column 1 should match the scans exactly.
- Line breaks *with* *__out__* `R0000` in column 1 should contain only 1
2017-02-14 00:10:18 +00:00
or 2 blank lines in a row.
2017-02-14 00:07:17 +00:00
- If there are more than 2 blank lines breaks, strip the extra
2017-02-13 23:56:53 +00:00
line breaks.
2017-02-22 04:55:56 +00:00
- Lines with `R0000` in column 1 do not count towards this.
2017-02-13 23:56:53 +00:00
- In the source images, these were created by an unprinted digit
in column 8. A 2 there forced a double space (single blank line)
and a 3 forced a triple space (double blank line). Values 4-8 were
2017-02-14 11:58:40 +00:00
defined but never used. Read more about it in [#159][7]
2018-04-05 01:33:15 +00:00
2017-02-22 04:55:56 +00:00
For example the following:
```plain
R0819 SUBROUTINE TO SKIP...
R0820
0821 LAMPTEST CS IMODES33
```
Should become:
```plain
R0819 SUBROUTINE TO SKIP...
R0820
0820 LAMPTEST CS IMODES33
```
2017-02-13 23:56:53 +00:00
2019-04-25 14:03:19 +00:00
### Spaces
- Spaces between two characters in the string should respect the following convention (see the discussion in [#316][10]):
- Single space for new words.
- Double space for new sentences.
- Triple space for indentations.
For example the following:
```plain
1) FOO BAR BAZ QUX QUUX QUUZ. CORGE, GRAULT,
GARPLY, WALDO.
```
Should become:
```plain
1) FOO BAR BAZ QUX QUUX QUUZ. CORGE, GRAULT,
GARPLY, WALDO.
```
2018-03-14 23:23:46 +00:00
## Note
2019-01-28 04:35:40 +00:00
Before you make a PR, please make sure your changes are consistent with the scans!
2018-03-14 23:23:46 +00:00
2017-02-13 23:56:53 +00:00
[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
2017-02-14 00:07:17 +00:00
[7]:https://github.com/chrislgarry/Apollo-11/issues/159
2018-03-14 23:23:46 +00:00
[8]:http://www.ibiblio.org/apollo/ScansForConversion/Comanche055/
2018-04-05 01:33:15 +00:00
[9]:http://www.ibiblio.org/apollo/ScansForConversion/Luminary099/
2019-04-25 14:03:19 +00:00
[10]:https://github.com/chrislgarry/Apollo-11/pull/316#pullrequestreview-102892741