WordPress.org

Plugin Directory

Changeset 209418


Ignore:
Timestamp:
02/23/10 14:41:03 (4 years ago)
Author:
abelcheung
Message:

Prepare for 0.3.3 release, all fixes backported from trunk

Location:
scorerender/branches/scorerender-0-3-branch
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • scorerender/branches/scorerender-0-3-branch/ChangeLog

    r145521 r209418  
     12010-02-23  Abel Cheung  <abelcheung@gmail.com> 
     2 
     3    * Everything below backported from trunk. 
     4    * Update copyright, switch to AGPL v3. 
     5    * scorerender-admin.php: 
     6    - (scorerender_admin_options) Fix incorrectly placed html tags in 
     7      admin form, add icon to admin title. 
     8    - Move 'show source' setting to contents section. 
     9    * wp-scorerender.php: 
     10    - (scorerender_conversion_hook) notation was not deactivated even when 
     11      corresponding notation program was unset. 
     12    * wp-scorerender.php, scorerender-class.php: 
     13    - Rename DEBUG constant to avoid potential name clash. 
     14    * notation/lilypond.php: 
     15    - (conversion_step1) Yet another fix for lilypond invocation. Safe 
     16      mode is there after all. Now precise version involving the change 
     17      is detected. 
     18    * notation/pmw.php, notation/mup.php: 
     19    - PostScript transparency for recent ImageMagick is properly detected. 
     20    * notation/pmw.php: 
     21    - Add command line argument to prevent reading config file. 
     22 
    123=== ScoreRender 0.3.2 === 
    2242009-08-13  Abel Cheung  <abelcheung@gmail.com> 
  • scorerender/branches/scorerender-0-3-branch/misc/showcode.php

    r114489 r209418  
    11<?php 
     2/* 
     3    Copyright (C) 2007, 2008, 2009, 2010 Abel Cheung 
     4 
     5    This program is free software: you can redistribute it and/or modify 
     6    it under the terms of the GNU Affero General Public License as 
     7    published by the Free Software Foundation, either version 3 of the 
     8    License, or (at your option) any later version. 
     9 
     10    This program is distributed in the hope that it will be useful, 
     11    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     13    GNU Affero General Public License for more details. 
     14 
     15    You should have received a copy of the GNU Affero General Public License 
     16    along with this program.  If not, see <http://www.gnu.org/licenses/>. 
     17*/ 
     18 
    219    // this file must be either 3 or 4 levels from WP top dir 
    320    if (file_exists ('../../../../wp-config.php')) 
  • scorerender/branches/scorerender-0-3-branch/notation/abc.php

    r66601 r209418  
    33 * Implements rendering of ABC notation in ScoreRender. 
    44 * @package ScoreRender 
     5 * @version 0.3.3 
     6 * @author Abel Cheung <abelcheung at gmail dot com> 
     7 * @copyright Copyright (C) 2007, 2008, 2009, 2010 Abel Cheung 
     8 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU AGPL v3 
    59*/ 
    610 
  • scorerender/branches/scorerender-0-3-branch/notation/guido.php

    r66601 r209418  
    33 * Implements rendering of GUIDO notation in ScoreRender. 
    44 * @package ScoreRender 
     5 * @version 0.3.3 
     6 * @author Abel Cheung <abelcheung at gmail dot com> 
     7 * @copyright Copyright (C) 2007, 2008, 2009, 2010 Abel Cheung 
     8 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU AGPL v3 
    59*/ 
    610 
  • scorerender/branches/scorerender-0-3-branch/notation/lilypond.php

    r145521 r209418  
    11<?php 
    2 /* 
    3  Mostly based on class.lilypondrender.inc.php from FigureRender 
    4  Chris Lamb <chris@chris-lamb.co.uk> 
    5  10th April 2006 
    6 */ 
    7  
    82/** 
    93 * Implements rendering of Lilypond notation in ScoreRender. 
    104 * @package ScoreRender 
     5 * @version 0.3.3 
     6 * @author Abel Cheung <abelcheung at gmail dot com> 
     7 * @copyright Copyright (C) 2007, 2008, 2009, 2010 Abel Cheung 
     8 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU AGPL v3 
    119*/ 
    1210 
     
    6866{ 
    6967    $safemode = ''; 
    70     /* LilyPond SUCKS unquestionably. On or before 2.8 safe mode is triggered by --safe option, 
    71      * on 2.10.x it becomes --safe-mode, and on 2.12.x the option is completely gone! 
     68    /* LilyPond SUCKS unquestionably. On 2.8 safe mode is triggered by "--safe" option, 
     69     * on 2.10.x it becomes "--safe-mode", and on 2.12.x that"s "-dsafe"! 
    7270     */ 
    7371    if ( false !== ( $lilypond_ver = self::lilypond_version ($this->mainprog) ) ) 
    74         if ( version_compare ($lilypond_ver, '2.11.0', '<') ) 
     72        if ( version_compare ($lilypond_ver, '2.11.11', '<') ) 
    7573            $safemode = '-s'; 
     74        else 
     75            $safemode = '-dsafe'; 
    7676     
    7777    /* lilypond adds .ps extension by itself, sucks for temp file generation */ 
  • scorerender/branches/scorerender-0-3-branch/notation/mup.php

    r114489 r209418  
    33 * Implements rendering of Mup notation in ScoreRender. 
    44 * @package ScoreRender 
     5 * @version 0.3.3 
     6 * @author Abel Cheung <abelcheung at gmail dot com> 
     7 * @copyright Copyright (C) 2007, 2008, 2009, 2010 Abel Cheung 
     8 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU AGPL v3 
    59*/ 
    610 
     
    131135    // FIXME: mind boggling exercise: why ImageMagick identifies PostScript produced by Mup as having 
    132136    // transparency on Windows, yet otherwise on Linux? 
    133     return parent::conversion_step2 ($intermediate_image, $final_image, is_windows()); 
     137    // FIXME: 2. more exercise: when is it interpreted as having transparency on Linux too? 
     138    return parent::conversion_step2 ($intermediate_image, $final_image, true); 
    134139} 
    135140 
  • scorerender/branches/scorerender-0-3-branch/notation/pmw.php

    r114489 r209418  
    33 * Implements rendering of Philip's Music Writer notation in ScoreRender. 
    44 * @package ScoreRender 
     5 * @version 0.3.3 
     6 * @author Abel Cheung <abelcheung at gmail dot com> 
     7 * @copyright Copyright (C) 2008, 2009, 2010 Abel Cheung 
     8 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU AGPL v3 
    59*/ 
    610 
     
    3438protected function conversion_step1 ($input_file, $intermediate_image) 
    3539{ 
    36     $cmd = sprintf ('"%s" -includefont -o "%s" "%s"', 
     40    $cmd = sprintf ('"%s" -norc -includefont -o "%s" "%s"', 
    3741            $this->mainprog, 
    3842            $intermediate_image, $input_file); 
     
    5357    // in PostScript produced by PMW. 
    5458    return parent::conversion_step2 ($intermediate_image, 
    55         $final_image, FALSE, '-page a3'); 
     59        $final_image, true, '-page a3'); 
    5660} 
    5761 
  • scorerender/branches/scorerender-0-3-branch/readme.txt

    r145521 r209418  
    33Tags: music, music notation, music typesetting, score, abc, mup, lilypond, guido, pmw 
    44Requires at least: 2.2 
    5 Tested up to: 2.8.3 
     5Tested up to: 2.9.2 
    66Stable tag: scorerender-0-3-2 
    77 
    8 Renders inline sheet music fragments in post, pages and comments. 
     8Renders inline sheet music fragments in excerpts, posts, pages and comments. 
    99 
    1010== Description == 
    1111 
    12 ScoreRender is a Wordpress plugin for rendering sheet music fragments into images.  It supports converting fragments in posts, pages and (optionally) comments.  Currently it supports 5 music notations: ABC, Guido, Lilypond, Mup and Philip's Music Writer. 
     12ScoreRender is a Wordpress plugin for rendering sheet music fragments into images.  It supports converting fragments in excerpts, posts, pages and (optionally) comments.  Currently it supports 5 music notations: ABC, Guido, Lilypond, Mup and Philip's Music Writer. 
    1313 
    14 ScoreRender started its life from Chris Lamb’s FigureRender plugin, which is a Wordpress plugin for rendering LaTeX and Lilypond music fragments into images. Its maintainership changed later. While continue enhancing FigureRender, all LaTeX related functionalities are submitted to [LatexRender](http://sixthform.info/steve/wordpress/), thus preserving this plugin for music rendering only and the rename. 
    15  
    16 For latest version, detailed usage instructions and demo cases, please visit [ScoreRender official site](http://scorerender.abelcheung.org/). Requires PHP5, ImageMagick and various programs to generate music score (except Guido notation). 
     14For latest version, detailed usage instructions and demo cases, please visit [ScoreRender official site](http://scorerender.abelcheung.org/). Requires PHP5, ImageMagick and various programs to generate music score. 
    1715 
    1816== Installation == 
    1917 
    2018###Prerequisite### 
    21 1. Starting from ScoreRender 0.2, PHP4 compatibility is dropped, and PHP5 is strictly needed. 
    22 2. Starting from ScoreRender 0.2, ImageMagick >= 6.3.6-2 is needed, due to usage of `-flatten` option. 
    23 3. Music rendering programs must also be installed on the same machine web server is running. For example, to support Lilypond fragments, Lilypond >= 2.8.1 must be installed in web server. Refer to [installation page](http://scorerender.abelcheung.org/installation/) for more detail. 
     19 
     201. **PHP 5.x** (PHP4 compatibility is dropped since 0.2; please visit [offical site](http://scorerender.abelcheung.org/) if ancient version using PHP4 is needed) 
     211. **ImageMagick >= 6.3.6-2** (due to usage of `-flatten` option). Newer version is better, since a bug about detecting PostScript transparency is fixed (updating pending in this area) 
     221. **Music rendering programs** must also be installed on the same machine web server is running. For example, to support Lilypond fragments, Lilypond >= 2.8.1 must be installed in web server. Most notations require explicit program to render, except GUIDO notation which fetches remote images instead. Refer to [installation page](http://scorerender.abelcheung.org/installation/) for more detail. 
    2423 
    2524###New install### 
     25 
    26261. Install any prerequisite programs as noted above. 
    27 2. Extract archive, and copy 'scorerender' folder to `wp-content/plugins/`, keeping the folder structure intact. 
    28 3. Login to WordPress and enable the plugin in admin interface. 
    29 4. Configure ScoreRender under the ScoreRender tab of the Options page. 
    30 5. In Option -> Writing, check if this option is turned on: 
     271. Extract archive, and copy 'scorerender' folder to `wp-content/plugins/`, keeping the folder structure intact. 
     281. Login to WordPress and enable the plugin in admin interface. 
     291. Configure ScoreRender under the ScoreRender tab of the Options page. 
     301. In Option -> Writing, check if this option is turned on: 
    3131 
    3232       "WordPress should correct invalidly nested XHTML automatically" 
     
    3737 
    3838###Upgrade### 
     39 
    39401. Deactivate the plugin in WordPress admin page. 
    40 2. Remove the whole plugin folder. 
    41 3. Upload new plugin and activate again. 
     411. Remove the whole plugin folder. 
     421. Upload new plugin and activate again. 
    4243 
    4344== Frequently Asked Questions == 
     
    4546= It just complains about some obscure error! = 
    4647 
    47 The error code indicates the kind of error in some degree. There are comments inside wp-scorerender.php indicating what kind of error it is. If you can't make any heads and tails out of PHP code, feel free to ask me [through email](http://me.abelcheung.org/aboutme/). 
     48The error code indicates the kind of error in some degree. There are comments inside wp-scorerender.php indicating what kind of error it is. If you can't make any heads and tails out of PHP code, feel free to [contact the author](http://me.abelcheung.org/aboutme/). 
    4849 
    4950= Why music score fragments are not rendered at all? = 
    5051 
    5152* Check if the beginning tag and ending tag of your music score fragment are correct. 
    52 * It will only be rendered if logged in user has 'unfiltered_html' capability, i.e. the user has 'Administrator' or 'Editor' role in WordPress. User can ask blog admin to boost their capabilities if needed. 
     53* It will only be rendered if logged in user has *unfiltered_html* capability, i.e. the user has *Administrator* or *Editor* role in WordPress. User can ask blog admin to boost their capabilities if needed. 
     54* Some programs required for certain notation may be not working or missing. 
    5355 
    5456= Is any ABC notation compatible program also supported? = 
    5557 
    56 Since 0.2, [abcm2ps](http://moinejf.free.fr/) will be the only one supported. This is a design decision. If you REALLY want to use other similar programs, you are on your own, though modifying the code to support others is not very hard. Take a look at `is_notation_usable()` method in class.abc.inc.php. 
     58Since 0.2, [abcm2ps](http://moinejf.free.fr/) will be the only one supported. This is a design decision. If you **REALLY** want to use other similar programs, you are on your own, though modifying the code to support others is not very hard. Take a look at `is_notation_usable()` method in `notation/abc.php`. 
    5759 
    5860= I want to remove cache for 1 image and re-render, but how can I determine which is which? = 
    5961 
    60 Right now you have to view HTML source to find out cache image file name. Management of cache is planned in future, but can't say when. 
     62Right now this is still impossible. Management of cache is planned in future, but can't say when. 
    6163 
    6264= Images using Guido notation seems blurred. = 
     
    6668= How to debug my fragment when posting? = 
    6769 
    68 Simply put, don't do that now if possible. There is no viable method for debugging a fragment yet. The best way is render it privately in your computer first, then post the content, rather than needlessly spending lots of time on trial and error. 
     70Simply answer: don't do that if possible. The best way is render it privately in your computer first, then post the content, rather than needlessly spending lots of time on trial and error. 
     71Long answer: There is no easy method for debugging a fragment yet. If there is no choice but perform trial and error, please search for this line in `wp-scorerender.php`: 
     72 
     73`   define (DEBUG, FALSE);` 
     74 
     75Change `FALSE` to `TRUE`, then resubmit the content again. It has 2 purposes: 
     76 
     771. Erraneous fragments are not deleted from server temp folder, and you can try manually rendering the fragment using command line to see what's wrong. 
     781. Full command line for rendering is now shown on blog, so that you can check out if command line argument is wrong. 
    6979 
    7080= How can I install Philip's Music Writer? = 
    7181 
    72 Only by downloading source from its official website and compile the program yourself. The author failed to notice any binary package for Windows or Linux as of Feb 2009. 
     82Only by downloading source from its official website and compile the program yourself. The author failed to notice any binary package for Windows or Linux as of Feb 2010, except an outdated RPM package for Mandriva Linux. 
    7383 
    74 Compiling and using PMW on Windows may only be possible through code changes. 
     84Please refer to the documents inside PMW tarball on how to compile its source code. 
     85 
     86= I discovered a bug. How can I notify the author? = 
     87 
     88You can either [submit bug report to Googlecode](http://code.google.com/p/scorerender/issues/list) or [contact the author](http://me.abelcheung.org/aboutme/). 
    7589 
    7690== Screenshots == 
     
    7993 
    8094== License == 
    81 This plugin is released under GPL v2. 
    82 IE Alpha Fix is released under LGPL v2.1 or later. 
    83 Zero Clipboard is released under LGPL. 
     95 
     96* This plugin is released under GNU AGPL v3. 
     97* IE Alpha Fix is released under LGPL v2.1 or later. 
     98* Zero Clipboard is released under LGPL. 
     99 
     100== Upgrade Notice == 
     101 
     102= 0.3.3 = 
     103 
     104* Safe mode for Lilypond notation is once again usable. 
     105* Users of more recent ImageMagick version will find that transparency for certain notations are fixed. 
     106* Also fix a bug prevented disabling of notation. 
     107 
     108= 0.3.2 = 
     109 
     110* Users of Lilypond 2.12.x should upgrade due to broken command line invocation. 
    84111 
    85112== Changelog == 
    86113 
    87 **Version 0.3.2** 
     114= 0.3.3 = 
    88115 
    89 * Fix invocation for LilyPond 2.12.x 
     116* Change license to AGPL v3. 
     117* 'Show source' setting is moved to 'Contents' admin section. 
     118* BUG FIX: Admin form html tags incorrectly nested. 
     119* BUG FIX: Notation was not deactivated even when program name is not filled. 
     120* BUG FIX: Restore safe mode for Lilypond, use precise version detection to determine command line argument. 
     121* BUG FIX: PostScript transparency shall be properly detected for PMW and Mup on recent ImageMagick versions. 
     122* BUG FIX: Prevents PMW from reading config file. 
     123* FEATURE: Add icon for admin form title (on recent WP versions). 
    90124 
    91 **Version 0.3.1** 
     125= 0.3.2 = 
    92126 
    93 * Incorporate certain fixes from trunk: 
    94 * Show image dimension in output 
    95 * Fix line break when showing score source code under Windows 
    96 * Better autodetection of program 
    97 * Bug fix in program availability checkinng 
     127* BUG FIX: Fix invocation for LilyPond 2.12.x 
    98128 
    99 **Version 0.3.0** 
     129= 0.3.1 = 
    100130 
    101 * Philip's Music Writer notation support. 
    102 * IE Alpha fix has been incorporated, which provides translucent PNG support for IE 5.5 / 6.x. Thus drop IE PNG transparency warning altogether.  
    103 * Zero Clipboard has been incorporated, which provides cross platform copy and paste via flash. Warning about non-IE browser during copy and paste is removed. 
    104 * Better support of installation on web hosting, where disabling certain PHP functions is common practise. 
     131* FEATURE: Show image dimension in output. 
     132* BUG FIX: Fix line break when showing score source code under Windows. 
     133* FEATURE: Better autodetection of program. 
     134* BUG FIX: program availability checking. 
     135 
     136= 0.3.0 = 
     137 
     138* FEATURE: Philip's Music Writer notation support. 
     139* FEATURE: IE Alpha fix has been incorporated, which provides translucent PNG support for IE 5.5 / 6.x. Thus drop IE PNG transparency warning altogether.  
     140* FEATURE: Zero Clipboard has been incorporated, which provides cross platform copy and paste via flash. Warning about non-IE browser during copy and paste is removed. 
     141* FEATURE: Better support of installation on web hosting, where disabling certain PHP functions is common practise. 
    105142* Rendering or not also depends on 'unfiltered_html' WordPress capability. 
    106143* Refactor functions and files, so admin page is only included when needed, and PHP class no longer access global variables. 
    107144 
    108 **Version 0.2.1** 
     145= 0.2.1 = 
    109146 
    110 * Fix turning on/off IE PNG transparency warning option. 
     147* BUG FIX: Toggling IE PNG transparency warning option was ineffective. 
    111148 
    112 **Version 0.2.0** 
     149= 0.2.0 = 
    113150 
    114151* Revamp admin page and simplify options. 
     
    118155* Mandates abcm2ps must be used for ABC notation support. 
    119156 
    120 **Version 0.1.3** 
     157= 0.1.3 = 
    121158 
    122159* Add WordPress nonce protection. 
    123160 
    124 **Version 0.1.2** 
     161= 0.1.2 = 
    125162 
    126163* Fix image rendering during ImageMagick conversion process. 
    127164 
    128 **Version 0.1.1** 
     165= 0.1.1 = 
    129166 
    130167* Fix transparency of images generated by Lilypond. 
    131 * Issue warning if 'correct invalidly nested XHTML automatically' option is checked, instead of turning the option off. 
     168* Issue warning if *correct invalidly nested XHTML automatically* option is checked, instead of turning the option off. 
    132169 
    133 **Version 0.1.0** 
     170= 0.1.0 = 
    134171 
    135172* Initial release. 
  • scorerender/branches/scorerender-0-3-branch/scorerender-admin.php

    r145521 r209418  
    44 * ScoreRender documentation 
    55 * @package ScoreRender 
    6  * @version 0.3.2 
     6 * @version 0.3.3 
    77 * @author Abel Cheung <abelcheung at gmail dot com> 
    88 * @copyright Copyright (C) 2006 Chris Lamb <chris at chris-lamb dot co dot uk> 
    9  * @copyright Copyright (C) 2007-09 Abel Cheung 
    10  * @license http://opensource.org/licenses/gpl-license.php GNU Public License 
     9 * @copyright Copyright (C) 2007, 2008, 2009, 2010 Abel Cheung 
     10 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU AGPL v3 
    1111 */ 
    1212 
     
    477477        </tr> 
    478478        <tr valign="top"> 
    479             <th score="row"><?php _e('Clickable image:', TEXTDOMAIN) ?></th> 
    480             <td> 
    481                 <input type="checkbox" name="ScoreRender[SHOW_SOURCE]" id="show_input" value="1" <?php checked('1', $sr_options['SHOW_SOURCE']); ?> /> 
    482                 <label for="show_input"><?php _e('Show music source in new browser window/tab when image is clicked', TEXTDOMAIN); ?></label> 
    483             </td> 
    484         </tr> 
    485         <tr valign="top"> 
    486479            <th score="row"><?php _e('Image post-processing', TEXTDOMAIN) ?></th> 
    487480            <td> 
     
    515508 
    516509        <table width="100%" cellspacing="2" cellpadding="5" class="optiontable editform form-table"> 
     510        <tr valign="top"> 
     511            <th score="row"><?php _e('Clickable image:', TEXTDOMAIN) ?></th> 
     512            <td> 
     513                <input type="checkbox" name="ScoreRender[SHOW_SOURCE]" id="show_input" value="1" <?php checked('1', $sr_options['SHOW_SOURCE']); ?> /> 
     514                <label for="show_input"><?php _e('Show music source in new browser window/tab when image is clicked', TEXTDOMAIN); ?></label> 
     515            </td> 
     516        </tr> 
    517517        <tr valign="top"> 
    518518            <th scope="row"><?php _e('Maximum length per fragment:', TEXTDOMAIN) ?></th> 
     
    627627?> 
    628628 
    629     <div class="wrap"> 
     629<div class="wrap"> 
     630    <?php if ( function_exists ('screen_icon') ) screen_icon(); ?> 
     631    <h2><?php _e('ScoreRender options', TEXTDOMAIN) ?></h2> 
     632 
    630633    <form method="post" action="" id="scorerender-conf"> 
    631634    <?php wp_nonce_field ('scorerender-update-options') ?> 
    632     <h2><?php _e('ScoreRender options', TEXTDOMAIN) ?></h2> 
    633635 
    634636    <p><?php _e('The following notations are supported by ScoreRender, along with starting and ending tag after each notation name. Each music fragment must be enclosed by corresponding pair of tags.', TEXTDOMAIN); ?></p> 
     
    660662    </p> 
    661663 
    662     </div> 
    663664    </form> 
     665</div> 
    664666    <?php 
    665667} 
  • scorerender/branches/scorerender-0-3-branch/scorerender-class.php

    r145521 r209418  
    1818 * ScoreRender documentation 
    1919 * @package ScoreRender 
    20  * @version 0.3.2 
     20 * @version 0.3.3 
    2121 * @author Abel Cheung <abelcheung at gmail dot com> 
    2222 * @copyright Copyright (C) 2006 Chris Lamb <chris at chris-lamb dot co dot uk> 
    23  * @copyright Copyright (C) 2007-09 Abel Cheung 
    24  * @license http://opensource.org/licenses/gpl-license.php GNU Public License 
     23 * @copyright Copyright (C) 2007, 2008, 2009, 2010 Abel Cheung 
     24 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU AGPL v3 
    2525 */ 
    2626 
     
    430430final protected function _exec ($cmd) 
    431431{ 
    432     if (DEBUG) { echo '<pre style="overflow: auto">' . $cmd . "</pre>\n"; } 
     432    if (SR_DEBUG) { echo '<pre style="overflow: auto">' . $cmd . "</pre>\n"; } 
    433433 
    434434    $cmd_output = array(); 
     
    718718        (filesize ($intermediate_image)) === 0) 
    719719    { 
    720         if (! DEBUG) { 
     720        if (! SR_DEBUG) { 
    721721            unlink ($input_file); 
    722722            @rmdir ($temp_working_dir); 
     
    734734 
    735735    // Cleanup 
    736     if (! DEBUG) { 
     736    if (! SR_DEBUG) { 
    737737        unlink ($intermediate_image); 
    738738        unlink ($input_file); 
  • scorerender/branches/scorerender-0-3-branch/scorerender-utils.php

    r145521 r209418  
    44 * ScoreRender documentation 
    55 * @package ScoreRender 
    6  * @version 0.3.2 
     6 * @version 0.3.3 
    77 * @author Abel Cheung <abelcheung at gmail dot com> 
    88 * @copyright Copyright (C) 2006 Chris Lamb <chris at chris-lamb dot co dot uk> 
    9  * @copyright Copyright (C) 2007-09 Abel Cheung 
    10  * @license http://opensource.org/licenses/gpl-license.php GNU Public License 
     9 * @copyright Copyright (C) 2007, 2008, 2009, 2010 Abel Cheung 
     10 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU AGPL v3 
    1111 */ 
    1212 
  • scorerender/branches/scorerender-0-3-branch/wp-scorerender.php

    r145521 r209418  
    55Description: Renders inline music score fragments in WordPress. Heavily based on FigureRender from Chris Lamb. 
    66Author: Abel Cheung 
    7 Version: 0.3.2 
     7Version: 0.3.3 
    88Author URI: http://me.abelcheung.org/ 
    99*/ 
     
    1212 * ScoreRender documentation 
    1313 * @package ScoreRender 
    14  * @version 0.3.2 
     14 * @version 0.3.3 
    1515 * @author Abel Cheung <abelcheung at gmail dot com> 
    1616 * @copyright Copyright (C) 2006 Chris Lamb <chris at chris-lamb dot co dot uk> 
    17  * @copyright Copyright (C) 2007-09 Abel Cheung 
    18  * @license http://opensource.org/licenses/gpl-license.php GNU Public License 
     17 * @copyright Copyright (C) 2007, 2008, 2009, 2010 Abel Cheung 
     18 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU AGPL v3 
    1919 */ 
    2020 
     
    4444 * Debugging purpose 
    4545 */ 
    46 define (DEBUG, FALSE); 
     46define (SR_DEBUG, FALSE); 
    4747 
    4848/* 
     
    460460 
    461461          default: 
    462             if (DEBUG) 
     462            if (SR_DEBUG) 
    463463                return $render->get_command_output (); 
    464464            else 
     
    601601        // unfilled program name = disable support 
    602602        foreach ($notation['progs'] as $prog) 
    603             if (empty ($sr_options[$prog])) continue; 
     603            if (empty ($sr_options[$prog])) continue 2; 
    604604        $regex_list[] = $notation['regex']; 
    605605    }; 
Note: See TracChangeset for help on using the changeset viewer.