Giter Site home page Giter Site logo

hyphenation's Introduction

hyphenation - A Python based hyphenation module based hyphenator module from Wilbert Berendsen

A Python hyphenation module.This module was originally written by Wilbert Berendsen and original module is avaialble at http://pypi.python.org/pypi/hyphenator/0.5.1. This module is later modified by Santhosh Thottingal to include indic hyphenation pattern and a hyphenation function which works by taking text input and language and hyphenation symbol(optional) as shown in below examples. If you want it to work with other language you need to place the proper rules under src/hyphenator/rules folder before compiling it.

PS: This module is same as hyphenator module but this includes Indian Language hyphenation patterns some modifications to choose hyphenation patterns automatically by using ISO language codes

How to Install?

  1. Clone the source code from Gitorious

    git://gitorious.org/hyphenator/hyphenator.git

  2. Build and install using following command

    sudo python setup.py install

  3. There is an alternative way to do this use following command

    sudo pip install hyphenation

How to use?

Simple usage of the module is shown below. from hyphenation import Hyphenator h = Hyphenator() h.hyphenate(text,language)

If you want to change hyphenation symbol used then you can do that by specifying 3rd argument from hyphenation import Hyphenator h = Hyphenator() h.hyphenate(text,language,hyphen='-')

By default module will use soft hyphen (\u00AD)

hyphenation's People

Contributors

copyninja avatar jishnu7 avatar nithinsag avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.