├── Downloads ├── FullHalfWidth Services.zip ├── FullHalfWidth.popclipextz ├── GoogleTranslatePopup.zip ├── ImFeelingLucky.popclipextz └── WordCountPlus.popclipextz ├── Extras └── FullHalfWidth Services │ ├── Full to Half Width.workflow │ └── Contents │ │ ├── Info.plist │ │ ├── QuickLook │ │ └── Preview.png │ │ └── document.wflow │ └── Half to Full Width.workflow │ └── Contents │ ├── Info.plist │ ├── QuickLook │ └── Thumbnail.png │ └── document.wflow ├── FullHalfWidth.popclipext ├── Config.plist ├── FullHalfWidth.png ├── full.pl ├── full.png ├── half.pl └── half.png ├── GoogleTranslatePopup ├── Google Translate.workflow │ └── Contents │ │ ├── Info.plist │ │ ├── QuickLook │ │ └── Preview.png │ │ └── document.wflow └── GoogleTranslatePopup.popclipext │ ├── Config.plist │ └── TranslationIcon.png ├── ImFeelingLucky.popclipext ├── Config.plist └── FeelingLuckyIcon.png ├── README.md └── WordCountPlus.popclipext ├── Config.plist ├── WordCountPlus.png └── wordcountplus.py /Downloads/FullHalfWidth Services.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucifr/PopClip-Extensions/df738922fcc8642c504a9daa7a2484dcdc5eb760/Downloads/FullHalfWidth Services.zip -------------------------------------------------------------------------------- /Downloads/FullHalfWidth.popclipextz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucifr/PopClip-Extensions/df738922fcc8642c504a9daa7a2484dcdc5eb760/Downloads/FullHalfWidth.popclipextz -------------------------------------------------------------------------------- /Downloads/GoogleTranslatePopup.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucifr/PopClip-Extensions/df738922fcc8642c504a9daa7a2484dcdc5eb760/Downloads/GoogleTranslatePopup.zip -------------------------------------------------------------------------------- /Downloads/ImFeelingLucky.popclipextz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucifr/PopClip-Extensions/df738922fcc8642c504a9daa7a2484dcdc5eb760/Downloads/ImFeelingLucky.popclipextz -------------------------------------------------------------------------------- /Downloads/WordCountPlus.popclipextz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucifr/PopClip-Extensions/df738922fcc8642c504a9daa7a2484dcdc5eb760/Downloads/WordCountPlus.popclipextz -------------------------------------------------------------------------------- /Extras/FullHalfWidth Services/Full to Half Width.workflow/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSServices 6 | 7 | 8 | NSMenuItem 9 | 10 | default 11 | Full to Half Width 12 | 13 | NSMessage 14 | runWorkflowAsService 15 | NSReturnTypes 16 | 17 | public.utf8-plain-text 18 | 19 | NSSendTypes 20 | 21 | public.utf8-plain-text 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Extras/FullHalfWidth Services/Full to Half Width.workflow/Contents/QuickLook/Preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucifr/PopClip-Extensions/df738922fcc8642c504a9daa7a2484dcdc5eb760/Extras/FullHalfWidth Services/Full to Half Width.workflow/Contents/QuickLook/Preview.png -------------------------------------------------------------------------------- /Extras/FullHalfWidth Services/Full to Half Width.workflow/Contents/document.wflow: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AMApplicationBuild 6 | 346 7 | AMApplicationVersion 8 | 2.3 9 | AMDocumentVersion 10 | 2 11 | actions 12 | 13 | 14 | action 15 | 16 | AMAccepts 17 | 18 | Container 19 | List 20 | Optional 21 | 22 | Types 23 | 24 | com.apple.cocoa.string 25 | 26 | 27 | AMActionVersion 28 | 2.0.3 29 | AMApplication 30 | 31 | Automator 32 | 33 | AMParameterProperties 34 | 35 | COMMAND_STRING 36 | 37 | CheckedForUserDefaultShell 38 | 39 | inputMethod 40 | 41 | shell 42 | 43 | source 44 | 45 | 46 | AMProvides 47 | 48 | Container 49 | List 50 | Types 51 | 52 | com.apple.cocoa.string 53 | 54 | 55 | ActionBundlePath 56 | /System/Library/Automator/Run Shell Script.action 57 | ActionName 58 | Run Shell Script 59 | ActionParameters 60 | 61 | COMMAND_STRING 62 | use utf8; 63 | use Encode; 64 | binmode STDOUT, ":utf8"; 65 | 66 | my $s; 67 | 68 | while (<>) { 69 | $s = decode_utf8($_); 70 | $s =~ tr/ !"#$%&'()*+,-.// !"#$%&'()*+,-.\//; 71 | $s =~ tr/0-9:;<=>?@A-Z[\]^/0-9:;<=>?@A-Z[\\]^/; 72 | $s =~ tr/_`a-z{|}〜⦅⦆¢£¬ ̄¦¥₩/_`a-z{|}\~⦅⦆¢£¬¯¦¥₩/; 73 | $s =~ tr/│←↑→↓■○/│←↑→↓■○/; 74 | $s =~ tr/。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゛゜/。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚/; 75 | $s =~ tr/ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣ/ᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ/; 76 | print $s; 77 | } 78 | CheckedForUserDefaultShell 79 | 80 | inputMethod 81 | 0 82 | shell 83 | /usr/bin/perl 84 | source 85 | 86 | 87 | BundleIdentifier 88 | com.apple.RunShellScript 89 | CFBundleVersion 90 | 2.0.3 91 | CanShowSelectedItemsWhenRun 92 | 93 | CanShowWhenRun 94 | 95 | Category 96 | 97 | AMCategoryUtilities 98 | 99 | Class Name 100 | RunShellScriptAction 101 | InputUUID 102 | 8A12E38D-4F5B-4956-BA6F-08482EFDA9FD 103 | Keywords 104 | 105 | Shell 106 | Script 107 | Command 108 | Run 109 | Unix 110 | 111 | OutputUUID 112 | 8BCEB6A3-FD6F-4C7F-A2A4-D88081CBAC8A 113 | UUID 114 | 83A94629-7D56-4DB5-A484-C449663A0B2E 115 | UnlocalizedApplications 116 | 117 | Automator 118 | 119 | arguments 120 | 121 | 0 122 | 123 | default value 124 | 0 125 | name 126 | inputMethod 127 | required 128 | 0 129 | type 130 | 0 131 | uuid 132 | 0 133 | 134 | 1 135 | 136 | default value 137 | 138 | name 139 | source 140 | required 141 | 0 142 | type 143 | 0 144 | uuid 145 | 1 146 | 147 | 2 148 | 149 | default value 150 | 151 | name 152 | CheckedForUserDefaultShell 153 | required 154 | 0 155 | type 156 | 0 157 | uuid 158 | 2 159 | 160 | 3 161 | 162 | default value 163 | 164 | name 165 | COMMAND_STRING 166 | required 167 | 0 168 | type 169 | 0 170 | uuid 171 | 3 172 | 173 | 4 174 | 175 | default value 176 | /bin/sh 177 | name 178 | shell 179 | required 180 | 0 181 | type 182 | 0 183 | uuid 184 | 4 185 | 186 | 187 | isViewVisible 188 | 189 | location 190 | 302.000000:405.000000 191 | nibPath 192 | /System/Library/Automator/Run Shell Script.action/Contents/Resources/English.lproj/main.nib 193 | 194 | isViewVisible 195 | 196 | 197 | 198 | connectors 199 | 200 | workflowMetaData 201 | 202 | serviceInputTypeIdentifier 203 | com.apple.Automator.text 204 | serviceOutputTypeIdentifier 205 | com.apple.Automator.text 206 | serviceProcessesInput 207 | 0 208 | workflowTypeIdentifier 209 | com.apple.Automator.servicesMenu 210 | 211 | 212 | 213 | -------------------------------------------------------------------------------- /Extras/FullHalfWidth Services/Half to Full Width.workflow/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSServices 6 | 7 | 8 | NSMenuItem 9 | 10 | default 11 | Half to Full Width 12 | 13 | NSMessage 14 | runWorkflowAsService 15 | NSReturnTypes 16 | 17 | public.utf8-plain-text 18 | 19 | NSSendTypes 20 | 21 | public.utf8-plain-text 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Extras/FullHalfWidth Services/Half to Full Width.workflow/Contents/QuickLook/Thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucifr/PopClip-Extensions/df738922fcc8642c504a9daa7a2484dcdc5eb760/Extras/FullHalfWidth Services/Half to Full Width.workflow/Contents/QuickLook/Thumbnail.png -------------------------------------------------------------------------------- /Extras/FullHalfWidth Services/Half to Full Width.workflow/Contents/document.wflow: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AMApplicationBuild 6 | 346 7 | AMApplicationVersion 8 | 2.3 9 | AMDocumentVersion 10 | 2 11 | actions 12 | 13 | 14 | action 15 | 16 | AMAccepts 17 | 18 | Container 19 | List 20 | Optional 21 | 22 | Types 23 | 24 | com.apple.cocoa.string 25 | 26 | 27 | AMActionVersion 28 | 2.0.3 29 | AMApplication 30 | 31 | Automator 32 | 33 | AMParameterProperties 34 | 35 | COMMAND_STRING 36 | 37 | CheckedForUserDefaultShell 38 | 39 | inputMethod 40 | 41 | shell 42 | 43 | source 44 | 45 | 46 | AMProvides 47 | 48 | Container 49 | List 50 | Types 51 | 52 | com.apple.cocoa.string 53 | 54 | 55 | ActionBundlePath 56 | /System/Library/Automator/Run Shell Script.action 57 | ActionName 58 | Run Shell Script 59 | ActionParameters 60 | 61 | COMMAND_STRING 62 | use utf8; 63 | use Encode; 64 | binmode STDOUT, ":utf8"; 65 | 66 | my $s; 67 | 68 | while (<>) { 69 | $s = decode_utf8($_); 70 | $s =~ tr/ !"#$%&'()*+,-.\// !"#$%&'()*+,-.//; 71 | $s =~ tr/0-9:;<=>?@A-Z[\\]^/0-9:;<=>?@A-Z[\]^/; 72 | $s =~ tr/_`a-z{|}\~⦅⦆¢£¬¯¦¥₩/_`a-z{|}〜⦅⦆¢£¬ ̄¦¥₩/; 73 | $s =~ tr/│←↑→↓■○/│←↑→↓■○/; 74 | $s =~ tr/。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚/。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゛゜/; 75 | $s =~ tr/ᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ/ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣ/; 76 | print $s; 77 | } 78 | CheckedForUserDefaultShell 79 | 80 | inputMethod 81 | 0 82 | shell 83 | /usr/bin/perl 84 | source 85 | 86 | 87 | BundleIdentifier 88 | com.apple.RunShellScript 89 | CFBundleVersion 90 | 2.0.3 91 | CanShowSelectedItemsWhenRun 92 | 93 | CanShowWhenRun 94 | 95 | Category 96 | 97 | AMCategoryUtilities 98 | 99 | Class Name 100 | RunShellScriptAction 101 | InputUUID 102 | 8A12E38D-4F5B-4956-BA6F-08482EFDA9FD 103 | Keywords 104 | 105 | Shell 106 | Script 107 | Command 108 | Run 109 | Unix 110 | 111 | OutputUUID 112 | 8BCEB6A3-FD6F-4C7F-A2A4-D88081CBAC8A 113 | UUID 114 | 83A94629-7D56-4DB5-A484-C449663A0B2E 115 | UnlocalizedApplications 116 | 117 | Automator 118 | 119 | arguments 120 | 121 | 0 122 | 123 | default value 124 | 0 125 | name 126 | inputMethod 127 | required 128 | 0 129 | type 130 | 0 131 | uuid 132 | 0 133 | 134 | 1 135 | 136 | default value 137 | 138 | name 139 | source 140 | required 141 | 0 142 | type 143 | 0 144 | uuid 145 | 1 146 | 147 | 2 148 | 149 | default value 150 | 151 | name 152 | CheckedForUserDefaultShell 153 | required 154 | 0 155 | type 156 | 0 157 | uuid 158 | 2 159 | 160 | 3 161 | 162 | default value 163 | 164 | name 165 | COMMAND_STRING 166 | required 167 | 0 168 | type 169 | 0 170 | uuid 171 | 3 172 | 173 | 4 174 | 175 | default value 176 | /bin/sh 177 | name 178 | shell 179 | required 180 | 0 181 | type 182 | 0 183 | uuid 184 | 4 185 | 186 | 187 | isViewVisible 188 | 189 | location 190 | 309.500000:279.000000 191 | nibPath 192 | /System/Library/Automator/Run Shell Script.action/Contents/Resources/English.lproj/main.nib 193 | 194 | isViewVisible 195 | 196 | 197 | 198 | connectors 199 | 200 | workflowMetaData 201 | 202 | serviceInputTypeIdentifier 203 | com.apple.Automator.text 204 | serviceOutputTypeIdentifier 205 | com.apple.Automator.text 206 | serviceProcessesInput 207 | 0 208 | workflowTypeIdentifier 209 | com.apple.Automator.servicesMenu 210 | 211 | 212 | 213 | -------------------------------------------------------------------------------- /FullHalfWidth.popclipext/Config.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Actions 6 | 7 | 8 | After 9 | paste-result 10 | Image File 11 | half.png 12 | Regular Expression 13 | ^.*[ !"#$%&'()*+,-./0-9:;<=>?@A-Z[\]^_`a-z{|}~⦅⦆¢£¬ ̄¦¥₩│←↑→↓■○。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゛゜ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣ].*$ 14 | Script Interpreter 15 | /usr/bin/perl 16 | Shell Script File 17 | half.pl 18 | Title 19 | Half 20 | 21 | 22 | After 23 | paste-result 24 | Image File 25 | full.png 26 | Regular Expression 27 | ^.*[ !"#$%&'()*+,-.\/0-9:;<=>?@A-Z\[\\\]^_`a-z{|}\~⦅⦆¢£¬¯¦¥₩│←↑→↓■○。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ].*$ 28 | Script Interpreter 29 | /usr/bin/perl 30 | Shell Script File 31 | full.pl 32 | Title 33 | Full 34 | 35 | 36 | Extension Identifier 37 | com.lucifr.popclip.extension.fullhalfwidth 38 | Extension Image File 39 | FullHalfWidth.png 40 | Extension Name 41 | FullHalfWidth 42 | Position 43 | 2 44 | Requirements 45 | 46 | paste 47 | 48 | Stay Visible 49 | 50 | Version 51 | 2 52 | 53 | 54 | -------------------------------------------------------------------------------- /FullHalfWidth.popclipext/FullHalfWidth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucifr/PopClip-Extensions/df738922fcc8642c504a9daa7a2484dcdc5eb760/FullHalfWidth.popclipext/FullHalfWidth.png -------------------------------------------------------------------------------- /FullHalfWidth.popclipext/full.pl: -------------------------------------------------------------------------------- 1 | use utf8; 2 | use Encode; 3 | binmode STDOUT, ":utf8"; 4 | my $s = $ENV{POPCLIP_TEXT}; 5 | $s = decode_utf8($s); 6 | $s =~ tr/ !"#$%&'()*+,-.\// !"#$%&'()*+,-.//; 7 | $s =~ tr/0-9:;<=>?@A-Z[\\]^/0-9:;<=>?@A-Z[\]^/; 8 | $s =~ tr/_`a-z{|}\~⦅⦆¢£¬¯¦¥₩/_`a-z{|}〜⦅⦆¢£¬ ̄¦¥₩/; 9 | $s =~ tr/│←↑→↓■○/│←↑→↓■○/; 10 | $s =~ tr/。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚/。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゛゜/; 11 | $s =~ tr/ᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ/ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣ/; 12 | print $s; -------------------------------------------------------------------------------- /FullHalfWidth.popclipext/full.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucifr/PopClip-Extensions/df738922fcc8642c504a9daa7a2484dcdc5eb760/FullHalfWidth.popclipext/full.png -------------------------------------------------------------------------------- /FullHalfWidth.popclipext/half.pl: -------------------------------------------------------------------------------- 1 | use utf8; 2 | use Encode; 3 | binmode STDOUT, ":utf8"; 4 | my $s = $ENV{POPCLIP_TEXT}; 5 | $s = decode_utf8($s); 6 | $s =~ tr/ !"#$%&'()*+,-.// !"#$%&'()*+,-.\//; 7 | $s =~ tr/0-9:;<=>?@A-Z[\]^/0-9:;<=>?@A-Z[\\]^/; 8 | $s =~ tr/_`a-z{|}〜⦅⦆¢£¬ ̄¦¥₩/_`a-z{|}\~⦅⦆¢£¬¯¦¥₩/; 9 | $s =~ tr/│←↑→↓■○/│←↑→↓■○/; 10 | $s =~ tr/。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゛゜/。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚/; 11 | $s =~ tr/ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣ/ᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ/; 12 | print $s; -------------------------------------------------------------------------------- /FullHalfWidth.popclipext/half.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucifr/PopClip-Extensions/df738922fcc8642c504a9daa7a2484dcdc5eb760/FullHalfWidth.popclipext/half.png -------------------------------------------------------------------------------- /GoogleTranslatePopup/Google Translate.workflow/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSServices 6 | 7 | 8 | NSMenuItem 9 | 10 | default 11 | Google Translate 12 | 13 | NSMessage 14 | runWorkflowAsService 15 | NSSendTypes 16 | 17 | public.utf8-plain-text 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /GoogleTranslatePopup/Google Translate.workflow/Contents/QuickLook/Preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucifr/PopClip-Extensions/df738922fcc8642c504a9daa7a2484dcdc5eb760/GoogleTranslatePopup/Google Translate.workflow/Contents/QuickLook/Preview.png -------------------------------------------------------------------------------- /GoogleTranslatePopup/Google Translate.workflow/Contents/document.wflow: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AMApplicationBuild 6 | 346 7 | AMApplicationVersion 8 | 2.3 9 | AMDocumentVersion 10 | 2 11 | actions 12 | 13 | 14 | action 15 | 16 | AMAccepts 17 | 18 | Container 19 | List 20 | Optional 21 | 22 | Types 23 | 24 | com.apple.applescript.object 25 | 26 | 27 | AMActionVersion 28 | 1.0.2 29 | AMApplication 30 | 31 | Automator 32 | 33 | AMParameterProperties 34 | 35 | source 36 | 37 | 38 | AMProvides 39 | 40 | Container 41 | List 42 | Types 43 | 44 | com.apple.applescript.object 45 | 46 | 47 | ActionBundlePath 48 | /System/Library/Automator/Run AppleScript.action 49 | ActionName 50 | Run AppleScript 51 | ActionParameters 52 | 53 | source 54 | on run {input, parameters} -- the following 2 lines should be on one line set output to "http://translate.google.com/translate_t?text=" & urldecode(input as string) & "&langpair=auto%7Cauto" -- above 2 lines should be on one line return output end run on urldecode(x) set cmd to "'require \"cgi\"; puts CGI.escape(STDIN.read.chomp)'" do shell script "echo " & quoted form of x & " | ruby -e " & cmd end urldecode 55 | 56 | BundleIdentifier 57 | com.apple.Automator.RunScript 58 | CFBundleVersion 59 | 1.0.2 60 | CanShowSelectedItemsWhenRun 61 | 62 | CanShowWhenRun 63 | 64 | Category 65 | 66 | AMCategoryUtilities 67 | 68 | Class Name 69 | RunScriptAction 70 | InputUUID 71 | 863B20B9-6A49-4214-86E9-3C41DBFF18F6 72 | Keywords 73 | 74 | Run 75 | 76 | OutputUUID 77 | C3686D1F-F171-41D4-B65F-23ABF5017D1B 78 | UUID 79 | D58FAB52-8014-4F24-9968-73F971E42CB8 80 | UnlocalizedApplications 81 | 82 | Automator 83 | 84 | arguments 85 | 86 | 0 87 | 88 | default value 89 | on run {input, parameters} 90 | 91 | (* Your script goes here *) 92 | 93 | return input 94 | end run 95 | name 96 | source 97 | required 98 | 0 99 | type 100 | 0 101 | uuid 102 | 0 103 | 104 | 105 | isViewVisible 106 | 107 | location 108 | 302.000000:907.000000 109 | nibPath 110 | /System/Library/Automator/Run AppleScript.action/Contents/Resources/English.lproj/main.nib 111 | 112 | isViewVisible 113 | 114 | 115 | 116 | action 117 | 118 | AMAccepts 119 | 120 | Container 121 | List 122 | Optional 123 | 124 | Types 125 | 126 | com.apple.cocoa.url 127 | 128 | 129 | AMActionVersion 130 | 2.0.1 131 | AMApplication 132 | 133 | Safari 134 | 135 | AMParameterProperties 136 | 137 | outputTypeTag 138 | 139 | positionTag 140 | 141 | sizeFormatTag 142 | 143 | targetSizeX 144 | 145 | targetSizeY 146 | 147 | userAgentTag 148 | 149 | 150 | AMProvides 151 | 152 | Container 153 | List 154 | Types 155 | 156 | com.apple.cocoa.string 157 | 158 | 159 | ActionBundlePath 160 | /System/Library/Automator/Website Popup.action 161 | ActionName 162 | Website Popup 163 | ActionParameters 164 | 165 | outputTypeTag 166 | 0 167 | positionTag 168 | 0 169 | sizeFormatTag 170 | 99 171 | targetSizeX 172 | 800 173 | targetSizeY 174 | 400 175 | userAgentTag 176 | 0 177 | 178 | BundleIdentifier 179 | com.apple.Automator.Website_Popup 180 | CFBundleVersion 181 | 2.0.1 182 | CanShowSelectedItemsWhenRun 183 | 184 | CanShowWhenRun 185 | 186 | Category 187 | 188 | AMCategoryInternet 189 | 190 | Class Name 191 | AMWebsitePoppupAction 192 | InputUUID 193 | 195EA40F-9583-441F-A9C8-65D9FC78FAA1 194 | Keywords 195 | 196 | OutputUUID 197 | E0F9208F-CB3D-40A5-9AE4-6C655071B70E 198 | UUID 199 | 795A2725-A80D-4683-87C8-5894DC1D4BF9 200 | UnlocalizedApplications 201 | 202 | Safari 203 | 204 | arguments 205 | 206 | 0 207 | 208 | default value 209 | 0 210 | name 211 | userAgentTag 212 | required 213 | 0 214 | type 215 | 0 216 | uuid 217 | 0 218 | 219 | 1 220 | 221 | default value 222 | 0 223 | name 224 | positionTag 225 | required 226 | 0 227 | type 228 | 0 229 | uuid 230 | 1 231 | 232 | 2 233 | 234 | default value 235 | 0 236 | name 237 | sizeFormatTag 238 | required 239 | 0 240 | type 241 | 0 242 | uuid 243 | 2 244 | 245 | 3 246 | 247 | default value 248 | 0.0 249 | name 250 | targetSizeY 251 | required 252 | 0 253 | type 254 | 0 255 | uuid 256 | 3 257 | 258 | 4 259 | 260 | default value 261 | 0 262 | name 263 | outputTypeTag 264 | required 265 | 0 266 | type 267 | 0 268 | uuid 269 | 4 270 | 271 | 5 272 | 273 | default value 274 | 0.0 275 | name 276 | targetSizeX 277 | required 278 | 0 279 | type 280 | 0 281 | uuid 282 | 5 283 | 284 | 285 | isViewVisible 286 | 287 | location 288 | 302.000000:414.000000 289 | nibPath 290 | /System/Library/Automator/Website Popup.action/Contents/Resources/English.lproj/main.nib 291 | 292 | isViewVisible 293 | 294 | 295 | 296 | action 297 | 298 | AMAccepts 299 | 300 | Container 301 | List 302 | Optional 303 | 304 | Types 305 | 306 | com.apple.cocoa.string 307 | com.apple.cocoa.attributed-string 308 | 309 | 310 | AMActionVersion 311 | 1.2.1 312 | AMApplication 313 | 314 | System 315 | 316 | AMParameterProperties 317 | 318 | AMProvides 319 | 320 | Container 321 | List 322 | Optional 323 | 324 | Types 325 | 326 | com.apple.cocoa.string 327 | com.apple.cocoa.attributed-string 328 | 329 | 330 | ActionBundlePath 331 | /System/Library/Automator/Copy to Clipboard.action 332 | ActionName 333 | Copy to Clipboard 334 | ActionParameters 335 | 336 | BundleIdentifier 337 | com.apple.Automator.CopyToClipboard 338 | CFBundleVersion 339 | 1.2.1 340 | CanShowSelectedItemsWhenRun 341 | 342 | CanShowWhenRun 343 | 344 | Category 345 | 346 | AMCategoryUtilities 347 | 348 | Class Name 349 | AMCopyToClipboardAction 350 | InputUUID 351 | 84D0B602-9714-494C-A007-A42BDD60060A 352 | Keywords 353 | 354 | Copy 355 | 356 | OutputUUID 357 | DA7871CE-AB84-4000-9766-5527D2645FA5 358 | UUID 359 | AD7F70CE-8F9D-4F33-BC00-379EBDBB725C 360 | UnlocalizedApplications 361 | 362 | System 363 | 364 | arguments 365 | 366 | 367 | 368 | 369 | connectors 370 | 371 | A312291D-88DE-4290-983F-B518D2513DDC 372 | 373 | from 374 | D58FAB52-8014-4F24-9968-73F971E42CB8 - D58FAB52-8014-4F24-9968-73F971E42CB8 375 | to 376 | 795A2725-A80D-4683-87C8-5894DC1D4BF9 - 795A2725-A80D-4683-87C8-5894DC1D4BF9 377 | 378 | CF1A270D-72C1-40AC-B817-00CD09914690 379 | 380 | from 381 | 795A2725-A80D-4683-87C8-5894DC1D4BF9 - 795A2725-A80D-4683-87C8-5894DC1D4BF9 382 | to 383 | AD7F70CE-8F9D-4F33-BC00-379EBDBB725C - AD7F70CE-8F9D-4F33-BC00-379EBDBB725C 384 | 385 | 386 | workflowMetaData 387 | 388 | serviceInputTypeIdentifier 389 | com.apple.Automator.text 390 | serviceOutputTypeIdentifier 391 | com.apple.Automator.nothing 392 | serviceProcessesInput 393 | 0 394 | workflowTypeIdentifier 395 | com.apple.Automator.servicesMenu 396 | 397 | 398 | 399 | -------------------------------------------------------------------------------- /GoogleTranslatePopup/GoogleTranslatePopup.popclipext/Config.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Actions 6 | 7 | 8 | Image File 9 | TranslationIcon.png 10 | Regular Expression 11 | (?s)^.{1,1900}$ 12 | Service Name 13 | Google Translate 14 | Title 15 | Translate 16 | 17 | 18 | Extension Identifier 19 | com.lucifr.popclip.extension.google-translate-popup 20 | Extension Name 21 | GTranslate Popup 22 | Version 23 | 2 24 | 25 | 26 | -------------------------------------------------------------------------------- /GoogleTranslatePopup/GoogleTranslatePopup.popclipext/TranslationIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucifr/PopClip-Extensions/df738922fcc8642c504a9daa7a2484dcdc5eb760/GoogleTranslatePopup/GoogleTranslatePopup.popclipext/TranslationIcon.png -------------------------------------------------------------------------------- /ImFeelingLucky.popclipext/Config.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Actions 6 | 7 | 8 | Image File 9 | FeelingLuckyIcon.png 10 | Regular Expression 11 | (?s)^.{1,}$ 12 | Title 13 | I'm Feeling Lucky 14 | URL 15 | http://www.google.com/search?q={popclip text}&btnI=I'm+Feeling+Lucky 16 | 17 | 18 | Extension Identifier 19 | com.lucifr.popclip.extension.google-lucky 20 | Extension Name 21 | I'm Feeling Lucky 22 | Version 23 | 2 24 | 25 | 26 | -------------------------------------------------------------------------------- /ImFeelingLucky.popclipext/FeelingLuckyIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucifr/PopClip-Extensions/df738922fcc8642c504a9daa7a2484dcdc5eb760/ImFeelingLucky.popclipext/FeelingLuckyIcon.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Introduction # 2 | 3 | This is a collection of extension(s) I created for [PopClip][2]. 4 | 5 | # How to use # 6 | 7 | 1. Make sure you have [PopClip][2] installed. 8 | 9 | 1. Run the command below in Terminal.app, which will allow PopClip to install 3rd party extension. 10 | 11 | defaults write com.pilotmoon.popclip LoadUnsignedExtensions -bool YES 12 | 13 | Restart PopClip to make it work. 14 | 15 | 1. Download the desired extension in the **Available Extension** section below. 16 | 17 | 1. Double click the downloaded .popclipextz file to install. 18 | 19 | # Available Extension(s) # 20 | 21 | ## I'm Feeling Lucky ## 22 | 23 | ![I'm Feeling Lucky](https://raw.github.com/lucifr/PopClip-Extensions/master/ImFeelingLucky.popclipext/FeelingLuckyIcon.png) 24 | 25 | Search the selected word(s) with Google's "[I'm Feeling Lucky][3]" query, which will return the first search result. 26 | 27 | Download: [ImFeelingLucky.popclipextz][4] 28 | 29 | **UPDATE**: "I'm Feeling Lucky" extension has already been added to the [official extensions collection][7]. 30 | 31 | ## GTranslate Popup ## 32 | 33 | ![GTranslate Popup](http://f.cl.ly/items/1L14442X3i1f281x0L2W/google_translate_popup.png) 34 | 35 | This is a fork of the original Google Translate extension. Rather than open Google Traslate page in your browser, Granslate Popup will bring up popup window instead. You can select text (e.g. the translated text) in the popup window and click OK, the selected text will be copied to your clipboard. 36 | 37 | Download: [GoogleTranslatePopup.zip](https://github.com/downloads/lucifr/PopClip-Extensions/GoogleTranslatePopup.zip) 38 | 39 | NOTE: you have to install the service **Google Translate.workflow** by double clicking it. 40 | 41 | ## Full Half Width ## 42 | 43 | ![Full Half Width](https://raw.github.com/lucifr/PopClip-Extensions/master/FullHalfWidth.popclipext/FullHalfWidth.png) 44 | 45 | This extension will convert fullwidth characters in the selected text to halfwidth ones and vise versa. Check the Wikipedia page to learn more about [fullwidth and halfwidth forms][5]. 46 | 47 | Download: [FullHalfWidth.popclipextz][6] 48 | 49 | **UPDATE**: "Full Half Width" extension has already been added to the [official extensions collection][7]. 50 | 51 | ## Word Count+ ## 52 | 53 | ![Word Count+](https://raw.github.com/lucifr/PopClip-Extensions/master/WordCountPlus.popclipext/WordCountPlus.png) 54 | 55 | This extension will show the number of words and characters in the selected text. It supports to both latin words and CJK characters (Chinese/Japanese/Korean). 56 | 57 | Download: [WordCountPlus.popclipextz][8] 58 | 59 | [1]: https://github.com/lucifr/PopClip-Extensions/downloads "Downloads · lucifr/PopClip-Extensions" 60 | [2]: http://pilotmoon.com/popclip/ "PopClip" 61 | [3]: http://en.wikipedia.org/wiki/Google_Search#.22I.27m_Feeling_Lucky.22 "I'm Feeling Lucky" 62 | [4]: https://github.com/downloads/lucifr/PopClip-Extensions/ImFeelingLucky.popclipextz 63 | [5]: http://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms 64 | [6]: https://github.com/downloads/lucifr/PopClip-Extensions/FullHalfWidth.popclipextz 65 | [7]: http://pilotmoon.com/popclip/extensions/ 66 | [8]: https://github.com/lucifr/PopClip-Extensions/raw/master/Downloads/WordCountPlus.popclipextz -------------------------------------------------------------------------------- /WordCountPlus.popclipext/Config.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Actions 6 | 7 | 8 | After 9 | show-result 10 | Image File 11 | WordCountPlus.png 12 | Script Interpreter 13 | /usr/bin/python 14 | Shell Script File 15 | wordcountplus.py 16 | Title 17 | Σwords 18 | 19 | 20 | Extension Description 21 | Show the number of words in the selected text with support to both latin words and CJK characters. 22 | Extension Identifier 23 | com.lucifr.popclip.extension.wordcountplus 24 | Extension Name 25 | Word Count+ 26 | Version 27 | 2 28 | 29 | 30 | -------------------------------------------------------------------------------- /WordCountPlus.popclipext/WordCountPlus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucifr/PopClip-Extensions/df738922fcc8642c504a9daa7a2484dcdc5eb760/WordCountPlus.popclipext/WordCountPlus.png -------------------------------------------------------------------------------- /WordCountPlus.popclipext/wordcountplus.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | # script based on http://markmail.org/message/iaztipcld4hvk4q7#query:+page:1+mid:tn2q7nenk5pmyiks+state:results 4 | import re 5 | import os 6 | data = os.environ['POPCLIP_TEXT'] 7 | encoding = "utf-8" 8 | data = data.decode(encoding) 9 | def main(): 10 | cjkReg = re.compile(u'[\u1100-\uFFFD]+?') 11 | trimedCJK = cjkReg.sub( ' a ', data, 0) 12 | wordCount = len(trimedCJK.split()) 13 | charCount = len(''.join(trimedCJK.split())) 14 | if wordCount > 1: 15 | wordCount = str(wordCount) + ' words' 16 | else: 17 | wordCount = str(wordCount) + ' word' 18 | if charCount > 1: 19 | charCount = str(charCount) + ' characters' 20 | else: 21 | charCount = str(charCount) + ' character' 22 | print wordCount + ', ' + charCount 23 | main() --------------------------------------------------------------------------------