Add 2020/kurdyukov3/try.sh + format/typo checks

This commit is contained in:
Cody Boone Ferguson committed 2023-12-22 09:19:30 -08:00
1 parent 6e08da7f56
commit b6039b0aef
4 files changed
+70 -14

No files matched your search

+18 -13
View File
@@ -4,6 +4,9 @@
make
```
There is an alternate version of this program. See [Alternate
code](#alternate-code) below.
## To use:
@@ -15,27 +18,24 @@ make
### Try:
```sh
# first input to try
echo first input to try | ./prog
# try reading this output
echo International Obfuscated C Code Contest | ./prog
# try reading this other output
./prog < input.txt
./try.sh
```
## Alternate code:
There is an alternate version of this code in `prog.alt.c` where the main code is a macro.
The alternate version, [prog.alt.c](prog.alt.c), has the main code as a macro.
To compile this alternate version:
### Alternate build:
```sh
make alt
```
### Alternate use:
Use `prog.alt` as you would `prog` above.
@@ -50,12 +50,15 @@ languages) is called
[typoglycemia](https://www.mrc-cbu.cam.ac.uk/personal/matt.davis/Cmabrigde/)
(the article however is incorrect in stating that if the letters were more
jumbled or if other words were formed one could not read it: we know of some who
can in fact do exactly that).
can in fact do exactly that). Also, to be clear, there was no such study stated
in [input.txt](input.txt) but as you'll likely see you should be able to do
exactly what it says nonetheless.
## Author's remarks:
### Letter Mixer ###
### Letter Mixer
Compile and try this:
@@ -63,7 +66,9 @@ Compile and try this:
cat input.txt | ./prog
```
The program can work with letters that are not represented in English, as long as these letters are encoded in the higher part of the single-byte character set (use `iconv` to convert from UTF-8 and back).
The program can work with letters that are not represented in English, as long
as these letters are encoded in the higher part of the single-byte character set
(use `iconv` to convert from UTF-8 and back).
## Copyright and CC BY-SA 4.0 License: