library/syllBreak.js
function syllBreak(content, fontType, breakpoint){
if (!content) {
    if (!globalOptions.isSilentMode()) console.warn('Content must be specified on knayi.syllBreak.');
    return '';
  }

  if (content === '' || !mmCharacterRange.test(content))
    return content;

  content = content.trim().replace(/\u200B/g, '');  

  if (!fontType)
    fontType = fontDetect(content);

  var lib = library.syllable[fontType];

  for (var i = 0; i < lib.length; i++) {
    content = content.replace(lib[i][0], lib[i][1]);
  };

  content = content.replace(/^\u200B/, '');

  if (breakpoint && breakpoint !== '\u200B')
    return content.replace(/\u200B/g, breakpoint);

  return content
}
function syllBreak(content, fontType, breakpoint){
if (!content) {
    if (!globalOptions.isSilentMode()) console.warn('Content must be specified on knayi.syllBreak.');
    return '';
  }

  if (content === '' || !mmCharacterRange.test(content))
    return content;

  content = content.trim().replace(/\u200B/g, '');  

  if (!fontType)
    fontType = fontDetect(content);

  var lib = library.syllable[fontType];

  for (var i = 0; i < lib.length; i++) {
    content = content.replace(lib[i][0], lib[i][1]);
  };

  content = content.replace(/^\u200B/, '');

  if (breakpoint && breakpoint !== '\u200B')
    return content.replace(/\u200B/g, breakpoint);

  return content
}
function syllBreak ( content , fontType , breakpoint ) { if ( ! content ) { if ( ! globalOptions . isSilentMode ( ) ) console . warn ( 'Content must be specified on knayi.syllBreak.' ) ; return '' ; } if ( content === '' || ! mmCharacterRange . test ( content ) ) return content ; content = content . trim ( ) . replace ( / \u200B / g , '' ) ; if ( ! fontType ) fontType = fontDetect ( content ) ; var lib = library . syllable [ fontType ] ; for ( var i = 0 ; i < lib . length ; i ++ ) { content = content . replace ( lib [ i ] [ 0 ] , lib [ i ] [ 1 ] ) ; } ; content = content . replace ( / ^\u200B / , '' ) ; if ( breakpoint && breakpoint !== '\u200B' ) return content . replace ( / \u200B / g , breakpoint ) ; return content }
Syllable-Break agent
@param content Text content
@param language Language of content 'zawgyi' ? 'my'
@param breakpoint Default is '\u200B'
@return edited text
Syllable - Break agent