phelpsify

command module
v0.0.0-...-f920aaa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 10 Imported by: 0

README

Phelpsify

This tool is made to link all Bahá'í prayers together across all languages using the code from Phelps' catalog or a derivative of this when the prayer is a subpart of a work from the catalog.

Just compile and run the tool with a rel/ directory containing code.list and lang.csv. The tool will update the code.list while you are working. To help the project, pick languages you can match, try to find the right prayer using keyword search, and when done send your updated code.list to the project so it can be merged in.

To avoid confusion, the latest rel/ directory can be found in the bahaiprayers-static github repository. It has been retired from this repository. You can run the phelpsify tool on the rel/ directory there.

Documentation

Overview

Phelpsify is a tool to help assign prayer codes to prayers. It requests prayers from bahaiprayers.net via the API url. It reads already assigned prayer codes from rel/code.list. It reads the conversion from number to language code from rel/lang.csv. It writes the new prayer codes to rel/code.list. rel/code.list is structured as prayer code, comma, prayer ids from bahaiprayers.net all separated by commas per line. rel/lang.csv is a csv file with header id,iso,iso_type,name,english,flag_link,rtl. The tool is a command line tool that first asks which languages you want to complete. It then presents you a random prayer from those languages that doesn't have a prayer code yet. It will then help you find the prayer among the prayers that already have a prayer code using keyword based search. When a match is found, the id of the prayer will be added to the list after the prayer code. The tool then asks you if you want to add another prayer and repeat the process.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL