Plugin Directory

Changeset 3093666


Ignore:
Timestamp:
05/28/2024 07:09:49 AM (22 months ago)
Author:
sergiotrinity
Message:

v5.9

Location:
trinity-audio/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trinity-audio/trunk/README.txt

    r3089551 r3093666  
    155155
    156156== Changelog ==
     157= 5.9 =
     158 *Release Date - May 27, 2024*
     159 * Change text output to support new format
     160
    157161= 5.8.3 =
    158162 *Release Date - May 20, 2024*
  • trinity-audio/trunk/inc/constants.php

    r2993199 r3093666  
    3131
    3232  const BREAK_MACRO = '⏸';
     33  const BLOCK_MACRO = '▇';
    3334
    3435  abstract class TRINITY_AUDIO_ERROR_TYPES {
  • trinity-audio/trunk/inc/text.php

    r3061955 r3093666  
    4141
    4242    // remove all pause symbols that are in the beginning of the text
    43     return preg_replace('/^\x{23F8}+/u', '', $content);
     43    $content = preg_replace('/^\x{23F8}+/u', '', $content);
     44
     45    // now replace pause with pause + block symbol
     46    $content = preg_replace('/\x{23F8}/u', BREAK_MACRO . BLOCK_MACRO, $content);
     47
     48    // just remove trailing blocks and pauses
     49    $content = preg_replace('/\x{23F8}\x{2587}\s*$/u', '', $content);
     50    $content = preg_replace('/\x{23F8}\s*$/u', '', $content);
     51    $content = preg_replace('/\x{2587}\s*$/u', '', $content);
     52
     53    return $content;
    4454  }
    4555
  • trinity-audio/trunk/trinity.php

    r3089551 r3093666  
    99   * Plugin URI:        https://wordpress.org/plugins/trinity-audio/
    1010   * Description:       This plugin generates an audio version of the post, for absolutely FREE. You can choose the language and the gender of the voice reading your content. You also have the option to add Trinity Audio's player on select posts or have it audiofy all of your content. In both cases, it only takes a few simple clicks to get it done. The plugin is built through collaboration with the Amazon Polly team.
    11    * Version:           5.8.3
     11   * Version:           5.9
    1212   * Author:            Trinity Audio
    1313   * Author URI:        https://trinityaudio.ai/
Note: See TracChangeset for help on using the changeset viewer.