2020-01-31 10:45:12 +01:00
|
|
|
import React from "react"
|
2020-02-06 04:15:55 +01:00
|
|
|
import useMorsePlayer from "../hooks/useMorsePlayer"
|
2020-02-06 11:43:21 +01:00
|
|
|
import straight_key from "../images/straight_key.jpg"
|
|
|
|
|
import electronic_key from "../images/electronic_key.jpg"
|
2020-02-08 08:05:23 +01:00
|
|
|
import Legend from "./Legend"
|
|
|
|
|
import PlayMorseInput from "./PlayMorseInput"
|
2020-01-31 10:45:12 +01:00
|
|
|
|
|
|
|
|
export default React.memo(function Info() {
|
|
|
|
|
|
2020-02-06 04:15:55 +01:00
|
|
|
const {playMorseWord} = useMorsePlayer()
|
2020-02-05 11:29:45 +01:00
|
|
|
|
2020-01-31 10:45:12 +01:00
|
|
|
return (
|
2020-02-06 04:15:55 +01:00
|
|
|
<div id="info">
|
2020-02-07 03:10:17 +01:00
|
|
|
<h1>Morse Code</h1>
|
2020-02-06 04:15:55 +01:00
|
|
|
<p>Morse code is a method of communication via short and long tones with standard spacing between each tone.</p>
|
|
|
|
|
|
2020-02-06 11:43:21 +01:00
|
|
|
<h2>Dits and Dahs</h2>
|
2020-02-06 04:15:55 +01:00
|
|
|
<p>
|
2020-02-09 10:47:07 +01:00
|
|
|
<span className="bold">Dit</span> <i className="ri-volume-up-fill" onClick={() => playMorseWord('.')}></i><br />
|
2020-02-06 04:15:55 +01:00
|
|
|
Denoted as a dot (.), dits are short tones and are base unit of morse code.<br />
|
2020-02-09 10:47:07 +01:00
|
|
|
<span className="bold">Dah</span> <i className="ri-volume-up-fill" onClick={() => playMorseWord('-')}></i><br />
|
2020-02-06 04:15:55 +01:00
|
|
|
Denoted as a dash (-), dahs are long tones the length of three dits.
|
|
|
|
|
</p>
|
|
|
|
|
|
2020-02-06 11:43:21 +01:00
|
|
|
<h2>Spacing</h2 >
|
2020-02-06 04:15:55 +01:00
|
|
|
<p>
|
2020-02-09 10:47:07 +01:00
|
|
|
<span className="bold">Intra-character Spacing</span> <i className="ri-volume-up-fill" onClick={() => playMorseWord('...')}></i><br />
|
|
|
|
|
Silence between dits and dahs the length of one dit. Three dits separated by one-dit-long spaces is an "S".<br />
|
|
|
|
|
<span className="bold">Inter-character Spacing</span> <i className="ri-volume-up-fill" onClick={() => playMorseWord('. . .')}></i><br />
|
|
|
|
|
Silence the length of three dits. Three dits separated by three-dit-long spaces is "EEE".<br />
|
|
|
|
|
<span className="bold">Inter-word Spacing</span> <i className="ri-volume-up-fill" onClick={() => playMorseWord('. /. /.')}></i><br />
|
|
|
|
|
Silence the length of seven dits. Three dits separated by seven-dit-long spaces is "E E E".
|
2020-02-06 04:15:55 +01:00
|
|
|
</p>
|
|
|
|
|
|
2020-02-09 10:47:07 +01:00
|
|
|
<h2>Speed</h2>
|
2020-02-06 04:15:55 +01:00
|
|
|
<p>
|
2020-02-08 08:05:23 +01:00
|
|
|
Adjusting the <b>WPM</b> (Words Per Minute) in the Options Menu will adjust the lengths of the dits, dahs, and spacing accordingly.
|
2020-02-06 04:15:55 +01:00
|
|
|
</p>
|
2020-02-01 10:49:21 +01:00
|
|
|
|
2020-02-06 11:43:21 +01:00
|
|
|
<h2>Telegraph Key Types</h2 >
|
2020-02-06 04:15:55 +01:00
|
|
|
<p>The instrument used to send morse code is called the key.</p>
|
2020-02-06 11:43:21 +01:00
|
|
|
|
|
|
|
|
<center><img src={straight_key} alt="Straight Key" /></center>
|
2020-02-07 03:10:17 +01:00
|
|
|
<p><b>Straight Keys</b> use a single button and generates tones when pressed down. Straight keys require greater accuracy as you control the dits, dahs, and spacing manually.</p>
|
2020-02-06 11:43:21 +01:00
|
|
|
<center><img src={electronic_key} alt="Electronic Key"></img></center>
|
2020-02-06 04:15:55 +01:00
|
|
|
<p><b>Electronic Keys</b> automatically generate dits or dahs of appropriate length. The Electronic Keyer used here is an Iambic keyer. It uses two paddles, one for dits, one for dahs. Switch between the two at the appropriate times to build letters.</p>
|
2020-01-31 10:45:12 +01:00
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
})
|