morse(6): fix typos and space-before-tabs
This commit is contained in:
parent
96f4bcfff2
commit
690af69ec0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=221907
@ -161,20 +161,20 @@ static const struct morsetab iso8859_1tab[] = {
|
|||||||
|
|
||||||
static const struct morsetab iso8859_7tab[] = {
|
static const struct morsetab iso8859_7tab[] = {
|
||||||
/*
|
/*
|
||||||
* The greek alphabet; you'll need an 8859-7 font in order
|
* The Greek alphabet; you'll need an ISO8859-7 font in order
|
||||||
* to see the actual characters.
|
* to see the actual characters.
|
||||||
* This table does not implement:
|
* This table does not implement:
|
||||||
* - the special sequences for the seven diphthongs,
|
* - the special sequences for the seven diphthongs,
|
||||||
* - the punctuation differences.
|
* - the punctuation differences.
|
||||||
* Implementing these features would introduce too many
|
* Implementing these features would introduce too many
|
||||||
* special-cases in the program's main loop.
|
* special-cases in the program's main loop.
|
||||||
* The diphtong sequences are:
|
* The diphthong sequences are:
|
||||||
* alpha iota .-.-
|
* alpha iota .-.-
|
||||||
* alpha upsilon ..--
|
* alpha upsilon ..--
|
||||||
* epsilon upsilon ---.
|
* epsilon upsilon ---.
|
||||||
* eta upsilon ...-
|
* eta upsilon ...-
|
||||||
* omikron iota ---..
|
* omicron iota ---..
|
||||||
* omikron upsilon ..-
|
* omicron upsilon ..-
|
||||||
* upsilon iota .---
|
* upsilon iota .---
|
||||||
* The different punctuation symbols are:
|
* The different punctuation symbols are:
|
||||||
* ; ..-.-
|
* ; ..-.-
|
||||||
@ -193,10 +193,10 @@ static const struct morsetab iso8859_7tab[] = {
|
|||||||
{'è', "-.-."}, /* theta */
|
{'è', "-.-."}, /* theta */
|
||||||
{'é', ".."}, /* iota */
|
{'é', ".."}, /* iota */
|
||||||
{'ß', ".."}, /* iota with acute */
|
{'ß', ".."}, /* iota with acute */
|
||||||
{'ú', ".."}, /* iota with diairesis */
|
{'ú', ".."}, /* iota with diaeresis */
|
||||||
{'À', ".."}, /* iota with acute and diairesis */
|
{'À', ".."}, /* iota with acute and diaeresis */
|
||||||
{'ê', "-.-"}, /* kappa */
|
{'ê', "-.-"}, /* kappa */
|
||||||
{'ë', ".-.."}, /* lamda */
|
{'ë', ".-.."}, /* lambda */
|
||||||
{'ì', "--"}, /* mu */
|
{'ì', "--"}, /* mu */
|
||||||
{'í', "-."}, /* nu */
|
{'í', "-."}, /* nu */
|
||||||
{'î', "-..-"}, /* xi */
|
{'î', "-..-"}, /* xi */
|
||||||
@ -209,8 +209,8 @@ static const struct morsetab iso8859_7tab[] = {
|
|||||||
{'ô', "-"}, /* tau */
|
{'ô', "-"}, /* tau */
|
||||||
{'õ', "-.--"}, /* upsilon */
|
{'õ', "-.--"}, /* upsilon */
|
||||||
{'ý', "-.--"}, /* upsilon with acute */
|
{'ý', "-.--"}, /* upsilon with acute */
|
||||||
{'û', "-.--"}, /* upsilon and diairesis */
|
{'û', "-.--"}, /* upsilon and diaeresis */
|
||||||
{'à', "-.--"}, /* upsilon with acute and diairesis */
|
{'à', "-.--"}, /* upsilon with acute and diaeresis */
|
||||||
{'ö', "..-."}, /* phi */
|
{'ö', "..-."}, /* phi */
|
||||||
{'÷', "----"}, /* chi */
|
{'÷', "----"}, /* chi */
|
||||||
{'ø', "--.-"}, /* psi */
|
{'ø', "--.-"}, /* psi */
|
||||||
@ -222,29 +222,29 @@ static const struct morsetab iso8859_7tab[] = {
|
|||||||
|
|
||||||
static const struct morsetab koi8rtab[] = {
|
static const struct morsetab koi8rtab[] = {
|
||||||
/*
|
/*
|
||||||
* the cyrillic alphabet; you'll need a KOI8R font in order
|
* The Cyrillic alphabet; you'll need a KOI8-R font in order
|
||||||
* to see the actual characters
|
* to see the actual characters
|
||||||
*/
|
*/
|
||||||
{'Á', ".-"}, /* a */
|
{'Á', ".-"}, /* a */
|
||||||
{'Â', "-..."}, /* be */
|
{'Â', "-..."}, /* be */
|
||||||
{'×', ".--"}, /* ve */
|
{'×', ".--"}, /* ve */
|
||||||
{'Ç', "--."}, /* ge */
|
{'Ç', "--."}, /* ge */
|
||||||
{'Ä', "-.."}, /* de */
|
{'Ä', "-.."}, /* de */
|
||||||
{'Å', "."}, /* ye */
|
{'Å', "."}, /* ye */
|
||||||
{'£', "."}, /* yo, the same as ye */
|
{'£', "."}, /* yo, the same as ye */
|
||||||
{'Ö', "...-"}, /* she */
|
{'Ö', "...-"}, /* she */
|
||||||
{'Ú', "--.."}, /* ze */
|
{'Ú', "--.."}, /* ze */
|
||||||
{'É', ".."}, /* i */
|
{'É', ".."}, /* i */
|
||||||
{'Ê', ".---"}, /* i kratkoye */
|
{'Ê', ".---"}, /* i kratkoye */
|
||||||
{'Ë', "-.-"}, /* ka */
|
{'Ë', "-.-"}, /* ka */
|
||||||
{'Ì', ".-.."}, /* el */
|
{'Ì', ".-.."}, /* el */
|
||||||
{'Í', "--"}, /* em */
|
{'Í', "--"}, /* em */
|
||||||
{'Î', "-."}, /* en */
|
{'Î', "-."}, /* en */
|
||||||
{'Ï', "---"}, /* o */
|
{'Ï', "---"}, /* o */
|
||||||
{'Ð', ".--."}, /* pe */
|
{'Ð', ".--."}, /* pe */
|
||||||
{'Ò', ".-."}, /* er */
|
{'Ò', ".-."}, /* er */
|
||||||
{'Ó', "..."}, /* es */
|
{'Ó', "..."}, /* es */
|
||||||
{'Ô', "-"}, /* te */
|
{'Ô', "-"}, /* te */
|
||||||
{'Õ', "..-"}, /* u */
|
{'Õ', "..-"}, /* u */
|
||||||
{'Æ', "..-."}, /* ef */
|
{'Æ', "..-."}, /* ef */
|
||||||
{'È', "...."}, /* kha */
|
{'È', "...."}, /* kha */
|
||||||
@ -305,9 +305,9 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
while ((ch = getopt(argc, argv, GETOPTOPTS)) != -1)
|
while ((ch = getopt(argc, argv, GETOPTOPTS)) != -1)
|
||||||
switch ((char) ch) {
|
switch ((char) ch) {
|
||||||
case 'c':
|
case 'c':
|
||||||
cpm = atoi(optarg);
|
cpm = atoi(optarg);
|
||||||
break;
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
device = optarg;
|
device = optarg;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user