Changeset 11139
- Timestamp:
- 03/19/11 09:08:31 (14 months ago)
- Location:
- trunk/MathModePlugin
- Files:
-
- 1 added
- 7 edited
-
. (modified) (1 prop)
-
data/System/MathModePlugin.txt (modified) (2 diffs)
-
lib/Foswiki/Plugins/MathModePlugin.pm (modified) (2 diffs)
-
lib/Foswiki/Plugins/MathModePlugin/Config.spec (added)
-
lib/Foswiki/Plugins/MathModePlugin/Core.pm (modified) (5 diffs)
-
lib/Foswiki/Plugins/MathModePlugin/DEPENDENCIES (modified) (1 diff)
-
lib/Foswiki/Plugins/MathModePlugin/MANIFEST (modified) (1 diff)
-
pub/System/MathModePlugin (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/MathModePlugin
-
Property
svn:ignore
set to
MathModePlugin.tgz
MathModePlugin.md5
MathModePlugin_installer.pl
MathModePlugin.sha1
MathModePlugin_installer
MathModePlugin.txt
MathModePlugin.zip
-
Property
svn:ignore
set to
-
trunk/MathModePlugin/data/System/MathModePlugin.txt
r5562 r11139 148 148 | | extension of the image type; \ 149 149 possible values are 'gif' and 'png' || 150 | =Latex2Img= | | '.../ %SYSTEMWEB%/%TOPIC%/latex2img' |151 | | the scriptto convert a latex formula to an image ||150 | =Latex2Img= | | '.../tools/MathModePlugin_latex2img' | 151 | | the command to convert a latex formula to an image || 152 152 | =LatexPreamble= | %<nop>LATEXPREAMBLE% | '\usepackage{latexsym}' | 153 153 | | latex preamble to include additional packages \ … … 169 169 --> 170 170 | Plugin Author: | Graeme Lufkin, Foswiki:Main/MichaelDaum | 171 | Copyright ©: | 2002 Graeme Lufkin, gwl@u.washington.edu, 2006-20 09, Michael Daum http://michaeldaumconsulting.com |171 | Copyright ©: | 2002 Graeme Lufkin, gwl@u.washington.edu, 2006-2011, Michael Daum http://michaeldaumconsulting.com | 172 172 | License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) | 173 173 | Release: | %$RELEASE% | 174 174 | Version: | %$VERSION% | 175 175 | Change History: | | 176 | 19 Mar 2011: | added Config.spec and DEPENDENCIES to ease installation and configuration; \ 177 improved compatibility to run this plugin on various Foswiki engines | 176 178 | 23 Apr 2009: | converted to foswiki plugin | 177 179 | 07 Jan 2009: | certified for foswiki/compat; removed deprecated endRenderingHandler | -
trunk/MathModePlugin/lib/Foswiki/Plugins/MathModePlugin.pm
r4640 r11139 1 1 # Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/ 2 2 # 3 # Copyright (C) 2006-20 09Michael Daum http://michaeldaumconsulting.com3 # Copyright (C) 2006-2011 Michael Daum http://michaeldaumconsulting.com 4 4 # Copyright (C) 2002 Graeme Lufkin, gwl@u.washington.edu 5 5 # … … 25 25 ); 26 26 $VERSION = '$Rev$'; 27 $RELEASE = '4.0 1';27 $RELEASE = '4.02'; 28 28 $NO_PREFS_IN_TOPIC = 1; 29 29 $SHORTDESCRIPTION = 'Include <nop>LaTeX formatted math in your Foswiki pages'; -
trunk/MathModePlugin/lib/Foswiki/Plugins/MathModePlugin/Core.pm
r5562 r11139 1 1 # Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/ 2 2 # 3 # Copyright (C) 2006-20 09Michael Daum http://michaeldaumconsulting.com3 # Copyright (C) 2006-2011 Michael Daum http://michaeldaumconsulting.com 4 4 # Copyright (C) 2002 Graeme Lufkin, gwl@u.washington.edu 5 5 # … … 22 22 use Digest::MD5 qw( md5_hex ); 23 23 use File::Copy qw( move ); 24 use File::Temp ;25 use FindBin;26 use Foswiki::Sandbox ;24 use File::Temp (); 25 #use FindBin (); 26 use Foswiki::Sandbox (); 27 27 28 28 use constant DEBUG => 0; # toggle me … … 146 146 foreach my $dir (split(/\//, "$web/$topic")) { 147 147 $topicPubDir .= '/'.$dir; 148 $topicPubDir = Foswiki::Sandbox::normalizeFileName($topicPubDir);148 $topicPubDir = normalizeFileName($topicPubDir); 149 149 unless (-d $topicPubDir) { 150 150 mkdir $topicPubDir or die "can't create directory $topicPubDir"; … … 274 274 my @files = grep(/$this->{imagePrefix}.*\.$this->{imageType}$/,readdir(DIR)); 275 275 foreach my $fileName (@files) { 276 $fileName = Foswiki::Sandbox::normalizeFileName($fileName);276 $fileName = normalizeFileName($fileName); 277 277 #writeDebug( "found image: $fileName"); 278 278 … … 419 419 } 420 420 421 ############################################################################### 422 # wrapper 423 sub normalizeFileName { 424 my $fileName = shift; 425 426 if (defined &Foswiki::Sandbox::_cleanUpFilePath) { 427 return Foswiki::Sandbox::_cleanUpFilePath($fileName); 428 } 429 430 if (defined &Foswiki::Sandbox::normalizeFileName) { 431 return Foswiki::Sandbox::normalizeFileName($fileName); 432 } 433 434 if (defined &Foswiki::normalizeFileName) { 435 return Foswiki::normalizeFileName($fileName); 436 } 437 438 # outch 439 return $fileName; 440 } 441 421 442 1; -
trunk/MathModePlugin/lib/Foswiki/Plugins/MathModePlugin/DEPENDENCIES
r211 r11139 1 dvipng,>0,c,Required. Required to generate .png output 2 latex2html,>0,c,Required. Required by the plugin for all output. -
trunk/MathModePlugin/lib/Foswiki/Plugins/MathModePlugin/MANIFEST
r3649 r11139 1 1 data/System/MathModePlugin.txt 0644 2 lib/Foswiki/Plugins/MathModePlugin/Config.spec 0644 2 3 lib/Foswiki/Plugins/MathModePlugin/Core.pm 0644 3 4 lib/Foswiki/Plugins/MathModePlugin.pm 0644 -
trunk/MathModePlugin/pub/System/MathModePlugin
-
Property
svn:ignore
set to
_MathModePlugin*
-
Property
svn:ignore
set to
Note: See TracChangeset
for help on using the changeset viewer.
