<commit_before># Simon's Improved Layout Engine

SILE is a text formatting engine. It's sort of like TeX, except it isn't
35 years old, doesn't use idiosyncratic font and output formats, and it
isn't written in Pascal.

## Install

First you will need node.js, pango and cairo installed. You will then
need to run:

* `npm install ./node-pangocairo`
* `npm install .`
* `pegjs core/frameparser.pegjs core/frameparser.silejs`

(I will write a proper build step soon.)

Then you should be good to go.

Try `sile test.sil`<commit_msg>Don't need pegjs step any more because precompiled parser is supplied<commit_after># Simon's Improved Layout Engine

SILE is a text formatting engine. It's sort of like TeX, except it isn't
35 years old, doesn't use idiosyncratic font and output formats, and it
isn't written in Pascal.

## Install

First you will need node.js, pango and cairo installed. You will then
need to run:

* `npm install ./node-pangocairo`
* `npm install .`

(I will write a proper build step soon.)

Then you should be good to go.

Try `sile examples/test.sil`
{'fraction_non_alphanumeric': 0.07757009345794393, 'fraction_numerical': 0.003738317757009346, 'mean_word_length': 4.1, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7669036', 'n_tokens_mistral': 353, 'n_tokens_neox': 332, 'n_words': 160}