꧁༺քʊʀɛȶօʀȶʊʀɛ༻꧂
Jump to navigation
Jump to search
꧁༺քʊʀɛȶօʀȶʊʀɛ༻꧂ is a Morse code, emoji-based joke language that aims to be **the ultimate torture** for anybody using it.
Commands
Every single one of JavaScript.
Examples
Hello, World!
🪑 🗿 👈 💀 🗿 .-.. . .-.-.- .-.. 🗿 --. -.--. .-..-. .... . .-.. .-.. 🗿 --..-- ⬜ 🥴 🗿 🚟 .-.. -.. -.-.-- .-..-. -.--.-
Fibonacci
...- 😂 🚟 ⬜ .. -.-.-. ⬜ ...- 😂 🚟 ⬜ ..-. .. 🅱️ ⬜ -...- ⬜ [ ----- --..-- ⬜ .---- ] -.-.-. ⬜ -..-. -..-. ⬜ .. 👈 .. - .. 😂 .-.. .. --.. . ⬜ 😂 🚟 🚟 😂 -.-- -.-.-- ⬜ ⬜ ..-. 🗿 🚟 ⬜ -.--. .. ⬜ -...- ⬜ ..--- -.-.-. ⬜ .. ⬜ -...- ⬜ .---- ----- -.-.-. ⬜ .. .-.-. .-.-. -.--.- ⬜ { ⬜ ⬜ ⬜ -..-. -..-. ⬜ 👈 . -..- - ⬜ ..-. .. 🅱️ 🗿 👈 😂 🪑 🪑 .. ⬜ 👈 ..- 👉 🅱️ . 🚟 ⬜ -...- ⬜ 💩 🚟 . ...- .. 🗿 ..- 💀 ⬜ .-.-. ⬜ 🗿 👈 . ⬜ 🅱️ . ..-. 🗿 🚟 . ⬜ 💩 🚟 . ...- .. 🗿 ..- 💀 ⬜ ⬜ ⬜ -..-. -..-. ⬜ - 🚟 😂 👈 💀 .-.. 😂 - . -.. ⬜ - 🗿 ⬜ 🍆 😂 ...- 😂 💀 🪑 🚟 .. 💩 - ---... ⬜ ⬜ ⬜ ..-. .. 🅱️ [ .. ] ⬜ -...- ⬜ ..-. .. 🅱️ [ .. ⬜ -....- ⬜ ..--- ] ⬜ .-.-. ⬜ ..-. .. 🅱️ [ .. ⬜ -....- ⬜ .---- ] -.-.-. ⬜ ⬜ ⬜ 🪑 🗿 👈 💀 🗿 .-.. . .-.-.- .-.. 🗿 --. -.--. ..-. .. 🅱️ [ .. ] -.--.- -.-.-. ⬜ }
Interpreter
https://codepen.io/PatoFlamejanteTV/pen/ZYzzQdy?
<h1>꧁༺քʊʀɛȶօʀȶʊʀɛ༻꧂ DECODER</h1>
<div class="container">
<div class="cards mt-5">
<div class="card-body">
<label id="label1"><input type="checkbox" class="change" id="check1" onclick="check1();"> Text to ꧁༺քʊʀɛȶօʀȶʊʀɛ༻꧂</input></label>
<br><label id="label2"><input type="checkbox" class="change" id="check2" onclick="check2();"> ꧁༺քʊʀɛȶօʀȶʊʀɛ༻꧂ to text</input></label>
<div class="form-group">
<label for="comment">Input:</label>
<input class="form-control" rows="5" id="input">
</div>
<div class="form-group">
<label for="comment">Output:</label>
<output type="textarea">
<p id="display"></p>
</output>
</div>
<button type="button" class="btn btn-outline-secondary btn-lg" id="button">Translate</button>
</div>
</div>
</div>
function decodeText(input){
var arr=input.split('').map(char=>char.toUpperCase())
var output = []
var decode = arr.forEach(word =>{
for (var i in MORSE_CODE){
if (MORSE_CODE[i]==word) output.push(i)
}
})
return output.toString().replace(/,/g, " ")
}
function decodeMorse(){
var decode = document.getElementById("input").value.split(" ").map(wordInMorseCode => MORSE_CODE[wordInMorseCode]==undefined ? ' ' : MORSE_CODE[wordInMorseCode])
var decoded = decode.join('').replace(/\s\s+/g, " ").trim()
return decoded
}
let toMorse = document.getElementById("check1")
let toText = document.getElementById("check2")
let label1=document.getElementById("label1")
let label2=document.getElementById("label2")
function check1(){
if (toMorse.checked) {
toText.checked=false
label1.style.textDecoration="underline"
label2.style.textDecoration="none"
displayMorse = () => document.getElementById("display").innerHTML=decodeText(document.getElementById("input").value)
var button = document.getElementById("button").addEventListener("click", displayMorse)
}
if (!toMorse.checked && !toText.checked) toMorse.checked=true
}
function check2(){
if (toText.checked){
toMorse.checked=false
label2.style.textDecoration="underline"
label1.style.textDecoration="none"
displayText = () => document.getElementById("display").innerHTML= decodeMorse()
var button = document.getElementById("button").addEventListener("click", displayText)
}
if (!toMorse.checked && !toText.checked) toText.checked=true
}
const MORSE_CODE={
'[': '[',
']': ']',
'{': '{',
'}': '}',
'-.-.--': '!',
'.-..-.': '"',
'...-..-': '$',
'.-...': '&',
'.----.': '\'',
'-.--.': '(',
'-.--.-': ')',
'.-.-.': '+',
'--..--': ',',
'-....-': '-',
'.-.-.-': '.',
'-..-.': '/',
'-----': '0',
'.----': '1',
'..---': '2',
'...--': '3',
'....-': '4',
'.....': '5',
'-....': '6',
'--...': '7',
'---..': '8',
'----.': '9',
'---...': ':',
'-.-.-.': ';',
'-...-': '=',
'..--..': '?',
'.--.-.': '@',
'😂': 'A',
'🅱️': 'B',
'🪑': 'C',
'-..': 'D',
'.': 'E',
'..-.': 'F',
'--.': 'G',
'....': 'H',
'..': 'I',
'🍆': 'J',
'👌': 'K',
'.-..': 'L',
'👉': 'M',
'👈': 'N',
'🗿': 'O',
'💩': 'P',
'--.-': 'Q',
'🚟': 'R',
'💀': 'S',
'-': 'T',
'..-': 'U',
'...-': 'V',
'🥴': 'W',
'-..-': 'X',
'-.--': 'Y',
'--..': 'Z',
'🤔': '_',
'...---...': 'SOS',
'⬜': ' '
}