🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

text-unicoder

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-unicoder

unicode text generator to make flip turned bold italic greek fraktur cursive script from ascii input

pipPyPI
Version
1.3.3501
Maintainers
1

This script allows to convert ascii to unicode specials including bold italic greek fraktur script.

Examples:

unicoder bold foobar
unicoder ital foobar
unicoder boldital foobar
unicoder double foobar
unicoder mono foobar
unicoder sans foobar
unicoder greek foobar
unicoder greek FOOBAR
unicoder fraktur foobar
unicoder boldfraktur foobar
unicoder fract 15 1/4
unicoder 15 1/4 km/h
unicoder value 15 1/4 km/h
unicoder thin 15 1/4 km/h
unicoder nobr 15 1/4 km/h
unicoder power 15^3
unicoder index x_1
unicoder math X_1^3 +1/4
unicoder back answer
unicoder down answer
unicoder flip answer

This script helps to bold or slanted text to various social media platforms. The nobr thin fract parts are particularly useful for Wikipedia. The flip text (or turn text) allows to provide a pun on a question.

There are also shorthand scripts: uubold / uuital / uumath / uuflip

RESULT

Just for amusement, this is the result when running the commands shown above. Note that the bold and italic text snippets do not rely on <i> <b> <font> hints or some similar style markup, instead they use different codepoints from the Mathematical Alphanumeric Symbols unicode blocks. Likewise fraktur and greek and double stroke characters are used often in the field of mathematics. The sans and mono are rarely used however.

𝐟𝐨𝐨𝐛𝐚𝐫
𝑓𝑜𝑜𝑏𝑎𝑟
𝒇𝒐𝒐𝒃𝒂𝒓
𝕗𝕠𝕠𝕓𝕒𝕣
𝚏𝚘𝚘𝚋𝚊𝚛
foobar
φωβαρ
ΦΩΒΑΡ
𝔣𝔬𝔬𝔟𝔞𝔯
𝖋𝖔𝖔𝖇𝖆𝖗
15¼
15¼ km/h
15¼ km/h
15 1/4 km/h
15 1/4 km/h
15³
x₁
X₁³ +¼
rewsna
ɐusʍǝɹ
ɹǝʍsuɐ

TESTSUITE

Yes, there is a testsuite with more than a hundred unittests for the functions. The module can also be imported as helper to other scripts.

For developers, please run "make tests" for the testsuite. Please do also run "make type" for mypy typehints checks and "make pep" for pep8 style checks.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts