Git Product home page Git Product logo

ara's Introduction

Ara

Go Report Card GitHub last commit

A command line tool that correctly displays Arabic text in terminals. (screencap)

Installation

Check releases and download the binary directly.

Get the binary and add it to your $PATH

wget https://github.com/llusx/ara/releases/download/v0.1-alpha/ara && chmod +x ara

Key Features

  • Improved Non-Arabic and punctuation interpolation with Arabic text.
  • RTL line wrap and RTL line padding. (Depending on terminal width)
  • RTL rendering in terminals. (Right alignment)
  • Glyphes and ligatures for لآ,لا,لأ,لإ.
  • Full support for Tashkeels (One tashkeel per letter).

Font support

Unfortunately, not all monospace fonts support Arabic text fully. Here is a list of known fonts with good support for Arabic.

  • DejaVu Sans Mono
  • Kawkab Mono
  • Liberation Mono
  • Monospace
  • Nimbus Mono L

Usage

When displaying Arabic text in terminals, it is shown incorrectly, see image. alt text

With Ara, you can pipe in Arabic text and it will display correctly.

alt text

In addition, the output is right-aligned with smart line breaks accomodating to terminal width.

alt text

Building from source

  • Clone the repo.
  • Run make.
  • Run the produced binary ara.

Disclaimer

This tool is based on goarabic under MIT license, with additional functionalities.

ara's People

Contributors

latiif avatar

Watchers

 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.