Plain interesting text alignment
- Java 99.8%
- CSS 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo | ||
| com.io7m.jpita.core | ||
| com.io7m.jpita.tests | ||
| src/site/resources | ||
| .gitignore | ||
| .gitmodules | ||
| doc7m-books.json | ||
| pom.xml | ||
| README-CHANGES.xml | ||
| README-LICENSE.txt | ||
| README.in | ||
| README.md | ||
jpita
jpita
Java functions to align and justify plain text.
Features
- Full justification (flush left, flush right).
- Left alignment (flush left, ragged right).
- High coverage test suite.
- OSGi-ready
- JPMS-ready
- ISC license.
Usage
Add a series of words to a JPAlignerType instance:
var a = JPAlignerBasic.create(80);
a.addWord("Hello");
a.addWord("World");
var s = a.finish();
var a = JPJustifierBasic.create(OVERFLOW_ANYWAY, JUSTIFY_UNDER_HALF, 80);
a.addWord("Hello");
a.breakLine();
a.addWord("World");
var s = a.finish();
The result of finish() is a list of justified and/or aligned lines of text.
