WordPress.org

Plugin Directory

Changeset 145521


Ignore:
Timestamp:
08/13/09 14:54:52 (5 years ago)
Author:
abelcheung
Message:

0.3.2 release

Location:
scorerender
Files:
9 edited

Legend:

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

  • scorerender/branches/scorerender-0-3-branch/ChangeLog

    r139381 r145521  
     1=== ScoreRender 0.3.2 === 
     22009-08-13  Abel Cheung  <abelcheung@gmail.com> 
     3 
     4    * notation/lilypond.php (Backport from trunk): 
     5    - (conversion_step1) Detect lilypond version and adjust command line 
     6      accordingly. Even lilypond command line options are unstable. 
     7    - (lilypond_version) New func. 
     8 
    19=== ScoreRender 0.3.1 === 
    2102009-07-26  Abel Cheung  <abelcheung@gmail.com> 
  • scorerender/branches/scorerender-0-3-branch/notation/lilypond.php

    r66601 r145521  
    4646 
    4747/** 
    48  * Refer to {@link ScoreRender::conversion_step1() parent method} for more detail. 
     48 * Determine LilyPond version 
     49 * @param string $lilypond The path of lilypond program 
     50 * @return string|boolean The version number string if it can be determined, otherwise FALSE  
     51 */ 
     52public static function lilypond_version ($lilypond) 
     53{ 
     54    if ( !function_exists ('exec') ) return FALSE; 
     55 
     56    exec ("\"$lilypond\" -v 2>&1", $output, $retval); 
     57     
     58    if ( empty ($output) ) return FALSE; 
     59    if ( !preg_match('/^gnu lilypond (\d+\.\d+\.\d+)/i', $output[0], $matches) ) return FALSE; 
     60    return $matches[1]; 
     61} 
     62 
     63/** 
     64 * Refer to {@link ScoreRender::conversion_step1() parent method} 
     65 * for more detail. 
    4966 */ 
    5067protected function conversion_step1 ($input_file, $intermediate_image) 
    5168{ 
    52     /* lilypond adds .ps extension by itself */ 
    53     $cmd = sprintf ('"%s" --safe --ps --output "%s" "%s"', 
     69    $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! 
     72     */ 
     73    if ( false !== ( $lilypond_ver = self::lilypond_version ($this->mainprog) ) ) 
     74        if ( version_compare ($lilypond_ver, '2.11.0', '<') ) 
     75            $safemode = '-s'; 
     76     
     77    /* lilypond adds .ps extension by itself, sucks for temp file generation */ 
     78    $cmd = sprintf ('"%s" %s --ps --output "%s" "%s"', 
    5479        $this->mainprog, 
     80        $safemode, 
    5581        dirname($intermediate_image) . DIRECTORY_SEPARATOR . basename($intermediate_image, ".ps"), 
    5682        $input_file); 
  • scorerender/branches/scorerender-0-3-branch/readme.txt

    r143874 r145521  
    44Requires at least: 2.2 
    55Tested up to: 2.8.3 
    6 Stable tag: scorerender-0-3-1 
     6Stable tag: scorerender-0-3-2 
    77 
    8 Renders inline sheet music fragments in excerpts, posts, pages and comments. 
     8Renders inline sheet music fragments in post, 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 excerpts, 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 posts, pages and (optionally) comments.  Currently it supports 5 music notations: ABC, Guido, Lilypond, Mup and Philip's Music Writer. 
    1313 
    1414ScoreRender 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. 
     
    8585== Changelog == 
    8686 
     87**Version 0.3.2** 
     88 
     89* Fix invocation for LilyPond 2.12.x 
     90 
    8791**Version 0.3.1** 
    8892 
  • scorerender/branches/scorerender-0-3-branch/scorerender-admin.php

    r139380 r145521  
    44 * ScoreRender documentation 
    55 * @package ScoreRender 
    6  * @version 0.3 
     6 * @version 0.3.2 
    77 * @author Abel Cheung <abelcheung at gmail dot com> 
    88 * @copyright Copyright (C) 2006 Chris Lamb <chris at chris-lamb dot co dot uk> 
  • scorerender/branches/scorerender-0-3-branch/scorerender-class.php

    r139380 r145521  
    1818 * ScoreRender documentation 
    1919 * @package ScoreRender 
    20  * @version 0.3.1 
     20 * @version 0.3.2 
    2121 * @author Abel Cheung <abelcheung at gmail dot com> 
    2222 * @copyright Copyright (C) 2006 Chris Lamb <chris at chris-lamb dot co dot uk> 
  • scorerender/branches/scorerender-0-3-branch/scorerender-utils.php

    r139380 r145521  
    44 * ScoreRender documentation 
    55 * @package ScoreRender 
    6  * @version 0.3.1 
     6 * @version 0.3.2 
    77 * @author Abel Cheung <abelcheung at gmail dot com> 
    88 * @copyright Copyright (C) 2006 Chris Lamb <chris at chris-lamb dot co dot uk> 
  • scorerender/branches/scorerender-0-3-branch/wp-scorerender.php

    r139380 r145521  
    55Description: Renders inline music score fragments in WordPress. Heavily based on FigureRender from Chris Lamb. 
    66Author: Abel Cheung 
    7 Version: 0.3.1 
     7Version: 0.3.2 
    88Author URI: http://me.abelcheung.org/ 
    99*/ 
     
    1212 * ScoreRender documentation 
    1313 * @package ScoreRender 
    14  * @version 0.3.1 
     14 * @version 0.3.2 
    1515 * @author Abel Cheung <abelcheung at gmail dot com> 
    1616 * @copyright Copyright (C) 2006 Chris Lamb <chris at chris-lamb dot co dot uk> 
  • scorerender/trunk/readme.txt

    r139635 r145521  
    33Tags: music, music notation, music typesetting, score, abc, mup, lilypond, guido, pmw 
    44Requires at least: 2.2 
    5 Tested up to: 2.7.1 
    6 Stable tag: scorerender-0-3-1 
     5Tested up to: 2.8.3 
     6Stable tag: scorerender-0-3-2 
    77 
    88Renders inline sheet music fragments in post, pages and comments. 
     
    8585== Changelog == 
    8686 
     87**Version 0.3.2** 
     88 
     89* Fix invocation for LilyPond 2.12.x 
     90 
     91**Version 0.3.1** 
     92 
     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 
     98 
    8799**Version 0.3.0** 
    88100 
Note: See TracChangeset for help on using the changeset viewer.