I am trying to rework a manuscript (160 pages) and replace every line that is a dialogue (starts with “-: Dialog/Text”) with “Dialog/Text”. With PHP I could easily replace standard lines without any additional description (verb and action). The challenge I face is when the dialogue line has additional descriptions that should not be quoted.
As I only code in PHP and Tinderbox I was thinking of giving the Tinderbox help forum a try. Maybe someone of you had a similar problem or there is a solution (loop sentence by sentence) in Tinderbox.
I would be grateful for any advice on how to approach this - to avoid having to do it by hand.
Here are some lines of code from the manuscript. Text in brackets should not be quoted.
Many thanks in advance for any help.
[As-is]
-: Liegt vor dem Haus, sagte er und zeigte auf die Straße.
[To-be]
»Liegt vor dem Haus«, sagte er und zeigte auf die Straße.
More Example, Text in brackets should not be quoted.
-: Liegt vor dem Haus(, sagte er und zeigte auf die Straße.)
-: Ich bin oben auf dem Gipfel(, sagte er.)
-: Du spinnst(, sagte Rico.) Wir sind immer noch in der Schule.
-: Es ist kalt(, sagte der Hausmeister.) Ich kann verstehen, dass du lieber im Bett liegen geblieben bist. Ich schließe dir auf, Junge.
-: Mirko, bleibst du bitte stehen(, sagte Frau Köhler, )bis wir einen Platz für euren neuen Mitschüler gefunden haben.
-: Es ist gut Mirko(, sagte die Lehrerin, )wir haben dich gehört.
-: Der Unterricht beginnt um halb acht(, sagte sie und stand auf.)
-: Sie heisst Berkehan(, sagte Frau Köhler.)
-: Ich wusste nicht(, sagte er, )dass wir in der ersten Stunde Sport haben.