Skip to content

Commit 3959264

Browse files
committed
feat: reverse search and new emoji online dict
- Reverse search by emoji - EmojiTerra and EmojiAll search
1 parent 8c4568e commit 3959264

File tree

10 files changed

+150
-164
lines changed

10 files changed

+150
-164
lines changed

README.md

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -57,33 +57,37 @@ You can edit these triggers (flagged with a `🕹️` symbol) in the user config
5757

5858
1. `🌐 Language` : select the language you prefer. Here is the full list of supported languages :
5959

60-
| Language | ISO 639-1 | Emojipedia link |
61-
| --------------- | --------- | --------------- |
62-
| 🇬🇧 English | en | 🟢 |
63-
| 🇫🇷 Français | fr | 🟢 |
64-
| 🇪🇸 Español | es | 🟢 |
65-
| 🇵🇹 Português | pt | 🟢 |
66-
| 🇮🇹 Italiano | it | 🟢 |
67-
| 🇩🇪 Deutsch | de | 🟢 |
68-
| 🇳🇱 Nederlands | nl | 🟢 |
69-
| 🇳🇴 Norsk | no | 🟢 |
70-
| 🇸🇪 Svenska | se | 🟢 |
71-
| 🇩🇰 Dansk | dk | 🟢 |
72-
| 🇮🇩 Melayu | ms | 🟢 |
73-
| 🇨🇳 中文 | zh | 🟢 |
74-
| 🇯🇵 日本語 | ja | 🟢 |
75-
| 🇰🇷 한국어 | ko | 🟢 |
76-
| 🇮🇳 हिंदी | hi | 🔴 |
77-
| 🇮🇳 मराठी | mr | 🔴 |
78-
| 🇮🇳 తెలుగు | te | 🔴 |
79-
| 🇧🇩 বাংলা | bn | 🔴 |
80-
| 🇱🇰 தமிழ் | ta | 🔴 |
81-
82-
> All emojis aren't translated in all languages. Some languages doesn't have an emojipedia link.
60+
| **Language** | **ISO639\-1** | **EmojiPedia** | **EmojiTerra** | **EmojiAll** |
61+
|-----------------|---------------|----------------|----------------|--------------|
62+
| 🇬🇧 English | en | 🟢 | 🟢 | 🟢 |
63+
| 🇫🇷 Français | fr | 🟢 | 🟢 | 🟢 |
64+
| 🇪🇸 Español | es | 🟢 | 🟢 | 🟢 |
65+
| 🇵🇹 Português | pt | 🟢 | 🟢 | 🟢 |
66+
| 🇮🇹 Italiano | it | 🟢 | 🟢 | 🟢 |
67+
| 🇩🇪 Deutsch | de | 🟢 | 🟢 | 🟢 |
68+
| 🇳🇱 Nederlands | nl | 🟢 | 🟢 | 🟢 |
69+
| 🇳🇴 Norsk | no | 🟢 | 🔴 | 🔴 |
70+
| 🇸🇪 Svenska | sv | 🟢 | 🟢 | 🟢 |
71+
| 🇩🇰 Dansk | da | 🟢 | 🟢 | 🟢 |
72+
| 🇮🇩 Melayu | ms | 🟢 | 🟢 | 🟢 |
73+
| 🇨🇳 中文 | zh | 🟢 | 🟢 | 🔴 |
74+
| 🇯🇵 日本語 | ja | 🟢 | 🟢 | 🟢 |
75+
| 🇰🇷 한국어 | ko | 🟢 | 🟢 | 🟢 |
76+
| 🇮🇳 हिंदी | hi | 🔴 | 🔴 | 🟢 |
77+
| 🇮🇳 मराठी | mr | 🔴 | 🔴 | 🔴 |
78+
| 🇮🇳 తెలుగు | te | 🔴 | 🔴 | 🔴 |
79+
| 🇧🇩 বাংলা | bn | 🔴 | 🔴 | 🟢 |
80+
| 🇱🇰 தமிழ் | ta | 🔴 | 🔴 | 🔴 |
81+
82+
> All emojis aren't translated in all languages. Some languages aren't supported by emoji dictionnaries.
8383
8484
If you wish to use another language, open a GitHub issue [here](https://github.com/BenjaminOddou/alfred-emoji-wine/issues/new).
8585

86-
1. `🎷 Notification sound` : personalize the sound of the workflow notification.
86+
2. `✂️ Padding` : Add transparent margins to icons (in pixels).
87+
88+
3. `📖 Emoji Dictionary` : Select your online emoji dictionary.
89+
90+
4. `🎷 Notification sound` : personalize the sound of the workflow notification.
8791

8892
### Search an emoji
8993

lang_dict.csv

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Language,ISO639-1,EmojiPedia,EmojiTerra,EmojiAll
2+
🇬🇧 English,en,🟢,🟢,🟢
3+
🇫🇷 Français,fr,🟢,🟢,🟢
4+
🇪🇸 Español,es,🟢,🟢,🟢
5+
🇵🇹 Português,pt,🟢,🟢,🟢
6+
🇮🇹 Italiano,it,🟢,🟢,🟢
7+
🇩🇪 Deutsch,de,🟢,🟢,🟢
8+
🇳🇱 Nederlands,nl,🟢,🟢,🟢
9+
🇳🇴 Norsk,no,🟢,🔴,🔴
10+
🇸🇪 Svenska,sv,🟢,🟢,🟢
11+
🇩🇰 Dansk,da,🟢,🟢,🟢
12+
🇮🇩 Melayu,ms,🟢,🟢,🟢
13+
🇨🇳 中文,zh,🟢,🟢,🔴
14+
🇯🇵 日本語,ja,🟢,🟢,🟢
15+
🇰🇷 한국어,ko,🟢,🟢,🟢
16+
🇮🇳 हिंदी,hi,🔴,🔴,🟢
17+
🇮🇳 मराठी,mr,🔴,🔴,🔴
18+
🇮🇳 తెలుగు,te,🔴,🔴,🔴
19+
🇧🇩 বাংলা,bn,🔴,🔴,🟢
20+
🇱🇰 தமிழ்,ta,🔴,🔴,🔴

src/api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import sys
33
import subprocess
4-
from utils import api_file_path, data_folder_path, icons_folder_path, assets_folder_path, display_notification, language, padding, custom_logger
4+
from utils import api_file_path, data_folder_path, icons_folder_path, assets_folder_path, display_notification, language, padding, custom_logger, langs
55

66
def get_homebrew_prefix():
77
try:
@@ -83,6 +83,7 @@ def convert_emoji_to_png(emoji, name):
8383
tags[i] = tags[i].strip()
8484
else:
8585
tags = tags_list.text.split(' | ')
86+
tags.append(emoji)
8687
break
8788
items.append({
8889
'name': name,
@@ -92,8 +93,6 @@ def convert_emoji_to_png(emoji, name):
9293
})
9394
convert_emoji_to_png(emoji, name)
9495

95-
with open('json/lang.json') as file:
96-
langs = json.load(file)
9796
for item in langs:
9897
if item["value"] == language:
9998
lang = item["title"]

src/harvest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
import json
3-
from utils import config, api_file_path, tags_file_path, icons_folder_path, language, data_folder_path
3+
from utils import config, api_file_path, tags_file_path, icons_folder_path, language, data_folder_path, langs
44

55
api_data = config(api_file_path)
66
tags_data = config(tags_file_path)
@@ -21,8 +21,6 @@
2121
with open(tags_file_path, 'w') as file:
2222
json.dump([], file)
2323

24-
with open('json/lang.json') as file:
25-
langs = json.load(file)
2624
for item in langs:
2725
if item["value"] == language:
2826
lang = item["title"]

src/icons/assets/emojiall.png

2.3 KB
Loading

src/icons/assets/emojiterra.png

12.3 KB
Loading

src/info.plist

Lines changed: 75 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@
370370
<key>spaces</key>
371371
<string></string>
372372
<key>url</key>
373-
<string>https://emojipedia.org/{var:split2}</string>
373+
<string>{var:split2}</string>
374374
</dict>
375375
<key>type</key>
376376
<string>alfred.workflow.action.openurl</string>
@@ -476,21 +476,6 @@
476476
<key>version</key>
477477
<integer>1</integer>
478478
</dict>
479-
<dict>
480-
<key>config</key>
481-
<dict>
482-
<key>availableviaurlhandler</key>
483-
<false/>
484-
<key>triggerid</key>
485-
<string>harvest</string>
486-
</dict>
487-
<key>type</key>
488-
<string>alfred.workflow.trigger.external</string>
489-
<key>uid</key>
490-
<string>E06CBF7C-373F-4989-AD9D-77B601FA1E06</string>
491-
<key>version</key>
492-
<integer>1</integer>
493-
</dict>
494479
<dict>
495480
<key>config</key>
496481
<dict>
@@ -540,6 +525,21 @@
540525
<key>version</key>
541526
<integer>3</integer>
542527
</dict>
528+
<dict>
529+
<key>config</key>
530+
<dict>
531+
<key>availableviaurlhandler</key>
532+
<false/>
533+
<key>triggerid</key>
534+
<string>harvest</string>
535+
</dict>
536+
<key>type</key>
537+
<string>alfred.workflow.trigger.external</string>
538+
<key>uid</key>
539+
<string>E06CBF7C-373F-4989-AD9D-77B601FA1E06</string>
540+
<key>version</key>
541+
<integer>1</integer>
542+
</dict>
543543
<dict>
544544
<key>config</key>
545545
<dict>
@@ -641,6 +641,25 @@
641641
<key>version</key>
642642
<integer>1</integer>
643643
</dict>
644+
<dict>
645+
<key>config</key>
646+
<dict>
647+
<key>externaltriggerid</key>
648+
<string>harvest</string>
649+
<key>passinputasargument</key>
650+
<true/>
651+
<key>passvariables</key>
652+
<false/>
653+
<key>workflowbundleid</key>
654+
<string>self</string>
655+
</dict>
656+
<key>type</key>
657+
<string>alfred.workflow.output.callexternaltrigger</string>
658+
<key>uid</key>
659+
<string>19527210-0ADC-4179-BAB9-82A03C19D378</string>
660+
<key>version</key>
661+
<integer>1</integer>
662+
</dict>
644663
<dict>
645664
<key>config</key>
646665
<dict>
@@ -664,25 +683,6 @@
664683
<key>version</key>
665684
<integer>2</integer>
666685
</dict>
667-
<dict>
668-
<key>config</key>
669-
<dict>
670-
<key>externaltriggerid</key>
671-
<string>harvest</string>
672-
<key>passinputasargument</key>
673-
<true/>
674-
<key>passvariables</key>
675-
<false/>
676-
<key>workflowbundleid</key>
677-
<string>self</string>
678-
</dict>
679-
<key>type</key>
680-
<string>alfred.workflow.output.callexternaltrigger</string>
681-
<key>uid</key>
682-
<string>19527210-0ADC-4179-BAB9-82A03C19D378</string>
683-
<key>version</key>
684-
<integer>1</integer>
685-
</dict>
686686
<dict>
687687
<key>config</key>
688688
<dict>
@@ -743,14 +743,6 @@
743743
<key>version</key>
744744
<integer>1</integer>
745745
</dict>
746-
<dict>
747-
<key>type</key>
748-
<string>alfred.workflow.utility.junction</string>
749-
<key>uid</key>
750-
<string>CA37797D-2228-4350-836C-EC35177DCB08</string>
751-
<key>version</key>
752-
<integer>1</integer>
753-
</dict>
754746
<dict>
755747
<key>config</key>
756748
<dict>
@@ -768,6 +760,14 @@
768760
<key>version</key>
769761
<integer>2</integer>
770762
</dict>
763+
<dict>
764+
<key>type</key>
765+
<string>alfred.workflow.utility.junction</string>
766+
<key>uid</key>
767+
<string>CA37797D-2228-4350-836C-EC35177DCB08</string>
768+
<key>version</key>
769+
<integer>1</integer>
770+
</dict>
771771
<dict>
772772
<key>config</key>
773773
<dict>
@@ -1118,14 +1118,44 @@ note: not all emojis are available in all languages.</string>
11181118
<true/>
11191119
</dict>
11201120
<key>description</key>
1121-
<string>Add transparent margins to icons (in pixels).</string>
1121+
<string>add transparent margins to icons (in pixels).</string>
11221122
<key>label</key>
11231123
<string>✂️ Padding</string>
11241124
<key>type</key>
11251125
<string>textfield</string>
11261126
<key>variable</key>
11271127
<string>padding</string>
11281128
</dict>
1129+
<dict>
1130+
<key>config</key>
1131+
<dict>
1132+
<key>default</key>
1133+
<string>emojipedia.org</string>
1134+
<key>pairs</key>
1135+
<array>
1136+
<array>
1137+
<string>EmojiPedia 📙</string>
1138+
<string>emojipedia.org</string>
1139+
</array>
1140+
<array>
1141+
<string>EmojiTerra 📘</string>
1142+
<string>emojiterra.com</string>
1143+
</array>
1144+
<array>
1145+
<string>EmojiAll 📕</string>
1146+
<string>emojiall.com</string>
1147+
</array>
1148+
</array>
1149+
</dict>
1150+
<key>description</key>
1151+
<string>select your online emoji dictionary.</string>
1152+
<key>label</key>
1153+
<string>📖 Emoji Dictionary</string>
1154+
<key>type</key>
1155+
<string>popupbutton</string>
1156+
<key>variable</key>
1157+
<string>emoji_dictionary</string>
1158+
</dict>
11291159
<dict>
11301160
<key>config</key>
11311161
<dict>
@@ -1210,7 +1240,7 @@ note: not all emojis are available in all languages.</string>
12101240
</dict>
12111241
</array>
12121242
<key>version</key>
1213-
<string>1.2.7</string>
1243+
<string>1.3.0</string>
12141244
<key>webaddress</key>
12151245
<string>https://github.com/BenjaminOddou/alfred-emoji-wine</string>
12161246
</dict>

src/json/lang.json

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)