_mergeZeeguu(zeeguuTag) {
        var tmp_trans = '';
        var connectives = '';
        var padding_len = zeeguuTag.textContent.length; // approximates the size of the to be translated word

        var node = zeeguuTag.previousSibling;

        while (node && this.connectivesSet.has(node.textContent.trim())) {
            connectives = node.textContent + connectives;
            node = node.previousSibling;
        }

        if (node && node.nodeName == config.HTML_ZEEGUUTAG && this.isTranslated($(node))) {
            zeeguuTag.textContent = node.textContent + connectives + zeeguuTag.textContent;
            tmp_trans = tmp_trans.concat($(node).find('tran').attr('chosen'));
            node.parentNode.removeChild(node.nextSibling);
            node.parentNode.removeChild(node);
        }

        tmp_trans = tmp_trans.concat(' ' + '.'.repeat(padding_len) + ' ');
        connectives = '';
        node = zeeguuTag.nextSibling;
        while (node && this.connectivesSet.has(node.textContent.trim())) {
            connectives += node.textContent;
            node = node.nextSibling;
        }

        if (node && node.nodeName == config.HTML_ZEEGUUTAG && this.isTranslated($(node))) {
            zeeguuTag.textContent += connectives + node.textContent;
            tmp_trans = tmp_trans.concat($(node).find('tran').attr('chosen'));
            node.parentNode.removeChild(node.previousSibling);
            node.parentNode.removeChild(node);
        }
        return tmp_trans;
    }
/**
     * Merge the translated zeeguuTags surrounding the given zeeguuTag.
     * @param {Element} zeeguuTag - Zeeguu tag for which to perform merge with the surrounding tags.
     * @return {string} - Temporary mock translation text.
     */
Merge the translated zeeguuTags surrounding the given zeeguuTag.
@param {Element} zeeguuTag - Zeeguu tag for which to perform merge with the surrounding tags.
@return {string} - Temporary mock translation text.
Merge the translated zeeguuTags surrounding the given zeeguuTag . @param { Element } zeeguuTag - Zeeguu tag for which to perform merge with the surrounding tags . @return { string } - Temporary mock translation text .
_mergeZeeguu(zeeguuTag) {
        var tmp_trans = '';
        var connectives = '';
        var padding_len = zeeguuTag.textContent.length; 
        var node = zeeguuTag.previousSibling;
        while (node && this.connectivesSet.has(node.textContent.trim())) {
            connectives = node.textContent + connectives;
            node = node.previousSibling;
        }
        if (node && node.nodeName == config.HTML_ZEEGUUTAG && this.isTranslated($(node))) {
            zeeguuTag.textContent = node.textContent + connectives + zeeguuTag.textContent;
            tmp_trans = tmp_trans.concat($(node).find('tran').attr('chosen'));
            node.parentNode.removeChild(node.nextSibling);
            node.parentNode.removeChild(node);
        }
        tmp_trans = tmp_trans.concat(' ' + '.'.repeat(padding_len) + ' ');
        connectives = '';
        node = zeeguuTag.nextSibling;
        while (node && this.connectivesSet.has(node.textContent.trim())) {
            connectives += node.textContent;
            node = node.nextSibling;
        }
        if (node && node.nodeName == config.HTML_ZEEGUUTAG && this.isTranslated($(node))) {
            zeeguuTag.textContent += connectives + node.textContent;
            tmp_trans = tmp_trans.concat($(node).find('tran').attr('chosen'));
            node.parentNode.removeChild(node.previousSibling);
            node.parentNode.removeChild(node);
        }
        return tmp_trans;
    }
_mergeZeeguu ( zeeguuTag ) { var tmp_trans = '' ; var connectives = '' ; var padding_len = zeeguuTag . textContent . length ; var node = zeeguuTag . previousSibling ; while ( node && this . connectivesSet . has ( node . textContent . trim ( ) ) ) { connectives = node . textContent + connectives ; node = node . previousSibling ; } if ( node && node . nodeName == config . HTML_ZEEGUUTAG && this . isTranslated ( $ ( node ) ) ) { zeeguuTag . textContent = node . textContent + connectives + zeeguuTag . textContent ; tmp_trans = tmp_trans . concat ( $ ( node ) . find ( 'tran' ) . attr ( 'chosen' ) ) ; node . parentNode . removeChild ( node . nextSibling ) ; node . parentNode . removeChild ( node ) ; } tmp_trans = tmp_trans . concat ( ' ' + '.' . repeat ( padding_len ) + ' ' ) ; connectives = '' ; node = zeeguuTag . nextSibling ; while ( node && this . connectivesSet . has ( node . textContent . trim ( ) ) ) { connectives += node . textContent ; node = node . nextSibling ; } if ( node && node . nodeName == config . HTML_ZEEGUUTAG && this . isTranslated ( $ ( node ) ) ) { zeeguuTag . textContent += connectives + node . textContent ; tmp_trans = tmp_trans . concat ( $ ( node ) . find ( 'tran' ) . attr ( 'chosen' ) ) ; node . parentNode . removeChild ( node . previousSibling ) ; node . parentNode . removeChild ( node ) ; } return tmp_trans ; }
Merge the translated zeeguuTags surrounding the given zeeguuTag.
Merge the translated zeeguuTags surrounding the given zeeguuTag .
// approximates the size of the to be translated word