Importing your writing
Bring in Word, Markdown, text files, a zip or a Scrivener project, with a preview before anything is added.
You do not have to start from nothing. Rescriptus can bring in writing you already have.
What it accepts
- Word documents (.docx)
- Markdown and plain text files
- A zip of those. A folder from Obsidian works too (zip the vault), as wiki pages or as chapters (see An Obsidian vault as wiki pages, below). Hidden and system files in the zip are ignored.
- A Scrivener project: a zip of its .scriv folder (see Scrivener projects, below).
Several files at once are fine. Files in a zip are read in path order, with numbers compared as numbers, so chapter 2 comes before chapter 10.
How to import
- On the library page, choose Import….
- Choose your files. Rescriptus reads them and shows a preview. Nothing is added until you click Import.
- Choose how to cut the text into chapters: by Heading 1, by Heading 2, at page breaks and "Chapter N" lines, or one chapter per file. Each option shows how many chapters it would make.
- Choose where they go: a new book (give it a title and author) or an existing book.
- Untick any chapter you do not want, and fix titles if you like.
- Choose Import. You land on the book.
What gets tidied
Rescriptus cleans the text so it reads well in Markdown. It tells you what it changed and warns you about anything it was unsure of. A text file that is not UTF-8 is read as Windows-1252 text, with a warning to check the accents. In a plain text file (.txt) each line is a paragraph, as Word saves one, unless the lines are wrapped with blank lines between paragraphs; an indent at the start of a paragraph is dropped. Other scene-break styles become a single line with * * *.
Footnotes
Footnotes in a Word file, and in a Markdown file written with [^1] notes, arrive as footnotes in the chapter that cites them. See Footnotes.
Wiki links from Obsidian
[[Page]] and [[Page|shown words]] links in your files stay links. The preview says how many it found and how many match a page in your story wiki (a title or another name, ignoring capitals and accents). Names that match no page are listed there too: in the editor they show in red, and Create it makes the page. Links to a heading ([[Page#Heading]]) point at the page, and a path in a vault ([[People/Mira]]) points at the page's name ([[Mira]]). A link to a heading in the same note has no page to point at, so it becomes plain text.
Brought in as chapters, a vault makes no wiki pages, so names you have no page for yet are listed for you to create. Obsidian's own extras (%%comments%%, ![[embeds]], callouts and ==highlights==) are cleaned up for a vault, and for a file that uses them, and the preview says how many were left out. A link on its own never changes anything else in the file.
An Obsidian vault as wiki pages
When the zip is an Obsidian vault (it has the vault's .obsidian folder in it), the preview asks what to bring it in as: Wiki pages, which it starts on, or Book chapters. As wiki pages:
- Each folder at the top of the vault becomes a category, and the folders inside it become tags on its pages (a note in People/Nobles is a Person tagged Nobles). A folder named like a category you have (Places, say) fills that category; any other makes a new one. Notes at the top of the vault go in a category called Pages. Folders whose names differ only in capitals are one category. Untick a category to leave its notes out.
- A page is named after its note, or after its
title:property if it has one. The note'saliasesbecome the page's other names and itstagsits tags. Every other property is kept as a detail: a new category gets a detail for each, of the kind its values show (text, a number, yes or no, a list, or a link when the property is a link such as"[[Ines]]"). A category you have is not changed: a property it has no detail for is kept on the page with the others. - Links stay links, found as Obsidian finds them (a file name, a path, a title or an alias), and a link to a part of a page (
[[Ash#History]]) goes to the page.![[Page]]still shows another page in the page. - Secrets stay secret. A note with
secret: truecomes in as a secret page, and> [!secret]callouts and%%comments%%stay in the text as secret passages (they are dropped only from chapters). The preview says how many secret pages and passages come in. A vault you downloaded from Rescriptus also says which details are secret in each category, so they come in secret in a new category too; where a category you have holds one without the tick, the preview names it, so you can tick it under the detail's More. So such a vault comes back with its secret pages, details and passages kept, and the notes kept with a page come back as that page's notes, not as pages. A note marked secret that goes to a category of yours with a Secret detail of its own would not be secret there, so the preview says so and skips it, unless you choose to bring it in anyway. A note whose properties can't be read comes in exactly as written, and is kept out of anything you share until you put them right. Any other vault can't say which details were secret, so when it holds secrets the preview asks you to tick them again in category settings; the notes in a secret page's folder still come in as that page's notes. - Pictures come in with the pages that show them (
![[harbour.png]]or), found as Obsidian finds them, and are kept in your project's pictures as a picture you choose is (see Pictures in a page's text); each stays where it was in the text, with its description. Only the pictures of the pages that come in are brought in, so a page you leave out, or a secret one you choose not to bring in, brings none. A picture that is not in the vault, is not a PNG, JPEG, WebP, GIF or SVG, or is over 5 MB is left out, and the preview (or the message afterwards) names it; a link to a picture keeps its words. Undo takes the pages back; the pictures stay, and Unused pictures… offers them for removal. Obsidian's block ids (^a1b2c3) are taken out. - A note with the name of a page you have is never written over it. That is a page in the category it goes to, or a page in another category whose links the note would take (a note People/Ash when your place Ash is reached by
[[Ash]]). The preview lists them: skip them (links to them then go to your page), or bring them in too, named "Name (imported)" and without the other names your pages have, so your links keep going where they went.
Choose Import and the pages arrive as one change: Undo in the message that follows takes the whole import back.
Scrivener projects
Choose the zip of your project's .scriv folder. On a Mac a .scriv looks like a single file: right-click it and choose Compress. In Chrome, Edge and other browsers that allow it, Choose a .scriv folder picks the folder itself, and Rescriptus reads only the files it needs. Projects from Scrivener 3, and older ones that keep their documents in Files/Docs (Scrivener 1 and 2, and Scrivener for Windows 1), are read.
It has been tried on a dozen real Scrivener projects, from Scrivener 1, 2 and 3 on a Mac, Windows and Linux, but yours may hold something they did not, so check the preview against your own project. If something is wrong or missing, please send us the project (or a small copy of it), because that is how it gets better. Your Scrivener project is only read, never changed, and nothing is added until you click Import.
How the binder becomes a book:
- Each item in the Draft folder becomes a chapter, in order. A folder that holds other folders becomes a part. A folder that holds documents becomes one chapter, its documents are the scenes, and a scene break (* * *) goes between them. If your project is the other way round (a folder for each part and a document for each chapter), choose Documents are chapters above the list.
- Anything not ticked "Include in compile", and the Trash, are left out. A picture or file in the Draft cannot be kept in a chapter yet. The preview lists everything left out and why.
- A synopsis becomes the chapter's synopsis. Keywords become tags. Labels and statuses are kept as tags too (for example "Status: First Draft"), and where a status name plainly says how finished it is, the chapter gets the matching status: To Do is Rough, First Draft is Draft, Revised Draft is Polished, and Final Draft or Done is Final. Anything else is Draft. A chapter made of several scenes takes the status of its least finished scene. The preview shows how each of your statuses was read.
- Notes, comments and annotations you wrote in Scrivener are kept together as one private note inside the chapter. A note is left out of word counts and exports.
- Footnotes, inline or linked, become footnotes in the chapter that cites them, numbered from 1 there (see Footnotes). Pictures in the text are left out, and the preview counts them. Bold, italic and underline come across (underline as italic); fonts, colours and sizes do not.
- Research items become notes in a folder of their own (notes/, then the project's name and "-research"), keeping your folders. Untick that if you do not want them. PDFs, pictures and saved web pages cannot be notes; they are listed as left out.
Statuses and alternatives
Imported text arrives without marks. Mark it up in the editor as you go. See Statuses explained.
Restoring a zip from Rescriptus itself
That is a different thing. Restore from a zip on the storage page puts a project you downloaded from Rescriptus back exactly as it was. See Choosing where your writing lives.