Skip to content

Added LRC subtitle format#590

Open
makian123 wants to merge 4 commits intoTypesettingTools:masterfrom
makian123:master
Open

Added LRC subtitle format#590
makian123 wants to merge 4 commits intoTypesettingTools:masterfrom
makian123:master

Conversation

@makian123
Copy link
Copy Markdown

@makian123 makian123 commented Apr 25, 2026

I have recently found that i have a need to import .lrc files. So i implemented the lrc format per the spec.

I haven't added tags as it says that some players might not support them.

Feel free to point out anything i have failed to to.

Comment thread src/subtitle_format_lrc.cpp Outdated

// Add the LRC spacing
if(!dialog.Text->empty()){
out_line += " ";
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I output in the format of
[TIMESTAMP] <TEXT>
instead of
[TIMESTAMP]<TEXT>
because i've seen LRCget output that format so i figured the spaces left of text dont matter so i just add it for readability

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.

1 participant