Mawe file format (v4) #105
Replies: 1 comment
-
This seems to be a good step towards an XML file format for interchange. So in my first draft, I saved the word count log entries as empty elements with attributes, like you do. The chapter specification above shows, in contrast, the use of specific attributes. |
Beta Was this translation helpful? Give feedback.
-
File structure (v4)
Mawe (.mawe) file format (v4) is following:
It is intended, that one story has (1) one
<body>
, the draft of your story you are currently working on, and (2) one<notes>
, notes covering this particular story, shared by all other possible drafts (versions) you may have for your story.<body>
and<notes>
Internally, these are called "sections". In previous versions, the topmost element was
chapter
, now at version 4 it is anact
. Acts are list of<chapter>
elements, which are lists of<scene>
elements, which are lists of paragraphs,<p>
elements. Paragraph elements have different names based on their semantics: they can bep
(normal text),br
(break),comment
(comments),synopsis
(text descriptions) and so on.<head>
The (current) story head (story.head) contains meta information about the (current) draft.
Story title
In the file, name located in the main level
<story>
element.<head>
element has title and subtitle elements:When parsing file, name is moved to
body.head
:The name of the story is its workname. In very early phase, you call your story by some quite obscure names. For example, one of my colleagues name her stories like "blue", "pink", "red", "black". My story worknames are like "Arthur in space", "Bertta 2020" and so on.
Once the story is more complete, you start to think its title, the name which it will be called when published. We still want to retain its early workname. That's why title elements (title and subtitle) are separated.
The rule is that if the story has explicit title, export uses that. If it don't have explicit title, export uses the workname.
Story author
Head has two elements assigned to author: author and pseudonym:
Author is the real author of the story. The main use of pseudonym are writing competitions which require anonymity. So, for the visible author, pseudonym has precendence over author.
Export settings
When exporting a story, we want to know how we separate chapters and scenes. For chapters, there are numerous options:
<br/>
For scenes, there are few options:
<br/>
There is one more choice to make, the story type. Story type - document class - can be:
This information is located to export element:
In the file structure:
History
History element stores daily word counts, one entry per day:
Beta Was this translation helpful? Give feedback.
All reactions