Text::hyphen, de patterns

Hello,

I’d like to use text::hyphen, and I’d like to know how to use german
hyphenation patterns. There are two files de1.rb and de2.rb in the
distribution,
but what parameter should I use to the Text::Hyphen.new method?

Regards,

Patrick

On 5/15/06, Patrick G. [email protected]
wrote:

I’d like to use text::hyphen, and I’d like to know how to use german
hyphenation patterns. There are two files de1.rb and de2.rb in the
distribution, but what parameter should I use to the Text::Hyphen.new method?

I will have to make this easier to use, but:

require ‘text/hyphen’
require ‘text/hyphen/language/de1’

hyp = Text::Hyphen.new
hyp.language = Text::Hyphen::Language::DE

Let me think about this for a while to figure out a clean API for
these multiply named language definitions.

-austin

Hello Austin,

I will have to make this easier to use, but:

require ‘text/hyphen’
require ‘text/hyphen/language/de1’

hyp = Text::Hyphen.new
hyp.language = Text::Hyphen::Language::DE

Let me think about this for a while to figure out a clean API for
these multiply named language definitions.

thanks, works like a charm,

Patrick

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs