Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item15259: hyphenate p but not script or style
- Loading branch information
1 parent
c3a0a57
commit 4dd18c3
Showing
6 changed files
with
64 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
lib/Foswiki/Configure/Checkers/Plugins/HyphenationPlugin/Enabled.pm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Extension for Foswiki - The Free and Open Source Wiki, http://foswiki.org/ | ||
# | ||
# HyphenationPlugin is Copyright (C) 2022-2024 Michael Daum http://michaeldaumconsulting.com | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
# as published by the Free Software Foundation; either version 2 | ||
# of the License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details, published at | ||
# http://www.gnu.org/copyleft/gpl.html | ||
|
||
package Foswiki::Configure::Checkers::Plugins::HyphenationPlugin::Enabled; | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use Foswiki::Configure::Checker (); | ||
our @ISA = ('Foswiki::Configure::Checker'); | ||
|
||
my @modules = ( | ||
{ | ||
name => 'TeX::Hyphen', | ||
usage => "", | ||
minimumVersion => 0, | ||
}, | ||
); | ||
|
||
sub check_current_value { | ||
my ($this, $reporter) = @_; | ||
|
||
return unless $this->{item}->getRawValue(); | ||
|
||
Foswiki::Configure::Dependency::checkPerlModules(@modules); | ||
|
||
foreach my $mod (@modules) { | ||
if ($mod->{ok}) { | ||
$reporter->NOTE(' * ' . $mod->{check_result}); | ||
} else { | ||
$reporter->ERROR(' * ' . $mod->{check_result}); | ||
} | ||
} | ||
} | ||
|
||
1; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters