diff options
| author | 2021-02-03 19:17:50 -0500 | |
|---|---|---|
| committer | 2021-02-03 19:17:50 -0500 | |
| commit | 475d074fd74425efbe783fad08f97f2df0c4909f (patch) | |
| tree | 2acdae53999b3c74b716efa4edb5b40311fa356a /nikola/plugins/shortcode | |
| parent | cd502d52787f666fff3254d7d7e7578930c813c2 (diff) | |
| parent | 3a0d66f07b112b6d2bdc2b57bbf717a89a351ce6 (diff) | |
Update upstream source from tag 'upstream/8.1.2'
Update to upstream version '8.1.2'
with Debian dir e5e966a9e6010ef70618dc9a61558fa4db35aceb
Diffstat (limited to 'nikola/plugins/shortcode')
21 files changed, 7089 insertions, 7 deletions
diff --git a/nikola/plugins/shortcode/chart.plugin b/nikola/plugins/shortcode/chart.plugin new file mode 100644 index 0000000..edcbc13 --- /dev/null +++ b/nikola/plugins/shortcode/chart.plugin @@ -0,0 +1,13 @@ +[Core] +name = chart +module = chart + +[Nikola] +PluginCategory = Shortcode + +[Documentation] +author = Roberto Alsina +version = 0.1 +website = https://getnikola.com/ +description = Chart directive based in PyGal + diff --git a/nikola/plugins/shortcode/chart.py b/nikola/plugins/shortcode/chart.py new file mode 100644 index 0000000..64341e8 --- /dev/null +++ b/nikola/plugins/shortcode/chart.py @@ -0,0 +1,90 @@ +# -*- coding: utf-8 -*- + +# Copyright ยฉ 2012-2020 Roberto Alsina and others. + +# Permission is hereby granted, free of charge, to any +# person obtaining a copy of this software and associated +# documentation files (the "Software"), to deal in the +# Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the +# Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice +# shall be included in all copies or substantial portions of +# the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +# PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS +# OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +"""Chart shortcode.""" + +from ast import literal_eval + +from nikola.plugin_categories import ShortcodePlugin +from nikola.utils import req_missing, load_data + +try: + import pygal +except ImportError: + pygal = None + +_site = None + + +class ChartShortcode(ShortcodePlugin): + """Plugin for chart shortcode.""" + + name = "chart" + + def handler(self, chart_type, **_options): + """Generate chart using Pygal.""" + if pygal is None: + msg = req_missing( + ['pygal'], 'use the Chart directive', optional=True) + return '<div class="text-error">{0}</div>'.format(msg) + options = {} + chart_data = [] + _options.pop('post', None) + _options.pop('site') + data = _options.pop('data') + + for line in data.splitlines(): + line = line.strip() + if line: + chart_data.append(literal_eval('({0})'.format(line))) + if 'data_file' in _options: + options = load_data(_options['data_file']) + _options.pop('data_file') + if not chart_data: # If there is data in the document, it wins + for k, v in options.pop('data', {}).items(): + chart_data.append((k, v)) + + options.update(_options) + + style_name = options.pop('style', 'BlueStyle') + if '(' in style_name: # Parametric style + style = eval('pygal.style.' + style_name) + else: + style = getattr(pygal.style, style_name) + for k, v in options.items(): + try: + options[k] = literal_eval(v) + except Exception: + options[k] = v + chart = pygal + for o in chart_type.split('.'): + chart = getattr(chart, o) + chart = chart(style=style) + if _site and _site.invariant: + chart.no_prefix = True + chart.config(**options) + for label, series in chart_data: + chart.add(label, series) + return chart.render().decode('utf8') diff --git a/nikola/plugins/shortcode/emoji.plugin b/nikola/plugins/shortcode/emoji.plugin new file mode 100644 index 0000000..c9a272c --- /dev/null +++ b/nikola/plugins/shortcode/emoji.plugin @@ -0,0 +1,13 @@ +[Core] +name = emoji +module = emoji + +[Nikola] +PluginCategory = Shortcode + +[Documentation] +author = Roberto Alsina +version = 0.1 +website = https://getnikola.com/ +description = emoji shortcode + diff --git a/nikola/plugins/shortcode/emoji/__init__.py b/nikola/plugins/shortcode/emoji/__init__.py new file mode 100644 index 0000000..9ae2228 --- /dev/null +++ b/nikola/plugins/shortcode/emoji/__init__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# This file is public domain according to its author, Roberto Alsina + +"""Emoji directive for reStructuredText.""" + +import glob +import json +import os + +from nikola.plugin_categories import ShortcodePlugin +from nikola import utils + +TABLE = {} + +LOGGER = utils.get_logger('scan_posts') + + +def _populate(): + for fname in glob.glob(os.path.join(os.path.dirname(__file__), 'data', '*.json')): + with open(fname, encoding="utf-8-sig") as inf: + data = json.load(inf) + data = data[list(data.keys())[0]] + data = data[list(data.keys())[0]] + for item in data: + if item['key'] in TABLE: + LOGGER.warning('Repeated emoji {}'.format(item['key'])) + else: + TABLE[item['key']] = item['value'] + + +class Plugin(ShortcodePlugin): + """Plugin for gist directive.""" + + name = "emoji" + + def handler(self, name, filename=None, site=None, data=None, lang=None, post=None): + """Create HTML for emoji.""" + if not TABLE: + _populate() + try: + output = u'''<span class="emoji">{}</span>'''.format(TABLE[name]) + except KeyError: + LOGGER.warning('Unknown emoji {}'.format(name)) + output = u'''<span class="emoji error">{}</span>'''.format(name) + + return output, [] diff --git a/nikola/plugins/shortcode/emoji/data/Activity.json b/nikola/plugins/shortcode/emoji/data/Activity.json new file mode 100644 index 0000000..1461f19 --- /dev/null +++ b/nikola/plugins/shortcode/emoji/data/Activity.json @@ -0,0 +1,418 @@ +{
+ "activities": {
+ "activity": [
+ {
+ "key": "soccer_ball",
+ "value": "โฝ"
+ },
+ {
+ "key": "basket_ball",
+ "value": "๐"
+ },
+ {
+ "key": "american_football",
+ "value": "๐"
+ },
+ {
+ "key": "baseball",
+ "value": "โพ"
+ },
+ {
+ "key": "tennis_racquet_ball",
+ "value": "๐พ"
+ },
+ {
+ "key": "volley_ball",
+ "value": "๐"
+ },
+ {
+ "key": "rugby_football",
+ "value": "๐"
+ },
+ {
+ "key": "billiards",
+ "value": "๐ฑ"
+ },
+ {
+ "key": "activity_in_hole",
+ "value": "โณ"
+ },
+ {
+ "key": "golfer",
+ "value": "๐"
+ },
+ {
+ "key": "table_tennis_paddle_ball",
+ "value": "๐"
+ },
+ {
+ "key": "badminton_racquet_shuttle_cock",
+ "value": "๐ธ"
+ },
+ {
+ "key": "ice_hockey_stick_puck",
+ "value": "๐"
+ },
+ {
+ "key": "field_hockey_stick_ball",
+ "value": "๐"
+ },
+ {
+ "key": "cricket_bat_ball",
+ "value": "๐"
+ },
+ {
+ "key": "ski_and_ski_boot",
+ "value": "๐ฟ"
+ },
+ {
+ "key": "skier",
+ "value": "โท"
+ },
+ {
+ "key": "snow_boarder",
+ "value": "๐"
+ },
+ {
+ "key": "ice_skate",
+ "value": "โธ"
+ },
+ {
+ "key": "bow_and_arrow",
+ "value": "๐น"
+ },
+ {
+ "key": "fishing_pole_and_fish",
+ "value": "๐ฃ"
+ },
+ {
+ "key": "row_boat",
+ "value": "๐ฃ"
+ },
+ {
+ "key": "row_boat_type_1_2",
+ "value": "๐ฃ๐ป"
+ },
+ {
+ "key": "row_boat_type_3",
+ "value": "๐ฃ๐ผ"
+ },
+ {
+ "key": "row_boat_type_4",
+ "value": "๐ฃ๐ฝ"
+ },
+ {
+ "key": "row_boat_type_5",
+ "value": "๐ฃ๐พ"
+ },
+ {
+ "key": "row_boat_type_6",
+ "value": "๐ฃ๐ฟ"
+ },
+ {
+ "key": "swimmer",
+ "value": "๐"
+ },
+ {
+ "key": "swimmer_type_1_2",
+ "value": "๐๐ป"
+ },
+ {
+ "key": "swimmer_type_3",
+ "value": "๐๐ผ"
+ },
+ {
+ "key": "swimmer_type_4",
+ "value": "๐๐ฝ"
+ },
+ {
+ "key": "swimmer_type_5",
+ "value": "๐๐พ"
+ },
+ {
+ "key": "swimmer_type_6",
+ "value": "๐๐ฟ"
+ },
+ {
+ "key": "surfer",
+ "value": "๐"
+ },
+ {
+ "key": "surfer_type_1_2",
+ "value": "๐๐ป"
+ },
+ {
+ "key": "surfer_type_3",
+ "value": "๐๐ผ"
+ },
+ {
+ "key": "surfer_type_4",
+ "value": "๐๐ฝ"
+ },
+ {
+ "key": "surfer_type_5",
+ "value": "๐๐พ"
+ },
+ {
+ "key": "surfer_type_6",
+ "value": "๐๐ฟ"
+ },
+ {
+ "key": "bath",
+ "value": "๐"
+ },
+ {
+ "key": "bath_type_1_2",
+ "value": "๐๐ป"
+ },
+ {
+ "key": "bath_type_3",
+ "value": "๐๐ผ"
+ },
+ {
+ "key": "bath_type_4",
+ "value": "๐๐ฝ"
+ },
+ {
+ "key": "bath_type_5",
+ "value": "๐๐พ"
+ },
+ {
+ "key": "bath_type_6",
+ "value": "๐๐ฟ"
+ },
+ {
+ "key": "person_with_ball",
+ "value": "โน"
+ },
+ {
+ "key": "person_with_ball_type_1_2",
+ "value": "โน๐ป"
+ },
+ {
+ "key": "person_with_ball_type_3",
+ "value": "โน๐ผ"
+ },
+ {
+ "key": "person_with_ball_type_4",
+ "value": "โน๐ฝ"
+ },
+ {
+ "key": "person_with_ball_type_5",
+ "value": "โน๐พ"
+ },
+ {
+ "key": "person_with_ball_type_6",
+ "value": "โน๐ฟ"
+ },
+ {
+ "key": "weight_lifter",
+ "value": "๐"
+ },
+ {
+ "key": "weight_lifter_type_1_2",
+ "value": "๐๐ป"
+ },
+ {
+ "key": "weight_lifter_type_3",
+ "value": "๐๐ผ"
+ },
+ {
+ "key": "weight_lifter_type_4",
+ "value": "๐๐ฝ"
+ },
+ {
+ "key": "weight_lifter_type_5",
+ "value": "๐๐พ"
+ },
+ {
+ "key": "weight_lifter_type_6",
+ "value": "๐๐ฟ"
+ },
+ {
+ "key": "bicyclist",
+ "value": "๐ด"
+ },
+ {
+ "key": "bicyclist_type_1_2",
+ "value": "๐ด๐ป"
+ },
+ {
+ "key": "bicyclist_type_3",
+ "value": "๐ด๐ผ"
+ },
+ {
+ "key": "bicyclist_type_4",
+ "value": "๐ด๐ฝ"
+ },
+ {
+ "key": "bicyclist_type_5",
+ "value": "๐ด๐พ"
+ },
+ {
+ "key": "bicyclist_type_6",
+ "value": "๐ด๐ฟ"
+ },
+ {
+ "key": "mountain_bicyclist",
+ "value": "๐ต"
+ },
+ {
+ "key": "mountain_bicyclist_type_1_2",
+ "value": "๐ต๐ป"
+ },
+ {
+ "key": "mountain_bicyclist_type_3",
+ "value": "๐ต๐ผ"
+ },
+ {
+ "key": "mountain_bicyclist_type_4",
+ "value": "๐ต๐ฝ"
+ },
+ {
+ "key": "mountain_bicyclist_type_5",
+ "value": "๐ต๐พ"
+ },
+ {
+ "key": "mountain_bicyclist_type_6",
+ "value": "๐ต๐ฟ"
+ },
+ {
+ "key": "horse_racing",
+ "value": "๐"
+ },
+ {
+ "key": "horse_racing_type_1_2",
+ "value": "๐๐ป"
+ },
+ {
+ "key": "horse_racing_type_3",
+ "value": "๐๐ป"
+ },
+ {
+ "key": "horse_racing_type_4",
+ "value": "๐๐ฝ"
+ },
+ {
+ "key": "horse_racing_type_5",
+ "value": "๐๐พ"
+ },
+ {
+ "key": "horse_racing_type_6",
+ "value": "๐๐ฟ"
+ },
+ {
+ "key": "main_business_suit_levitating",
+ "value": "๐ด"
+ },
+ {
+ "key": "trophy",
+ "value": "๐"
+ },
+ {
+ "key": "running_shirt_with_sash",
+ "value": "๐ฝ"
+ },
+ {
+ "key": "sports_medal",
+ "value": "๐
"
+ },
+ {
+ "key": "military_medal",
+ "value": "๐"
+ },
+ {
+ "key": "reminder_ribbon",
+ "value": "๐"
+ },
+ {
+ "key": "rosette",
+ "value": "๐ต"
+ },
+ {
+ "key": "ticket",
+ "value": "๐ซ"
+ },
+ {
+ "key": "admission_tickets",
+ "value": "๐"
+ },
+ {
+ "key": "performing_arts",
+ "value": "๐ญ"
+ },
+ {
+ "key": "artist_palette",
+ "value": "๐จ"
+ },
+ {
+ "key": "circus_tent",
+ "value": "๐ช"
+ },
+ {
+ "key": "microphone",
+ "value": "๐ค"
+ },
+ {
+ "key": "headphone",
+ "value": "๐ง"
+ },
+ {
+ "key": "musical_score",
+ "value": "๐ผ"
+ },
+ {
+ "key": "musical_keyboard",
+ "value": "๐น"
+ },
+ {
+ "key": "saxophone",
+ "value": "๐ท"
+ },
+ {
+ "key": "trumpet",
+ "value": "๐บ"
+ },
+ {
+ "key": "guitar",
+ "value": "๐ธ"
+ },
+ {
+ "key": "violin",
+ "value": "๐ป"
+ },
+ {
+ "key": "clapper_board",
+ "value": "๐ฌ"
+ },
+ {
+ "key": "video_game",
+ "value": "๐ฎ"
+ },
+ {
+ "key": "alien_monster",
+ "value": "๐พ"
+ },
+ {
+ "key": "direct_hit",
+ "value": "๐ฏ"
+ },
+ {
+ "key": "game_die",
+ "value": "๐ฒ"
+ },
+ {
+ "key": "slot_machine",
+ "value": "๐ฐ"
+ },
+ {
+ "key": "bowling",
+ "value": "๐ณ"
+ },
+ {
+ "key": "olympic_rings",
+ "value": "โฏโโฏโโฏโโฏโโฏ"
+ }
+ ]
+ }
+}
\ No newline at end of file diff --git a/nikola/plugins/shortcode/emoji/data/Flags.json b/nikola/plugins/shortcode/emoji/data/Flags.json new file mode 100644 index 0000000..d1d4bdc --- /dev/null +++ b/nikola/plugins/shortcode/emoji/data/Flags.json @@ -0,0 +1,998 @@ +{
+ "flags": {
+ "flag": [
+ {
+ "key": "afghanistan",
+ "value": "๐ฆ๐ซ"
+ },
+ {
+ "key": "land_island",
+ "value": "๐ฆ๐ฝ"
+ },
+ {
+ "key": "albania",
+ "value": "๐ฆ๐ฑ"
+ },
+ {
+ "key": "algeria",
+ "value": "๐ฉ๐ฟ"
+ },
+ {
+ "key": "american_samoa",
+ "value": "๐ฆ๐ธ"
+ },
+ {
+ "key": "andorra",
+ "value": "๐ฆ๐ฉ"
+ },
+ {
+ "key": "angola",
+ "value": "๐ฆ๐ด"
+ },
+ {
+ "key": "anguilla",
+ "value": "๐ฆ๐ฎ"
+ },
+ {
+ "key": "antarctica",
+ "value": "๐ฆ๐ถ"
+ },
+ {
+ "key": "antigua_and_barbuda",
+ "value": "๐ฆ๐ฌ"
+ },
+ {
+ "key": "argentina",
+ "value": "๐ฆ๐ท"
+ },
+ {
+ "key": "armenia",
+ "value": "๐ฆ๐ฒ"
+ },
+ {
+ "key": "aruba",
+ "value": "๐ฆ๐ผ"
+ },
+ {
+ "key": "australia",
+ "value": "๐ฆ๐บ"
+ },
+ {
+ "key": "austria",
+ "value": "๐ฆ๐น"
+ },
+ {
+ "key": "azerbaijan",
+ "value": "๐ฆ๐ฟ"
+ },
+ {
+ "key": "bahamas",
+ "value": "๐ง๐ธ"
+ },
+ {
+ "key": "bahrain",
+ "value": "๐ง๐ญ"
+ },
+ {
+ "key": "bangladesh",
+ "value": "๐ง๐ฉ"
+ },
+ {
+ "key": "barbados",
+ "value": "๐ง๐ง"
+ },
+ {
+ "key": "belarus",
+ "value": "๐ง๐พ"
+ },
+ {
+ "key": "belgium",
+ "value": "๐ง๐ช"
+ },
+ {
+ "key": "belize",
+ "value": "๐ง๐ฟ"
+ },
+ {
+ "key": "benin",
+ "value": "๐ง๐ฏ"
+ },
+ {
+ "key": "bermuda",
+ "value": "๐ง๐ฒ"
+ },
+ {
+ "key": "bhutan",
+ "value": "๐ง๐น"
+ },
+ {
+ "key": "bolivia",
+ "value": "๐ง๐ด"
+ },
+ {
+ "key": "caribbean_netherlands",
+ "value": "๐ง๐ถ"
+ },
+ {
+ "key": "bosnia_and_herzegovina",
+ "value": "๐ง๐ฆ"
+ },
+ {
+ "key": "botswana",
+ "value": "๐ง๐ผ"
+ },
+ {
+ "key": "brazil",
+ "value": "๐ง๐ท"
+ },
+ {
+ "key": "british_indian_ocean_territory",
+ "value": "๐ฎ๐ด"
+ },
+ {
+ "key": "british_virgin_islands",
+ "value": "๐ป๐ฌ"
+ },
+ {
+ "key": "brunei",
+ "value": "๐ง๐ณ"
+ },
+ {
+ "key": "bulgaria",
+ "value": "๐ง๐ฌ"
+ },
+ {
+ "key": "burkina_faso",
+ "value": "๐ง๐ซ"
+ },
+ {
+ "key": "burundi",
+ "value": "๐ง๐ฎ"
+ },
+ {
+ "key": "cape_verde",
+ "value": "๐จ๐ป"
+ },
+ {
+ "key": "cambodia",
+ "value": "๐ฐ๐ญ"
+ },
+ {
+ "key": "cameroon",
+ "value": "๐จ๐ฒ"
+ },
+ {
+ "key": "canada",
+ "value": "๐จ๐ฆ"
+ },
+ {
+ "key": "canary_islands",
+ "value": "๐ฎ๐จ"
+ },
+ {
+ "key": "cayman_islands",
+ "value": "๐ฐ๐พ"
+ },
+ {
+ "key": "central_african_republic",
+ "value": "๐จ๐ซ"
+ },
+ {
+ "key": "chad",
+ "value": "๐น๐ฉ"
+ },
+ {
+ "key": "chile",
+ "value": "๐จ๐ฑ"
+ },
+ {
+ "key": "china",
+ "value": "๐จ๐ณ"
+ },
+ {
+ "key": "christmas_island",
+ "value": "๐จ๐ฝ"
+ },
+ {
+ "key": "cocos_keeling_island",
+ "value": "๐จ๐จ"
+ },
+ {
+ "key": "colombia",
+ "value": "๐จ๐ด"
+ },
+ {
+ "key": "comoros",
+ "value": "๐ฐ๐ฒ"
+ },
+ {
+ "key": "congo_brazzaville",
+ "value": "๐จ๐ฌ"
+ },
+ {
+ "key": "congo_kingshasa",
+ "value": "๐จ๐ฉ"
+ },
+ {
+ "key": "cook_islands",
+ "value": "๐จ๐ฐ"
+ },
+ {
+ "key": "costa_rica",
+ "value": "๐จ๐ท"
+ },
+ {
+ "key": "croatia",
+ "value": "๐ญ๐ท"
+ },
+ {
+ "key": "cuba",
+ "value": "๐จ๐บ"
+ },
+ {
+ "key": "curaao",
+ "value": "๐จ๐ผ"
+ },
+ {
+ "key": "cyprus",
+ "value": "๐จ๐พ"
+ },
+ {
+ "key": "czech_republic",
+ "value": "๐จ๐ฟ"
+ },
+ {
+ "key": "denmark",
+ "value": "๐ฉ๐ฐ"
+ },
+ {
+ "key": "djibouti",
+ "value": "๐ฉ๐ฏ"
+ },
+ {
+ "key": "dominica",
+ "value": "๐ฉ๐ฒ"
+ },
+ {
+ "key": "dominican_republic",
+ "value": "๐ฉ๐ด"
+ },
+ {
+ "key": "ecuador",
+ "value": "๐ช๐จ"
+ },
+ {
+ "key": "egypt",
+ "value": "๐ช๐ฌ"
+ },
+ {
+ "key": "el_salvador",
+ "value": "๐ธ๐ป"
+ },
+ {
+ "key": "equatorial_guinea",
+ "value": "๐ฌ๐ถ"
+ },
+ {
+ "key": "eritrea",
+ "value": "๐ช๐ท"
+ },
+ {
+ "key": "estonia",
+ "value": "๐ช๐ช"
+ },
+ {
+ "key": "ethiopia",
+ "value": "๐ช๐น"
+ },
+ {
+ "key": "european_union",
+ "value": "๐ช๐บ"
+ },
+ {
+ "key": "falkland_islands",
+ "value": "๐ซ๐ฐ"
+ },
+ {
+ "key": "faroe_islands",
+ "value": "๐ซ๐ด"
+ },
+ {
+ "key": "fiji",
+ "value": "๐ซ๐ฏ"
+ },
+ {
+ "key": "finland",
+ "value": "๐ซ๐ฎ"
+ },
+ {
+ "key": "france",
+ "value": "๐ซ๐ท"
+ },
+ {
+ "key": "french_guiana",
+ "value": "๐ฌ๐ซ"
+ },
+ {
+ "key": "french_polynesia",
+ "value": "๐ต๐ซ"
+ },
+ {
+ "key": "french_southern_territories",
+ "value": "๐น๐ซ"
+ },
+ {
+ "key": "gabon",
+ "value": "๐ฌ๐ฆ"
+ },
+ {
+ "key": "gambia",
+ "value": "๐ฌ๐ฒ"
+ },
+ {
+ "key": "georgia",
+ "value": "๐ฌ๐ช"
+ },
+ {
+ "key": "germany",
+ "value": "๐ฉ๐ช"
+ },
+ {
+ "key": "ghana",
+ "value": "๐ฌ๐ญ"
+ },
+ {
+ "key": "gibraltar",
+ "value": "๐ฌ๐ฎ"
+ },
+ {
+ "key": "greece",
+ "value": "๐ฌ๐ท"
+ },
+ {
+ "key": "greenland",
+ "value": "๐ฌ๐ฑ"
+ },
+ {
+ "key": "grenada",
+ "value": "๐ฌ๐ฉ"
+ },
+ {
+ "key": "guadeloupe",
+ "value": "๐ฌ๐ต"
+ },
+ {
+ "key": "guam",
+ "value": "๐ฌ๐บ"
+ },
+ {
+ "key": "guatemala",
+ "value": "๐ฌ๐น"
+ },
+ {
+ "key": "guernsey",
+ "value": "๐ฌ๐ฌ"
+ },
+ {
+ "key": "guinea",
+ "value": "๐ฌ๐ณ"
+ },
+ {
+ "key": "guinea_bissau",
+ "value": "๐ฌ๐ผ"
+ },
+ {
+ "key": "guyana",
+ "value": "๐ฌ๐พ"
+ },
+ {
+ "key": "haiti",
+ "value": "๐ญ๐น"
+ },
+ {
+ "key": "honduras",
+ "value": "๐ญ๐ณ"
+ },
+ {
+ "key": "hong_kong",
+ "value": "๐ญ๐ฐ"
+ },
+ {
+ "key": "hungary",
+ "value": "๐ญ๐บ"
+ },
+ {
+ "key": "iceland",
+ "value": "๐ฎ๐ธ"
+ },
+ {
+ "key": "india",
+ "value": "๐ฎ๐ณ"
+ },
+ {
+ "key": "indonesia",
+ "value": "๐ฎ๐ฉ"
+ },
+ {
+ "key": "iran",
+ "value": "๐ฎ๐ท"
+ },
+ {
+ "key": "iraq",
+ "value": "๐ฎ๐ถ"
+ },
+ {
+ "key": "ireland",
+ "value": "๐ฎ๐ช"
+ },
+ {
+ "key": "isle_of_man",
+ "value": "๐ฎ๐ฒ"
+ },
+ {
+ "key": "israel",
+ "value": "๐ฎ๐ฑ"
+ },
+ {
+ "key": "italy",
+ "value": "๐ฎ๐น"
+ },
+ {
+ "key": "ctedivoire",
+ "value": "๐จ๐ฎ"
+ },
+ {
+ "key": "jamaica",
+ "value": "๐ฏ๐ฒ"
+ },
+ {
+ "key": "japan",
+ "value": "๐ฏ๐ต"
+ },
+ {
+ "key": "jersey",
+ "value": "๐ฏ๐ช"
+ },
+ {
+ "key": "jordan",
+ "value": "๐ฏ๐ด"
+ },
+ {
+ "key": "kazakhstan",
+ "value": "๐ฐ๐ฟ"
+ },
+ {
+ "key": "kenya",
+ "value": "๐ฐ๐ช"
+ },
+ {
+ "key": "kiribati",
+ "value": "๐ฐ๐ฎ"
+ },
+ {
+ "key": "kosovo",
+ "value": "๐ฝ๐ฐ"
+ },
+ {
+ "key": "kuwait",
+ "value": "๐ฐ๐ผ"
+ },
+ {
+ "key": "kyrgyzstan",
+ "value": "๐ฐ๐ฌ"
+ },
+ {
+ "key": "laos",
+ "value": "๐ฑ๐ฆ"
+ },
+ {
+ "key": "latvia",
+ "value": "๐ฑ๐ป"
+ },
+ {
+ "key": "lebanon",
+ "value": "๐ฑ๐ง"
+ },
+ {
+ "key": "lesotho",
+ "value": "๐ฑ๐ธ"
+ },
+ {
+ "key": "liberia",
+ "value": "๐ฑ๐ท"
+ },
+ {
+ "key": "libya",
+ "value": "๐ฑ๐พ"
+ },
+ {
+ "key": "liechtenstein",
+ "value": "๐ฑ๐ฎ"
+ },
+ {
+ "key": "lithuania",
+ "value": "๐ฑ๐น"
+ },
+ {
+ "key": "luxembourg",
+ "value": "๐ฑ๐บ"
+ },
+ {
+ "key": "macau",
+ "value": "๐ฒ๐ด"
+ },
+ {
+ "key": "macedonia",
+ "value": "๐ฒ๐ฐ"
+ },
+ {
+ "key": "madagascar",
+ "value": "๐ฒ๐ฌ"
+ },
+ {
+ "key": "malawi",
+ "value": "๐ฒ๐ผ"
+ },
+ {
+ "key": "malaysia",
+ "value": "๐ฒ๐พ"
+ },
+ {
+ "key": "maldives",
+ "value": "๐ฒ๐ป"
+ },
+ {
+ "key": "mali",
+ "value": "๐ฒ๐ฑ"
+ },
+ {
+ "key": "malta",
+ "value": "๐ฒ๐น"
+ },
+ {
+ "key": "marshall_islands",
+ "value": "๐ฒ๐ญ"
+ },
+ {
+ "key": "martinique",
+ "value": "๐ฒ๐ถ"
+ },
+ {
+ "key": "mauritania",
+ "value": "๐ฒ๐ท"
+ },
+ {
+ "key": "mauritius",
+ "value": "๐ฒ๐บ"
+ },
+ {
+ "key": "mayotte",
+ "value": "๐พ๐น"
+ },
+ {
+ "key": "mexico",
+ "value": "๐ฒ๐ฝ"
+ },
+ {
+ "key": "micronesia",
+ "value": "๐ซ๐ฒ"
+ },
+ {
+ "key": "moldova",
+ "value": "๐ฒ๐ฉ"
+ },
+ {
+ "key": "monaco",
+ "value": "๐ฒ๐จ"
+ },
+ {
+ "key": "mongolia",
+ "value": "๐ฒ๐ณ"
+ },
+ {
+ "key": "montenegro",
+ "value": "๐ฒ๐ช"
+ },
+ {
+ "key": "montserrat",
+ "value": "๐ฒ๐ธ"
+ },
+ {
+ "key": "morocco",
+ "value": "๐ฒ๐ฆ"
+ },
+ {
+ "key": "mozambique",
+ "value": "๐ฒ๐ฟ"
+ },
+ {
+ "key": "myanmar_burma",
+ "value": "๐ฒ๐ฒ"
+ },
+ {
+ "key": "namibia",
+ "value": "๐ณ๐ฆ"
+ },
+ {
+ "key": "nauru",
+ "value": "๐ณ๐ท"
+ },
+ {
+ "key": "nepal",
+ "value": "๐ณ๐ต"
+ },
+ {
+ "key": "netherlands",
+ "value": "๐ณ๐ฑ"
+ },
+ {
+ "key": "new_caledonia",
+ "value": "๐ณ๐จ"
+ },
+ {
+ "key": "new_zealand",
+ "value": "๐ณ๐ฟ"
+ },
+ {
+ "key": "nicaragua",
+ "value": "๐ณ๐ฎ"
+ },
+ {
+ "key": "niger",
+ "value": "๐ณ๐ช"
+ },
+ {
+ "key": "nigeria",
+ "value": "๐ณ๐ฌ"
+ },
+ {
+ "key": "niue",
+ "value": "๐ณ๐บ"
+ },
+ {
+ "key": "norfolk_island",
+ "value": "๐ณ๐ซ"
+ },
+ {
+ "key": "northern_mariana_islands",
+ "value": "๐ฒ๐ต"
+ },
+ {
+ "key": "north_korea",
+ "value": "๐ฐ๐ต"
+ },
+ {
+ "key": "norway",
+ "value": "๐ณ๐ด"
+ },
+ {
+ "key": "oman",
+ "value": "๐ด๐ฒ"
+ },
+ {
+ "key": "pakistan",
+ "value": "๐ต๐ฐ"
+ },
+ {
+ "key": "palau",
+ "value": "๐ต๐ผ"
+ },
+ {
+ "key": "palestinian_territories",
+ "value": "๐ต๐ธ"
+ },
+ {
+ "key": "panama",
+ "value": "๐ต๐ฆ"
+ },
+ {
+ "key": "papua_new_guinea",
+ "value": "๐ต๐ฌ"
+ },
+ {
+ "key": "paraguay",
+ "value": "๐ต๐พ"
+ },
+ {
+ "key": "peru",
+ "value": "๐ต๐ช"
+ },
+ {
+ "key": "philippines",
+ "value": "๐ต๐ญ"
+ },
+ {
+ "key": "pitcairn_islands",
+ "value": "๐ต๐ณ"
+ },
+ {
+ "key": "poland",
+ "value": "๐ต๐ฑ"
+ },
+ {
+ "key": "portugal",
+ "value": "๐ต๐น"
+ },
+ {
+ "key": "puerto_rico",
+ "value": "๐ต๐ท"
+ },
+ {
+ "key": "qatar",
+ "value": "๐ถ๐ฆ"
+ },
+ {
+ "key": "reunion",
+ "value": "๐ท๐ช"
+ },
+ {
+ "key": "romania",
+ "value": "๐ท๐ด"
+ },
+ {
+ "key": "russia",
+ "value": "๐ท๐บ"
+ },
+ {
+ "key": "rwanda",
+ "value": "๐ท๐ผ"
+ },
+ {
+ "key": "saint_barthlemy",
+ "value": "๐ง๐ฑ"
+ },
+ {
+ "key": "saint_helena",
+ "value": "๐ธ๐ญ"
+ },
+ {
+ "key": "saint_kitts_and_nevis",
+ "value": "๐ฐ๐ณ"
+ },
+ {
+ "key": "saint_lucia",
+ "value": "๐ฑ๐จ"
+ },
+ {
+ "key": "saint_pierre_and_miquelon",
+ "value": "๐ต๐ฒ"
+ },
+ {
+ "key": "st_vincent_grenadines",
+ "value": "๐ป๐จ"
+ },
+ {
+ "key": "samoa",
+ "value": "๐ผ๐ธ"
+ },
+ {
+ "key": "san_marino",
+ "value": "๐ธ๐ฒ"
+ },
+ {
+ "key": "sotom_and_prncipe",
+ "value": "๐ธ๐น"
+ },
+ {
+ "key": "saudi_arabia",
+ "value": "๐ธ๐ฆ"
+ },
+ {
+ "key": "senegal",
+ "value": "๐ธ๐ณ"
+ },
+ {
+ "key": "serbia",
+ "value": "๐ท๐ธ"
+ },
+ {
+ "key": "seychelles",
+ "value": "๐ธ๐จ"
+ },
+ {
+ "key": "sierra_leone",
+ "value": "๐ธ๐ฑ"
+ },
+ {
+ "key": "singapore",
+ "value": "๐ธ๐ฌ"
+ },
+ {
+ "key": "sint_maarten",
+ "value": "๐ธ๐ฝ"
+ },
+ {
+ "key": "slovakia",
+ "value": "๐ธ๐ฐ"
+ },
+ {
+ "key": "slovenia",
+ "value": "๐ธ๐ฎ"
+ },
+ {
+ "key": "solomon_islands",
+ "value": "๐ธ๐ง"
+ },
+ {
+ "key": "somalia",
+ "value": "๐ธ๐ด"
+ },
+ {
+ "key": "south_africa",
+ "value": "๐ฟ๐ฆ"
+ },
+ {
+ "key": "south_georgia_south_sandwich_islands",
+ "value": "๐ฌ๐ธ"
+ },
+ {
+ "key": "south_korea",
+ "value": "๐ฐ๐ท"
+ },
+ {
+ "key": "south_sudan",
+ "value": "๐ธ๐ธ"
+ },
+ {
+ "key": "spain",
+ "value": "๐ช๐ธ"
+ },
+ {
+ "key": "sri_lanka",
+ "value": "๐ฑ๐ฐ"
+ },
+ {
+ "key": "sudan",
+ "value": "๐ธ๐ฉ"
+ },
+ {
+ "key": "suriname",
+ "value": "๐ธ๐ท"
+ },
+ {
+ "key": "swaziland",
+ "value": "๐ธ๐ฟ"
+ },
+ {
+ "key": "sweden",
+ "value": "๐ธ๐ช"
+ },
+ {
+ "key": "switzerland",
+ "value": "๐จ๐ญ"
+ },
+ {
+ "key": "syria",
+ "value": "๐ธ๐พ"
+ },
+ {
+ "key": "taiwan",
+ "value": "๐น๐ผ"
+ },
+ {
+ "key": "tajikistan",
+ "value": "๐น๐ฏ"
+ },
+ {
+ "key": "tanzania",
+ "value": "๐น๐ฟ"
+ },
+ {
+ "key": "thailand",
+ "value": "๐น๐ญ"
+ },
+ {
+ "key": "timorleste",
+ "value": "๐น๐ฑ"
+ },
+ {
+ "key": "togo",
+ "value": "๐น๐ฌ"
+ },
+ {
+ "key": "tokelau",
+ "value": "๐น๐ฐ"
+ },
+ {
+ "key": "tonga",
+ "value": "๐น๐ด"
+ },
+ {
+ "key": "trinidad_and_tobago",
+ "value": "๐น๐น"
+ },
+ {
+ "key": "tunisia",
+ "value": "๐น๐ณ"
+ },
+ {
+ "key": "turkey",
+ "value": "๐น๐ท"
+ },
+ {
+ "key": "turkmenistan",
+ "value": "๐น๐ฒ"
+ },
+ {
+ "key": "turks_and_caicos_islands",
+ "value": "๐น๐จ"
+ },
+ {
+ "key": "tuvalu",
+ "value": "๐น๐ป"
+ },
+ {
+ "key": "uganda",
+ "value": "๐บ๐ฌ"
+ },
+ {
+ "key": "ukraine",
+ "value": "๐บ๐ฆ"
+ },
+ {
+ "key": "united_arab_emirates",
+ "value": "๐ฆ๐ช"
+ },
+ {
+ "key": "united_kingdom",
+ "value": "๐ฌ๐ง"
+ },
+ {
+ "key": "united_states",
+ "value": "๐บ๐ธ"
+ },
+ {
+ "key": "us_virgin_islands",
+ "value": "๐ป๐ฎ"
+ },
+ {
+ "key": "uruguay",
+ "value": "๐บ๐พ"
+ },
+ {
+ "key": "uzbekistan",
+ "value": "๐บ๐ฟ"
+ },
+ {
+ "key": "vanuatu",
+ "value": "๐ป๐บ"
+ },
+ {
+ "key": "vatican_city",
+ "value": "๐ป๐ฆ"
+ },
+ {
+ "key": "venezuela",
+ "value": "๐ป๐ช"
+ },
+ {
+ "key": "vietnam",
+ "value": "๐ป๐ณ"
+ },
+ {
+ "key": "wallis_and_futuna",
+ "value": "๐ผ๐ซ"
+ },
+ {
+ "key": "western_sahara",
+ "value": "๐ช๐ญ"
+ },
+ {
+ "key": "yemen",
+ "value": "๐พ๐ช"
+ },
+ {
+ "key": "zambia",
+ "value": "๐ฟ๐ฒ"
+ },
+ {
+ "key": "zimbabwe",
+ "value": "๐ฟ๐ผ"
+ },
+ {
+ "key": "england",
+ "value": "๐ฝ๐ช"
+ }
+ ]
+ }
+}
\ No newline at end of file diff --git a/nikola/plugins/shortcode/emoji/data/Food.json b/nikola/plugins/shortcode/emoji/data/Food.json new file mode 100644 index 0000000..c755a20 --- /dev/null +++ b/nikola/plugins/shortcode/emoji/data/Food.json @@ -0,0 +1,274 @@ +{ + "foods": { + "food": [ + { + "key": "green_apple", + "value": "๐" + }, + { + "key": "red_apple", + "value": "๐" + }, + { + "key": "pear", + "value": "๐" + }, + { + "key": "tangerine", + "value": "๐" + }, + { + "key": "lemon", + "value": "๐" + }, + { + "key": "banana", + "value": "๐" + }, + { + "key": "watermelon", + "value": "๐" + }, + { + "key": "grapes", + "value": "๐" + }, + { + "key": "strawberry", + "value": "๐" + }, + { + "key": "melon", + "value": "๐" + }, + { + "key": "cherry", + "value": "๐" + }, + { + "key": "peach", + "value": "๐" + }, + { + "key": "pineapple", + "value": "๐" + }, + { + "key": "tomato", + "value": "๐
" + }, + { + "key": "egg_plant", + "value": "๐" + }, + { + "key": "hot_pepper", + "value": "๐ถ" + }, + { + "key": "ear_of_maize", + "value": "๐ฝ" + }, + { + "key": "roasted_sweet_potato", + "value": "๐ " + }, + { + "key": "honey_pot", + "value": "๐ฏ" + }, + { + "key": "bread", + "value": "๐" + }, + { + "key": "cheese", + "value": "๐ง" + }, + { + "key": "poultry_leg", + "value": "๐" + }, + { + "key": "meat_on_bone", + "value": "๐" + }, + { + "key": "fried_shrimp", + "value": "๐ค" + }, + { + "key": "cooking", + "value": "๐ณ" + }, + { + "key": "hamburger", + "value": "๐" + }, + { + "key": "french_fries", + "value": "๐" + }, + { + "key": "hot_dog", + "value": "๐ญ" + }, + { + "key": "slice_of_pizza", + "value": "๐" + }, + { + "key": "spaghetti", + "value": "๐" + }, + { + "key": "taco", + "value": "๐ฎ" + }, + { + "key": "burrito", + "value": "๐ฏ" + }, + { + "key": "steaming_bowl", + "value": "๐" + }, + { + "key": "pot_of_food", + "value": "๐ฒ" + }, + { + "key": "fish_cake", + "value": "๐ฅ" + }, + { + "key": "sushi", + "value": "๐ฃ" + }, + { + "key": "bento_box", + "value": "๐ฑ" + }, + { + "key": "curry_and_rice", + "value": "๐" + }, + { + "key": "rice_ball", + "value": "๐" + }, + { + "key": "cooked_rice", + "value": "๐" + }, + { + "key": "rice_cracker", + "value": "๐" + }, + { + "key": "oden", + "value": "๐ข" + }, + { + "key": "dango", + "value": "๐ก" + }, + { + "key": "shaved_ice", + "value": "๐ง" + }, + { + "key": "ice_cream", + "value": "๐จ" + }, + { + "key": "soft_ice_cream", + "value": "๐ฆ" + }, + { + "key": "short_cake", + "value": "๐ฐ" + }, + { + "key": "birthday_cake", + "value": "๐" + }, + { + "key": "custard", + "value": "๐ฎ" + }, + { + "key": "candy", + "value": "๐ฌ" + }, + { + "key": "lollipop", + "value": "๐ญ" + }, + { + "key": "chocolate_bar", + "value": "๐ซ" + }, + { + "key": "popcorn", + "value": "๐ฟ" + }, + { + "key": "doughnut", + "value": "๐ฉ" + }, + { + "key": "cookie", + "value": "๐ช" + }, + { + "key": "bear_mug", + "value": "๐บ" + }, + { + "key": "clinking_beer_mugs", + "value": "๐ป" + }, + { + "key": "wine_glass", + "value": "๐ท" + }, + { + "key": "cocktail_glass", + "value": "๐ธ" + }, + { + "key": "tropical_drink", + "value": "๐น" + }, + { + "key": "bottle_with_popping_cork", + "value": "๐พ" + }, + { + "key": "sake_bottle_and_cup", + "value": "๐ถ" + }, + { + "key": "tea_cup_without_handle", + "value": "๐ต" + }, + { + "key": "hot_beverage", + "value": "โ" + }, + { + "key": "baby_bottle", + "value": "๐ผ" + }, + { + "key": "fork_and_knife", + "value": "๐ด" + }, + { + "key": "fork_and_knife_with_plate", + "value": "๐ฝ" + } + ] + } +}
\ No newline at end of file diff --git a/nikola/plugins/shortcode/emoji/data/LICENSE b/nikola/plugins/shortcode/emoji/data/LICENSE new file mode 100644 index 0000000..c7bf1f4 --- /dev/null +++ b/nikola/plugins/shortcode/emoji/data/LICENSE @@ -0,0 +1,25 @@ +The MIT License (MIT) + +Copyright (c) 2016 -2017 Shayan Rais + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +------------ + +Copied from https://github.com/shanraisshan/EmojiCodeSheet diff --git a/nikola/plugins/shortcode/emoji/data/Nature.json b/nikola/plugins/shortcode/emoji/data/Nature.json new file mode 100644 index 0000000..f845a64 --- /dev/null +++ b/nikola/plugins/shortcode/emoji/data/Nature.json @@ -0,0 +1,594 @@ +{
+ "natures": {
+ "nature": [
+ {
+ "key": "dog_face",
+ "value": "๐ถ"
+ },
+ {
+ "key": "cat_face",
+ "value": "๐ฑ"
+ },
+ {
+ "key": "mouse_face",
+ "value": "๐ญ"
+ },
+ {
+ "key": "hamster_face",
+ "value": "๐น"
+ },
+ {
+ "key": "rabbit_face",
+ "value": "๐ฐ"
+ },
+ {
+ "key": "bear_face",
+ "value": "๐ป"
+ },
+ {
+ "key": "panda_face",
+ "value": "๐ผ"
+ },
+ {
+ "key": "koala_face",
+ "value": "๐จ"
+ },
+ {
+ "key": "lion_face",
+ "value": "๐ฆ"
+ },
+ {
+ "key": "cow_face",
+ "value": "๐ฎ"
+ },
+ {
+ "key": "pig_face",
+ "value": "๐ท"
+ },
+ {
+ "key": "pig_nose",
+ "value": "๐ฝ"
+ },
+ {
+ "key": "frog_face",
+ "value": "๐ธ"
+ },
+ {
+ "key": "octopus",
+ "value": "๐"
+ },
+ {
+ "key": "monkey_face",
+ "value": "๐ต"
+ },
+ {
+ "key": "tiger_face",
+ "value": "๐ฏ"
+ },
+ {
+ "key": "see_no_evil_monkey",
+ "value": "๐"
+ },
+ {
+ "key": "hear_no_evil_monkey",
+ "value": "๐"
+ },
+ {
+ "key": "speak_no_evil_monkey",
+ "value": "๐"
+ },
+ {
+ "key": "monkey",
+ "value": "๐"
+ },
+ {
+ "key": "chicken",
+ "value": "๐"
+ },
+ {
+ "key": "penguin",
+ "value": "๐ง"
+ },
+ {
+ "key": "bird",
+ "value": "๐ฆ"
+ },
+ {
+ "key": "baby_chick",
+ "value": "๐ค"
+ },
+ {
+ "key": "hatching_chick",
+ "value": "๐ฃ"
+ },
+ {
+ "key": "front_face_chick",
+ "value": "๐ฅ"
+ },
+ {
+ "key": "wolf_face",
+ "value": "๐บ"
+ },
+ {
+ "key": "boar",
+ "value": "๐"
+ },
+ {
+ "key": "horse_face",
+ "value": "๐ด"
+ },
+ {
+ "key": "unicorn_face",
+ "value": "๐ฆ"
+ },
+ {
+ "key": "honey_bee",
+ "value": "๐"
+ },
+ {
+ "key": "bug",
+ "value": "๐"
+ },
+ {
+ "key": "snail",
+ "value": "๐"
+ },
+ {
+ "key": "lady_beetle",
+ "value": "๐"
+ },
+ {
+ "key": "ant",
+ "value": "๐"
+ },
+ {
+ "key": "spider",
+ "value": "๐ท"
+ },
+ {
+ "key": "scorpion",
+ "value": "๐ฆ"
+ },
+ {
+ "key": "crab",
+ "value": "๐ฆ"
+ },
+ {
+ "key": "snake",
+ "value": "๐"
+ },
+ {
+ "key": "turtle",
+ "value": "๐ข"
+ },
+ {
+ "key": "tropical_fish",
+ "value": "๐ "
+ },
+ {
+ "key": "fish",
+ "value": "๐"
+ },
+ {
+ "key": "blow_fish",
+ "value": "๐ก"
+ },
+ {
+ "key": "dolphin",
+ "value": "๐ฌ"
+ },
+ {
+ "key": "spouting_whale",
+ "value": "๐ณ"
+ },
+ {
+ "key": "whale",
+ "value": "๐"
+ },
+ {
+ "key": "crocodile",
+ "value": "๐"
+ },
+ {
+ "key": "leopard",
+ "value": "๐"
+ },
+ {
+ "key": "tiger",
+ "value": "๐
"
+ },
+ {
+ "key": "water_buffalo",
+ "value": "๐"
+ },
+ {
+ "key": "ox",
+ "value": "๐"
+ },
+ {
+ "key": "cow",
+ "value": "๐"
+ },
+ {
+ "key": "dromedary_camel",
+ "value": "๐ช"
+ },
+ {
+ "key": "bactrian_camel",
+ "value": "๐ซ"
+ },
+ {
+ "key": "elephant",
+ "value": "๐"
+ },
+ {
+ "key": "goat",
+ "value": "๐"
+ },
+ {
+ "key": "ram",
+ "value": "๐"
+ },
+ {
+ "key": "sheep",
+ "value": "๐"
+ },
+ {
+ "key": "horse",
+ "value": "๐"
+ },
+ {
+ "key": "pig",
+ "value": "๐"
+ },
+ {
+ "key": "rat",
+ "value": "๐"
+ },
+ {
+ "key": "mouse",
+ "value": "๐"
+ },
+ {
+ "key": "rooster",
+ "value": "๐"
+ },
+ {
+ "key": "turkey",
+ "value": "๐ฆ"
+ },
+ {
+ "key": "dove",
+ "value": "๐"
+ },
+ {
+ "key": "dog",
+ "value": "๐"
+ },
+ {
+ "key": "poodle",
+ "value": "๐ฉ"
+ },
+ {
+ "key": "cat",
+ "value": "๐"
+ },
+ {
+ "key": "rabbit",
+ "value": "๐"
+ },
+ {
+ "key": "chipmunk",
+ "value": "๐ฟ"
+ },
+ {
+ "key": "paw_prints",
+ "value": "๐พ"
+ },
+ {
+ "key": "dragon",
+ "value": "๐"
+ },
+ {
+ "key": "dragon_face",
+ "value": "๐ฒ"
+ },
+ {
+ "key": "cactus",
+ "value": "๐ต"
+ },
+ {
+ "key": "christmas_tree",
+ "value": "๐"
+ },
+ {
+ "key": "ever_green_tree",
+ "value": "๐ฒ"
+ },
+ {
+ "key": "deciduous_tree",
+ "value": "๐ณ"
+ },
+ {
+ "key": "palm_tree",
+ "value": "๐ด"
+ },
+ {
+ "key": "seedling",
+ "value": "๐ฑ"
+ },
+ {
+ "key": "herb",
+ "value": "๐ฟ"
+ },
+ {
+ "key": "shamrock",
+ "value": "โ"
+ },
+ {
+ "key": "four_leaf",
+ "value": "๐"
+ },
+ {
+ "key": "pine_decoration",
+ "value": "๐"
+ },
+ {
+ "key": "tanabata_tree",
+ "value": "๐"
+ },
+ {
+ "key": "leaf_wind",
+ "value": "๐"
+ },
+ {
+ "key": "fallen_leaf",
+ "value": "๐"
+ },
+ {
+ "key": "maple_leaf",
+ "value": "๐"
+ },
+ {
+ "key": "ear_of_rice",
+ "value": "๐พ"
+ },
+ {
+ "key": "hibiscus",
+ "value": "๐บ"
+ },
+ {
+ "key": "sunflower",
+ "value": "๐ป"
+ },
+ {
+ "key": "rose",
+ "value": "๐น"
+ },
+ {
+ "key": "tulip",
+ "value": "๐ท"
+ },
+ {
+ "key": "blossom",
+ "value": "๐ผ"
+ },
+ {
+ "key": "cherry_blossom",
+ "value": "๐ธ"
+ },
+ {
+ "key": "bouquet",
+ "value": "๐"
+ },
+ {
+ "key": "mushroom",
+ "value": "๐"
+ },
+ {
+ "key": "chestnut",
+ "value": "๐ฐ"
+ },
+ {
+ "key": "jack_o_lantern",
+ "value": "๐"
+ },
+ {
+ "key": "spiral_shell",
+ "value": "๐"
+ },
+ {
+ "key": "spider_web",
+ "value": "๐ธ"
+ },
+ {
+ "key": "earth_america",
+ "value": "๐"
+ },
+ {
+ "key": "earth_europe",
+ "value": "๐"
+ },
+ {
+ "key": "earth_australia",
+ "value": "๐"
+ },
+ {
+ "key": "full_moon",
+ "value": "๐"
+ },
+ {
+ "key": "waning_gibbous_moon",
+ "value": "๐"
+ },
+ {
+ "key": "last_quarter_moon",
+ "value": "๐"
+ },
+ {
+ "key": "waning_crescent_moon",
+ "value": "๐"
+ },
+ {
+ "key": "new_moon_symbol",
+ "value": "๐"
+ },
+ {
+ "key": "waxing_crescent_moon",
+ "value": "๐"
+ },
+ {
+ "key": "first_quarter_moon",
+ "value": "๐"
+ },
+ {
+ "key": "waxing_gibbous_moon",
+ "value": "๐"
+ },
+ {
+ "key": "new_moon_with_face",
+ "value": "๐"
+ },
+ {
+ "key": "full_moon_face",
+ "value": "๐"
+ },
+ {
+ "key": "first_quarter_moon_face",
+ "value": "๐"
+ },
+ {
+ "key": "last_quarter_moon_face",
+ "value": "๐"
+ },
+ {
+ "key": "sun_face",
+ "value": "๐"
+ },
+ {
+ "key": "crescent_moon",
+ "value": "๐"
+ },
+ {
+ "key": "white_star",
+ "value": "โญ"
+ },
+ {
+ "key": "glowing_star",
+ "value": "๐"
+ },
+ {
+ "key": "dizzy_symbol",
+ "value": "๐ซ"
+ },
+ {
+ "key": "sparkles",
+ "value": "โจ"
+ },
+ {
+ "key": "comet",
+ "value": "โ"
+ },
+ {
+ "key": "black_sun_with_rays",
+ "value": "โ"
+ },
+ {
+ "key": "white_sun_small_cloud",
+ "value": "๐ค"
+ },
+ {
+ "key": "sun_behind_cloud",
+ "value": "โ
"
+ },
+ {
+ "key": "white_sun_behind_cloud",
+ "value": "๐ฅ"
+ },
+ {
+ "key": "white_sun_behind_cloud_rain",
+ "value": "๐ฆ"
+ },
+ {
+ "key": "cloud",
+ "value": "โ"
+ },
+ {
+ "key": "cloud_with_rain",
+ "value": "๐ง"
+ },
+ {
+ "key": "thunder_cloud_rain",
+ "value": "โ"
+ },
+ {
+ "key": "cloud_lightening",
+ "value": "๐ฉ"
+ },
+ {
+ "key": "high_voltage",
+ "value": "โก"
+ },
+ {
+ "key": "fire",
+ "value": "๐ฅ"
+ },
+ {
+ "key": "collision",
+ "value": "๐ฅ"
+ },
+ {
+ "key": "snow_flake",
+ "value": "โ"
+ },
+ {
+ "key": "cloud_with_snow",
+ "value": "๐จ"
+ },
+ {
+ "key": "snowman",
+ "value": "โ"
+ },
+ {
+ "key": "snowman_without_snow",
+ "value": "โ"
+ },
+ {
+ "key": "wind_blowing_face",
+ "value": "๐ฌ"
+ },
+ {
+ "key": "dash_symbol",
+ "value": "๐จ"
+ },
+ {
+ "key": "cloud_with_tornado",
+ "value": "๐ช"
+ },
+ {
+ "key": "fog",
+ "value": "๐ซ"
+ },
+ {
+ "key": "umbrella",
+ "value": "โ"
+ },
+ {
+ "key": "umbrella_with_rain_drops",
+ "value": "โ"
+ },
+ {
+ "key": "droplet",
+ "value": "๐ง"
+ },
+ {
+ "key": "splashing_sweat",
+ "value": "๐ฆ"
+ },
+ {
+ "key": "water_wave",
+ "value": "๐"
+ }
+ ]
+ }
+}
\ No newline at end of file diff --git a/nikola/plugins/shortcode/emoji/data/Objects.json b/nikola/plugins/shortcode/emoji/data/Objects.json new file mode 100644 index 0000000..5f13056 --- /dev/null +++ b/nikola/plugins/shortcode/emoji/data/Objects.json @@ -0,0 +1,718 @@ +{ + "objects": { + "object": [ + { + "key": "watch", + "value": "โ" + }, + { + "key": "mobile_phone", + "value": "๐ฑ" + }, + { + "key": "mobile_phone_with_right_arrow", + "value": "๐ฒ" + }, + { + "key": "personal_computer", + "value": "๐ป" + }, + { + "key": "keyboard", + "value": "โจ" + }, + { + "key": "desktop_computer", + "value": "๐ฅ" + }, + { + "key": "printer", + "value": "๐จ" + }, + { + "key": "three_button_mouse", + "value": "๐ฑ" + }, + { + "key": "track_ball", + "value": "๐ฒ" + }, + { + "key": "joystick", + "value": "๐น" + }, + { + "key": "compression", + "value": "๐" + }, + { + "key": "mini_disc", + "value": "๐ฝ" + }, + { + "key": "floppy_disk", + "value": "๐พ" + }, + { + "key": "optical_disc", + "value": "๐ฟ" + }, + { + "key": "dvd", + "value": "๐" + }, + { + "key": "video_cassette", + "value": "๐ผ" + }, + { + "key": "camera", + "value": "๐ท" + }, + { + "key": "camera_with_flash", + "value": "๐ธ" + }, + { + "key": "video_camera", + "value": "๐น" + }, + { + "key": "movie_camera", + "value": "๐ฅ" + }, + { + "key": "film_projector", + "value": "๐ฝ" + }, + { + "key": "film_frames", + "value": "๐" + }, + { + "key": "telephone_receiver", + "value": "๐" + }, + { + "key": "black_telephone", + "value": "โ" + }, + { + "key": "pager", + "value": "๐" + }, + { + "key": "fax_machine", + "value": "๐ " + }, + { + "key": "television", + "value": "๐บ" + }, + { + "key": "radio", + "value": "๐ป" + }, + { + "key": "studio_microphone", + "value": "๐" + }, + { + "key": "level_slider", + "value": "๐" + }, + { + "key": "control_knobs", + "value": "๐" + }, + { + "key": "stop_watch", + "value": "โฑ" + }, + { + "key": "timer_clock", + "value": "โฒ" + }, + { + "key": "alarm_clock", + "value": "โฐ" + }, + { + "key": "mantel_piece_clock", + "value": "๐ฐ" + }, + { + "key": "hour_glass_with_flowing_stand", + "value": "โณ" + }, + { + "key": "hour_glass", + "value": "โ" + }, + { + "key": "satellite_antenna", + "value": "๐ก" + }, + { + "key": "battery", + "value": "๐" + }, + { + "key": "electric_plug", + "value": "๐" + }, + { + "key": "electric_light_bulb", + "value": "๐ก" + }, + { + "key": "electric_torch", + "value": "๐ฆ" + }, + { + "key": "candle", + "value": "๐ฏ" + }, + { + "key": "waste_basket", + "value": "๐" + }, + { + "key": "oil_drum", + "value": "๐ข" + }, + { + "key": "money_with_wings", + "value": "๐ธ" + }, + { + "key": "bank_note_with_dollar_sign", + "value": "๐ต" + }, + { + "key": "bank_note_with_yen_sign", + "value": "๐ด" + }, + { + "key": "bank_note_with_euro_sign", + "value": "๐ถ" + }, + { + "key": "bank_note_with_pounds_sign", + "value": "๐ท" + }, + { + "key": "money_bag", + "value": "๐ฐ" + }, + { + "key": "credit_card", + "value": "๐ณ" + }, + { + "key": "gem_stone", + "value": "๐" + }, + { + "key": "scales", + "value": "โ" + }, + { + "key": "wrench", + "value": "๐ง" + }, + { + "key": "hammer", + "value": "๐จ" + }, + { + "key": "hammer_and_pick", + "value": "โ" + }, + { + "key": "hammer_and_wrench", + "value": "๐ " + }, + { + "key": "pick", + "value": "โ" + }, + { + "key": "nut_and_bolt", + "value": "๐ฉ" + }, + { + "key": "gear", + "value": "โ" + }, + { + "key": "chains", + "value": "โ" + }, + { + "key": "pistol", + "value": "๐ซ" + }, + { + "key": "bomb", + "value": "๐ฃ" + }, + { + "key": "hocho", + "value": "๐ช" + }, + { + "key": "dagger_knife", + "value": "๐ก" + }, + { + "key": "crossed_words", + "value": "โ" + }, + { + "key": "shield", + "value": "๐ก" + }, + { + "key": "smoking_symbol", + "value": "๐ฌ" + }, + { + "key": "skull_and_cross_bones", + "value": "โ " + }, + { + "key": "coffin", + "value": "โฐ" + }, + { + "key": "funeral_urn", + "value": "โฑ" + }, + { + "key": "amphora", + "value": "๐บ" + }, + { + "key": "crystal_ball", + "value": "๐ฎ" + }, + { + "key": "prayer_beads", + "value": "๐ฟ" + }, + { + "key": "barber_pole", + "value": "๐" + }, + { + "key": "alembic", + "value": "โ" + }, + { + "key": "telescope", + "value": "๐ญ" + }, + { + "key": "microscope", + "value": "๐ฌ" + }, + { + "key": "hole", + "value": "๐ณ" + }, + { + "key": "pill", + "value": "๐" + }, + { + "key": "syringe", + "value": "๐" + }, + { + "key": "thermometer", + "value": "๐ก" + }, + { + "key": "label", + "value": "๐ท" + }, + { + "key": "bookmark", + "value": "๐" + }, + { + "key": "toilet", + "value": "๐ฝ" + }, + { + "key": "shower", + "value": "๐ฟ" + }, + { + "key": "bath_tub", + "value": "๐" + }, + { + "key": "key", + "value": "๐" + }, + { + "key": "old_key", + "value": "๐" + }, + { + "key": "couch_and_lamp", + "value": "๐" + }, + { + "key": "sleeping_accommodation", + "value": "๐" + }, + { + "key": "bed", + "value": "๐" + }, + { + "key": "door", + "value": "๐ช" + }, + { + "key": "bell_hop_bell", + "value": "๐" + }, + { + "key": "frame_with_picture", + "value": "๐ผ" + }, + { + "key": "world_map", + "value": "๐บ" + }, + { + "key": "umbrella_on_ground", + "value": "โฑ" + }, + { + "key": "moyai", + "value": "๐ฟ" + }, + { + "key": "shopping_bags", + "value": "๐" + }, + { + "key": "balloon", + "value": "๐" + }, + { + "key": "carp_streamer", + "value": "๐" + }, + { + "key": "ribbon", + "value": "๐" + }, + { + "key": "wrapped_present", + "value": "๐" + }, + { + "key": "confetti_ball", + "value": "๐" + }, + { + "key": "party_popper", + "value": "๐" + }, + { + "key": "japanese_dolls", + "value": "๐" + }, + { + "key": "wind_chime", + "value": "๐" + }, + { + "key": "crossed_flags", + "value": "๐" + }, + { + "key": "izakaya_lantern", + "value": "๐ฎ" + }, + { + "key": "envelope", + "value": "โ" + }, + { + "key": "envelope_with_down_arrow", + "value": "๐ฉ" + }, + { + "key": "incoming_envelope", + "value": "๐จ" + }, + { + "key": "email_symbol", + "value": "๐ง" + }, + { + "key": "love_letter", + "value": "๐" + }, + { + "key": "post_box", + "value": "๐ฎ" + }, + { + "key": "closed_mail_box_with_lowered_flag", + "value": "๐ช" + }, + { + "key": "closed_mail_box_with_raised_flag", + "value": "๐ซ" + }, + { + "key": "open_mail_box_with_raised_flag", + "value": "๐ฌ" + }, + { + "key": "open_mail_box_with_lowered_flag", + "value": "๐ญ" + }, + { + "key": "package", + "value": "๐ฆ" + }, + { + "key": "postal_horn", + "value": "๐ฏ" + }, + { + "key": "inbox_tray", + "value": "๐ฅ" + }, + { + "key": "outbox_tray", + "value": "๐ค" + }, + { + "key": "scroll", + "value": "๐" + }, + { + "key": "page_with_curl", + "value": "๐" + }, + { + "key": "bookmark_tabs", + "value": "๐" + }, + { + "key": "bar_chart", + "value": "๐" + }, + { + "key": "chart_with_upwards_trend", + "value": "๐" + }, + { + "key": "chart_with_downwards_trend", + "value": "๐" + }, + { + "key": "page_facing_up", + "value": "๐" + }, + { + "key": "calender", + "value": "๐
" + }, + { + "key": "tear_off_calendar", + "value": "๐" + }, + { + "key": "spiral_calendar_pad", + "value": "๐" + }, + { + "key": "card_index", + "value": "๐" + }, + { + "key": "card_file_box", + "value": "๐" + }, + { + "key": "ballot_box_with_ballot", + "value": "๐ณ" + }, + { + "key": "file_cabinet", + "value": "๐" + }, + { + "key": "clip_board", + "value": "๐" + }, + { + "key": "spiral_notepad", + "value": "๐" + }, + { + "key": "file_folder", + "value": "๐" + }, + { + "key": "open_file_folder", + "value": "๐" + }, + { + "key": "card_index_dividers", + "value": "๐" + }, + { + "key": "rolled_up_newspaper", + "value": "๐" + }, + { + "key": "newspaper", + "value": "๐ฐ" + }, + { + "key": "notebook", + "value": "๐" + }, + { + "key": "closed_book", + "value": "๐" + }, + { + "key": "green_book", + "value": "๐" + }, + { + "key": "blue_book", + "value": "๐" + }, + { + "key": "orange_book", + "value": "๐" + }, + { + "key": "notebook_with_decorative_cover", + "value": "๐" + }, + { + "key": "ledger", + "value": "๐" + }, + { + "key": "books", + "value": "๐" + }, + { + "key": "open_book", + "value": "๐" + }, + { + "key": "link_symbol", + "value": "๐" + }, + { + "key": "paper_clip", + "value": "๐" + }, + { + "key": "linked_paper_clips", + "value": "๐" + }, + { + "key": "black_scissors", + "value": "โ" + }, + { + "key": "triangular_ruler", + "value": "๐" + }, + { + "key": "straight_ruler", + "value": "๐" + }, + { + "key": "pushpin", + "value": "๐" + }, + { + "key": "round_pushpin", + "value": "๐" + }, + { + "key": "triangular_flag_post", + "value": "๐ฉ" + }, + { + "key": "waving_white_flag", + "value": "๐ณ" + }, + { + "key": "waving_black_flag", + "value": "๐ด" + }, + { + "key": "closed_lock_with_key", + "value": "๐" + }, + { + "key": "lock", + "value": "๐" + }, + { + "key": "open_lock", + "value": "๐" + }, + { + "key": "lock_with_ink_pen", + "value": "๐" + }, + { + "key": "lower_left_ball_point_pen", + "value": "๐" + }, + { + "key": "lower_left_fountain_pen", + "value": "๐" + }, + { + "key": "black_nib", + "value": "โ" + }, + { + "key": "memo", + "value": "๐" + }, + { + "key": "pencil", + "value": "โ" + }, + { + "key": "lower_left_crayon", + "value": "๐" + }, + { + "key": "lower_left_paint_brush", + "value": "๐" + }, + { + "key": "left_pointing_magnifying_glass", + "value": "๐" + }, + { + "key": "right_pointing_magnifying_glass", + "value": "๐" + } + ] + } +}
\ No newline at end of file diff --git a/nikola/plugins/shortcode/emoji/data/People.json b/nikola/plugins/shortcode/emoji/data/People.json new file mode 100644 index 0000000..a5fb88f --- /dev/null +++ b/nikola/plugins/shortcode/emoji/data/People.json @@ -0,0 +1,1922 @@ +{ + "peoples": { + "people": [ + { + "key": "grinning_face", + "value": "๐" + }, + { + "key": "grimacing_face", + "value": "๐ฌ" + }, + { + "key": "grimacing_face_with_smile_eyes", + "value": "๐" + }, + { + "key": "face_with_tear_of_joy", + "value": "๐" + }, + { + "key": "smiling_face_with_open_mouth", + "value": "๐" + }, + { + "key": "smiling_face_with_open_mouth_eyes", + "value": "๐" + }, + { + "key": "smiling_face_with_open_mouth_cold_sweat", + "value": "๐
" + }, + { + "key": "smiling_face_with_open_mouth_hand_tight", + "value": "๐" + }, + { + "key": "smiling_face_with_halo", + "value": "๐" + }, + { + "key": "winking_face", + "value": "๐" + }, + { + "key": "black_smiling_face", + "value": "๐" + }, + { + "key": "slightly_smiling_face", + "value": "๐" + }, + { + "key": "upside_down_face", + "value": "๐" + }, + { + "key": "white_smiling_face", + "value": "โบ" + }, + { + "key": "face_savouring_delicious_food", + "value": "๐" + }, + { + "key": "relieved_face", + "value": "๐" + }, + { + "key": "smiling_face_heart_eyes", + "value": "๐" + }, + { + "key": "face_throwing_kiss", + "value": "๐" + }, + { + "key": "kissing_face", + "value": "๐" + }, + { + "key": "kissing_face_with_smile_eyes", + "value": "๐" + }, + { + "key": "kissing_face_with_closed_eyes", + "value": "๐" + }, + { + "key": "face_with_tongue_wink_eye", + "value": "๐" + }, + { + "key": "face_with_tongue_closed_eye", + "value": "๐" + }, + { + "key": "face_with_stuck_out_tongue", + "value": "๐" + }, + { + "key": "money_mouth_face", + "value": "๐ค" + }, + { + "key": "nerd_face", + "value": "๐ค" + }, + { + "key": "smiling_face_with_sun_glass", + "value": "๐" + }, + { + "key": "hugging_face", + "value": "๐ค" + }, + { + "key": "smirking_face", + "value": "๐" + }, + { + "key": "face_without_mouth", + "value": "๐ถ" + }, + { + "key": "neutral_face", + "value": "๐" + }, + { + "key": "expressionless_face", + "value": "๐" + }, + { + "key": "unamused_face", + "value": "๐" + }, + { + "key": "face_with_rolling_eyes", + "value": "๐" + }, + { + "key": "thinking_face", + "value": "๐ค" + }, + { + "key": "flushed_face", + "value": "๐ณ" + }, + { + "key": "disappointed_face", + "value": "๐" + }, + { + "key": "worried_face", + "value": "๐" + }, + { + "key": "angry_face", + "value": "๐ " + }, + { + "key": "pouting_face", + "value": "๐ก" + }, + { + "key": "pensive_face", + "value": "๐" + }, + { + "key": "confused_face", + "value": "๐" + }, + { + "key": "slightly_frowning_face", + "value": "๐" + }, + { + "key": "white_frowning_face", + "value": "โน" + }, + { + "key": "persevering_face", + "value": "๐ฃ" + }, + { + "key": "confounded_face", + "value": "๐" + }, + { + "key": "tired_face", + "value": "๐ซ" + }, + { + "key": "weary_face", + "value": "๐ฉ" + }, + { + "key": "face_with_look_of_triumph", + "value": "๐ค" + }, + { + "key": "face_with_open_mouth", + "value": "๐ฎ" + }, + { + "key": "face_screaming_in_fear", + "value": "๐ฑ" + }, + { + "key": "fearful_face", + "value": "๐จ" + }, + { + "key": "face_with_open_mouth_cold_sweat", + "value": "๐ฐ" + }, + { + "key": "hushed_face", + "value": "๐ฏ" + }, + { + "key": "frowning_face_with_open_mouth", + "value": "๐ฆ" + }, + { + "key": "anguished_face", + "value": "๐ง" + }, + { + "key": "crying_face", + "value": "๐ข" + }, + { + "key": "disappointed_but_relieved_face", + "value": "๐ฅ" + }, + { + "key": "sleepy_face", + "value": "๐ช" + }, + { + "key": "face_with_cold_sweat", + "value": "๐" + }, + { + "key": "loudly_crying_face", + "value": "๐ญ" + }, + { + "key": "dizzy_face", + "value": "๐ต" + }, + { + "key": "astonished_face", + "value": "๐ฒ" + }, + { + "key": "zipper_mouth_face", + "value": "๐ค" + }, + { + "key": "face_with_medical_mask", + "value": "๐ท" + }, + { + "key": "face_with_thermometer", + "value": "๐ค" + }, + { + "key": "face_with_head_bandage", + "value": "๐ค" + }, + { + "key": "sleeping_face", + "value": "๐ด" + }, + { + "key": "sleeping_symbol", + "value": "๐ค" + }, + { + "key": "pile_of_poo", + "value": "๐ฉ" + }, + { + "key": "smiling_face_with_horns", + "value": "๐" + }, + { + "key": "imp", + "value": "๐ฟ" + }, + { + "key": "japanese_ogre", + "value": "๐น" + }, + { + "key": "japanese_goblin", + "value": "๐บ" + }, + { + "key": "skull", + "value": "๐" + }, + { + "key": "ghost", + "value": "๐ป" + }, + { + "key": "extra_terrestrial_alien", + "value": "๐ฝ" + }, + { + "key": "robot_face", + "value": "๐ค" + }, + { + "key": "smiling_cat_face_open_mouth", + "value": "๐บ" + }, + { + "key": "grinning_cat_face_smile_eyes", + "value": "๐ธ" + }, + { + "key": "cat_face_tears_of_joy", + "value": "๐น" + }, + { + "key": "smiling_cat_face_heart_shaped_eyes", + "value": "๐ป" + }, + { + "key": "cat_face_wry_smile", + "value": "๐ผ" + }, + { + "key": "kissing_cat_face_closed_eyes", + "value": "๐ฝ" + }, + { + "key": "weary_cat_face", + "value": "๐" + }, + { + "key": "crying_cat_face", + "value": "๐ฟ" + }, + { + "key": "pouting_cat_face", + "value": "๐พ" + }, + { + "key": "person_both_hand_celebration", + "value": "๐" + }, + { + "key": "person_both_hand_celebration_type_1_2", + "value": "๐๐ป" + }, + { + "key": "person_both_hand_celebration_type_3", + "value": "๐๐ผ" + }, + { + "key": "person_both_hand_celebration_type_4", + "value": "๐๐ฝ" + }, + { + "key": "person_both_hand_celebration_type_5", + "value": "๐๐พ" + }, + { + "key": "person_both_hand_celebration_type_6", + "value": "๐๐ฟ" + }, + { + "key": "clapping_hand", + "value": "๐" + }, + { + "key": "clapping_hand_type_1_2", + "value": "๐๐ผ" + }, + { + "key": "clapping_hand_type_3", + "value": "๐๐ผ" + }, + { + "key": "clapping_hand_type_4", + "value": "๐๐ฝ" + }, + { + "key": "clapping_hand_type_5", + "value": "๐๐พ" + }, + { + "key": "clapping_hand_type_6", + "value": "๐๐ฟ" + }, + { + "key": "waving_hands", + "value": "๐" + }, + { + "key": "waving_hands_type_1_2", + "value": "๐๐ป" + }, + { + "key": "waving_hands_type_3", + "value": "๐๐ผ" + }, + { + "key": "waving_hands_type_4", + "value": "๐๐ฝ" + }, + { + "key": "waving_hands_type_5", + "value": "๐๐พ" + }, + { + "key": "waving_hands_type_6", + "value": "๐๐ฟ" + }, + { + "key": "thumbs_up", + "value": "๐" + }, + { + "key": "thumbs_up_type_1_2", + "value": "๐๐ป" + }, + { + "key": "thumbs_up_type_3", + "value": "๐๐ผ" + }, + { + "key": "thumbs_up_type_4", + "value": "๐๐ฝ" + }, + { + "key": "thumbs_up_type_5", + "value": "๐๐พ" + }, + { + "key": "thumbs_up_type_6", + "value": "๐๐ฟ" + }, + { + "key": "thumbs_down", + "value": "๐" + }, + { + "key": "thumbs_down_type_1_2", + "value": "๐๐ป" + }, + { + "key": "thumbs_down_type_3", + "value": "๐๐ผ" + }, + { + "key": "thumbs_down_type_4", + "value": "๐๐ฝ" + }, + { + "key": "thumbs_down_type_5", + "value": "๐๐พ" + }, + { + "key": "thumbs_down_type_6", + "value": "๐๐ฟ" + }, + { + "key": "fist_hand", + "value": "๐" + }, + { + "key": "fist_hand_type_1_2", + "value": "๐๐ป" + }, + { + "key": "fist_hand_type_3", + "value": "๐๐ผ" + }, + { + "key": "fist_hand_type_4", + "value": "๐๐ฝ" + }, + { + "key": "fist_hand_type_5", + "value": "๐๐พ" + }, + { + "key": "fist_hand_type_6", + "value": "๐๐ฟ" + }, + { + "key": "raised_fist", + "value": "โ" + }, + { + "key": "raised_fist_type_1_2", + "value": "โ๐ป" + }, + { + "key": "raised_fist_type_3", + "value": "โ๐ผ" + }, + { + "key": "raised_fist_type_4", + "value": "โ๐ฝ" + }, + { + "key": "raised_fist_type_5", + "value": "โ๐พ" + }, + { + "key": "raised_fist_type_6", + "value": "โ๐ฟ" + }, + { + "key": "victory_hand", + "value": "โ" + }, + { + "key": "victory_hand_type_1_2", + "value": "โ๐ป" + }, + { + "key": "victory_hand_type_3", + "value": "โ๐ผ" + }, + { + "key": "victory_hand_type_4", + "value": "โ๐ฝ" + }, + { + "key": "victory_hand_type_5", + "value": "โ๐พ" + }, + { + "key": "victory_hand_type_6", + "value": "โ๐ฟ" + }, + { + "key": "ok_hand", + "value": "๐" + }, + { + "key": "ok_hand_type_1_2", + "value": "๐๐ป" + }, + { + "key": "ok_hand_type_3", + "value": "๐๐ผ" + }, + { + "key": "ok_hand_type_4", + "value": "๐๐ฝ" + }, + { + "key": "ok_hand_type_5", + "value": "๐๐พ" + }, + { + "key": "ok_hand_type_6", + "value": "๐๐ฟ" + }, + { + "key": "raised_hand", + "value": "โ" + }, + { + "key": "raised_hand_type_1_2", + "value": "โ๐ป" + }, + { + "key": "raised_hand_type_3", + "value": "โ๐ผ" + }, + { + "key": "raised_hand_type_4", + "value": "โ๐ฝ" + }, + { + "key": "raised_hand_type_5", + "value": "โ๐พ" + }, + { + "key": "raised_hand_type_6", + "value": "โ๐ฟ" + }, + { + "key": "open_hand", + "value": "๐" + }, + { + "key": "open_hand_type_1_2", + "value": "๐๐ป" + }, + { + "key": "open_hand_type_3", + "value": "๐๐ผ" + }, + { + "key": "open_hand_type_4", + "value": "๐๐ฝ" + }, + { + "key": "open_hand_type_5", + "value": "๐๐พ" + }, + { + "key": "open_hand_type_6", + "value": "๐๐ฟ" + }, + { + "key": "flexed_biceps", + "value": "๐ช" + }, + { + "key": "flexed_biceps_type_1_2", + "value": "๐ช๐ป" + }, + { + "key": "flexed_biceps_type_3", + "value": "๐ช๐ผ" + }, + { + "key": "flexed_biceps_type_4", + "value": "๐ช๐ฝ" + }, + { + "key": "flexed_biceps_type_5", + "value": "๐ช๐พ" + }, + { + "key": "flexed_biceps_type_6", + "value": "๐ช๐ฟ" + }, + { + "key": "folded_hands", + "value": "๐" + }, + { + "key": "folded_hands_type_1_2", + "value": "๐๐ป" + }, + { + "key": "folded_hands_type_3", + "value": "๐๐ผ" + }, + { + "key": "folded_hands_type_4", + "value": "๐๐ฝ" + }, + { + "key": "folded_hands_type_5", + "value": "๐๐พ" + }, + { + "key": "folded_hands_type_6", + "value": "๐๐ฟ" + }, + { + "key": "up_pointing_index", + "value": "โ" + }, + { + "key": "up_pointing_index_type_1_2", + "value": "โ๐ป" + }, + { + "key": "up_pointing_index_type_3", + "value": "โ๐ผ" + }, + { + "key": "up_pointing_index_type_4", + "value": "โ๐ฝ" + }, + { + "key": "up_pointing_index_type_5", + "value": "โ๐พ" + }, + { + "key": "up_pointing_index_type_6", + "value": "โ๐ฟ" + }, + { + "key": "up_pointing_backhand_index", + "value": "๐" + }, + { + "key": "up_pointing_backhand_index_type_1_2", + "value": "๐๐ป" + }, + { + "key": "up_pointing_backhand_index_type_3", + "value": "๐๐ผ" + }, + { + "key": "up_pointing_backhand_index_type_4", + "value": "๐๐ฝ" + }, + { + "key": "up_pointing_backhand_index_type_5", + "value": "๐๐พ" + }, + { + "key": "up_pointing_backhand_index_type_6", + "value": "๐๐ฟ" + }, + { + "key": "down_pointing_backhand_index", + "value": "๐" + }, + { + "key": "down_pointing_backhand_index_type_1_2", + "value": "๐๐ป" + }, + { + "key": "down_pointing_backhand_index_type_3", + "value": "๐๐ผ" + }, + { + "key": "down_pointing_backhand_index_type_4", + "value": "๐๐ฝ" + }, + { + "key": "down_pointing_backhand_index_type_5", + "value": "๐๐พ" + }, + { + "key": "down_pointing_backhand_index_type_6", + "value": "๐๐ฟ" + }, + { + "key": "left_pointing_backhand_index", + "value": "๐" + }, + { + "key": "left_pointing_backhand_index_type_1_2", + "value": "๐๐ป" + }, + { + "key": "left_pointing_backhand_index_type_3", + "value": "๐๐ผ" + }, + { + "key": "left_pointing_backhand_index_type_4", + "value": "๐๐ฝ" + }, + { + "key": "left_pointing_backhand_index_type_5", + "value": "๐๐พ" + }, + { + "key": "left_pointing_backhand_index_type_6", + "value": "๐๐ฟ" + }, + { + "key": "right_pointing_backhand_index", + "value": "๐" + }, + { + "key": "right_pointing_backhand_index_type_1_2", + "value": "๐๐ป" + }, + { + "key": "right_pointing_backhand_index_type_3", + "value": "๐๐ผ" + }, + { + "key": "right_pointing_backhand_index_type_4", + "value": "๐๐ฝ" + }, + { + "key": "right_pointing_backhand_index_type_5", + "value": "๐๐พ" + }, + { + "key": "right_pointing_backhand_index_type_6", + "value": "๐๐ฟ" + }, + { + "key": "reverse_middle_finger", + "value": "๐" + }, + { + "key": "reverse_middle_finger_type_1_2", + "value": "๐๐ป" + }, + { + "key": "reverse_middle_finger_type_3", + "value": "๐๐ผ" + }, + { + "key": "reverse_middle_finger_type_4", + "value": "๐๐ฝ" + }, + { + "key": "reverse_middle_finger_type_5", + "value": "๐๐พ" + }, + { + "key": "reverse_middle_finger_type_6", + "value": "๐๐ฟ" + }, + { + "key": "raised_hand_fingers_splayed", + "value": "๐" + }, + { + "key": "raised_hand_fingers_splayed_type_1_2", + "value": "๐๐ป" + }, + { + "key": "raised_hand_fingers_splayed_type_3", + "value": "๐๐ผ" + }, + { + "key": "raised_hand_fingers_splayed_type_4", + "value": "๐๐ฝ" + }, + { + "key": "raised_hand_fingers_splayed_type_5", + "value": "๐๐พ" + }, + { + "key": "raised_hand_fingers_splayed_type_6", + "value": "๐๐ฟ" + }, + { + "key": "sign_of_horn", + "value": "๐ค" + }, + { + "key": "sign_of_horn_type_1_2", + "value": "๐ค๐ป" + }, + { + "key": "sign_of_horn_type_3", + "value": "๐ค๐ผ" + }, + { + "key": "sign_of_horn_type_4", + "value": "๐ค๐ฝ" + }, + { + "key": "sign_of_horn_type_5", + "value": "๐ค๐พ" + }, + { + "key": "sign_of_horn_type_6", + "value": "๐ค๐ฟ" + }, + { + "key": "raised_hand_part_between_middle_ring", + "value": "๐" + }, + { + "key": "raised_hand_part_between_middle_ring_type_1_2", + "value": "๐๐ป" + }, + { + "key": "raised_hand_part_between_middle_ring_type_3", + "value": "๐๐ผ" + }, + { + "key": "raised_hand_part_between_middle_ring_type_4", + "value": "๐๐ฝ" + }, + { + "key": "raised_hand_part_between_middle_ring_type_5", + "value": "๐๐พ" + }, + { + "key": "raised_hand_part_between_middle_ring_type_6", + "value": "๐๐ฟ" + }, + { + "key": "writing_hand", + "value": "โ" + }, + { + "key": "writing_hand_type_1_2", + "value": "โ๐ป" + }, + { + "key": "writing_hand_type_3", + "value": "โ๐ผ" + }, + { + "key": "writing_hand_type_4", + "value": "โ๐ฝ" + }, + { + "key": "writing_hand_type_5", + "value": "โ๐พ" + }, + { + "key": "writing_hand_type_6", + "value": "โ๐ฟ" + }, + { + "key": "nail_polish", + "value": "๐
" + }, + { + "key": "nail_polish_type_1_2", + "value": "๐
๐ป" + }, + { + "key": "nail_polish_type_3", + "value": "๐
๐ผ" + }, + { + "key": "nail_polish_type_4", + "value": "๐
๐ฝ" + }, + { + "key": "nail_polish_type_5", + "value": "๐
๐พ" + }, + { + "key": "nail_polish_type_6", + "value": "๐
๐ฟ" + }, + { + "key": "mouth", + "value": "๐" + }, + { + "key": "tongue", + "value": "๐
" + }, + { + "key": "ear", + "value": "๐" + }, + { + "key": "ear_type_1_2", + "value": "๐๐ป" + }, + { + "key": "ear_type_3", + "value": "๐๐ผ" + }, + { + "key": "ear_type_4", + "value": "๐๐ฝ" + }, + { + "key": "ear_type_5", + "value": "๐๐พ" + }, + { + "key": "ear_type_6", + "value": "๐๐ฟ" + }, + { + "key": "nose", + "value": "๐" + }, + { + "key": "nose_type_1_2", + "value": "๐๐ป" + }, + { + "key": "nose_type_3", + "value": "๐๐ผ" + }, + { + "key": "nose_type_4", + "value": "๐๐ฝ" + }, + { + "key": "nose_type_5", + "value": "๐๐พ" + }, + { + "key": "nose_type_6", + "value": "๐๐ฟ" + }, + { + "key": "eye", + "value": "๐" + }, + { + "key": "eyes", + "value": "๐" + }, + { + "key": "bust_in_silhouette", + "value": "๐ค" + }, + { + "key": "busts_in_silhouette", + "value": "๐ฅ" + }, + { + "key": "speaking_head_in_silhouette", + "value": "๐ฃ" + }, + { + "key": "baby", + "value": "๐ถ" + }, + { + "key": "baby_type_1_2", + "value": "๐ถ๐ป" + }, + { + "key": "baby_type_3", + "value": "๐ถ๐ผ" + }, + { + "key": "baby_type_4", + "value": "๐ถ๐ฝ" + }, + { + "key": "baby_type_5", + "value": "๐ถ๐พ" + }, + { + "key": "baby_type_6", + "value": "๐ถ๐ฟ" + }, + { + "key": "boy", + "value": "๐ฆ" + }, + { + "key": "boy_type_1_2", + "value": "๐ฆ๐ป" + }, + { + "key": "boy_type_3", + "value": "๐ฆ๐ผ" + }, + { + "key": "boy_type_4", + "value": "๐ฆ๐ฝ" + }, + { + "key": "boy_type_5", + "value": "๐ฆ๐พ" + }, + { + "key": "boy_type_6", + "value": "๐ฆ๐ฟ" + }, + { + "key": "girl", + "value": "๐ง" + }, + { + "key": "girl_type_1_2", + "value": "๐ง๐ป" + }, + { + "key": "girl_type_3", + "value": "๐ง๐ผ" + }, + { + "key": "girl_type_4", + "value": "๐ง๐ฝ" + }, + { + "key": "girl_type_5", + "value": "๐ง๐พ" + }, + { + "key": "girl_type_6", + "value": "๐ง๐ฟ" + }, + { + "key": "man", + "value": "๐จ" + }, + { + "key": "man_type_1_2", + "value": "๐จ๐ป" + }, + { + "key": "man_type_3", + "value": "๐จ๐ผ" + }, + { + "key": "man_type_4", + "value": "๐จ๐ฝ" + }, + { + "key": "man_type_5", + "value": "๐จ๐พ" + }, + { + "key": "man_type_6", + "value": "๐จ๐ฟ" + }, + { + "key": "women", + "value": "๐ฉ" + }, + { + "key": "women_type_1_2", + "value": "๐ฉ๐ป" + }, + { + "key": "women_type_3", + "value": "๐ฉ๐ผ" + }, + { + "key": "women_type_4", + "value": "๐ฉ๐ฝ" + }, + { + "key": "women_type_5", + "value": "๐ฉ๐พ" + }, + { + "key": "women_type_6", + "value": "๐ฉ๐ฟ" + }, + { + "key": "person_with_blond_hair", + "value": "๐ฑ" + }, + { + "key": "person_with_blond_hair_type_1_2", + "value": "๐ฑ๐ป" + }, + { + "key": "person_with_blond_hair_type_3", + "value": "๐ฑ๐ผ" + }, + { + "key": "person_with_blond_hair_type_4", + "value": "๐ฑ๐ฝ" + }, + { + "key": "person_with_blond_hair_type_5", + "value": "๐ฑ๐พ" + }, + { + "key": "person_with_blond_hair_type_6", + "value": "๐ฑ๐ฟ" + }, + { + "key": "older_man", + "value": "๐ด" + }, + { + "key": "older_man_type_1_2", + "value": "๐ด๐ป" + }, + { + "key": "older_man_type_3", + "value": "๐ด๐ผ" + }, + { + "key": "older_man_type_4", + "value": "๐ด๐ฝ" + }, + { + "key": "older_man_type_5", + "value": "๐ด๐พ" + }, + { + "key": "older_man_type_6", + "value": "๐ด๐ฟ" + }, + { + "key": "older_women", + "value": "๐ต" + }, + { + "key": "older_women_type_1_2", + "value": "๐ต๐ป" + }, + { + "key": "older_women_type_3", + "value": "๐ต๐ผ" + }, + { + "key": "older_women_type_4", + "value": "๐ต๐ฝ" + }, + { + "key": "older_women_type_5", + "value": "๐ต๐พ" + }, + { + "key": "older_women_type_6", + "value": "๐ต๐ฟ" + }, + { + "key": "man_with_gua_pi_mao", + "value": "๐ฒ" + }, + { + "key": "man_with_gua_pi_mao_type_1_2", + "value": "๐ฒ๐ผ" + }, + { + "key": "man_with_gua_pi_mao_type_3", + "value": "๐ฒ๐ผ" + }, + { + "key": "man_with_gua_pi_mao_type_4", + "value": "๐ฒ๐ฝ" + }, + { + "key": "man_with_gua_pi_mao_type_5", + "value": "๐ฒ๐พ" + }, + { + "key": "man_with_gua_pi_mao_type_6", + "value": "๐ฒ๐ฟ" + }, + { + "key": "man_with_turban", + "value": "๐ณ" + }, + { + "key": "man_with_turban_type_1_2", + "value": "๐ณ๐ป" + }, + { + "key": "man_with_turban_type_3", + "value": "๐ณ๐ผ" + }, + { + "key": "man_with_turban_type_4", + "value": "๐ณ๐ฝ" + }, + { + "key": "man_with_turban_type_5", + "value": "๐ณ๐พ" + }, + { + "key": "man_with_turban_type_6", + "value": "๐ณ๐ฟ" + }, + { + "key": "police_officer", + "value": "๐ฎ" + }, + { + "key": "police_officer_type_1_2", + "value": "๐ฎ๐ป" + }, + { + "key": "police_officer_type_3", + "value": "๐ฎ๐ผ" + }, + { + "key": "police_officer_type_4", + "value": "๐ฎ๐ฝ" + }, + { + "key": "police_officer_type_5", + "value": "๐ฎ๐พ" + }, + { + "key": "police_officer_type_6", + "value": "๐ฎ๐ฟ" + }, + { + "key": "construction_worker", + "value": "๐ท" + }, + { + "key": "construction_worker_type_1_2", + "value": "๐ท๐ป" + }, + { + "key": "construction_worker_type_3", + "value": "๐ท๐ผ" + }, + { + "key": "construction_worker_type_4", + "value": "๐ท๐ฝ" + }, + { + "key": "construction_worker_type_5", + "value": "๐ท๐พ" + }, + { + "key": "construction_worker_type_6", + "value": "๐ท๐ฟ" + }, + { + "key": "guards_man", + "value": "๐" + }, + { + "key": "guards_man_type_1_2", + "value": "๐๐ป" + }, + { + "key": "guards_man_type_3", + "value": "๐๐ผ" + }, + { + "key": "guards_man_type_4", + "value": "๐๐ฝ" + }, + { + "key": "guards_man_type_5", + "value": "๐๐พ" + }, + { + "key": "guards_man_type_6", + "value": "๐๐ฟ" + }, + { + "key": "spy", + "value": "๐ต" + }, + { + "key": "father_christmas", + "value": "๐
" + }, + { + "key": "father_christmas_type_1_2", + "value": "๐
๐ป" + }, + { + "key": "father_christmas_type_3", + "value": "๐
๐ผ" + }, + { + "key": "father_christmas_type_4", + "value": "๐
๐ฝ" + }, + { + "key": "father_christmas_type_5", + "value": "๐
๐พ" + }, + { + "key": "father_christmas_type_6", + "value": "๐
๐ฟ" + }, + { + "key": "baby_angel", + "value": "๐ผ" + }, + { + "key": "baby_angel_type_1_2", + "value": "๐ผ๐ป" + }, + { + "key": "baby_angel_type_3", + "value": "๐ผ๐ผ" + }, + { + "key": "baby_angel_type_4", + "value": "๐ผ๐ฝ" + }, + { + "key": "baby_angel_type_5", + "value": "๐ผ๐พ" + }, + { + "key": "baby_angel_type_6", + "value": "๐ผ๐ฟ" + }, + { + "key": "princess", + "value": "๐ธ" + }, + { + "key": "princess_type_1_2", + "value": "๐ธ๐ป" + }, + { + "key": "princess_type_3", + "value": "๐ธ๐ผ" + }, + { + "key": "princess_type_4", + "value": "๐ธ๐ฝ" + }, + { + "key": "princess_type_5", + "value": "๐ธ๐พ" + }, + { + "key": "princess_type_6", + "value": "๐ธ๐ฟ" + }, + { + "key": "bride_with_veil", + "value": "๐ฐ" + }, + { + "key": "bride_with_veil_type_1_2", + "value": "๐ฐ๐ป" + }, + { + "key": "bride_with_veil_type_3", + "value": "๐ฐ๐ผ" + }, + { + "key": "bride_with_veil_type_4", + "value": "๐ฐ๐ฝ" + }, + { + "key": "bride_with_veil_type_5", + "value": "๐ฐ๐พ" + }, + { + "key": "bride_with_veil_type_6", + "value": "๐ฐ๐ฟ" + }, + { + "key": "pedestrian", + "value": "๐ถ" + }, + { + "key": "pedestrian_type_1_2", + "value": "๐ถ๐ป" + }, + { + "key": "pedestrian_type_3", + "value": "๐ถ๐ผ" + }, + { + "key": "pedestrian_type_4", + "value": "๐ถ๐ฝ" + }, + { + "key": "pedestrian_type_5", + "value": "๐ถ๐พ" + }, + { + "key": "pedestrian_type_6", + "value": "๐ถ๐ฟ" + }, + { + "key": "runner", + "value": "๐" + }, + { + "key": "runner_type_1_2", + "value": "๐๐ป" + }, + { + "key": "runner_type_3", + "value": "๐๐ผ" + }, + { + "key": "runner_type_4", + "value": "๐๐ฝ" + }, + { + "key": "runner_type_5", + "value": "๐๐พ" + }, + { + "key": "runner_type_6", + "value": "๐๐ฟ" + }, + { + "key": "dancer", + "value": "๐" + }, + { + "key": "dancer_type_1_2", + "value": "๐๐ป" + }, + { + "key": "dancer_type_3", + "value": "๐๐ผ" + }, + { + "key": "dancer_type_4", + "value": "๐๐ฝ" + }, + { + "key": "dancer_type_5", + "value": "๐๐พ" + }, + { + "key": "dancer_type_6", + "value": "๐๐ฟ" + }, + { + "key": "women_with_bunny_years", + "value": "๐ฏ" + }, + { + "key": "man_women_holding_hands", + "value": "๐ซ" + }, + { + "key": "two_man_holding_hands", + "value": "๐ฌ" + }, + { + "key": "two_women_holding_hands", + "value": "๐ญ" + }, + { + "key": "person_bowing_deeply", + "value": "๐" + }, + { + "key": "person_bowing_deeply_type_1_2", + "value": "๐๐ป" + }, + { + "key": "person_bowing_deeply_type_3", + "value": "๐๐ผ" + }, + { + "key": "person_bowing_deeply_type_4", + "value": "๐๐ฝ" + }, + { + "key": "person_bowing_deeply_type_5", + "value": "๐๐พ" + }, + { + "key": "person_bowing_deeply_type_6", + "value": "๐๐ฟ" + }, + { + "key": "information_desk_person", + "value": "๐" + }, + { + "key": "information_desk_person_type_1_2", + "value": "๐๐ป" + }, + { + "key": "information_desk_person_type_3", + "value": "๐๐ผ" + }, + { + "key": "information_desk_person_type_4", + "value": "๐๐ฝ" + }, + { + "key": "information_desk_person_type_5", + "value": "๐๐พ" + }, + { + "key": "information_desk_person_type_6", + "value": "๐๐ฟ" + }, + { + "key": "face_with_no_good_gesture", + "value": "๐
" + }, + { + "key": "face_with_no_good_gesture_type_1_2", + "value": "๐
๐ป" + }, + { + "key": "face_with_no_good_gesture_type_3", + "value": "๐
๐ผ" + }, + { + "key": "face_with_no_good_gesture_type_4", + "value": "๐
๐ฝ" + }, + { + "key": "face_with_no_good_gesture_type_5", + "value": "๐
๐พ" + }, + { + "key": "face_with_no_good_gesture_type_6", + "value": "๐
๐ฟ" + }, + { + "key": "face_with_ok_gesture", + "value": "๐" + }, + { + "key": "face_with_ok_gesture_type_1_2", + "value": "๐๐ป" + }, + { + "key": "face_with_ok_gesture_type_3", + "value": "๐๐ผ" + }, + { + "key": "face_with_ok_gesture_type_4", + "value": "๐๐ฝ" + }, + { + "key": "face_with_ok_gesture_type_5", + "value": "๐๐พ" + }, + { + "key": "face_with_ok_gesture_type_6", + "value": "๐๐ฟ" + }, + { + "key": "happy_person_raise_one_hand", + "value": "๐" + }, + { + "key": "happy_person_raise_one_hand_type_1_2", + "value": "๐๐ป" + }, + { + "key": "happy_person_raise_one_hand_type_3", + "value": "๐๐ผ" + }, + { + "key": "happy_person_raise_one_hand_type_4", + "value": "๐๐ฝ" + }, + { + "key": "happy_person_raise_one_hand_type_5", + "value": "๐๐พ" + }, + { + "key": "happy_person_raise_one_hand_type_6", + "value": "๐๐ฟ" + }, + { + "key": "person_with_pouting_face", + "value": "๐" + }, + { + "key": "person_with_pouting_face_type_1_2", + "value": "๐๐ป" + }, + { + "key": "person_with_pouting_face_type_3", + "value": "๐๐ผ" + }, + { + "key": "person_with_pouting_face_type_4", + "value": "๐๐ฝ" + }, + { + "key": "person_with_pouting_face_type_5", + "value": "๐๐พ" + }, + { + "key": "person_with_pouting_face_type_6", + "value": "๐๐ฟ" + }, + { + "key": "person_frowning", + "value": "๐" + }, + { + "key": "person_frowning_type_1_2", + "value": "๐๐ป" + }, + { + "key": "person_frowning_type_3", + "value": "๐๐ผ" + }, + { + "key": "person_frowning_type_4", + "value": "๐๐ฝ" + }, + { + "key": "person_frowning_type_5", + "value": "๐๐พ" + }, + { + "key": "person_frowning_type_6", + "value": "๐๐ฟ" + }, + { + "key": "haircut", + "value": "๐" + }, + { + "key": "haircut_type_1_2", + "value": "๐๐ป" + }, + { + "key": "haircut_type_3", + "value": "๐๐ผ" + }, + { + "key": "haircut_type_4", + "value": "๐๐ฝ" + }, + { + "key": "haircut_type_5", + "value": "๐๐พ" + }, + { + "key": "haircut_type_6", + "value": "๐๐ฟ" + }, + { + "key": "face_massage", + "value": "๐" + }, + { + "key": "face_massage_type_1_2", + "value": "๐๐ป" + }, + { + "key": "face_massage_type_3", + "value": "๐๐ป" + }, + { + "key": "face_massage_type_4", + "value": "๐๐ฝ" + }, + { + "key": "face_massage_type_5", + "value": "๐๐พ" + }, + { + "key": "face_massage_type_6", + "value": "๐๐ฟ" + }, + { + "key": "couple_with_heart", + "value": "๐" + }, + { + "key": "couple_with_heart_woman", + "value": "๐ฉโโค๏ธโ๐ฉ" + }, + { + "key": "couple_with_heart_man", + "value": "๐จโโค๏ธโ๐จ" + }, + { + "key": "kiss", + "value": "๐" + }, + { + "key": "kiss_woman", + "value": "๐ฉโโค๏ธโ๐โ๐ฉ" + }, + { + "key": "kiss_man", + "value": "๐จโโค๏ธโ๐โ๐จ" + }, + { + "key": "family", + "value": "๐ช" + }, + { + "key": "family_man_women_girl", + "value": "๐จโ๐ฉโ๐ง" + }, + { + "key": "family_man_women_girl_boy", + "value": "๐จโ๐ฉโ๐งโ๐ฆ" + }, + { + "key": "family_man_women_boy_boy", + "value": "๐จโ๐ฉโ๐ฆโ๐ฆ" + }, + { + "key": "family_man_women_girl_girl", + "value": "๐จโ๐ฉโ๐งโ๐ง" + }, + { + "key": "family_woman_women_boy", + "value": "๐ฉโ๐ฉโ๐ฆ" + }, + { + "key": "family_woman_women_girl", + "value": "๐ฉโ๐ฉโ๐ง" + }, + { + "key": "family_woman_women_girl_boy", + "value": "๐ฉโ๐ฉโ๐งโ๐ฆ" + }, + { + "key": "family_woman_women_boy_boy", + "value": "๐ฉโ๐ฉโ๐ฆโ๐ฆ" + }, + { + "key": "family_woman_women_girl_girl", + "value": "๐ฉโ๐ฉโ๐งโ๐ง" + }, + { + "key": "family_man_man_boy", + "value": "๐จโ๐จโ๐ฆ" + }, + { + "key": "family_man_man_girl", + "value": "๐จโ๐จโ๐ง" + }, + { + "key": "family_man_man_girl_boy", + "value": "๐จโ๐จโ๐งโ๐ฆ" + }, + { + "key": "family_man_man_boy_boy", + "value": "๐จโ๐จโ๐ฆโ๐ฆ" + }, + { + "key": "family_man_man_girl_girl", + "value": "๐จโ๐จโ๐งโ๐ง" + }, + { + "key": "woman_clothes", + "value": "๐" + }, + { + "key": "t_shirt", + "value": "๐" + }, + { + "key": "jeans", + "value": "๐" + }, + { + "key": "necktie", + "value": "๐" + }, + { + "key": "dress", + "value": "๐" + }, + { + "key": "bikini", + "value": "๐" + }, + { + "key": "kimono", + "value": "๐" + }, + { + "key": "lipstick", + "value": "๐" + }, + { + "key": "kiss_mark", + "value": "๐" + }, + { + "key": "footprints", + "value": "๐ฃ" + }, + { + "key": "high_heeled_shoe", + "value": "๐ " + }, + { + "key": "woman_sandal", + "value": "๐ก" + }, + { + "key": "woman_boots", + "value": "๐ข" + }, + { + "key": "man_shoe", + "value": "๐" + }, + { + "key": "athletic_shoe", + "value": "๐" + }, + { + "key": "woman_hat", + "value": "๐" + }, + { + "key": "top_hat", + "value": "๐ฉ" + }, + { + "key": "graduation_cap", + "value": "๐" + }, + { + "key": "crown", + "value": "๐" + }, + { + "key": "helmet_with_white_cross", + "value": "โ" + }, + { + "key": "school_satchel", + "value": "๐" + }, + { + "key": "pouch", + "value": "๐" + }, + { + "key": "purse", + "value": "๐" + }, + { + "key": "handbag", + "value": "๐" + }, + { + "key": "briefcase", + "value": "๐ผ" + }, + { + "key": "eye_glasses", + "value": "๐" + }, + { + "key": "dark_sun_glasses", + "value": "๐ถ" + }, + { + "key": "ring", + "value": "๐" + }, + { + "key": "closed_umbrella", + "value": "๐" + } + ] + } +}
\ No newline at end of file diff --git a/nikola/plugins/shortcode/emoji/data/Symbols.json b/nikola/plugins/shortcode/emoji/data/Symbols.json new file mode 100644 index 0000000..2dd5454 --- /dev/null +++ b/nikola/plugins/shortcode/emoji/data/Symbols.json @@ -0,0 +1,1082 @@ +{ + "symbols": { + "symbol": [ + { + "key": "heavy_black_heart", + "value": "โค" + }, + { + "key": "yellow_heart", + "value": "๐" + }, + { + "key": "green_heart", + "value": "๐" + }, + { + "key": "blue_heart", + "value": "๐" + }, + { + "key": "purple_heart", + "value": "๐" + }, + { + "key": "broken_heart", + "value": "๐" + }, + { + "key": "heavy_heart_exclamation_mark_ornament", + "value": "โฃ" + }, + { + "key": "two_hearts", + "value": "๐" + }, + { + "key": "revolving_hearts", + "value": "๐" + }, + { + "key": "beating_heart", + "value": "๐" + }, + { + "key": "growing_heart", + "value": "๐" + }, + { + "key": "sparkling_heart", + "value": "๐" + }, + { + "key": "heart_with_arrow", + "value": "๐" + }, + { + "key": "heart_with_ribbon", + "value": "๐" + }, + { + "key": "heart_decoration", + "value": "๐" + }, + { + "key": "peace_symbol", + "value": "โฎ" + }, + { + "key": "latin_cross", + "value": "โ" + }, + { + "key": "star_and_crescent", + "value": "โช" + }, + { + "key": "om_symbol", + "value": "๐" + }, + { + "key": "wheel_of_dharma", + "value": "โธ" + }, + { + "key": "star_of_david", + "value": "โก" + }, + { + "key": "six_pointed_star_with_middle_dot", + "value": "๐ฏ" + }, + { + "key": "menorah_with_nine_branches", + "value": "๐" + }, + { + "key": "yin_yang", + "value": "โฏ" + }, + { + "key": "orthodox_cross", + "value": "โฆ" + }, + { + "key": "place_of_worship", + "value": "๐" + }, + { + "key": "ophiuchus", + "value": "โ" + }, + { + "key": "aries", + "value": "โ" + }, + { + "key": "taurus", + "value": "โ" + }, + { + "key": "gemini", + "value": "โ" + }, + { + "key": "cancer", + "value": "โ" + }, + { + "key": "leo", + "value": "โ" + }, + { + "key": "virgo", + "value": "โ" + }, + { + "key": "libra", + "value": "โ" + }, + { + "key": "scorpius", + "value": "โ" + }, + { + "key": "sagittarius", + "value": "โ" + }, + { + "key": "capricorn", + "value": "โ" + }, + { + "key": "aquarius", + "value": "โ" + }, + { + "key": "pisces", + "value": "โ" + }, + { + "key": "squared_id", + "value": "๐" + }, + { + "key": "atom_symbol", + "value": "โ" + }, + { + "key": "squared_cjk_unified_ideograph_7a7a", + "value": "๐ณ" + }, + { + "key": "squared_cjk_unified_ideograph_5272", + "value": "๐น" + }, + { + "key": "radioactive_sign", + "value": "โข" + }, + { + "key": "biohazard_sign", + "value": "โฃ" + }, + { + "key": "mobile_phone_off", + "value": "๐ด" + }, + { + "key": "vibration_mode", + "value": "๐ณ" + }, + { + "key": "squared_cjk_unified_ideograph_6709", + "value": "๐ถ" + }, + { + "key": "squared_cjk_unified_ideograph_7121", + "value": "๐" + }, + { + "key": "squared_cjk_unified_ideograph_7533", + "value": "๐ธ" + }, + { + "key": "squared_cjk_unified_ideograph_55b6", + "value": "๐บ" + }, + { + "key": "squared_cjk_unified_ideograph_6708", + "value": "๐ท" + }, + { + "key": "eight_pointed_black_star", + "value": "โด" + }, + { + "key": "squared_vs", + "value": "๐" + }, + { + "key": "circled_ideograph_accept", + "value": "๐" + }, + { + "key": "white_flower", + "value": "๐ฎ" + }, + { + "key": "circled_ideograph_advantage", + "value": "๐" + }, + { + "key": "circled_ideograph_secret", + "value": "ใ" + }, + { + "key": "circled_ideograph_congratulation", + "value": "ใ" + }, + { + "key": "squared_cjk_unified_ideograph_5408", + "value": "๐ด" + }, + { + "key": "squared_cjk_unified_ideograph_6e80", + "value": "๐ต" + }, + { + "key": "squared_cjk_unified_ideograph_7981", + "value": "๐ฒ" + }, + { + "key": "negative_squared_latin_capital_letter_a", + "value": "๐
ฐ" + }, + { + "key": "negative_squared_latin_capital_letter_b", + "value": "๐
ฑ" + }, + { + "key": "negative_squared_ab", + "value": "๐" + }, + { + "key": "squared_cl", + "value": "๐" + }, + { + "key": "negative_squared_latin_capital_letter_o", + "value": "๐
พ" + }, + { + "key": "squared_sos", + "value": "๐" + }, + { + "key": "no_entry", + "value": "โ" + }, + { + "key": "name_badge", + "value": "๐" + }, + { + "key": "no_entry_sign", + "value": "๐ซ" + }, + { + "key": "cross_mark", + "value": "โ" + }, + { + "key": "heavy_large_circle", + "value": "โญ" + }, + { + "key": "anger_symbol", + "value": "๐ข" + }, + { + "key": "hot_springs", + "value": "โจ" + }, + { + "key": "no_pedestrians", + "value": "๐ท" + }, + { + "key": "do_not_litter_symbol", + "value": "๐ฏ" + }, + { + "key": "no_bi_cycles", + "value": "๐ณ" + }, + { + "key": "non_potable_water_symbol", + "value": "๐ฑ" + }, + { + "key": "no_one_under_eighteen_symbol", + "value": "๐" + }, + { + "key": "no_mobile_phones", + "value": "๐ต" + }, + { + "key": "heavy_exclamation_mark_symbol", + "value": "โ" + }, + { + "key": "white_exclamation_mark_ornament", + "value": "โ" + }, + { + "key": "black_question_mark_ornament", + "value": "โ" + }, + { + "key": "white_question_mark_ornament", + "value": "โ" + }, + { + "key": "double_exclamation_mark", + "value": "โผ" + }, + { + "key": "exclamation_question_mark", + "value": "โ" + }, + { + "key": "hundred_points_symbol", + "value": "๐ฏ" + }, + { + "key": "low_brightness_symbol", + "value": "๐
" + }, + { + "key": "high_brightness_symbol", + "value": "๐" + }, + { + "key": "trident_emblem", + "value": "๐ฑ" + }, + { + "key": "fleur_de_lis", + "value": "โ" + }, + { + "key": "part_alternation_mark", + "value": "ใฝ" + }, + { + "key": "warning_sign", + "value": "โ " + }, + { + "key": "children_crossing", + "value": "๐ธ" + }, + { + "key": "japanese_symbol_for_beginner", + "value": "๐ฐ" + }, + { + "key": "black_universal_recycling_symbol", + "value": "โป" + }, + { + "key": "squared_cjk_unified_ideograph_6307", + "value": "๐ฏ" + }, + { + "key": "chart_with_upwards_trend_and_yen_sign", + "value": "๐น" + }, + { + "key": "sparkle", + "value": "โ" + }, + { + "key": "eight_spoked_asterisk", + "value": "โณ" + }, + { + "key": "negative_squared_crossmark", + "value": "โ" + }, + { + "key": "white_heavy_checkmark", + "value": "โ
" + }, + { + "key": "diamond_shape_with_a_dot_inside", + "value": "๐ " + }, + { + "key": "cyclone", + "value": "๐" + }, + { + "key": "double_curly_loop", + "value": "โฟ" + }, + { + "key": "globe_with_meridians", + "value": "๐" + }, + { + "key": "circled_latin_capital_letter_m", + "value": "โ" + }, + { + "key": "automated_teller_machine", + "value": "๐ง" + }, + { + "key": "squared_katakanasa", + "value": "๐" + }, + { + "key": "passport_control", + "value": "๐" + }, + { + "key": "customs", + "value": "๐" + }, + { + "key": "baggage_claim", + "value": "๐" + }, + { + "key": "left_luggage", + "value": "๐
" + }, + { + "key": "wheel_chair_symbol", + "value": "โฟ" + }, + { + "key": "no_smoking_symbol", + "value": "๐ญ" + }, + { + "key": "water_closet", + "value": "๐พ" + }, + { + "key": "negative_squared_letter_p", + "value": "๐
ฟ" + }, + { + "key": "potable_water_symbol", + "value": "๐ฐ" + }, + { + "key": "mens_symbol", + "value": "๐น" + }, + { + "key": "womens_symbol", + "value": "๐บ" + }, + { + "key": "baby_symbol", + "value": "๐ผ" + }, + { + "key": "restroom", + "value": "๐ป" + }, + { + "key": "put_litter_in_its_place", + "value": "๐ฎ" + }, + { + "key": "cinema", + "value": "๐ฆ" + }, + { + "key": "antenna_with_bars", + "value": "๐ถ" + }, + { + "key": "squared_katakana_koko", + "value": "๐" + }, + { + "key": "squared_ng", + "value": "๐" + }, + { + "key": "squared_ok", + "value": "๐" + }, + { + "key": "squared_exclamation_mark", + "value": "๐" + }, + { + "key": "squared_cool", + "value": "๐" + }, + { + "key": "squared_new", + "value": "๐" + }, + { + "key": "squared_free", + "value": "๐" + }, + { + "key": "keycap_digit_zero", + "value": "0โฃ" + }, + { + "key": "keycap_digit_one", + "value": "1โฃ" + }, + { + "key": "keycap_digit_two", + "value": "2โฃ" + }, + { + "key": "keycap_digit_three", + "value": "3โฃ" + }, + { + "key": "keycap_digit_four", + "value": "4โฃ" + }, + { + "key": "keycap_digit_five", + "value": "5โฃ" + }, + { + "key": "keycap_digit_six", + "value": "6โฃ" + }, + { + "key": "keycap_digit_seven", + "value": "7โฃ" + }, + { + "key": "keycap_digit_eight", + "value": "8โฃ" + }, + { + "key": "keycap_digit_nine", + "value": "9โฃ" + }, + { + "key": "keycap_ten", + "value": "๐" + }, + { + "key": "input_symbol_for_numbers", + "value": "๐ข" + }, + { + "key": "black_right_pointing_triangle", + "value": "โถ" + }, + { + "key": "double_vertical_bar", + "value": "โธ" + }, + { + "key": "blk_rgt_point_triangle_dbl_vertical_bar", + "value": "โฏ" + }, + { + "key": "black_square_for_stop", + "value": "โน" + }, + { + "key": "black_circle_for_record", + "value": "โบ" + }, + { + "key": "blk_rgt_point_dbl_triangle_vertical_bar", + "value": "โญ" + }, + { + "key": "blk_lft_point_dbl_triangle_vertical_bar", + "value": "โฎ" + }, + { + "key": "blk_rgt_point_dbl_triangle", + "value": "โฉ" + }, + { + "key": "blk_lft_point_dbl_triangle", + "value": "โช" + }, + { + "key": "twisted_rightwards_arrows", + "value": "๐" + }, + { + "key": "cwise_rgt_lft_open_circle_arrow", + "value": "๐" + }, + { + "key": "cwise_rgt_lft_open_circle_arrow_overlay", + "value": "๐" + }, + { + "key": "blk_lft_point_triangle", + "value": "โ" + }, + { + "key": "up_point_small_red_triangle", + "value": "๐ผ" + }, + { + "key": "down_point_small_red_triangle", + "value": "๐ฝ" + }, + { + "key": "blk_up_point_double_triangle", + "value": "โซ" + }, + { + "key": "blk_down_point_double_triangle", + "value": "โฌ" + }, + { + "key": "black_rightwards_arrow", + "value": "โก" + }, + { + "key": "leftwards_black_arrow", + "value": "โฌ
" + }, + { + "key": "upwards_black_arrow", + "value": "โฌ" + }, + { + "key": "downwards_black_arrow", + "value": "โฌ" + }, + { + "key": "northeast_arrow", + "value": "โ" + }, + { + "key": "southeast_arrow", + "value": "โ" + }, + { + "key": "south_west_arrow", + "value": "โ" + }, + { + "key": "north_west_arrow", + "value": "โ" + }, + { + "key": "up_down_arrow", + "value": "โ" + }, + { + "key": "left_right_arrow", + "value": "โ" + }, + { + "key": "acwise_down_up_open_circle_arrow", + "value": "๐" + }, + { + "key": "rightwards_arrow_with_hook", + "value": "โช" + }, + { + "key": "leftwards_arrow_with_hook", + "value": "โฉ" + }, + { + "key": "arrow_point_rgt_then_curving_up", + "value": "โคด" + }, + { + "key": "arrow_point_rgt_then_curving_down", + "value": "โคต" + }, + { + "key": "keycap_number_sign", + "value": "#โฃ" + }, + { + "key": "keycap_asterisk", + "value": "*โฃ" + }, + { + "key": "information_source", + "value": "โน" + }, + { + "key": "input_symbol_for_latin_letters", + "value": "๐ค" + }, + { + "key": "input_symbol_latin_small_letters", + "value": "๐ก" + }, + { + "key": "input_symbol_latin_capital_letters", + "value": "๐ " + }, + { + "key": "input_symbol_symbols", + "value": "๐ฃ" + }, + { + "key": "musical_note", + "value": "๐ต" + }, + { + "key": "multiple_musical_notes", + "value": "๐ถ" + }, + { + "key": "wavy_dash", + "value": "ใฐ" + }, + { + "key": "curly_loop", + "value": "โฐ" + }, + { + "key": "heavy_check_mark", + "value": "โ" + }, + { + "key": "cwise_down_up_open_circle_arrows", + "value": "๐" + }, + { + "key": "heavy_plus_sign", + "value": "โ" + }, + { + "key": "heavy_minus_sign", + "value": "โ" + }, + { + "key": "heavy_division_sign", + "value": "โ" + }, + { + "key": "heavy_multiplication_x", + "value": "โ" + }, + { + "key": "heavy_dollar_sign", + "value": "๐ฒ" + }, + { + "key": "currency_exchange", + "value": "๐ฑ" + }, + { + "key": "copyright_sign", + "value": "ยฉ" + }, + { + "key": "registered_sign", + "value": "ยฎ" + }, + { + "key": "trademark_sign", + "value": "โข" + }, + { + "key": "end_with_lft_arrow_above", + "value": "๐" + }, + { + "key": "back_with_lft_arrow_above", + "value": "๐" + }, + { + "key": "on_exclamation_lft_rgt_arrow", + "value": "๐" + }, + { + "key": "top_with_up_arrow_above", + "value": "๐" + }, + { + "key": "soon_right_arrow_above", + "value": "๐" + }, + { + "key": "ballot_box_with_check", + "value": "โ" + }, + { + "key": "radio_button", + "value": "๐" + }, + { + "key": "medium_white_circle", + "value": "โช" + }, + { + "key": "medium_black_circle", + "value": "โซ" + }, + { + "key": "large_red_circle", + "value": "๐ด" + }, + { + "key": "large_blue_circle", + "value": "๐ต" + }, + { + "key": "small_orange_diamond", + "value": "๐ธ" + }, + { + "key": "small_blue_diamond", + "value": "๐น" + }, + { + "key": "large_orange_diamond", + "value": "๐ถ" + }, + { + "key": "large_blue_diamond", + "value": "๐ท" + }, + { + "key": "up_point_red_triangle", + "value": "๐บ" + }, + { + "key": "black_small_square", + "value": "โช" + }, + { + "key": "white_small_square", + "value": "โซ" + }, + { + "key": "black_large_square", + "value": "โฌ" + }, + { + "key": "white_large_square", + "value": "โฌ" + }, + { + "key": "down_point_red_triangle", + "value": "๐ป" + }, + { + "key": "black_medium_square", + "value": "โผ" + }, + { + "key": "white_medium_square", + "value": "โป" + }, + { + "key": "black_medium_small_square", + "value": "โพ" + }, + { + "key": "white_medium_small_square", + "value": "โฝ" + }, + { + "key": "black_square_button", + "value": "๐ฒ" + }, + { + "key": "white_square_button", + "value": "๐ณ" + }, + { + "key": "speaker", + "value": "๐" + }, + { + "key": "speaker_one_sound_wave", + "value": "๐" + }, + { + "key": "speaker_three_sound_waves", + "value": "๐" + }, + { + "key": "speaker_cancellation_stroke", + "value": "๐" + }, + { + "key": "cheering_megaphone", + "value": "๐ฃ" + }, + { + "key": "public_address_loudspeaker", + "value": "๐ข" + }, + { + "key": "bell", + "value": "๐" + }, + { + "key": "bell_with_cancellation_stroke", + "value": "๐" + }, + { + "key": "playing_card_black_joker", + "value": "๐" + }, + { + "key": "mahjong_tile_red_dragon", + "value": "๐" + }, + { + "key": "black_spade_suit", + "value": "โ " + }, + { + "key": "black_club_suit", + "value": "โฃ" + }, + { + "key": "black_heart_suit", + "value": "โฅ" + }, + { + "key": "black_diamond_suit", + "value": "โฆ" + }, + { + "key": "flower_playing_cards", + "value": "๐ด" + }, + { + "key": "eye_in_speech_bubble", + "value": "๐โ๐จ" + }, + { + "key": "thought_balloon", + "value": "๐ญ" + }, + { + "key": "right_anger_bubble", + "value": "๐ฏ" + }, + { + "key": "speech_balloon", + "value": "๐ฌ" + }, + { + "key": "clock_face_one_o_clock", + "value": "๐" + }, + { + "key": "clock_face_two_o_clock", + "value": "๐" + }, + { + "key": "clock_face_three_o_clock", + "value": "๐" + }, + { + "key": "clock_face_four_o_clock", + "value": "๐" + }, + { + "key": "clock_face_five_o_clock", + "value": "๐" + }, + { + "key": "clock_face_six_o_clock", + "value": "๐" + }, + { + "key": "clock_face_seven_o_clock", + "value": "๐" + }, + { + "key": "clock_face_eight_o_clock", + "value": "๐" + }, + { + "key": "clock_face_nine_o_clock", + "value": "๐" + }, + { + "key": "clock_face_ten_o_clock", + "value": "๐" + }, + { + "key": "clock_face_eleven_o_clock", + "value": "๐" + }, + { + "key": "clock_face_twelve_o_clock", + "value": "๐" + }, + { + "key": "clock_face_one_thirty", + "value": "๐" + }, + { + "key": "clock_face_two_thirty", + "value": "๐" + }, + { + "key": "clock_face_three_thirty", + "value": "๐" + }, + { + "key": "clock_face_four_thirty", + "value": "๐" + }, + { + "key": "clock_face_five_thirty", + "value": "๐ " + }, + { + "key": "clock_face_six_thirty", + "value": "๐ก" + }, + { + "key": "clock_face_seven_thirty", + "value": "๐ข" + }, + { + "key": "clock_face_eight_thirty", + "value": "๐ฃ" + }, + { + "key": "clock_face_nine_thirty", + "value": "๐ค" + }, + { + "key": "clock_face_ten_thirty", + "value": "๐ฅ" + }, + { + "key": "clock_face_eleven_thirty", + "value": "๐ฆ" + }, + { + "key": "clock_face_twelve_thirty", + "value": "๐ง" + } + ] + } +}
\ No newline at end of file diff --git a/nikola/plugins/shortcode/emoji/data/Travel.json b/nikola/plugins/shortcode/emoji/data/Travel.json new file mode 100644 index 0000000..e38b84f --- /dev/null +++ b/nikola/plugins/shortcode/emoji/data/Travel.json @@ -0,0 +1,466 @@ +{ + "travels": { + "travel": [ + { + "key": "automobile", + "value": "๐" + }, + { + "key": "taxi", + "value": "๐" + }, + { + "key": "recreational_vehicle", + "value": "๐" + }, + { + "key": "bus", + "value": "๐" + }, + { + "key": "trolley_bus", + "value": "๐" + }, + { + "key": "racing_car", + "value": "๐" + }, + { + "key": "police_car", + "value": "๐" + }, + { + "key": "ambulance", + "value": "๐" + }, + { + "key": "fire_engine", + "value": "๐" + }, + { + "key": "minibus", + "value": "๐" + }, + { + "key": "delivery_truck", + "value": "๐" + }, + { + "key": "articulated_lorry", + "value": "๐" + }, + { + "key": "tractor", + "value": "๐" + }, + { + "key": "racing_motorcycle", + "value": "๐" + }, + { + "key": "bicycle", + "value": "๐ฒ" + }, + { + "key": "police_light", + "value": "๐จ" + }, + { + "key": "on_coming_police_car", + "value": "๐" + }, + { + "key": "on_coming_bus", + "value": "๐" + }, + { + "key": "on_coming_automobile", + "value": "๐" + }, + { + "key": "on_coming_taxi", + "value": "๐" + }, + { + "key": "aerial_tramway", + "value": "๐ก" + }, + { + "key": "mountain_cableway", + "value": "๐ " + }, + { + "key": "suspension_railway", + "value": "๐" + }, + { + "key": "railway_car", + "value": "๐" + }, + { + "key": "tramcar", + "value": "๐" + }, + { + "key": "monorail", + "value": "๐" + }, + { + "key": "high_speed_train", + "value": "๐" + }, + { + "key": "high_speed_train_bullet_nose", + "value": "๐
" + }, + { + "key": "light_rail", + "value": "๐" + }, + { + "key": "mountain_railway", + "value": "๐" + }, + { + "key": "steam_locomotive", + "value": "๐" + }, + { + "key": "train", + "value": "๐" + }, + { + "key": "metro", + "value": "๐" + }, + { + "key": "tram", + "value": "๐" + }, + { + "key": "station", + "value": "๐" + }, + { + "key": "helicopter", + "value": "๐" + }, + { + "key": "small_airplane", + "value": "๐ฉ" + }, + { + "key": "airplane", + "value": "โ" + }, + { + "key": "airplane_departure", + "value": "๐ซ" + }, + { + "key": "airplane_arriving", + "value": "๐ฌ" + }, + { + "key": "sailboat", + "value": "โต" + }, + { + "key": "motorboat", + "value": "๐ฅ" + }, + { + "key": "speedboat", + "value": "๐ค" + }, + { + "key": "ferry", + "value": "โด" + }, + { + "key": "passenger_ship", + "value": "๐ณ" + }, + { + "key": "rocket", + "value": "๐" + }, + { + "key": "satellite", + "value": "๐ฐ" + }, + { + "key": "seat", + "value": "๐บ" + }, + { + "key": "anchor", + "value": "โ" + }, + { + "key": "construction_sign", + "value": "๐ง" + }, + { + "key": "fuel_pump", + "value": "โฝ" + }, + { + "key": "bus_stop", + "value": "๐" + }, + { + "key": "vertical_traffic_light", + "value": "๐ฆ" + }, + { + "key": "horizontal_traffic_light", + "value": "๐ฅ" + }, + { + "key": "chequered_flag", + "value": "๐" + }, + { + "key": "ship", + "value": "๐ข" + }, + { + "key": "ferris_wheel", + "value": "๐ก" + }, + { + "key": "roller_coaster", + "value": "๐ข" + }, + { + "key": "carousel_horse", + "value": "๐ " + }, + { + "key": "building_construction", + "value": "๐" + }, + { + "key": "foggy", + "value": "๐" + }, + { + "key": "tokyo_tower", + "value": "๐ผ" + }, + { + "key": "factory", + "value": "๐ญ" + }, + { + "key": "fountain", + "value": "โฒ" + }, + { + "key": "moon_viewing_ceremony", + "value": "๐" + }, + { + "key": "mountain", + "value": "โฐ" + }, + { + "key": "snow_capped_mountain", + "value": "๐" + }, + { + "key": "mount_fuji", + "value": "๐ป" + }, + { + "key": "volcano", + "value": "๐" + }, + { + "key": "silhouette_of_japan", + "value": "๐พ" + }, + { + "key": "camping", + "value": "๐" + }, + { + "key": "tent", + "value": "โบ" + }, + { + "key": "national_park", + "value": "๐" + }, + { + "key": "motorway", + "value": "๐ฃ" + }, + { + "key": "railway_track", + "value": "๐ค" + }, + { + "key": "sunrise", + "value": "๐
" + }, + { + "key": "sunrise_over_mountain", + "value": "๐" + }, + { + "key": "desert", + "value": "๐" + }, + { + "key": "beach_with_umbrella", + "value": "๐" + }, + { + "key": "desert_island", + "value": "๐" + }, + { + "key": "sunset_over_buildings", + "value": "๐" + }, + { + "key": "city_scape_at_dusk", + "value": "๐" + }, + { + "key": "city_scape", + "value": "๐" + }, + { + "key": "night_with_stars", + "value": "๐" + }, + { + "key": "bridge_at_night", + "value": "๐" + }, + { + "key": "milky_way", + "value": "๐" + }, + { + "key": "shooting_star", + "value": "๐ " + }, + { + "key": "fire_work_sparkler", + "value": "๐" + }, + { + "key": "fireworks", + "value": "๐" + }, + { + "key": "rainbow", + "value": "๐" + }, + { + "key": "house_buildings", + "value": "๐" + }, + { + "key": "european_castle", + "value": "๐ฐ" + }, + { + "key": "japanese_castle", + "value": "๐ฏ" + }, + { + "key": "stadium", + "value": "๐" + }, + { + "key": "statue_of_liberty", + "value": "๐ฝ" + }, + { + "key": "house_building", + "value": "๐ " + }, + { + "key": "house_with_garden", + "value": "๐ก" + }, + { + "key": "derelict_house_building", + "value": "๐" + }, + { + "key": "office_building", + "value": "๐ข" + }, + { + "key": "department_store", + "value": "๐ฌ" + }, + { + "key": "japanese_post_office", + "value": "๐ฃ" + }, + { + "key": "european_post_office", + "value": "๐ค" + }, + { + "key": "hospital", + "value": "๐ฅ" + }, + { + "key": "bank", + "value": "๐ฆ" + }, + { + "key": "hotel", + "value": "๐จ" + }, + { + "key": "convenience_store", + "value": "๐ช" + }, + { + "key": "school", + "value": "๐ซ" + }, + { + "key": "love_hotel", + "value": "๐ฉ" + }, + { + "key": "wedding", + "value": "๐" + }, + { + "key": "classical_building", + "value": "๐" + }, + { + "key": "church", + "value": "โช" + }, + { + "key": "mosque", + "value": "๐" + }, + { + "key": "synagogue", + "value": "๐" + }, + { + "key": "kaaba", + "value": "๐" + }, + { + "key": "shinto_shrine", + "value": "โฉ" + } + ] + } +} diff --git a/nikola/plugins/shortcode/gist.plugin b/nikola/plugins/shortcode/gist.plugin index cd19a72..b610763 100644 --- a/nikola/plugins/shortcode/gist.plugin +++ b/nikola/plugins/shortcode/gist.plugin @@ -3,7 +3,7 @@ name = gist module = gist [Nikola] -plugincategory = Shortcode +PluginCategory = Shortcode [Documentation] author = Roberto Alsina diff --git a/nikola/plugins/shortcode/gist.py b/nikola/plugins/shortcode/gist.py index 64fd0d9..eb9e976 100644 --- a/nikola/plugins/shortcode/gist.py +++ b/nikola/plugins/shortcode/gist.py @@ -13,12 +13,6 @@ class Plugin(ShortcodePlugin): name = "gist" - def set_site(self, site): - """Set Nikola site.""" - self.site = site - site.register_shortcode('gist', self.handler) - return super(Plugin, self).set_site(site) - def get_raw_gist_with_filename(self, gistID, filename): """Get raw gist text for a filename.""" url = '/'.join(("https://gist.github.com/raw", gistID, filename)) diff --git a/nikola/plugins/shortcode/listing.plugin b/nikola/plugins/shortcode/listing.plugin new file mode 100644 index 0000000..90fb6eb --- /dev/null +++ b/nikola/plugins/shortcode/listing.plugin @@ -0,0 +1,13 @@ +[Core] +name = listing_shortcode +module = listing + +[Nikola] +PluginCategory = Shortcode + +[Documentation] +author = Roberto Alsina +version = 0.1 +website = https://getnikola.com/ +description = Listing shortcode + diff --git a/nikola/plugins/shortcode/listing.py b/nikola/plugins/shortcode/listing.py new file mode 100644 index 0000000..b51365a --- /dev/null +++ b/nikola/plugins/shortcode/listing.py @@ -0,0 +1,77 @@ +# -*- coding: utf-8 -*- + +# Copyright ยฉ 2017-2020 Roberto Alsina and others. + +# Permission is hereby granted, free of charge, to any +# person obtaining a copy of this software and associated +# documentation files (the "Software"), to deal in the +# Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the +# Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice +# shall be included in all copies or substantial portions of +# the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +# PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS +# OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +"""Listing shortcode (equivalent to reSTโs listing directive).""" + +import os +from urllib.parse import urlunsplit + +import pygments + +from nikola.plugin_categories import ShortcodePlugin + + +class Plugin(ShortcodePlugin): + """Plugin for listing shortcode.""" + + name = "listing" + + def set_site(self, site): + """Set Nikola site.""" + self.site = site + Plugin.folders = site.config['LISTINGS_FOLDERS'] + return super().set_site(site) + + def handler(self, fname, language='text', linenumbers=False, filename=None, site=None, data=None, lang=None, post=None): + """Create HTML for a listing.""" + fname = fname.replace('/', os.sep) + if len(self.folders) == 1: + listings_folder = next(iter(self.folders.keys())) + if fname.startswith(listings_folder): + fpath = os.path.join(fname) # new syntax: specify folder name + else: + # old syntax: don't specify folder name + fpath = os.path.join(listings_folder, fname) + else: + # must be new syntax: specify folder name + fpath = os.path.join(fname) + linenumbers = 'table' if linenumbers else False + deps = [fpath] + with open(fpath, 'r') as inf: + target = urlunsplit( + ("link", 'listing', fpath.replace('\\', '/'), '', '')) + src_target = urlunsplit( + ("link", 'listing_source', fpath.replace('\\', '/'), '', '')) + src_label = self.site.MESSAGES('Source') + + data = inf.read() + lexer = pygments.lexers.get_lexer_by_name(language) + formatter = pygments.formatters.get_formatter_by_name( + 'html', linenos=linenumbers) + output = '<a href="{1}">{0}</a> <a href="{3}">({2})</a>' .format( + fname, target, src_label, src_target) + pygments.highlight(data, lexer, formatter) + + return output, deps diff --git a/nikola/plugins/shortcode/post_list.plugin b/nikola/plugins/shortcode/post_list.plugin new file mode 100644 index 0000000..494a1d8 --- /dev/null +++ b/nikola/plugins/shortcode/post_list.plugin @@ -0,0 +1,13 @@ +[Core] +name = post_list +module = post_list + +[Nikola] +PluginCategory = Shortcode + +[Documentation] +author = Udo Spallek +version = 0.2 +website = https://getnikola.com/ +description = Includes a list of posts with tag and slice based filters. + diff --git a/nikola/plugins/shortcode/post_list.py b/nikola/plugins/shortcode/post_list.py new file mode 100644 index 0000000..462984a --- /dev/null +++ b/nikola/plugins/shortcode/post_list.py @@ -0,0 +1,245 @@ +# -*- coding: utf-8 -*- + +# Copyright ยฉ 2013-2020 Udo Spallek, Roberto Alsina and others. + +# Permission is hereby granted, free of charge, to any +# person obtaining a copy of this software and associated +# documentation files (the "Software"), to deal in the +# Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the +# Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice +# shall be included in all copies or substantial portions of +# the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +# PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS +# OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +"""Post list shortcode.""" + + +import operator +import os +import uuid + +import natsort + +from nikola import utils +from nikola.packages.datecond import date_in_range +from nikola.plugin_categories import ShortcodePlugin + + +class PostListShortcode(ShortcodePlugin): + """Provide a shortcode to create a list of posts. + + Post List + ========= + :Directive Arguments: None. + :Directive Options: lang, start, stop, reverse, sort, date, tags, categories, sections, slugs, post_type, template, id + :Directive Content: None. + + The posts appearing in the list can be filtered by options. + *List slicing* is provided with the *start*, *stop* and *reverse* options. + + The following not required options are recognized: + + ``start`` : integer + The index of the first post to show. + A negative value like ``-3`` will show the *last* three posts in the + post-list. + Defaults to None. + + ``stop`` : integer + The index of the last post to show. + A value negative value like ``-1`` will show every post, but not the + *last* in the post-list. + Defaults to None. + + ``reverse`` : flag + Reverse the order of the post-list. + Defaults is to not reverse the order of posts. + + ``sort`` : string + Sort post list by one of each post's attributes, usually ``title`` or a + custom ``priority``. Defaults to None (chronological sorting). + + ``date`` : string + Show posts that match date range specified by this option. Format: + + * comma-separated clauses (AND) + * clause: attribute comparison_operator value (spaces optional) + * attribute: year, month, day, hour, month, second, weekday, isoweekday; or empty for full datetime + * comparison_operator: == != <= >= < > + * value: integer, 'now', 'today', or dateutil-compatible date input + + ``tags`` : string [, string...] + Filter posts to show only posts having at least one of the ``tags``. + Defaults to None. + + ``require_all_tags`` : flag + Change tag filter behaviour to show only posts that have all specified ``tags``. + Defaults to False. + + ``categories`` : string [, string...] + Filter posts to show only posts having one of the ``categories``. + Defaults to None. + + ``sections`` : string [, string...] + Filter posts to show only posts having one of the ``sections``. + Defaults to None. + + ``slugs`` : string [, string...] + Filter posts to show only posts having at least one of the ``slugs``. + Defaults to None. + + ``post_type`` (or ``type``) : string + Show only ``posts``, ``pages`` or ``all``. + Replaces ``all``. Defaults to ``posts``. + + ``lang`` : string + The language of post *titles* and *links*. + Defaults to default language. + + ``template`` : string + The name of an alternative template to render the post-list. + Defaults to ``post_list_directive.tmpl`` + + ``id`` : string + A manual id for the post list. + Defaults to a random name composed by 'post_list_' + uuid.uuid4().hex. + """ + + name = "post_list" + + def set_site(self, site): + """Set the site.""" + super().set_site(site) + site.register_shortcode('post-list', self.handler) + + def handler(self, start=None, stop=None, reverse=False, tags=None, require_all_tags=False, categories=None, + sections=None, slugs=None, post_type='post', type=False, + lang=None, template='post_list_directive.tmpl', sort=None, + id=None, data=None, state=None, site=None, date=None, filename=None, post=None): + """Generate HTML for post-list.""" + if lang is None: + lang = utils.LocaleBorg().current_lang + if site.invariant: # for testing purposes + post_list_id = id or 'post_list_' + 'fixedvaluethatisnotauuid' + else: + post_list_id = id or 'post_list_' + uuid.uuid4().hex + + # Get post from filename if available + if filename: + self_post = site.post_per_input_file.get(filename) + else: + self_post = None + + if self_post: + self_post.register_depfile("####MAGIC####TIMELINE", lang=lang) + + # If we get strings for start/stop, make them integers + if start is not None: + start = int(start) + if stop is not None: + stop = int(stop) + + # Parse tags/categories/sections/slugs (input is strings) + categories = [c.strip().lower() for c in categories.split(',')] if categories else [] + sections = [s.strip().lower() for s in sections.split(',')] if sections else [] + slugs = [s.strip() for s in slugs.split(',')] if slugs else [] + + filtered_timeline = [] + posts = [] + step = None if reverse is False else -1 + + if type is not False: + post_type = type + + if post_type == 'page' or post_type == 'pages': + timeline = [p for p in site.timeline if not p.use_in_feeds] + elif post_type == 'all': + timeline = [p for p in site.timeline] + else: # post + timeline = [p for p in site.timeline if p.use_in_feeds] + + # self_post should be removed from timeline because this is redundant + timeline = [p for p in timeline if p.source_path != filename] + + if categories: + timeline = [p for p in timeline if p.meta('category', lang=lang).lower() in categories] + + if sections: + timeline = [p for p in timeline if p.section_name(lang).lower() in sections] + + if tags: + tags = {t.strip().lower() for t in tags.split(',')} + if require_all_tags: + compare = set.issubset + else: + compare = operator.and_ + for post in timeline: + post_tags = {t.lower() for t in post.tags} + if compare(tags, post_tags): + filtered_timeline.append(post) + else: + filtered_timeline = timeline + + if sort: + filtered_timeline = natsort.natsorted(filtered_timeline, key=lambda post: post.meta[lang][sort], alg=natsort.ns.F | natsort.ns.IC) + + if date: + _now = utils.current_time() + filtered_timeline = [p for p in filtered_timeline if date_in_range(utils.html_unescape(date), p.date, now=_now)] + + for post in filtered_timeline[start:stop:step]: + if slugs: + cont = True + for slug in slugs: + if slug == post.meta('slug'): + cont = False + + if cont: + continue + + bp = post.translated_base_path(lang) + if os.path.exists(bp) and state: + state.document.settings.record_dependencies.add(bp) + elif os.path.exists(bp) and self_post: + self_post.register_depfile(bp, lang=lang) + + posts += [post] + + template_deps = site.template_system.template_deps(template) + if state: + # Register template as a dependency (Issue #2391) + for d in template_deps: + state.document.settings.record_dependencies.add(d) + elif self_post: + for d in template_deps: + self_post.register_depfile(d, lang=lang) + + template_data = { + 'lang': lang, + 'posts': posts, + # Need to provide str, not TranslatableSetting (Issue #2104) + 'date_format': site.GLOBAL_CONTEXT.get('date_format')[lang], + 'post_list_id': post_list_id, + 'messages': site.MESSAGES, + '_link': site.link, + } + output = site.template_system.render_template( + template, None, template_data) + return output, template_deps + + +# Request file name from shortcode (Issue #2412) +PostListShortcode.handler.nikola_shortcode_pass_filename = True diff --git a/nikola/plugins/shortcode/thumbnail.plugin b/nikola/plugins/shortcode/thumbnail.plugin new file mode 100644 index 0000000..e55d34f --- /dev/null +++ b/nikola/plugins/shortcode/thumbnail.plugin @@ -0,0 +1,12 @@ +[Core] +name = thumbnail +module = thumbnail + +[Nikola] +PluginCategory = Shortcode + +[Documentation] +author = Chris Warrick +version = 0.1 +website = https://getnikola.com/ +description = Thumbnail shortcode diff --git a/nikola/plugins/shortcode/thumbnail.py b/nikola/plugins/shortcode/thumbnail.py new file mode 100644 index 0000000..feb731b --- /dev/null +++ b/nikola/plugins/shortcode/thumbnail.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- + +# Copyright ยฉ 2017-2020 Roberto Alsina, Chris Warrick and others. + +# Permission is hereby granted, free of charge, to any +# person obtaining a copy of this software and associated +# documentation files (the "Software"), to deal in the +# Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the +# Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice +# shall be included in all copies or substantial portions of +# the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +# PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS +# OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +"""Thumbnail shortcode (equivalent to reSTโs thumbnail directive).""" + +import os.path + +from nikola.plugin_categories import ShortcodePlugin + + +class ThumbnailShortcode(ShortcodePlugin): + """Plugin for thumbnail directive.""" + + name = "thumbnail" + + def handler(self, uri, alt=None, align=None, linktitle=None, title=None, imgclass=None, figclass=None, site=None, data=None, lang=None, post=None): + """Create HTML for thumbnail.""" + if uri.endswith('.svg'): + # the ? at the end makes docutil output an <img> instead of an object for the svg, which lightboxes may require + src = '.thumbnail'.join(os.path.splitext(uri)) + '?' + else: + src = '.thumbnail'.join(os.path.splitext(uri)) + + if imgclass is None: + imgclass = '' + if figclass is None: + figclass = '' + + if align and data: + figclass += ' align-{0}'.format(align) + elif align: + imgclass += ' align-{0}'.format(align) + + output = '<a href="{0}" class="image-reference"'.format(uri) + if linktitle: + output += ' title="{0}"'.format(linktitle) + output += '><img src="{0}"'.format(src) + for item, name in ((alt, 'alt'), (title, 'title'), (imgclass, 'class')): + if item: + output += ' {0}="{1}"'.format(name, item) + output += '></a>' + + if data: + output = '<div class="figure {0}">{1}{2}</div>'.format(figclass, output, data) + + return output, [] |
