Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/latiif/ara
ع Command line tool that displays Arabic text in terminal.
https://github.com/latiif/ara
arabic command-line-tool terminal unicode
Last synced: 26 days ago
JSON representation
ع Command line tool that displays Arabic text in terminal.
- Host: GitHub
- URL: https://github.com/latiif/ara
- Owner: latiif
- License: mit
- Created: 2019-09-08T12:39:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T03:59:51.000Z (almost 2 years ago)
- Last Synced: 2024-08-03T12:01:40.934Z (4 months ago)
- Topics: arabic, command-line-tool, terminal, unicode
- Language: Go
- Homepage: https://pkg.go.dev/mod/github.com/latiif/ara
- Size: 62.5 KB
- Stars: 39
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-arabic - ara - Command line tool that displays Arabic text in terminal. (Programming Languages)
README
# Ara
![Validate](https://github.com/latiif/ara/workflows/Validate/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/latiif/ara)](https://goreportcard.com/report/github.com/latiif/ara)
![GitHub last commit](https://img.shields.io/github/last-commit/latiif/ara)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/latiif/ara)A command line tool that correctly displays Arabic text in terminals.
### Installation
Check [releases](https://github.com/latiif/ara/releases) and download the binary directly.
Get the binary and add it to your `$PATH`
```bash
wget https://github.com/latiif/ara/releases/download/0.7/ara && chmod +x ara
```
### Key Features
- 🆕 Undotting of Arabic letters (Rasm).
- 🆕 Revamped command line interface.
- 🆕 Add option to use files as input and/or output in the tool.
- 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 (including RTL) for Tashkeels (One tashkeel per letter).### Usage
When displaying Arabic text in terminals, it is shown incorrectly.![alt text](https://i.ibb.co/wcYTjty/original.png "Original behaviour")
With *Ara*, you can send in Arabic text and it will display correctly. In addition, the output can be right-aligned with smart line breaks accomodating to terminal width.
![alt text](https://i.ibb.co/JrdRbNK/wara.png "sent with Ara")
You can use *Ara* to undot letters according to Rasm rules.
![alt text](https://i.ibb.co/Rv9ky8J/undot.png "undot")
### Synopsis
```
Correctly displays Arabic text in terminals
Usage:
ara [flags]
ara [command]Available Commands:
help Help about any command
undot Removes the dots of Arabic letters
version Print the version number of araFlags:
-a, --adjust-right Adjust output text to be rtl (useful when in shell, less so if you want to pipe into a file)
-h, --help help for ara
-i, --input string Apply command on the contents of the input file.
-o, --output string Write output to specified file.Use "ara [command] --help" for more information about a command.
```
### 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### Building from source
* Clone the repo.
* Run `make`.
* Run the produced binary `ara`.### Disclaimer
This tool is based on [goarabic](https://github.com/01walid/goarabic) under MIT license, with additional functionalities.