Repository navigation
5.14.0: the timeline speaks the calendar a world names
The timeline now reads dates through the calendar a world names as its own, and the set-up script names files the way every other OnlyWorlds writer does. Both follow schema-dist serial 147.
- Which calendar the timeline speaks. In this order: the one you name with
--calendar; else the one the World names in itsx_calendarkey (the id of the element that carries the calendar); else the world's only calendar. With several calendars and none named, the dates stay plain numbers and the script says how to pick. Before this release it spoke the first calendar by name. - What changes for a world with several calendars. Its timeline shows plain numbers until one is picked.
--calendar "<id>"picks for one page. Putting the element's id inworld.jsonunderx_calendarpicks for the world: it is the standard's own key for this since serial 147. - A calendar on an element the page leaves out. A hidden element, a room element or a proposal is not drawn, and its calendar does not label the page either: the month and era names are that element's own words. The script tells you in the terminal which calendar it is and how to have it (
--calendar, or the flag that draws that kind of element). The page itself says only how its dates are read. - The skill asks before it writes. Draw never changes a world. Where you want the World to name its calendar, the session asks first, then writes the id exactly as it is written. For a world that lives on your account, the key is set there: an export is never pushed back.
- File names. The set-up script's file names now match the standard's 38 file-name cases (24 before). A name with an accent keeps its letter (
Brother Tomásgivesbrother-tomas, where it gavebrother-toms), ligatures and full-width letters are read as their plain letters, and a name of exactly 40 characters keeps all 40. Names in plain letters, digits and spaces get the same file name as before.
Two things to know. The timeline needs onlyworlds 0.153.0 or later (pip install "onlyworlds>=0.153.0"); with an older package it stops and says so. And a world whose name holds non-ASCII letters gets a different world skill name from the set-up script than it did before (Straße: stra-e, where it was strae); a world already set up keeps the files it has.
Changed: timeline.py and one paragraph of the draw skill, slug in write_world.py, two new test files. Checked with the standard's twelve world-names- cases and 38 file-name cases, new tests that fail on the old scripts, three outside reads of the build, one real session on a folder with two calendars (it drew plain numbers, changed nothing in the world, and offered to write the key only on a yes), and the release gate.