Coder Social home page Coder Social logo

gdraheim / text_unicoder Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 295 KB

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

License: Apache License 2.0

Makefile 3.78% Python 96.22%
unicode text-generator bold fraktur flip

text_unicoder's Introduction

Style Check Type Check Unit Tests Code Coverage PyPI version

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

Examples:

unicoder.py bold foobar
unicoder.py ital foobar
unicoder.py boldital foobar
unicoder.py double foobar
unicoder.py mono foobar
unicoder.py sans foobar
unicoder.py greek foobar
unicoder.py greek FOOBAR
unicoder.py fraktur foobar
unicoder.py boldfraktur foobar
unicoder.py fract 15 1/4
unicoder.py 15 1/4 km/h
unicoder.py value 15 1/4 km/h
unicoder.py thin 15 1/4 km/h
unicoder.py nobr 15 1/4 km/h
unicoder.py power 15^3
unicoder.py index x_1
unicoder.py math X_1^3 +1/4
unicoder.py back answer
unicoder.py down answer
unicoder.py 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.

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.

text_unicoder's People

Contributors

gdraheim avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.