Ask Your Question

Revision history [back]

I think I see a way. Since my chapters are Heading 1, scene datelines are Heading 2 I set my outline to 2 levels (ridiculous in a novel, remind me to set it back!) copy/paste the outline into my code editor and then use a little regex. All the chapter lines start with a digit (chapter number) and all the datelines start with a day-of-week name (Sunday, Monday, etc.) Then a liberal dash of regex should turn this text file into JSON. Right?

FWIW I didn't know that LO now supports JavaScript macros. I love JS! But googling for a nice tutorial got me nowhere. Anyone know how to write JS macros in LO? I guess I should post another question.