On Sep 5, Bart Lateur said:

>The problem is this: given two versions of a word, one without, and one
>with hyphenation, determine which hyphens are soft hyphens (optional
>breakpoints), and which ones are hard hyphens? For example:
>
>       hypo-allergeen  hy-po-al-ler-geen
>
>(If you wonder about the hyphenation rules: Dutch)

  ($_,$s)=@ARGV;print substr($s,$-[0]-$t,1)eq'-'?'H':++$t&&'S'while/-/g;

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]

Reply via email to