|
|
@ -12,6 +12,7 @@ end
|
|
|
|
uhrzeit = nil
|
|
|
|
uhrzeit = nil
|
|
|
|
titel1 = nil
|
|
|
|
titel1 = nil
|
|
|
|
titel2 = nil
|
|
|
|
titel2 = nil
|
|
|
|
|
|
|
|
titel3 = nil
|
|
|
|
tag = 1
|
|
|
|
tag = 1
|
|
|
|
|
|
|
|
|
|
|
|
roh.split("\n").each do |line|
|
|
|
|
roh.split("\n").each do |line|
|
|
|
@ -20,6 +21,7 @@ roh.split("\n").each do |line|
|
|
|
|
if uhrzeit
|
|
|
|
if uhrzeit
|
|
|
|
puts "#{tag} #{uhrzeit} KLAMMER AUF #{titel1}"
|
|
|
|
puts "#{tag} #{uhrzeit} KLAMMER AUF #{titel1}"
|
|
|
|
puts "#{tag} #{uhrzeit} KLAMMER ZU #{titel2}"
|
|
|
|
puts "#{tag} #{uhrzeit} KLAMMER ZU #{titel2}"
|
|
|
|
|
|
|
|
puts "#{tag} #{uhrzeit} IRGENDWO #{titel3}"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if uhrzeit && $1 < uhrzeit
|
|
|
|
if uhrzeit && $1 < uhrzeit
|
|
|
@ -29,13 +31,22 @@ roh.split("\n").each do |line|
|
|
|
|
uhrzeit = $1
|
|
|
|
uhrzeit = $1
|
|
|
|
titel1 = nil
|
|
|
|
titel1 = nil
|
|
|
|
titel2 = nil
|
|
|
|
titel2 = nil
|
|
|
|
|
|
|
|
titel3 = nil
|
|
|
|
|
|
|
|
elsif line =~ /^\| *('''(.*)'''|.*(GOTO).*) *$/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# yum
|
|
|
|
|
|
|
|
if $1 == "GOTO"
|
|
|
|
|
|
|
|
t = ""
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
t = $1
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if line =~/^\| *'''(.*)''' *$/
|
|
|
|
|
|
|
|
if titel1 == nil
|
|
|
|
if titel1 == nil
|
|
|
|
titel1 = cleanse($1)
|
|
|
|
titel1 = cleanse(t)
|
|
|
|
|
|
|
|
elsif titel2 == nil
|
|
|
|
|
|
|
|
titel2 = cleanse(t)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
titel2 = cleanse($1)
|
|
|
|
titel3 = cleanse(t)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|