Skip to content

Add more Author tags for consistent formatting #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 23, 2025
Merged

Conversation

Cactooz
Copy link
Member

@Cactooz Cactooz commented Mar 20, 2025

Adding a new Author type with name, event, location, year and a comment in order to format all author tags the same way. The new type gets formatted into the following format Name (Event, Location, Year - Comment) and saved to the existing author tag for the song when building the songs.

I did not implement separate first, last and nicknames as well as the program as I felt it was enough to write that in the name field to not make the Author type too complex to fill.

As this is a breaking change for song format, the version gets bumped to 2.0.0. However, the output from songs.json/xml will still be the same and is backwards compatible with the old format, so songbooks that use them will not have to update anything.

When going through the songs and updating to the new layout, I also updated the missing author information for some songs.

Resolves #9

@Cactooz Cactooz requested a review from StelFoog March 20, 2025 13:36
@Cactooz Cactooz force-pushed the author-tag-expansion branch from 8562362 to 190a4a3 Compare March 20, 2025 13:54
@Cactooz Cactooz force-pushed the author-tag-expansion branch from 190a4a3 to b111991 Compare March 20, 2025 14:10
Copy link
Member

@loffa loffa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! 🗒️🎶

Copy link
Member

@StelFoog StelFoog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I just have a couple of thoughts:

  • It would be better to write the authorship as yaml (see suggestion on Moder Kista as example)
  • README needs to be updated to match the new format

@Cactooz Cactooz requested a review from StelFoog March 21, 2025 17:04
@Cactooz Cactooz force-pushed the author-tag-expansion branch 3 times, most recently from 37f13b4 to 9d5b9a2 Compare March 21, 2025 17:09
@Cactooz Cactooz force-pushed the author-tag-expansion branch from 9d5b9a2 to dce10bb Compare March 21, 2025 17:12
Copy link
Member

@StelFoog StelFoog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@Cactooz Cactooz merged commit 9790afe into master Mar 23, 2025
4 checks passed
@Cactooz Cactooz deleted the author-tag-expansion branch March 23, 2025 03:48
Cactooz added a commit that referenced this pull request Mar 23, 2025
* Add more author metadata tags and update songs with new layout

* Add test for invalid author fields

* Update README with new author metadata tags

* Bump version to 2.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Structure for author, event and year
3 participants