GithubHelp home page GithubHelp logo

swilan's Introduction

SwiLan

If you use multiple keyboard languages in your system, you must have forgotten to change the keyboard language and type text in another language. In this case, you have text that has no specific meaning. For example, I type this text in my keyboard:

Hello World!

Oh no, I forgot to change my keyboard language.This is the typed text in persian:

آثممخ صخقمی!

At this time you can call SwiLan as an easy way :)

NOTE: This program is also implemented as a telegram bot.

Basic Usage

To use Swilan you sould first import it:

import * from Swilan

Then, call the Swilan() function to switch the language of your text:

wrong_text = "آثممخ صخقمی!"
modified_text = Swilan(wrong_text)
print(modified_text)

Congratulations, this is the result:

Hello World!

Professional use

This program detects the text language by characters by default. but if you know the language of your text, you can manually use the function for that language. for example:

wrong_text = "sghl nkdh!"
modified_text = ToPersian(wrong_text)
# Also for Persian text: ToEnglish(wrong_text)

print(modified_text)

The result is:

سلام دنیا!

swilan's People

Watchers

Mohamadreza Jamiri 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.