bundleid connections 48FB289A-B82F-4909-A683-16230DC77E48 destinationuid 63621A9E-8AAF-499D-B201-E1CAAC145B8A modifiers 0 modifiersubtext vitoclose 4A8416E3-0647-48A7-A297-C08E29B51F61 destinationuid 48FB289A-B82F-4909-A683-16230DC77E48 modifiers 0 modifiersubtext vitoclose 63621A9E-8AAF-499D-B201-E1CAAC145B8A destinationuid BBDA41AF-C6E5-47AE-B610-1C1AAEE132C9 modifiers 0 modifiersubtext vitoclose createdby Timmy description 台灣化文字轉換器 disabled name TextTaiwanizer objects config argumenttype 2 keyword text_taiwanizer subtext text 台灣化文字轉換器 withspace type alfred.workflow.input.keyword uid 4A8416E3-0647-48A7-A297-C08E29B51F61 version 1 config autopaste clipboardtext {query} ignoredynamicplaceholders transient type alfred.workflow.output.clipboard uid 63621A9E-8AAF-499D-B201-E1CAAC145B8A version 3 config concurrently escaping 68 script import json import sys import pyperclip import requests def convert_text_taiwan(text): url = "https://api.zhconvert.org/convert" params = { "converter": "Taiwan", "prettify": 1, "userProtectReplace": "容器", "text": text, "modules": json.dumps( { "ChineseVariant": 1, "Computer": 1, "Smooth": 1, "EllipsisMark": 1, "Unit": 1, "ProperNoun": 1, "GanToZuo": 1, "QuotationMark": 1, "Mythbusters": 1, "OnePiece": 1, "Naruto": 1, "HunterXHunter": 1, "TengTong": 1, "RemoveSpaces": 1, "Pocketmon": 1, "VioletEvergarden": 1, "InternetSlang": 1, "EngNumFWToHW": 1, "Repeat": 1, "RepeatAutoFix": 1, "Gundam": 1, "Typo": 1, "TransliterationToTranslation": 1, } ), } headers = {"Content-Type": "application/json"} response = requests.get(url, params=params, headers=headers) response_json = response.json() converted_text = response_json["data"]["text"] return converted_text input_text = pyperclip.paste() converted_text = convert_text_taiwan(input_text) sys.stdout.write(converted_text) scriptargtype 1 scriptfile type 9 type alfred.workflow.action.script uid 48FB289A-B82F-4909-A683-16230DC77E48 version 2 config lastpathcomponent onlyshowifquerypopulated removeextension text Copied! title type alfred.workflow.output.notification uid BBDA41AF-C6E5-47AE-B610-1C1AAEE132C9 version 1 readme uidata 48FB289A-B82F-4909-A683-16230DC77E48 xpos 240 ypos 145 4A8416E3-0647-48A7-A297-C08E29B51F61 xpos 75 ypos 145 63621A9E-8AAF-499D-B201-E1CAAC145B8A xpos 395 ypos 145 BBDA41AF-C6E5-47AE-B610-1C1AAEE132C9 xpos 550 ypos 145 userconfigurationconfig webaddress