The LuaTeX engine provides a callback that allows you to replace the built-in paragraph builder by your own algorithm. My question is twofold:
- does there exist a lua implementation that fully (or partially) reimplements the normal algorithm that can be used as a basis for paragraph breaking experiences?
- if not (or even if yes) are there any other known uses of this callback?
Given that my first part of the question was answered in the comments below, i.e., that Taco (I guess) has reimplemented the paragraph builder from TeX (with additions from pdfTeX and Omega/Aleph) in Lua). Can somebody perhaps show how to use this lua script in a simple plain TeX scenario?
In other words how is this applied so that
<some luatex setup setting up the appropriate callback to make use of node-ltp.lua> This is a sample paragraph ....\par \bye
If that is too complicated with plain (as the code seems to draw a lot on ConTeXt specific material) then something that works with ConTeXt is fine too. After all, all I want to be able to is to see the code in action and be able to do experiments by changing it on the Lua side.