// Postupne pridavani do noveho pole
let textPole = []
for(let i=0; i < nezalomenyText.length; i++){
if(i % delkaRadku == 0){
textPole.push(nezalomenyText[i] + "
")
} else {
textPole.push(nezalomenyText[i])
}
}
const zalomenyText = textPole.join("")
let zalomenyText = nezalomenyText
zalomenyText = zalomenyText.replaceAll(/[A-Z][^ ]*/g,"xxxx")
let textPole = Array.from(nezalomenyText)
for(let i=0; i < textPole.length; i++){
if(i % 3 == 0){
textPole[i]="."
}
}
const zalomenyText = textPole.join("")
let textPole = Array.from(nezalomenyText)
for(let i=0; i < textPole.length; i++){
if(i % delkaRadku == 0){
textPole[i] = textPole[i] + "
"
}
}
const zalomenyText = textPole.join("")
// todo: udelej zmeny
let textPole = []
for(let i=0; i < nezalomenyText.length; i++){
if(i % delkaRadku == 0){
textPole.push(nezalomenyText[i] + "
")
} else {
textPole.push(nezalomenyText[i])
}
}
const zalomenyText = textPole.join("")
let textPole = []
for(const [i, znak] of Array.from(nezalomenyText).entries()){
let nahrada = znak
if(nahrada == " "){
nahrada = " " // non-breakable space
}
if(i % delkaRadku == 0 && i != 0){
textPole.push("
" + nahrada)
} else {
textPole.push(nahrada)
}
}
const zalomenyText = textPole.join("")