yw-timeline

Synchronize yWriter with Timeline

This project is maintained by peter88213

Project homepage


Synchronize yWriter with Timeline.

Instructions for use

Intended usage

After installation, create a shortcut on the desktop.

Context menu (Windows only)

Under Windows, you optionally can launch yw-timeline 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: yw-timeline.pyw [--silent] Sourcefile

positional arguments:

Sourcefile

The path of the yWriter/Timeline project file.

optional arguments:

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

Custom configuration

You can override the default settings by providing a configuration file. Be always aware that faulty entries may cause program errors or unreadable Timeline projects. If you change a configuration inbetween, previously synchronized projects might no longer match.

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 yw-timeline’s built-in constants. This is the path: c:\Users\<user name>\.pywriter\yw-timeline\config\yw-timeline.ini

The setup script installs a sample configuration file containing yw-timeline’s default values. You can modify or delete it.

Local project configuration

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

How to provide/modify a configuration file

The yw-timeline distribution comes with a sample configuration file located in the sample subfolder. It contains yw-timeline’s default settings and options. This file is also automatically copied to the global configuration folder during installation. You best make a copy and edit it.

This is the configuration explained:

[SETTINGS]

scene_label = Scene

# Events with this label become scenes in a newly created 
# yWriter project. 

default_date_time = 2021-07-26 00:00:00

# Date/time stamp for imported yWriter scenes without
# date/time set. When converting between specific
# date/time and unspecific D/H/M, this time stamp is used
# as a reference.

scene_color = 170,240,160

# Color for events imported as scenes from yWriter.

[OPTIONS]

ignore_unspecific = No

# No:  Transfer all Scenes from yWriter to Timeline. Events
#      assigned to scenes having no specific date/time stamp
#      get the default date plus the unspecific 'D' as start
#      date, and 'H':'M' as start time.
# Yes: Only transfer Scenes with a specific date/time stamp
#      from yWriter to Timeline.

dhm_to_datetime = No

# Yes: Convert yWriter unspecific D/H/M to specific date/time
#      when synchronizing from Timeline.
#      Use the date from default_date_time as a reference.
#      Time is 'H':'M'.
# Precondition:
#      datetime_to_dhm = No

datetime_to_dhm = No

# Yes: Convert yWriter spcific date/time to unspecific D/H/M
#      when synchronizing from Timeline. Use the date from
#      default_date_time as a reference. H, M are taken from
#      the scene time.
# Precondition:
#      dhm_to_datetime = No

How to reset the configuration to defaults

Just delete your global and local configuration files.

Conventions

General

On the yWriter side

On the Timeline side

Synchronization of unspecific date/time in yWriter with specific date/time in Timeline.

Day/Hour/Minute is converted to specific Timeline start/end date/time stamps, using the duration and the default date/time.

The other way around (Timeline to yWriter), there are three options:

D/H/M refers to the default date/time stamp that can be set in the configuration.

Known limitations

Installation path

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

c:\Users\<user name>\.pywriter\yw-timeline