added section title to Speech export
This commit is contained in:
parent
f3bf22f197
commit
41aab00db7
2 changed files with 19 additions and 2 deletions
|
@ -15,6 +15,9 @@ import org.texttechnologylab.project.gruppe_05_1.xml.speeches.Interfaces.Speech;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import static org.texttechnologylab.project.gruppe_05_1.database.MongoPprUtils.getAgendaTitle;
|
||||
import static org.texttechnologylab.project.gruppe_05_1.database.MongoPprUtils.getSessionDateTime;
|
||||
|
||||
public class Speech_MongoDB_Impl extends Speech_File_Impl implements Speech {
|
||||
public Speech_MongoDB_Impl(Document mongoDocument, boolean includeContent) {
|
||||
super(
|
||||
|
@ -81,6 +84,20 @@ public class Speech_MongoDB_Impl extends Speech_File_Impl implements Speech {
|
|||
public String toTeX() {
|
||||
StringBuilder tex = new StringBuilder();
|
||||
|
||||
tex.append("\\section*{Rede ")
|
||||
.append(this.getSpeechKey())
|
||||
.append("/")
|
||||
.append(getAgendaTitle(this.getSessionId(), this.getAgendaItemId()))
|
||||
.append(" von ")
|
||||
.append(this.getSpeakerName())
|
||||
.append(" (")
|
||||
.append(this.getFraction())
|
||||
.append(") vom ")
|
||||
.append(getSessionDateTime(this.getSessionId()))
|
||||
.append("}\n");
|
||||
|
||||
tex.append("$$SPEAKERINFO$$\n");
|
||||
|
||||
tex.append("\\subsection*{NLP Metadata}\n");
|
||||
|
||||
tex.append("[Graphs] //TODO: Implement\n");
|
||||
|
|
|
@ -37,13 +37,13 @@ public class TeXUtil {
|
|||
|
||||
StringBuilder tex = new StringBuilder();
|
||||
|
||||
tex.append(speaker.toTeX());
|
||||
//tex.append(speaker.toTeX());
|
||||
|
||||
tex.append(speech.toTeX());
|
||||
|
||||
Logger.debug("TeX: " + tex);
|
||||
|
||||
return tex.toString();
|
||||
return tex.toString().replace("$$SPEAKERINFO$$", speaker.toTeX());
|
||||
}
|
||||
|
||||
public static String getExportedSpeechBase64StringBySpeechId(String speechId) throws IOException, InterruptedException {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue