Skip to content
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

Add support for new languages #8

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Add support for new languages #8

wants to merge 5 commits into from

Conversation

Voltini
Copy link
Contributor

@Voltini Voltini commented Jan 14, 2024

Hi, I added a new optional argument to set the language of the lyrics whihc relies on the pyphen library. The change comes with a new attribute in the Text class that specifies the language. the attribute is only used in the Word class so I'm not very sure about the implementation.

@Voltini Voltini marked this pull request as ready for review January 14, 2024 20:19
yohane/lyrics.py Outdated Show resolved Hide resolved
yohane/__main__.py Outdated Show resolved Hide resolved
@@ -179,7 +179,7 @@
"\n",
"yohane = Yohane(vocals_extractor)\n",
"yohane.load_song(Path(song_filename))\n",
"yohane.load_lyrics(lyrics_area.value)\n",
"yohane.load_lyrics(lyrics_area.value, language=\"jp\")\n",
Copy link
Member

Choose a reason for hiding this comment

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

make it a @param variable


@dataclass
class _Text:
raw: str

language: str
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
language: str
language: str

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.

3 participants