<commit_before>
_titleText = _this select 0;


_iMonth = date select 1;

_monthStr = switch (_iMonth) do {
    case 1: {"January"};
    case 2: {"February"};
    case 3: {"March"};
    case 4: {"April"};
    case 5: {"May"};
    case 6: {"June"};
    case 7: {"July"};
    case 8: {"August"};
    case 9: {"September"};
    case 10: {"October"};
    case 11: {"November"};
    case 12: {"December"};
};

_structuredText = parseText format 
        [
            ("<t align = 'right'>%2 %3, %1  %4:%5</t><br/>"+
             "<t align='center' size='1.5'>&quot;%6&quot;</t><br/>"),
            date select 0,  // year
            _monthStr,      // month
            date select 2,  // day
            date select 3,  // hour
            date select 4,  // minute
            _titleText
        ];

_useMissionTextArea = true;
_showAt = null;
if (_useMissionTextArea) then {
    _showAt = true;
} 
else {
    _showAt = [
                safeZoneX + safeZoneW - 0.35 - 0.025,
                safeZoneY + safeZoneH - 0.25 - 0.05,
                0.35,  // width
                0.15   // height
               ];
};

_nCols = 9;
_nRows = 4;

_showDuration = 7.0;
_fadeDuration = 0.5;
_transparency = 0.1;


null = [
        _structuredText, 
        _showAt, 
        [_nCols, _nRows],
        _showDuration,
        _fadeDuration,
        _transparency
       ] spawn BIS_fnc_textTiles;

<commit_msg>simplified the dynamic text with chapter titles<commit_after>
_titleText = _this select 0;


_iMonth = date select 1;

_monthStr = switch (_iMonth) do {
    case 1: {"January"};
    case 2: {"February"};
    case 3: {"March"};
    case 4: {"April"};
    case 5: {"May"};
    case 6: {"June"};
    case 7: {"July"};
    case 8: {"August"};
    case 9: {"September"};
    case 10: {"October"};
    case 11: {"November"};
    case 12: {"December"};
};

//_structuredText = parseText format 
//        [
//            ("<t align = 'right'>%2 %3, %1  %4:%5</t><br/>"+
//             "<t align='center' size='1.5'>&quot;%6&quot;</t><br/>"),
//            date select 0,  // year
//            _monthStr,      // month
//            date select 2,  // day
//            date select 3,  // hour
//            date select 4,  // minute
//            _titleText
//        ];

_structuredText = parseText format 
        [
            ("<t align='center' size='1.5' color='ffffff' shadow='0'>&quot;%1&quot;</t>"),
            _titleText
        ];

_width = 0.5;
_height = 0.1;
        
        
_useMissionTextArea = false;
_showAt = null;
if (_useMissionTextArea) then {
    _showAt = true;
} 
else {
    _showAt = [
                0.75,//safeZoneX + safeZoneW * 0.50 - _height * 0.50,
                0.25,//safeZoneY + safeZoneH * 0.75 - _width  * 0.50,
                _width,
                _height
               ];
};

_nCols = 9;
_nRows = 7;

_showDuration = 7.0;
_fadeDuration = 0.4;
_transparency = 0.0;


null = [
        _structuredText, 
        _showAt, 
        [_nCols, _nRows],
        _showDuration,
        _fadeDuration,
        _transparency
       ] spawn BIS_fnc_textTiles;


{'fraction_non_alphanumeric': 0.15738341968911918, 'fraction_numerical': 0.03853626943005181, 'mean_word_length': 1.6698357821953327, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '750696', 'n_tokens_mistral': 1197, 'n_tokens_neox': 1044, 'n_words': 265}