-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Affects: io7m-com/.github#2
- Loading branch information
Showing
12 changed files
with
80 additions
and
527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
## 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](https://www.osgi.org/) | ||
* [JPMS-ready](https://en.wikipedia.org/wiki/Java_Platform_Module_System) | ||
* 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
com.io7m.jpita.documentation/src/main/assembly/documentation.xml
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
com.io7m.jpita.documentation/src/main/java/com/io7m/jpita/documentation/Documentation.java
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
com.io7m.jpita.documentation/src/main/java/com/io7m/jpita/documentation/package-info.java
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
com.io7m.jpita.documentation/src/main/java/module-info.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.