Text::hyphen, de patterns


#1

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


#2

On 5/15/06, Patrick G. removed_email_address@domain.invalid
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


#3

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