-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Welcome to the Steno wiki.
Steno's goal is to lower the bar for taking by-laws in plain-text (generally cut-and-pasted from a PDF) and transform them into Akoma Ntoso XML for use on the openbylaws.org.za website.
Steno has a grammar which does its best to make sense of a plain text version of the by-law. It finds structure such as lists, nested lists, sections, parts and chapters.
- Get a PDF or other version of the by-law to parse
- Visit steno.openbylaws.org.za
- Enter the full title of the by-law and the region it applies to
- Choose a short name. This will be used in filenames and should be all lowercase and not have any spaces.
- Enter the gazette the by-law was published in, its number and date.
- Choose the title format the by-law uses
- Click
Looks good, next step
- Enter the plain-text of the by-law into the text box.
- Click
Parse text
- Steno will show you an errors it finds while trying to parse the text.
- Use the HTML preview on the right to check that the by-law parsed sanely. Look for issues such as broken lists, missed headings and unnecessary newlines.
- Make corrections to the plain-text and click
Parse text
until you're happy - Click
Looks good, next step
to view the XML. - Edit the XML as necessary and click
Preview
until you're happy. - Click
Looks good, next step
to go to the final step. - Click
Save to Github
to save the file to Github and send a pull request.
You need to authorise Steno as a Github application. It will prompt you to do this when you first try to save to Github.
Steno will create a fork of the za-by-laws repository if you don't already have on. It will then save the new file to a new branch based on the short name of the by-law and submit a pull request.
You can safely go back, edit the document or XML, and click Save to Github
again.