An open API service indexing awesome lists of open source software.

https://github.com/abdnh/bidi-demo

JavaScript demo of Unicode Bidirectional Algorithm
https://github.com/abdnh/bidi-demo

bidi bidirectional demo javascript-demo unicode

Last synced: 3 months ago
JSON representation

JavaScript demo of Unicode Bidirectional Algorithm

Awesome Lists containing this project

README

        

# Demo of Unicode Bidirectional Algorithm

This is a simple JavaScript demo of [Unicode Bidirectional Algorithm](https://en.wikipedia.org/wiki/Bidirectional_text) for handling text containing
characters of mixed directionality (e.g. mixed English and Arabic text).

I wrote this to explore BiDi text and to create simple illustrations for an article
about BiDi text that I intend to write.

![Screenshot of the demo](screenshot.png)

## Credit

BiDi support ([bidi.js](bidi.js)) is provided by [bidi-js](https://github.com/lojjic/bidi-js).

## TODO
- [] Short description of BiDi character classes.
- [] Ambitious: Have a go at reading the [standard](https://unicode.org/reports/tr9/) and try to write your own implementation!