I was able to do it with literal representations. However, I had to use the % symbol rather than ~ or ".
Here's the test dialogue I used:
BEGIN ~japh~
IF ~~ jp1
SAY ~This is a test dialogue.~
IF ~~ THEN REPLY ~Oh yeah, test dialogue indeed.~ DO ~EraseJournalEntry(%The Night Time Is The Right Time
Blah, blah, blah.
Flippy, skippy, dippy.%)~ EXIT
END
And, after running weidu japh.d --tlkout dialog.tlk --out override and then decompiling the ensuing compiled dialogue, here's the output after decompiling:
// creator : weidu (version 155)
// argument : JAPH.DLG
// game : .
// source : ./override/JAPH.DLG
// dialog : ./dialog.tlk
// dialogF : (none)
BEGIN ~JAPH~
IF ~~ THEN BEGIN 0 // from:
SAY #74108 /* ~This is a test dialogue.~ */
IF ~~ THEN REPLY #74109 /* ~Oh yeah, test dialogue indeed.~ */ DO ~EraseJournalEntry(74107)
~ EXIT
END
So, just use the % symbol as the delimeter when you want to use literal references for journal entries.