aeon2yw

Synchronize Aeon Timeline 2 and yWriter.

This project is maintained by peter88213

Project homepage


The aeon2yw Python script

Instructions for use

You might want to have a look at the tutorial

Intended usage

The included installation script prompts you to create a shortcut on the desktop.

Context menu (Windows only)

Under Windows, you optionally can launch aeon2yw via context menu.

After installation, you can add the context menu entries by double-clicking add_context_menu.reg. You may be asked for approval to modify the Windows registry. Please accept.

You can remove the context menu entries by double-clicking rem_context_menu.reg.

Please note that these context menus depend on the currently installed Python version. After a major Python update you may need to run the setup program again and renew the registry entries.

Command line usage

Alternatively, you can

usage: aeon2yw.pyw [--silent] Sourcefile

positional arguments:

Sourcefile

The path of the .aeonzip or .yw7 file.

optional arguments:

--silent suppress error messages and the request to confirm overwriting

Prepare your timeline for export

The included installation script installs a “yWriter” template in the Aeon 2 configuration folder. The easiest way is to create new timelines based on this template. It provides the entities and event properties that are converted to yWriter by default.

For existing timelines you have two choices:

Synchronization in detail

Known limitations

Conversion rules for newly created yWriter projects

The names/column labels refer to timelines based on the “yWriter” template.

Update rules for existing yWriter projects

Update rules for Aeon Timeline 2 projects

(*) Applies to the default configuration, but can be customized.

(**) To be set in the configuration file.

Custom configuration

You can override the default settings by providing a configuration file. Be always aware that faulty entries may cause program errors.

Global configuration

An optional global configuration file can be placed in the configuration directory in your user profile. It is applied to any project. Its entries override aeon2yw’s built-in constants. This is the path: c:\Users\<user name>\.pywriter\aeon2yw\config\aeon2yw.ini

Local project configuration

An optional project configuration file named aeon2yw.ini can be placed in your project directory, i.e. the folder containing your yWriter and Aeon Timeline project files. It is only applied to this project. Its entries override aeon2yw’s built-in constants as well as the global configuration, if any.

How to provide/modify a configuration file

The aeon2yw distribution comes with a sample configuration file located in the sample subfolder. It contains aeon2yw’s default settings and options. You can copy this file to the global configuration folder and edit it.

This is the configuration explained:

[SETTINGS]

default_date_time = 2023-01-01 00:00:00

# Date/time used for new events and for converted events
# where the scene has no date/time information at all.
# The date is also used as a reference when converting 
# unspecific scene "days" into event dates.
# The format must be yyyy-mm-dd hh:mm:ss
# If the format is invalid, the current date/time is used instead.

narrative_arc = Narrative

# Name of the user-defined "Narrative" arc.

property_description = Description

# Name of the user-defined scene description property.

property_notes = Notes

# Name of the user-defined scene notes property.

role_location = Location

# Name of the user-defined role for scene locations.

role_item = Item

# Name of the user-defined role for items in a scene.

role_character = Participant

# Name of the user-defined role for characters in a scene.

type_character = Character

# Name of the user-defined "Character" type

type_location = Location

# Name of the user-defined "Location" type

type_item = Item

# Name of the user-defined "Item" type

color_scene = Red

# Color of new scene events

color_event = Yellow

# Color of new non-scene events

[OPTIONS]

scenes_only = Yes

# Yes: Create new scenes from "narrative" events only.
# No: Additionally create "Notes scenes" from "non-narrative" events.

add_moonphase = No

# Yes: Add the moon phase to the event properties.
# No: Update moon phase, if already defined as event property.

Note: Your custom configuration file does not have to contain all the entries listed above. The changed entries are sufficient.

Installation path

The setup script installs aeon2yw.pyw in the user profile. This is the installation path on Windows:

c:\Users\<user name>\.pywriter\aeon2yw