JavaScript library to turn Toki Pona text into the Sitelen Sitelen or Sitelen Suwi non-linear writing style.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
examples
images
resources
src
styles
.gitignore
LICENSE
README.md
bower.json
gulpfile.js
index.php
package.json

README.md

Sitelen Sitelen Renderer

Synopsis

JavaScript library to turn Toki Pona text into the Sitelen Sitelen or Sitelen Suwi non-linear writing style.

Code Example

The library requires including a single minified JavaScript file and additional styling in the head of your web page.

<link rel="stylesheet" href="styles/sitelen-sitelen-renderer.css">
<script type="text/javascript" src="dist/sitelen-sitelen-renderer.min.js"></script>

After that HTML elements with the data-sitelen attribute are parsed and rendered into toki pona if possible, with the data-sitelen-ratio attribute you can inidcate your preferred height-to-width ratio of the rendered sitelen sitelen.

<section data-sitelen data-sitelen-ratio="1">
    ale li jo e tenpo. ale li pona.
</section>

Motivation

I created Sitelen Sitelen Renderer because I am fascinated by combining the artifical language Toki Pona with the non-linear writing style 'Sitelen Sitelen' by Jonathan Gabel. Unlike other work with Sitelen Sitelen I want the writings to be generated by the computer. My first attempt was in the beginning of 2015 when I experimented with CSS Flexbox using SVG for the Glyphs. The algorithm was limited and doomed so in October 2015 I started anew, and set out to create SVG-only sitelen sitelen that can be exported and reused. This is still a hobby project that I work on in my spare time.

Installation

Install sitelen-sitelen-renderer into your web project with bower:

$ bower install sitelen-sitelen-renderer

Examples

Contributors

This live sitelen sitelen web project is made possible by the great work done work before me.

Toki Pona is an artificial language invented in 2001 by Sonja Lang as an attempt to understand the meaning of life in 120 words. In my own search, I am convinced this language should not be used to translate large bodies of text or as an actual means of communication but as a personal tool for soul searching.

Sitelen Sitelen or Sitelen Suwi is a project created by Jonathan Gabel in 2012 who created a non-linear writing style for Toki Pona inspired by Mayan script. I try to keep the algorithm behind the Sitelen Sitelen Renderer in the spirit of Jonathan's project and allow for the different ways of drawing the sitelen sitelen.

The vectorized glyphs are based on the excellent work by jan Same. To make my SVGs scalable I sadly had to get rid of the non-uniform stroke widths. Also I have slightly different ideas about how to use the containers so I took the liberty of slightly altering some glyphs.

Mind that this project is far from complete: many language constructs are not implemented yet. If you want to contribute in any way, you can for instance file issues you find or come up with clever new ways to put sitelen sitelen into action.

Cheers!

License

MIT (c) Olaf Janssen