Skip to content

feat(lyrics): add hindi/gurmukhi romanization and main text swap option#2872

Closed
adrielGGmotion wants to merge 1 commit intoMetrolistGroup:mainfrom
adrielGGmotion:feature/indic-romanization
Closed

feat(lyrics): add hindi/gurmukhi romanization and main text swap option#2872
adrielGGmotion wants to merge 1 commit intoMetrolistGroup:mainfrom
adrielGGmotion:feature/indic-romanization

Conversation

@adrielGGmotion
Copy link
Contributor

Summary

This PR implements Hindi (Devanagari) and Punjabi (Gurmukhi) romanization support, addressing the main request in #2851. It also includes an enhancement requested in the comments to allow displaying romanized lyrics as the main text.

Key Changes

  • Indic Script Support:
    • Added romanizeHindi for Devanagari script (includes fixes for stray modifiers/symbols).
    • Added romanizeGurmukhi for Punjabi script (added to handle songs with mixed Hindi/Punjabi lyrics).
    • Implemented logic to handle lines containing mixed scripts (e.g., a single line containing both Hindi and Punjabi words).
  • Lyrics Display Enhancement: Added a "Romanized lyrics as main text" option. When enabled, romanized text is shown as the primary line, with the original text as the subscript.

Related Issue

Closes #2851

This commit introduces Romanization support for Hindi (Devanagari) and Punjabi (Gurmukhi) scripts. This was necessary because user feedback identified songs containing mixed scripts (both Hindi and Punjabi) that were not being fully romanized.

Key changes:
- Added 'LyricsRomanizedAsMainKey' to allow swapping romanized text to the main view.
- Implemented 'romanizeHindi' and 'romanizeGurmukhi' in LyricsUtils.
- Updated Settings UI to include these new languages and restored previously missing Japanese/Korean options.
- Organized Romanization settings with proper 'General' and 'Cyrillic' headers.
@adrielGGmotion
Copy link
Contributor Author

Closing cause build failed, it did indeed build on my environment so i'll check the cause

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.

Add Hindi Romanization Support

1 participant