Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A TeX-style hyphenation package for the Go programming language.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.textile
Octocat-spinner-32 hyphenator.go
Octocat-spinner-32 hyphenator_test.go
Octocat-spinner-32 patterns-en
README.textile

Hyphenation for Go

Version 1.0 — 20 July 2010

By Jim Dovey

Requirements

Introduction

This project implements a hyphenator which will take a block of text and hyphenate it according to some provided TeX-style rules. At present it doesn’t interpret the TeX values verbatim, it expects them to be encoded a bit like Go source code, so I can use Go’s Scanner class to parse it.

For more information on the TeX hyphenation algorithm, refer to the original paper by Franklin Mark Liang.

Installation

The simplest way to install is using goinstall:

> goinstall “github.com/AlanQuatermain/go-trie”
> goinstall “github.com/AlanQuatermain/go-hyphenator”

This will install the package in such a way that it must be imported using the above quoted string as its import statement, i.e. import hyphenator "github.com/AlanQuatermain/go-hyphenator".

Alternatively you can clone the code directly and install it using make install. This will enable you to import it in your code using just import "hyphenator".

Something went wrong with that request. Please try again.