Giter VIP home page Giter VIP logo

farsitype's Introduction

FarsiType

a simple library for Farsi/Arabic strings written in C++

Screenshots (using ImGui for rendering)

Correct Form:
ScreenShot

Broken:
ScreenShot

About

Hello.
I decided to do something useful in my free time and I've to admit, I kinda needed a thing like this too!.
I'm using ImGui made by @ocornut on a project and I needed to render Farsi texts. Unfortunately I wasn't able to do it for 2 reasons:

  • Farsi/Persian or Arabic languages are RTL which makes them reversed.
  • They have 4 forms for each letter, so computer can't find the right one by itself.

So after 3 days of searching for an answer and ways to achieve this, I finally came here with my own library that uses C++11. (I would do it in pure C if it was my choice, but seems like it's not possible in an easy way.)
Hope you guys find this useful!
If you found any issue or have any suggestion, feel free to create an issue for it.
Also, feel free to contribute and make this better for everyone :).

Known bugs

  • Numbers are reversed, so you should write 19 instead of 91. should add a check for numbers.

farsitype's People

Contributors

amyrahmady avatar mortezaaghazamani 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.