Blog 07-15-23
1 Twemoji
For DoIt theme:
twemoji: if
true
, the content will enable the twemoji.
|
|
Example:
Twemoji | Description |
---|---|
🤣 | (Rolling On The Floor Laughing) |
🙂 | (Slightly Smiling Face) |
😇 | (Smiling Face With Halo) |
👻 | (ghost) |
🥶 | (cold face) |
❤️ | (red heart) |
👆️ | (backhand index pointing up) |
😵💫 | (face with spiral eyes) |
💬 | (speech balloon) |
🙀 | (weary cat) |
💦 | (sweat droplets) |
Finding Emojis:
Emojis are represented by Unicode characters, which are standardized codes used to represent text in various writing systems, including emojis. Unicode ensures that emojis can be rendered and interpreted consistently across different devices, operating systems, and web browsers. In the case of twemoji, it is a JavaScript library that replaces Unicode emoji characters with images provided by Twitter’s Twemoji project. The library detects Unicode emoji characters in your web page and dynamically replaces them with <img> tags that link to the appropriate twemoji image hosted on a CDN (Content Delivery Network). This allows for consistent rendering of emojis across different platforms and ensures that even devices or browsers without native emoji support can display them as images.
2 Python
Description: Automate the process of running the cwebp command with a Python script that prompts the user for input and generates the output filename based on the user’s input
|
|
This script first prompts for input and stores the input path in a variable (input_path)
. It then checks if the input path is a file or a folder using the os.path.isfile()
function.
If the input path is a file, it extracts the file extension and uses the quality_params dictionary to look up the corresponding quality parameter. It then generates the output filename and path, and runs the cwebp command as before.
If the input path is a folder, it loops through all files in the folder, extracts the file extension, and uses the quality_params dictionary to look up the corresponding quality parameter. It then generates the output filename and path for each file, and runs the cwebp command as before.
The quality_params
dictionary and the other input parameters can be modified as needed, and the script will automatically switch between converting a folder and a single file depending on the user input.
3 Arknights
[Arknights] [FC-8] Eunectes + Healers