GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ejossev/hypherator-java: Java Hyphenation Iterator

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
dictionaries @ 0852a97
dictionaries @ 0852a97
 
 
hypherator-tools
hypherator-tools
 
 
hypherator
hypherator
 
 
indic_dictionaries @ 55046f1
indic_dictionaries @ 55046f1
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Hypherator – Java Hyphenation Library

Maven Central License: MIT

Hypherator is a lightweight, MIT-licensed hyphenation library for Java, based on Hunspell-style hyphenation patterns. It provides a simple iterator-based API to hyphenate words — making it easy to integrate into tokenizer-style workflows (like ICU4J).


✨ Features

  • 🔤 Hunspell-style hyphenation rules (used by LibreOffice and OpenOffice)
  • ⚙️ Lightweight & pure Java – no native code or JNI required
  • 🔁 Iterator-based API – works great in streaming/text processing pipelines
  • 🌍 Multi-language – bundled with broad collection of hyphenation dictionaries
  • 🆓 MIT license – free for commercial and open-source use

🚀 Installation

Maven

<dependency>
    <groupId>io.sevcik</groupId>
    <artifactId>hypherator</artifactId>
    <version>1.0</version>
</dependency>

Gradle

implementation("io.sevcik:hypherator:1.0")

Usage

        String word = "typography";
        HyphenIterator iterator = Hypherator.getInstance("en_US");
        iterator.setWord(word);
        var potentialBreak = iterator.first();
        int count = 0;
        while (potentialBreak != DONE) {
            var parts = iterator.applyBreak(pb);
            System.out.println(parts.getFirst() + " - " + parts.getSecond());
            potentialBreak = iterator.next();
        }

This will print possible hyphenation points like:

ty - pography
typog - raphy

Included dictionaries

Compatible LibreOffice hyphenation dictionaries are bundled directly, so Hypherator works out of the box for many languages — no extra setup required.

License:

MIT License. See LICENSE file for more information.

Sponsored by pdf365.cloud.

Hypherator is developed and maintained as part of the pdf365.cloud project — a professional-grade PDF generator for structured and multilingual content.

About

Java Hyphenation Iterator

Topics

hunspellhyphenhyphenationicu4jjavanlptypesetting

Resources

Readme
MIT license
Activity

Stars

5 stars

Watchers

0 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.