… | |
… | |
15 | |
15 | |
16 | sub query { |
16 | sub query { |
17 | my ($ns, $flags, $text) = @_; |
17 | my ($ns, $flags, $text) = @_; |
18 | |
18 | |
19 | my $current = $Coro::current; |
19 | my $current = $Coro::current; |
20 | $ns->query ($flags, $text, sub { $current->ready; $current = $_[0]; }); |
20 | $ns->query ($flags, $text, sub { $current->ready; $current = $_[0] }); |
21 | Coro::schedule while ref $current; |
21 | Coro::schedule while ref $current; |
22 | |
22 | |
23 | $current |
23 | $current |
24 | } |
24 | } |
25 | |
25 | |
… | |
… | |
168 | } elsif ($k eq "extendedMapInfos") { |
168 | } elsif ($k eq "extendedMapInfos") { |
169 | $ns->ext_mapinfos ($v); |
169 | $ns->ext_mapinfos ($v); |
170 | |
170 | |
171 | } elsif ($k eq "extendedTextInfos") { |
171 | } elsif ($k eq "extendedTextInfos") { |
172 | $ns->has_readable_type ($v); |
172 | $ns->has_readable_type ($v); |
|
|
173 | |
|
|
174 | } elsif ($k eq "smoothing") { # cfplus-style smoothing |
|
|
175 | $ns->smoothing ($v); |
173 | |
176 | |
174 | } elsif ($k eq "fxix") { |
177 | } elsif ($k eq "fxix") { |
175 | $ns->fxix ($v); |
178 | $ns->fxix ($v); |
176 | |
179 | |
177 | } else { |
180 | } else { |