-
Notifications
You must be signed in to change notification settings - Fork 15
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 lyrics conversion and other fixes #282
base: minor-release
Are you sure you want to change the base?
Add lyrics conversion and other fixes #282
Conversation
limit title and artists length by 128 characters
- Now Nora will be displayed as 'Listening to' instead of 'Playing' - Display artist artwork as small image when possible
run npm lint and prettier-write
- Add Chinese Pinyin converter - Add reset lyrics button - Converted lyrics will be placed in 'convertedLyric'(s) field
Thanks for the help. Can you also provide me with a song and an LRC file to test your pull request? |
Thanks for the feedback! The pull request is finished and ready for review. |
I changed the lyrics style because I want the converted lyrics to display above the original lyrics when both converted lyrics and translated lyrics are displayed. Adding a setting entry to the setting page (or a button to the lyrics page) for selecting the primary lyrics type would solve the problem, as some people prefer translated lyrics over original lyrics while others don't. |
Can you also describe what is romanizing lyrics? Could you tell me what the functionality is?
|
I assume that you refer to "romanize" as the converted form of Japanese, Chinese, and Korean lyrics, even though the term Romanize usually means convert Japanese text into Romaji, a way to write Japanese text using Latin characters (abc...). It helps people who want to learn or are learning those languages, especially new people, understand how to pronounce words in those languages. Some Spicetify extensions (romajin and beautiful-lyrics) also implement lyrics conversion. |
@ElectroHeavenVN, I'll suggest a better way to go about this.
|
Display translated lyrics as primary lyrics when available
Prevent spamming Discord RPC server
well I forgot to edit the code after copy-paste
I edited the code so that translated lyrics will be the primary lyrics when available. Converted lyrics will be displayed below translated lyrics if they are available. |
If it does not exist, you can use the functions you created to decide whether to use conversion.
In beautiful-lyrics, you can see that they replace the original lyric with the converted lyric. Otherwise, in some cases, the lyrics will be too cluttered. |
Only show lyrics in 1 line: Translated lyrics => converted lyrics => original lyrics. Also add an entry in the lyrics setting page for toggling compact lyrics. Default is on.
Fix clicking on translated lyrics does not seek the song if the song lyrics type is enhanced
I got it. I modified the code so that lyrics will be displayed in 1 line by default (no small line above and below main lyrics). I apologize if I made you feel unconfortable. |
@ElectroHeavenVN, |
@ElectroHeavenVN,
Then consider the following scenarios.
In the
I hope you get the idea. |
There is a problem with that approach.
The unparsedLyrics property is modified after the translation, so if the lyrics are converted and then translated, the original lyrics will be lost.
|
don't translate/convert lyrics automatically if user reset the lyrics previously
Even though they are modified, you can see that it will preserve all the data required to return to the original lyrics. |
No, I mean if I remove the |
Pull Request Title
Add lyrics conversion and other fixes
Description:
This PR includes a new feature (convert lyrics) and other small fixes for Nora.
Changelog:
🎉 New Features and Updates
🔨 Fixes and Improvements
🐜 Known Issues and Bugs
Preview image:
Other Issues:
This PR is based on my previous PR (#277), so if you want, you can merge this PR and close the #277.
Checklist:
npm lint
andnpm run prettier-write
commands?npm run dev
?