learn-morse-code/src/components/Info.js

42 lines
3.2 KiB
JavaScript
Raw Normal View History

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-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-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-11 09:44:57 +01:00
<p>Morse code is a method of communication that uses short and long tones. This tool will help you learn Morse Code.</p>
2020-02-06 04:15:55 +01:00
2020-02-06 11:43:21 +01:00
<h2>Dits and Dahs</h2>
2020-02-06 04:15:55 +01:00
<p>
2020-02-11 09:44:57 +01:00
<span className="bold">Dit</span> <i className="ri-volume-up-fill" onClick={() => playMorseWord('.')}></i> Denoted as a period/dot (<span className="ditdah">.</span>), dits are short tones and are the base unit of Morse Code communication.<br />
<span className="bold">Dah</span> <i className="ri-volume-up-fill" onClick={() => playMorseWord('-')}></i> Denoted as a dash (<span className="ditdah">-</span>), dahs are long tones the length of three dits.
2020-02-06 04:15:55 +01:00
</p>
2020-02-06 11:43:21 +01:00
<h2>Spacing</h2 >
2020-02-11 09:44:57 +01:00
<p>The spacing between dits and dahs matters in Morse Code. Spacing of various lenghts signify different things.<br/>
<span className="bold">Intra-character Spacing</span> <i className="ri-volume-up-fill" onClick={() => playMorseWord('...')}></i> Space between dits and dahs the length of one dit signify the dits and dahs are part of the same character. E.g. 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> Space the length of three dits signify a new letter. A single dit is an "E". Three dits, each 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> Space the length of seven dits signifies a new word. Three dits, each 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-11 09:44:57 +01:00
The rate of communication is increased or decreased by adjusting the length of the dits, which in turn adjusts the length of dahs and spaces. Adjust the <b>WPM</b> (Words Per Minute) in the Options section to adjust the speed.
2020-02-06 04:15:55 +01:00
</p>
2020-02-06 11:43:21 +01:00
<h2>Telegraph Key Types</h2 >
2020-02-11 09:44:57 +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-11 09:44:57 +01:00
<p><b>Straight Keys</b> use a single button and generate tones when pressed down. Straight keys require greater accuracy as the length of dits, dahs, and spacing is completely under manual control.</p>
2020-02-06 11:43:21 +01:00
<center><img src={electronic_key} alt="Electronic Key"></img></center>
2020-02-11 09:44:57 +01:00
<p><b>Electronic Keys</b> use two paddles (one for dit, one for dah) that automatically generate the tones when pressed. The Electronic Keyer used here is an Iambic keyer, which alternates between dit and dah when both paddles are pressed. Switch between the two at the appropriate times to build letters in Morse Code.</p>
2020-01-31 10:45:12 +01:00
</div>
)
})