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

47 lines
3.7 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"
import straight_key from "../media/images/straight_key.jpg"
import electronic_key from "../media/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-13 09:13:57 +01:00
<p>Morse code is a method of communication that uses short tones (dits) and long tones (dahs) in various sequences to make letters, numbers, and special characters. This tool will help beginners 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>
<span className="bold">Dit</span> <i className="ri-volume-up-fill" onClick={() => playMorseWord('.')}></i> (<span className="ditdah">.</span>) Short tones and the base unit length of Morse code communication.<br />
<span className="bold">Dah</span> <i className="ri-volume-up-fill" onClick={() => playMorseWord('-')}></i> (<span className="ditdah">-</span>) Long tones, each 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-13 09:13:57 +01:00
<p>The spacing between dits and dahs matters in Morse code. Spacing of various lengths signify different things.<br/>
<span className="bold">Intra-character Spacing</span> A letter in Morse code can be made up of multiple dits and dahs. The spaces between the dits and dahs that make up a single letter are each the length of one dit. E.g., three dits, each separated by one-dit-long spaces, is an "S". (<span className="ditdah">...</span>) <i className="ri-volume-up-fill" onClick={() => playMorseWord('...')}></i><br />
<span className="bold">Inter-character Spacing</span> The space between consecutive letters is three dits long. E.g., three dits, each separated by a three-dit-long spaces is "EEE". (<span className="ditdah">. . .</span>) <i className="ri-volume-up-fill" onClick={() => playMorseWord('. . .')}></i><br />
<span className="bold">Inter-word Spacing</span> The space between words is seven dits long. E.g., three dits, each separated by seven-dit-long spaces (denoted by a forward slash in this example: <span className="ditdah">././.</span>), is "E E E". <i className="ri-volume-up-fill" onClick={() => playMorseWord('././.')}></i>
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-13 09:13: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-13 09:13:57 +01:00
<p><b>Electronic Keys</b> use paddles that automatically generate dits and dahs when pressed. The Electronic Keyer used here is an Iambic keyer that uses two paddlesleft paddle for dits, right paddle for dahs. Pressing both paddles simultaneously automatically alternates between dit and dah. Switch between the two paddles at the appropriate times to build letters in Morse code.</p>
<p>Check out <a href='https://www.youtube.com/watch?v=uEy4Wvy6uUg' target='_blank' rel="noopener noreferrer">this video</a> for a demonstration of the difference between Straight and Electronic keys.</p>
2020-01-31 10:45:12 +01:00
</div>
)
})