Отсканируй на iPhone, чтобы установить
With this shortcut can you convert text to 𝕆𝕦𝕥𝕝𝕚𝕟𝕖!
Что нового
Версия 1.0
First release
Что делает
Действий: 26-
Commentmade by no0ne in shareshortcuts.com only A to Z and 0 to 9
-
Ask for InputPlease type the text what needs to be converted to 𝕆𝕦𝕥𝕝𝕚𝕟𝕖
-
Set VariableinputText
-
Dictionary
-
Set VariableDict
-
Text
-
Set VariableStringRoot
-
Set VariableString
-
Set VariableStringLine
-
Split Text
-
Repeat with Each
-
Set VariablecurrentCharacter
-
Get Dictionary Value
-
If
-
If
-
Get Variable
-
Split Text
-
Combine Text
-
Split Text
-
Combine Text
-
Replace Text
-
Choose from MenuThis is your text: … Do you want to copy … to clipboard?
-
Choose from Menuyes
-
Copy to Clipboard
-
Choose from Menuno
-
Stop This Shortcut
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/text'
#define color red
#define glyph pencil
/*
made by no0ne in shareshortcuts.com
only A to Z and 0 to 9
*/
prompt("Please type the text what needs to be converted to 𝕆𝕦𝕥𝕝𝕚𝕟𝕖")
@inputText
@Dict = {
"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": "ℤ",
"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": "𝕫"
}
@StringRoot = ""
@String = @StringRoot
@StringLine = @String
const SplitText = splitText(@inputText, "")
for _ in SplitText {
@currentCharacter = @RepeatItem
const DictionaryValue = getValue(@Dict, @currentCharacter)
if DictionaryValue == DictionaryValue {
} else {
// TODO: Get Variable not supported: Assign variable here to '@currentCharacter'.
}
}
const SplitText1 = splitText(RepeatResults)
const CombinedText = joinText(SplitText1, ";")
const SplitText2 = splitText(CombinedText, ";;")
joinText(SplitText2, "
")
const UpdatedText = replaceText(";", "", false)
menu "This is your text: {UpdatedText} Do you want to copy {UpdatedText} to clipboard?" {
item "yes":
setClipboard(UpdatedText)
item "no":
stop()
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от n00ne
Вам также может понравиться
Реклама