Merge branch 'master' of github.com:hykilpikonna/zshrc

This commit is contained in:
Azalea
2023-01-12 19:25:13 -05:00
11 changed files with 7546 additions and 8 deletions
+38
View File
@@ -0,0 +1,38 @@
<!-- This should be put in /etc/fonts/conf.d or ~/.fonts.conf.d -->
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Apple Color Emoji</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Apple Color Emoji</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Apple Color Emoji</family>
</prefer>
</alias>
<alias binding="strong">
<family>emoji</family>
<default><family>Apple Color Emoji</family></default>
</alias>
<alias binding="strong">
<family>Noto Color Emoji</family>
<prefer><family>Apple Color Emoji</family></prefer>
</alias>
<alias binding="strong">
<family>Segoe UI Emoji</family>
<prefer><family>Apple Color Emoji</family></prefer>
</alias>
<alias binding="strong">
<family>Emoji One</family>
<prefer><family>Apple Color Emoji</family></prefer>
</alias>
</fontconfig>
@@ -0,0 +1,13 @@
# encoding: utf-8
patch:
switches/@next:
name: emoji_suggestion
reset: 1
states: [ "🈚️\uFE0E", "🈶️\uFE0F" ]
'engine/filters/@before 0':
simplifier@emoji_suggestion
emoji_suggestion:
opencc_config: emoji.json
option_name: emoji_suggestion
tips: all
@@ -1,5 +1,13 @@
__patch:
# Rx: emoji:customize:schema=luna_pinyin {
- patch/+:
__include: emoji_suggestion:/patch
# }
# https://wiki.archlinuxcn.org/wiki/Fcitx5#RIME/%E4%B8%AD%E5%B7%9E%E9%9F%BB # https://wiki.archlinuxcn.org/wiki/Fcitx5#RIME/%E4%B8%AD%E5%B7%9E%E9%9F%BB
# 文件中“patch:”应只存在一个,若已存在只需粘贴后面的代码 # 文件中“patch:”应只存在一个,若已存在只需粘贴后面的代码
# 此文件用于修改特定输入方案,把上方的luna_pinyin改为其它输入方案名即可完成对其它输入方案的修改 # 此文件用于修改特定输入方案,把上方的luna_pinyin改为其它输入方案名即可完成对其它输入方案的修改
patch: patch:
"translator/dictionary": extended #词典名字可自定义,与下方文件名保持一致即可 "translator/dictionary": extended #词典名字可自定义,与下方文件名保持一致即可
'engine/translators/+':
- lua_translator@date_translator
@@ -0,0 +1,22 @@
{
"name": "Chinese to Emoji",
"segmentation": {
"type": "mmseg",
"dict": {
"type": "text",
"file": "emoji_word.txt"
}
},
"conversion_chain": [{
"dict": {
"type": "group",
"dicts": [{
"type": "text",
"file": "emoji_word.txt"
}, {
"type": "text",
"file": "emoji_category.txt"
}]
}
}]
}
@@ -0,0 +1,212 @@
东亚人 东亚人 🧓🏻 🧑🏻 🧒🏻 👶🏻
东亚人女 东亚人女 👵🏻 👩🏻 👧🏻
东亚人男 东亚人男 👴🏻 👨🏻 👦🏻
中华 中华 🧧 🥮 🧨 🧮
中華 中華 🧧 🥮 🧨 🧮
中餐 中餐 🍜 🍚 🍲 🥘 🥟 🥠 🥡 🥢
串点 串点 🍢 🍡
串點 串點 🍢 🍡
乐器 乐器 🎻 🎸 🎹 🎷 🎺 🥁 🪕 🪘 🪗
亚裔 亚裔 🧓🏻 🧑🏻 🧒🏻 👶🏻
亚裔女 亚裔女 👵🏻 👩🏻 👧🏻
亚裔男 亚裔男 👴🏻 👨🏻 👦🏻
亞裔 亞裔 🧓🏻 🧑🏻 🧒🏻 👶🏻
亞裔女 亞裔女 👵🏻 👩🏻 👧🏻
亞裔男 亞裔男 👴🏻 👨🏻 👦🏻
做运动 做运动 ⛷ 🏂🏻 🏋🏻 🤺 🤼🏻 🤸🏻 ⛹🏻 🤾🏻 🏌🏻 🏄🏻 🏊🏻 🤽🏻 🚣🏻 🏇🏻 🚴🏻 🚵🏻 🧗🏻 🤹🏻
做运动女 做运动女 ⛷ 🏂🏻 🏋🏻‍♀️ 🤺 🤼🏻‍♀️ 🤸🏻‍♀️ ⛹🏻‍♀️ 🤾🏻‍♀️ 🏌🏻‍♀️ 🏄🏻‍♀️ 🏊🏻‍♀️ 🤽🏻‍♀️ 🚣🏻‍♀️ 🏇🏻 🚴🏻‍♀️ 🚵🏻‍♀️ 🧗🏻‍♀️ 🤹🏻‍♀️
做运动男 做运动男 ⛷ 🏂🏻 🏋🏻‍♂️ 🤺 🤼🏻‍♂️ 🤸🏻‍♂️ ⛹🏻‍♂️ 🤾🏻‍♂️ 🏌🏻‍♂️ 🏄🏻‍♂️ 🏊🏻‍♂️ 🤽🏻‍♂️ 🚣🏻‍♂️ 🏇🏻 🚴🏻‍♂️ 🚵🏻‍♂️ 🧗🏻‍♂️ 🤹🏻‍♂️
做運動 做運動 ⛷ 🏂🏻 🏋🏻 🤺 🤼🏻 🤸🏻 ⛹🏻 🤾🏻 🏌🏻 🏄🏻 🏊🏻 🤽🏻 🚣🏻 🏇🏻 🚴🏻 🚵🏻 🧗🏻 🤹🏻
做運動女 做運動女 ⛷ 🏂🏻 🏋🏻‍♀️ 🤺 🤼🏻‍♀️ 🤸🏻‍♀️ ⛹🏻‍♀️ 🤾🏻‍♀️ 🏌🏻‍♀️ 🏄🏻‍♀️ 🏊🏻‍♀️ 🤽🏻‍♀️ 🚣🏻‍♀️ 🏇🏻 🚴🏻‍♀️ 🚵🏻‍♀️ 🧗🏻‍♀️ 🤹🏻‍♀️
做運動男 做運動男 ⛷ 🏂🏻 🏋🏻‍♂️ 🤺 🤼🏻‍♂️ 🤸🏻‍♂️ ⛹🏻‍♂️ 🤾🏻‍♂️ 🏌🏻‍♂️ 🏄🏻‍♂️ 🏊🏻‍♂️ 🤽🏻‍♂️ 🚣🏻‍♂️ 🏇🏻 🚴🏻‍♂️ 🚵🏻‍♂️ 🧗🏻‍♂️ 🤹🏻‍♂️
公交 公交 🚌 🚎 🚍 🚈 🚇 🚊
动物 动物 🦆 🦅 🦉 🦇 🐺 🐗 🦄 🐴 🐝 🐛 🐞 🪲 🦟 🐚 🐌 🦋 🐜 🕷 🐢 🐍 🦎 🦂 🦀 🦑 🐙 🦐 🦞 🦪 🐠 🐟 🐡 🐬 🦈 🐋 🐊 🐆 🐅 🐃 🐂 🐄 🦬 🦌 🐪 🐫 🐘 🦏 🦍 🦧 🦣 🐎 🐖 🐐 🐏 🐑 🐕 🐩 🐈 🐈‍⬛️ 🐓 🦃 🕊 🦩 🐇 🐁 🐀 🐿 🐉 🐒 🦖 🦕 🦡 🦝 🦨 🦫 🦦 🦭 🦥 🦢 🦜 🦤 🦚 🦙 🦛
动物脸 动物脸 🐶 🐱 🐭 🐹 🐰 🦊 🐻 🐻‍❄️ 🐼 🐨 🐯 🦁 🐮 🐷 🐽 🐸 🐵
動物 動物 🦆 🦅 🦉 🦇 🐺 🐗 🦄 🐴 🐝 🐛 🐞 🪲 🦟 🐚 🐌 🦋 🐜 🕷 🐢 🐍 🦎 🦂 🦀 🦑 🐙 🦐 🦞 🦪 🐠 🐟 🐡 🐬 🦈 🐋 🐊 🐆 🐅 🐃 🐂 🐄 🦬 🦌 🐪 🐫 🐘 🦏 🦍 🦧 🦣 🐎 🐖 🐐 🐏 🐑 🐕 🐩 🐈 🐈‍⬛️ 🐓 🦃 🕊 🦩 🐇 🐁 🐀 🐿 🐉 🐒 🦖 🦕 🦡 🦝 🦨 🦫 🦦 🦭 🦥 🦢 🦜 🦤 🦚 🦙 🦛
動物臉 動物臉 🐶 🐱 🐭 🐹 🐰 🦊 🐻 🐻‍❄️ 🐼 🐨 🐯 🦁 🐮 🐷 🐽 🐸 🐵
包 包 👝 👛 👜 💼 🧳 🎒
午餐 午餐 🥘 🍜 🍲 🍛 🍝 🍱 🍚 🥗
卷 卷 🥙 🌮 🌯 🫔
发型 发型 🦲 🦰 🦱 🦳
发色 发色 🦲 🦰 🦱 🦳
叶 叶 🍃 🍂 🍁 🌱 🌿 🥬
名勝 名勝 🗽 🏰 🗼 🗻 🏯 🏝 🏖 🌁 🌉 🏞
名胜 名胜 🗽 🏰 🗼 🗻 🏯 🏝 🏖 🌁 🌉 🏞
器官 器官 👁 👂🏻 👃🏻 👄 🦷 🧠 🫁 🫀 🦵🏻 🦶🏻 🖐🏻 👅
圆型 圆型 🔴 🟠 🟡 🟢 🔵 🟣 🟤 ⚫️ ⚪️
圓型 圓型 🔴 🟠 🟡 🟢 🔵 🟣 🟤 ⚫️ ⚪️
城軌 城軌 🚈 🚇 🚊 🚞 🚋 🚃 🚟
城轨 城轨 🚈 🚇 🚊 🚞 🚋 🚃 🚟
外匯 外匯 💵 💶 💷 💴
外汇 外汇 💵 💶 💷 💴
多媒体 多媒体 📽 🎥 📹 📷 🎙 📡
多媒體 多媒體 📽 🎥 📹 📷 🎙 📡
夜 夜 🌙 💫 ⭐️ 🌟 ✨ 🌛 🌜
夜空 夜空 🌙 💫 ⭐️ 🌟 ✨ 🌛 🌜
大自然 大自然 🔥 💧 🌬 🫧 ☀️ 🌤 ⛅ 🌦 🌥 ☁️ 🌨 🌧 🌩 ⛈ ❄️ 💨 🌪 🌫 🌊 🧊 🪨
天气 天气 ☀️ 🌤 ⛅ 🌦 🌥 ☁️ 🌨 🌧 🌩 ⛈ ❄️ 💨 🌪 🌫 🌊
天氣 天氣 ☀️ 🌤 ⛅ 🌦 🌥 ☁️ 🌨 🌧 🌩 ⛈ ❄️ 💨 🌪 🌫 🌊
奖 奖 🏅 🎖 🥇 🥈 🥉 🏆
奖项 奖项 🏅 🎖 🥇 🥈 🥉 🏆
娛樂 娛樂 🎮 🎰 🎲 🎯 🎳 🎧 🎤️ 🎪 🎫 🎟 ♟ 🕹 🖲 🪀 🪩
娱乐 娱乐 🎮 🎰 🎲 🎯 🎳 🎧 🎤️ 🎪 🎫 🎟 ♟ 🕹 🖲 🪀 🪩
宗教 宗教 ✝️ ☪️ 🕉 ☸️ 🔯 🕎 ☯️ ☦️ 🛐 ⛪ 🕌 🕍 🕋 ⛩ 🛕
家禽 家禽 🦆 🐓 🦃 🐔 🐤 🐣 🐥 🦚
寒冷 寒冷 ❄️ 🌨 ☃️ ⛄ 🧊
工具 工具 ⚙️ 🔩 ⛏ 🛠 ⚒️ 🔨 🔧 ⛓ 🧰 🪒 🪚 🪛 🪜 🪡
帽 帽 👒 🧢 🎩 🎓 ⛑ 🪖
帽子 帽子 👒 🧢 🎩 🎓 ⛑ 🪖
心型 心型 ❤️ 🧡 💛 💚 💙 💜 🤎 🖤 🤍
快餐 快餐 🍔 🌭 🍟 🥞 🥡 🥫
怪物 怪物 🦄 🤖 👾 👹 👺
拉丁裔 拉丁裔 🧓🏽 🧑🏽 🧒🏽 👶🏽
拉丁裔女 拉丁裔女 👵🏽 👩🏽 👧🏽
拉丁裔男 拉丁裔男 👴🏽 👨🏽 👦🏽
拉美人 拉美人 🧓🏽 🧑🏽 🧒🏽 👶🏽
拉美人女 拉美人女 👵🏽 👩🏽 👧🏽
拉美人男 拉美人男 👴🏽 👨🏽 👦🏽
拉美裔 拉美裔 🧓🏽 🧑🏽 🧒🏽 👶🏽
拉美裔女 拉美裔女 👵🏽 👩🏽 👧🏽
拉美裔男 拉美裔男 👴🏽 👨🏽 👦🏽
捲 捲 🥙 🌮 🌯 🫔
数码 数码 ⌚️ 📱 💻 ⌨️ 🖥 🖨 🖱 📷 📹 💾 💽 💿 📀
數碼 數碼 ⌚️ 📱 💻 ⌨️ 🖥 🖨 🖱 📷 📹 💾 💽 💿 📀
方型 方型 🟥 🟧 🟨 🟩 🟦 🟪 🟫 ⬛️ ⬜️
日式料理 日式料理 🍥 🍣 🍱 🍙 🍘
日料 日料 🍥 🍣 🍱 🍙 🍘
日本菜 日本菜 🍥 🍣 🍱 🍙 🍘
日用 日用 🧴 🧼 🧻 🧽 🪥 🪒 💄 🪣
早点 早点 🍳 🥚 🧀 🥖 🥛 🍯 🥪 🥫 🥯 🧇 🫓
早餐 早餐 🍳 🥚 🧀 🥖 🥛 🍯 🥪 🥫 🥯 🧇 🫓
早點 早點 🍳 🥚 🧀 🥖 🥛 🍯 🥪 🥫 🥯 🧇 🫓
时钟 时钟 🕛 🕧 🕐 🕜 🕑 🕝 🕒 🕞 🕓 🕟 🕔 🕠 🕕 🕡 🕖 🕢 🕗 🕣 🕘 🕤 🕙 🕥 🕚 🕦
時鐘 時鐘 🕛 🕧 🕐 🕜 🕑 🕝 🕒 🕞 🕓 🕟 🕔 🕠 🕕 🕡 🕖 🕢 🕗 🕣 🕘 🕤 🕙 🕥 🕚 🕦
景点 景点 🗽 🏰 🗼 🗻 🏯 🏝 🏖 🌁 🌉 🏞
景點 景點 🗽 🏰 🗼 🗻 🏯 🏝 🏖 🌁 🌉 🏞
月相 月相 🌕 🌖 🌗 🌘 🌑 🌒 🌓 🌔
有害 有害 ☢️ ☣️ 🦠
服装 服装 🧥 👚 👕 👖 🩳 👔 👗 👘 🥻 🩲 👙 🩱 🥼
服裝 服裝 🧥 👚 👕 👖 🩳 👔 👗 👘 🥻 🩲 👙 🩱 🥼
服飾 服飾 🧥 👚 👕 👖 🩳 👔 👗 👘 🥻 🩲 👙 🩱 🥼
服饰 服饰 🧥 👚 👕 👖 🩳 👔 👗 👘 🥻 🩲 👙 🩱 🥼
机械 机械 ⚙️ 🔩 ⛏ 🛠 ⚒️ 🔨 🔧 ⛓ 🧰 🪒 🪚 🪛 🪜 🪡
東亞人 東亞人 🧓🏻 🧑🏻 🧒🏻 👶🏻
東亞人女 東亞人女 👵🏻 👩🏻 👧🏻
東亞人男 東亞人男 👴🏻 👨🏻 👦🏻
棕色人种 棕色人种 🧓🏽 🧑🏽 🧒🏽 👶🏽
棕色人种女 棕色人种女 👵🏽 👩🏽 👧🏽
棕色人种男 棕色人种男 👴🏽 👨🏽 👦🏽
棕色人種 棕色人種 🧓🏽 🧑🏽 🧒🏽 👶🏽
棕色人種女 棕色人種女 👵🏽 👩🏽 👧🏽
棕色人種男 棕色人種男 👴🏽 👨🏽 👦🏽
植物 植物 🌲 🌳 🎄 🌵 🌴 🌱 🌿 ☘️ 🍀 🎍 🪴 🌾 🥬
樂器 樂器 🎻 🎸 🎹 🎷 🎺 🥁 🪕 🪘 🪗
機械 機械 ⚙️ 🔩 ⛏ 🛠 ⚒️ 🔨 🔧 ⛓ 🧰 🪒 🪚 🪛 🪜 🪡
正餐 正餐 🥘 🍜 🍲 🍛 🍝 🍱 🍚 🥗
武器 武器 🔫 🗡 ⚔️ 🔪 🛡 🪓 🚀
气象 气象 ☀️ 🌤 ⛅ 🌦 🌥 ☁️ 🌨 🌧 🌩 ⛈ ❄️ 💨 🌪 🌫 🌊
氣象 氣象 ☀️ 🌤 ⛅ 🌦 🌥 ☁️ 🌨 🌧 🌩 ⛈ ❄️ 💨 🌪 🌫 🌊
水果 水果 🍏 🍎 🍐 🍊 🍋 🍌 🍉 🍇 🍓 🫐 🍈 🍒 🍑 🍍 🥝 🥑 🥥 🥭
汽車 汽車 🚗 🚕 🚙 🚌 🚎 🏎 🚓 🚑 🚒 🚐 🚚 🚛 🎢 🛻 🚔 🚍 🚘 🚖 🛺
汽车 汽车 🚗 🚕 🚙 🚌 🚎 🏎 🚓 🚑 🚒 🚐 🚚 🚛 🎢 🛻 🚔 🚍 🚘 🚖 🛺
游乐园 游乐园 🏟 🎡 🎢 🎠 🛝
火車 火車 🚄 🚅 🚝 🚆 🚂 🚉
火车 火车 🚄 🚅 🚝 🚆 🚂 🚉
热饮 热饮 ☕️ 🍵
熱飲 熱飲 ☕️ 🍵
牲畜 牲畜 🐄 🐃 🐂 🦬 🐐 🐏 🐖 🐑 🐕 🦮 🐕‍🦺 🐩 🐈 🐈‍⬛️
獎 獎 🏅 🎖 🥇 🥈 🥉 🏆
獎項 獎項 🏅 🎖 🥇 🥈 🥉 🏆
球 球 ⚽ 🏀 🏈 🏐 🏉 ⚾️ 🥎 🎾 🎱 🪀 🏓 🏸 🏒 🏑 🏏 🛹 🥍
甜点 甜点 🍮 🍩 🍪 🍧 🍨 🍦 🍰 🧁 🧇 🧆
甜食 甜食 🍯 🍰 🍮 🎂 🍭 🍬 🍫 🍩 🍪 🍦 🧁
甜點 甜點 🍮 🍩 🍪 🍧 🍨 🍦 🍰 🧁 🧇 🧆
生肖 生肖 🐁 🐀 🐂 🐃 🐄 🦬 🐅 🐆 🐇 🐉 🐍 🐎 🐏 🐐 🐑 🐒 🦧 🦍 🦃 🐓 🐕 🦮 🐕‍🦺 🐖 🐗
电器 电器 💡 📺 ☎️ 📟 📞 📠 📻 🕰 📡 🔦
电子 电子 ⌚️ 📱 💻 ⌨️ 🖥 🖨 🖱 📷 📹 💾 💽 💿 📀
畜牲 畜牲 🐄 🐃 🐂 🦬 🐐 🐏 🐖 🐑 🐕 🦮 🐕‍🦺 🐩 🐈 🐈‍⬛️
白人 白人 🧓🏼 🧑🏼 👱🏼 🧒🏼 👶🏼
白人女 白人女 👵🏼 👩🏼 👱🏼‍♀️ 👧🏼
白人男 白人男 👴🏼 👨🏼 👱🏼‍♂️ 👦🏼
白种人 白种人 🧓🏼 🧑🏼 👱🏼 🧒🏼 👶🏼
白种人女 白种人女 👵🏼 👩🏼 👱🏼‍♀️ 👧🏼
白种人男 白种人男 👴🏼 👨🏼 👱🏼‍♂️ 👦🏼
白種人 白種人 🧓🏼 🧑🏼 👱🏼 🧒🏼 👶🏼
白種人女 白種人女 👵🏼 👩🏼 👱🏼‍♀️ 👧🏼
白種人男 白種人男 👴🏼 👨🏼 👱🏼‍♂️ 👦🏼
眼鏡 眼鏡 👓 🕶 🥽
眼镜 眼镜 👓 🕶 🥽
科学 科学 🔬 🔭 ⚗️ ⚛️ 🧑🏻‍🔬 🧬 🧪 🧫 🩺 🩻
科學 科學 🔬 🔭 ⚗️ ⚛️ 🧑🏻‍🔬 🧬 🧪 🧫 🩺 🩻
穆斯林 穆斯林 👳🏽
穆斯林女 穆斯林女 👳🏽‍♀️ 🧕🏽
穆斯林男 穆斯林男 👳🏽‍♂️ 🧔🏽
節日 節日 🎊 🎉 🪅 🎏 🎎 🏮 🎐 🧧 🎁 🧨 🎇 🎆 🎑 🎄 🧑🏻‍🎄
粗粮 粗粮 🌽 🥔 🍠 🥜 🌰
粗糧 粗糧 🌽 🥔 🍠 🥜 🌰
精怪 精怪 🧙🏻 🧝🏻 🧛🏻 🧟 🧞 🧜🏻 🧚🏻 🦹🏻
精怪女 精怪女 🧙🏻‍♀️ 🧝🏻‍♀️ 🧛🏻‍♀️ 🧟‍♀️ 🧞‍♀️ 🧜🏻‍♀️ 🧚🏻‍♀️ 🦹🏻‍♀️
精怪男 精怪男 🧙🏻‍♂️ 🧝🏻‍♂️ 🧛🏻‍♂️ 🧟‍♂️ 🧞‍♂️ 🧜🏻‍♂️ 🧚🏻‍♂️ 🦹🏻‍♂️
紙幣 紙幣 💵 💶 💷 💴
纸币 纸币 💵 💶 💷 💴
肉 肉 🥩 🥓 🍗 🍖 🍤
肤色 肤色 🏻 🏼 🏽 🏾 🏿
膚色 膚色 🏻 🏼 🏽 🏾 🏿
自然 自然 🔥 💧 🌬 🫧 ☀️ 🌤 ⛅ 🌦 🌥 ☁️ 🌨 🌧 🌩 ⛈ ❄️ 💨 🌪 🌫 🌊 🧊 🪨
船 船 🚢 ⛴ 🛳 🛥 🚤 ⛵ 🛶 ⚓️
节日 节日 🎊 🎉 🪅 🎏 🎎 🏮 🎐 🧧 🎁 🧨 🎇 🎆 🎑 🎄 🧑🏻‍🎄
花 花 🌸 🌺 🌼 🌻 🌷 🌹 💐 🥀 🪷
菜 菜 🍅 🍆 🥒 🥕 🌶 🥦 🥗 🥬 🫒 🫑 🫘
葉 葉 🍃 🍂 🍁 🌱 🌿 🥬
蔬菜 蔬菜 🍅 🍆 🥒 🥕 🌶 🥦 🥗 🥬 🫒 🫑 🫘
虫 虫 🐛 🪱 🐞 🪲 🪳 🦗 🦟 🐜 🪰 🐌 🐝
蟲 蟲 🐛 🪱 🐞 🪲 🪳 🦗 🦟 🐜 🪰 🐌 🐝
血型 血型 🅰️ 🅱️ 🅾️ 🆎️
衣服 衣服 🧥 👚 👕 👖 🩳 👔 👗 👘 🥻 🩲 👙 🩱 🥼
西餐 西餐 🍕 🥓 🧀 🥖 🥐 🍝 🌯 🌮 🥙 🍟 🍔 🌭 🥞 🥪 🥯 🧇 🫕
貨幣 貨幣 💵 💶 💷 💴
货币 货币 💵 💶 💷 💴
車 車 🚗 🚕 🚙 🚌 🚎 🏎 🚓 🚑 🚒 🚐 🚚 🚛 🎢 🛻 🚔 🚍 🚘 🚖 🛺
车 车 🚗 🚕 🚙 🚌 🚎 🏎 🚓 🚑 🚒 🚐 🚚 🚛 🎢 🛻 🚔 🚍 🚘 🚖 🛺
运动 运动 🏒 🏸 🏓 🏑 🏏 ⛳ 🏹 ⚽ 🏀 🏈 ⚾️ 🥎 🎾 🏐 🏉 🎱 ⛸ 🛼 🎿 🎳 🥏 🥍 🛹 🤿 🪂 🛷 🥌 🪃 🪁
遊樂園 遊樂園 🏟 🎡 🎢 🎠 🛝
運動 運動 🏒 🏸 🏓 🏑 🏏 ⛳ 🏹 ⚽ 🏀 🏈 ⚾️ 🥎 🎾 🏐 🏉 🎱 ⛸ 🛼 🎿 🎳 🥏 🥍 🛹 🤿 🪂 🛷 🥌 🪃 🪁
酒 酒 🍷 🥃 🍺 🍶 🍾 🍸
野味 野味 🦉 🦇 🐍 🐢 🦝 🦨 🦡 🦫 🐿 🦦 🦥 🦔 🐺 🐗 🐡 🐬 🐳 🐋 🦈 🦭 🐊 🐅 🐆 🦓 🦍 🦧 🐘 🦛 🦏 🦒 🦘 🦩
野生动物 野生动物 🦉 🦇 🐍 🐢 🦝 🦨 🦡 🦫 🐿 🦦 🦥 🦔 🐺 🐗 🐡 🐬 🐳 🐋 🦈 🦭 🐊 🐅 🐆 🦓 🦍 🦧 🐘 🦛 🦏 🦒 🦘 🦩
野生動物 野生動物 🦉 🦇 🐍 🐢 🦝 🦨 🦡 🦫 🐿 🦦 🦥 🦔 🐺 🐗 🐡 🐬 🐳 🐋 🦈 🦭 🐊 🐅 🐆 🦓 🦍 🦧 🐘 🦛 🦏 🦒 🦘 🦩
阿拉伯人 阿拉伯人 👳🏽
阿拉伯人女 阿拉伯人女 👳🏽‍♀️ 🧕🏽
阿拉伯人男 阿拉伯人男 👳🏽‍♂️ 🧔🏽
雪 雪 ❄️ 🌨 ☃️ ⛄ 🧊
零食 零食 🍭 🍬 🍫 🍿 🍩 🍪
電器 電器 💡 📺 ☎️ 📟 📞 📠 📻 🕰 📡 🔦
電子 電子 ⌚️ 📱 💻 ⌨️ 🖥 🖨 🖱 📷 📹 💾 💽 💿 📀
面包 面包 🍞 🥐 🥖 🥨 🥯 🍩 🥮
鞋 鞋 👡 👢 👞 👟 🥾 🥿 👠 🛼 ⛸
鞋子 鞋子 👡 👢 👞 👟 🥾 🥿 👠 🛼 ⛸
顏色 顏色 🟥 🟧 🟨 🟩 🟦 🟪 🟫 ⬛️ ⬜️ 🔴 🟠 🟡 🟢 🔵 🟣 🟤 ⚫️ ⚪️ ❤️ 🧡 💛 💚 💙 💜 🤎 🖤 🤍
颜色 颜色 🟥 🟧 🟨 🟩 🟦 🟪 🟫 ⬛️ ⬜️ 🔴 🟠 🟡 🟢 🔵 🟣 🟤 ⚫️ ⚪️ ❤️ 🧡 💛 💚 💙 💜 🤎 🖤 🤍
飛行器 飛行器 🛩 ✈️ 🚁 🚀 🛸
飞行器 飞行器 🛩 ✈️ 🚁 🚀 🛸
飯 飯 🍛 🍲 🍝 🍜 🥘 🍣 🍱 🍘 🍙 🍚 🥡
飲料 飲料 🧋 🍹 🧃 🍸 🍵 ☕️ 🥛 🍷 🥃 🍶 🥂 🍾 🍻 🍺 🧉
餐具 餐具 🥄 🍴 🍽 🥣 🥢 🫖
饭 饭 🍛 🍲 🍝 🍜 🥘 🍣 🍱 🍘 🍙 🍚 🥡
饮料 饮料 🧋 🍹 🧃 🍸 🍵 ☕️ 🥛 🍷 🥃 🍶 🥂 🍾 🍻 🍺 🧉
髮型 髮型 🦲 🦰 🦱 🦳
髮色 髮色 🦲 🦰 🦱 🦳
魚 魚 🐠 🐟 🐡 🐬 🐳 🐋 🦈 🦭 🦦
鱼 鱼 🐠 🐟 🐡 🐬 🐳 🐋 🦈 🦭 🦦
鳥 鳥 🦆 🦅 🦉 🦇 🐓 🦃 🕊 🐧 🐦 🦚 🦜 🦩 🦤
鸟 鸟 🦆 🦅 🦉 🦇 🐓 🦃 🕊 🐧 🐦 🦚 🦜 🦩 🦤
麪包 麪包 🍞 🥐 🥖 🥨 🥯 🍩 🥮
黃種人 黃種人 🧓🏻 🧑🏻 🧒🏻 👶🏻
黃種人女 黃種人女 👵🏻 👩🏻 👧🏻
黃種人男 黃種人男 👴🏻 👨🏻 👦🏻
黄种人 黄种人 🧓🏻 🧑🏻 🧒🏻 👶🏻
黄种人女 黄种人女 👵🏻 👩🏻 👧🏻
黄种人男 黄种人男 👴🏻 👨🏻 👦🏻
黑人 黑人 🧓🏿 🧑🏿 🧒🏿 👶🏿
黑人女 黑人女 👵🏿 👩🏿 👧🏿
黑人男 黑人男 👴🏿 👨🏿 👦🏿
File diff suppressed because it is too large Load Diff
+31
View File
@@ -0,0 +1,31 @@
function date_translator(input, seg)
if (input == "dd") then
--- Candidate(type, start, end, text, comment)
yield(Candidate("date", seg.start, seg._end, os.date("%Y-%m-%d"), ""))
yield(Candidate("date", seg.start, seg._end, os.date("%Y年%m月%d日"), ""))
end
if (input == "ww") then
arr = {"","","","","",""}
arr[0] = ""
yield(Candidate("date", seg.start, seg._end, os.date("%Y-%m-%d 星期"..arr[tonumber(os.date("%w"))]), ""))
end
if (input == "tt") then
yield(Candidate("date", seg.start, seg._end, os.date("%Y-%m-%d %H:%M:%S"), ""))
yield(Candidate("date", seg.start, seg._end, os.date("%H:%M:%S"), ""))
end
end
--- 过滤器:单字在先
function single_char_first_filter(input)
local l = {}
for cand in input:iter() do
if (utf8.len(cand.text) == 1) then
yield(cand)
else
table.insert(l, cand)
end
end
for i, cand in ipairs(l) do
yield(cand)
end
end
+3
View File
@@ -17,6 +17,9 @@ italic_font auto
bold_font auto bold_font auto
bold_italic_font auto bold_italic_font auto
# Emoji
prefer_color_emoji yes
# Font size (in pts) # Font size (in pts)
font_size 10 font_size 10
draw_minimal_borders yes draw_minimal_borders yes
+61
View File
@@ -0,0 +1,61 @@
#!/usr/bin/env bash
if [[ -z "${plum_repo}" ]]; then
plum_repo='rime/plum'
fi
if [[ -z "${plum_dir}" ]]; then
# am I in a working copy already?
plum_dir="$(dirname "$0")"
if ! [[ -f "${plum_dir}"/scripts/install-packages.sh ]]; then
# make a copy of plum in a subdirectory
plum_dir='plum'
fi
fi
if ! [[ -e "${plum_dir}" ]]; then
git clone --depth 1 "https://github.com/${plum_repo}.git" "${plum_dir}"
fi
if ! [[ "$0" -ef "${plum_dir}"/rime-install ]]; then
# run the newer version of rime-install
"${plum_dir}"/rime-install "$@"
exit
fi
export root_dir="${plum_dir}"
source "${root_dir}"/scripts/bootstrap.sh
require 'styles'
if [[ -z "${rime_dir}" ]]; then
# Output to Rime user directory
require 'frontend'
guess_rime_user_dir # exports `rime_dir`
fi
if [[ "$1" == '--select' ]]; then
shift
interactive=1
fi
if [[ $# -eq 0 ]]; then
targets=(':preset')
else
targets=("$@")
fi
if [[ -n "${interactive}" ]]; then
require 'selector'
select_packages "${targets[@]}"
targets=("${selected_packages[@]}")
fi
for target in "${targets[@]}"; do
if [[ "${target}" == 'plum' ]]; then
echo $(print_result 'Updating plum at') "'${plum_dir}'"
(cd "${plum_dir}"; git pull)
continue
fi
"${root_dir}"/scripts/install-packages.sh "${target}" "${rime_dir:-.}"
done
+19 -7
View File
@@ -2,13 +2,16 @@
from __future__ import annotations from __future__ import annotations
import os import os
import platform
import re import re
from subprocess import Popen
import sys import sys
import shlex
from datetime import datetime from datetime import datetime
from pathlib import Path from pathlib import Path
def comp(input: str = 'latest', proc: str = 'cpu', codec: str = 'x264', crf: int = 24, br: int = 500, def comp(input: str = 'latest', proc: str = 'cpu', codec: str = 'x264', crf: int = 24, br: int = None,
cmd: bool = False, aargs: str = '', suffix: str = 'mp4'): cmd: bool = False, aargs: str = '', suffix: str = 'mp4'):
""" """
Compress video Compress video
@@ -36,17 +39,26 @@ def comp(input: str = 'latest', proc: str = 'cpu', codec: str = 'x264', crf: int
out += f'-{crf}' out += f'-{crf}'
out += f'.{suffix}' out += f'.{suffix}'
c = ['ffmpeg', '-i', i]
if proc == 'c': if proc == 'c':
c = f'ffmpeg -i "{i}" -vcodec lib{codec} -crf {crf} {aargs} "{out}"' c += ['-c:v', f'lib{codec}', '-crf', str(crf)]
elif proc == 'g': elif proc == 'g':
c = f'ffmpeg -i "{i}" -c:v {codec}_videotoolbox -b:v {br}k {aargs} "{out}"' if platform.system() == 'Darwin':
c += ['-c:v', f'{codec}_videotoolbox']
else:
c += ['-c:v', f'{codec}_nvenc', '-cq', str(crf)]
else: else:
raise AssertionError(f'Processor is invalid ({codec}[0] not in "cg")') raise AssertionError(f'Processor is invalid ({codec}[0] not in "cg")')
if br:
c += ['-b:v', f'{br}k', '-maxrate', f'{br}k', '-bufsize', f'2M']
c += shlex.split(aargs) + [out]
if cmd: print(c)
print(c) if not cmd:
else: Popen(c).wait()
os.system(c)
def combine(format: str, output: str | Path): def combine(format: str, output: str | Path):
+10
View File
@@ -272,6 +272,16 @@ git-unenv() {
done done
} }
# SSH Patch
SSH_BIN=$(which ssh)
ssh() {
if [[ "$TERM" == 'xterm-kitty' ]]; then
env TERM=xterm-256color "$SSH_BIN" "$@"
else
"$SSH_BIN" "$@"
fi
}
# Mac hostname # Mac hostname
mac-hostname() { mac-hostname() {
name="$@" name="$@"