yw-renumber

Renumber yWriter chapters

This project is maintained by peter88213

Project homepage


The yw-renumber Python script rewrites chapter titles in yWriter 7 projects.

Usage

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

You can either

yw-renumber processes .yw7 project files. If no yWriter project is specified by dragging and dropping on the program icon, the latest project selected is preset. You can change it with Select File.

The style options are set by ticking checkboxes and filling out forms. On program startup, the latest options selected are preset.

Operation

Open a yWriter project

Start renumbering

Close the ywriter project

Exit

Options

Chapters

By default, all normal chapters are renumbered, which are displayed in thin green text in the yWriter chapter list. If you wish to exclude chapters from the numbering, you can change temporarily their type to “ToDo” or “Notes”, or mark them temporarily “unused”. Another option is to mark them as section beginnings (see below).

Styles

Note: The case options do not apply to the prefix and suffix.

Add to number

Configuration file

The latest yWriter project selected and the latest options are saved in a configuration file.

on Windows, this is the file path:

c:\Users\<user name>\.pywriter\yw-renumber\config\yw-renumber.ini

You can safely delete this file at any time.

Installation path

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

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