svnno****@sourc*****
svnno****@sourc*****
2007年 10月 16日 (火) 12:14:55 JST
Revision: 188 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=188 Author: tach Date: 2007-10-16 12:14:55 +0900 (Tue, 16 Oct 2007) Log Message: ----------- * Change running time for JST * Fix line folding nums (calc correctly for double-width charactors) - However, This fix will break renderd text format Modified Paths: -------------- slashjp/trunk/themes/slashcode/tasks/daily.pl slashjp/trunk/themes/slashcode/tasks/run_portald.pl -------------- next part -------------- Modified: slashjp/trunk/themes/slashcode/tasks/daily.pl =================================================================== --- slashjp/trunk/themes/slashcode/tasks/daily.pl 2007-10-16 03:05:40 UTC (rev 187) +++ slashjp/trunk/themes/slashcode/tasks/daily.pl 2007-10-16 03:14:55 UTC (rev 188) @@ -16,7 +16,7 @@ # GMT if you installed everything correctly. So 2:00 AM GMT is a good # sort of midnightish time for the Western Hemisphere. Adjust for # your audience and admins. -$task{$me}{timespec} = '2 0 * * *'; +$task{$me}{timespec} = '5 0 * * *'; # 9:05 AM JST $task{$me}{timespec_panic_2} = ''; # if major panic, dailyStuff can wait $task{$me}{fork} = SLASHD_NOWAIT; $task{$me}{code} = sub { @@ -117,7 +117,15 @@ my $asciitext = $story{introtext}; $asciitext .= "\n\n" . $story{bodytext} if $constants->{newsletter_body}; - ($story{asciitext}, @ref) = html2text($asciitext, 74); + if ($constants->{tweak_japanese}) { + require Jcode; + @ref = (); + $story{asciitext} = strip_notags($asciitext); + $story{asciitext} =~ tr/\n//; + $story{asciitext} = Encode::decode('utf-8', join("\n", Jcode->new(Encode::encode('utf-8', $story{asciitext}), 'utf8')->jfold(74))); + } else { + ($story{asciitext}, @ref) = html2text($asciitext, 74); + } $story{refs} = \@ref; push @$stories, \%story; Modified: slashjp/trunk/themes/slashcode/tasks/run_portald.pl =================================================================== --- slashjp/trunk/themes/slashcode/tasks/run_portald.pl 2007-10-16 03:05:40 UTC (rev 187) +++ slashjp/trunk/themes/slashcode/tasks/run_portald.pl 2007-10-16 03:14:55 UTC (rev 188) @@ -10,7 +10,7 @@ use vars qw( %task $me ); -$task{$me}{timespec} = '37 * * * *'; +$task{$me}{timespec} = '7,37 * * * *'; $task{$me}{timespec_panic_1} = ''; # not that important $task{$me}{fork} = SLASHD_NOWAIT; $task{$me}{code} = sub {