Skip to content

Commit

Permalink
Eliminate jstructural
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed May 4, 2024
1 parent 5ff9aba commit b46d256
Show file tree
Hide file tree
Showing 12 changed files with 80 additions and 527 deletions.
36 changes: 36 additions & 0 deletions README.in
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.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,40 @@ jpita
| OpenJDK (Temurin) LTS | Linux | [![Build (OpenJDK (Temurin) LTS, Linux)](https://img.shields.io/github/actions/workflow/status/io7m-com/jpita/main.linux.temurin.lts.yml)](https://www.github.com/io7m-com/jpita/actions?query=workflow%3Amain.linux.temurin.lts)|
| OpenJDK (Temurin) Current | Windows | [![Build (OpenJDK (Temurin) Current, Windows)](https://img.shields.io/github/actions/workflow/status/io7m-com/jpita/main.windows.temurin.current.yml)](https://www.github.com/io7m-com/jpita/actions?query=workflow%3Amain.windows.temurin.current)|
| OpenJDK (Temurin) LTS | Windows | [![Build (OpenJDK (Temurin) LTS, Windows)](https://img.shields.io/github/actions/workflow/status/io7m-com/jpita/main.windows.temurin.lts.yml)](https://www.github.com/io7m-com/jpita/actions?query=workflow%3Amain.windows.temurin.lts)|

## 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.

212 changes: 0 additions & 212 deletions com.io7m.jpita.documentation/pom.xml

This file was deleted.

20 changes: 0 additions & 20 deletions com.io7m.jpita.documentation/src/main/assembly/documentation.xml

This file was deleted.

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions com.io7m.jpita.documentation/src/main/java/module-info.java

This file was deleted.

Loading

0 comments on commit b46d256

Please sign in to comment.