pdf - Universität zu Köln
pdf - Universität zu Köln
pdf - Universität zu Köln
Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.
YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.
push @units,$match;<br />
$pos += length ($match);<br />
}<br />
# assign the characters their values. build string with comparison results for<br />
# every two units. this allows pattern matching to be used for finding local minima<br />
my $signs = join "",map {($sonority{$units[$_-1]} $sonority{$units[$_]})+1} (1.<br />
my @tmp;<br />
my $cnt = 0;<br />
#use patterns in difference array to find onset minima and prepend a "-" as marker<br />
foreach my $unit (@units)<br />
{<br />
push @tmp,$unit;<br />
push @tmp,"-" if (substr ($signs,$cnt++) =~/^21*0/;<br />
}<br />
}<br />
return join "",@tmp;<br />
#Optional call into this module. This delivers a string, where syllable boundaries<br />
#have been moved to obtain valid onsets for german words.<br />
sub syllabify<br />
{<br />
my ($self,$text) = @_;<br />
#handle foreign chars<br />
$text=convertChars($text);<br />
$out=$self->splitBySonority($text);<br />
#correct onset, if invalid combinations are found. These rules are a first<br />
#attempt and have to be evaluated<br />
$out =~s/\-\-/-/g;<br />
$out =~s/\-g([mn])/g-$1/g;<br />
$out =~s/\-(s?ch)(ptkbdg)/$1-$2/g;<br />
$out =~s/\-([dt]+z?)(s?ch|c?k)/$1-$2/g;<br />
73