Log In  

Cart #ar_spr-0 | 2019-08-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

ArSpr is a set of 2 utility functions that let’s you write Arabic text in Pico8. You input a Latin text and it will transliterate it to Arabic. I made it because I want to make localized Pico8 games, and to practice writing my own implementation for Right-to-Left text and Arabic Shaping.

ArSpr’s specifications:

2 sprites
510 out of 8192 tokens
~30% of compressed space
No dropped frames when filling the screen

Usage is easy, but slightly different from the regular Print() function in Pico8; you have to initialize a variable to contain the text data then draw it. Here’s an example:

function _init()

function _draw()
  draw_ar(text1, [x], [y])

You can read how the font is encoded in this blogpost.

This project was inspired by TinyText which uses a similar method, but my cart is written from scratch and has an Arabic Shaper that's not in TinyText.

P#66908 2019-08-24 09:33 ( Edited 2019-08-24 11:00)

:: Joe99

مشكور جداً
Is there a table for the values you need to input for each letter ?

P#66916 2019-08-24 17:01

!أهلاً وسهلاً
There's a table for the corresponding values at the start of the second tab in code. Sorted by abjadya أبجدبة

P#66918 2019-08-24 18:19

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-09-23 13:09 | 0.018s | 4194k | Q:35