SBR - s3 Branch#1
Conversation
added en.SDH for SDH/HI subs, changes en-us to en for better compatibility, added all current (2024) valid ISO 639 language codes
SubtitleRenamer to SubtitleBatchRenamer
Changed all instances of SubtitleRenamer to SubtitleBatchRenamer Added Icon
|
Hi, thanks for your updates to the repo. I have a question regarding the I personally haven't run into this, but thought if it'd be helpful if the tool is used by a subtitle group or something that might deal with different language variants, such as I think adding these common variants would be a better idea? |
|
Oh, also, I think maybe adding a CHANGELOG.MD to document changes made by each contributor? |
I'm not sure, I just know Bazarr (a subtitle management program) had issues recognizing the en-US files, not entirely sure how Chinese Simplified vs Traditional would be processed. CHANGELOG is also a good idea |
Did you have insights as to how/why, such as having trouble with the dashes or something deeper like encoding-wise? |
Major Version 1.1.0 Fixed MainForm so it can be opened in designer again (in VS22 at least) Added About button/window Added "Add Label" and "Label" columns for adding additional labels (SDH, FORCED, etc) Moved language list to language.txt so users can easily edit it to add/remove languages as needed Slightly better icon
Seems like it was actually probably just something with my Bazarr setup, but after looking into the most popular media players I came up with what I think is a good solution, I offloaded the languages list to external language.txt and while I included pretty much every language I think someone might reasonably use (including some silly ones like Klingon and Quenya), and some of the most common (and substantial) language variant country codes, but this way an end user can easily add/remove languages from the list as needed. Made some other changes too (added additional label column instead of having .SDH language variants), I'd like to make a changelog but I'm not entirely sure how to go about formatting it? |
Fixed error and omission in about box
cuz it looks better lol
Enabled alternating colors for rows for better readability. Fixed About button not being properly anchored. Fixed Add Label Check All button not being properly disabled when unavailable. Minor UI tweaks
DataGridViewCheckBoxCell
Code cleanup
updated readme to match about
Add CHANGELOG
|
Hey, I had thought about adding a "config file" for the a list of languages that allows users to add their own. However, on a second thought I was like "what if odd characters are added and my app doesn't know how to parse it and create unpredictable edge cases...", that's why I ended up not doing it that way. What if we do it this way, I think it's better practice:
But I'll need to play around with my ideas a bit to remember how to write these, let me create a language-codes branch for us to merge our ideas into before directly merging to main. As for CHANGELOG format, I'm thinking something along this line would be fine, and add our names to each section of the changes. What you already did also looks fine. |
|
This is a good point I hadn't really considered, I guess it would probably be good to also maybe put file types and labels in a similar settings menu, sup that way if someone is using some obscure old (or futuristic new) video file types they can easily add support for them (and maybe subtitle file types list too?) |
|
Yeah these are all good thinking. Let's make a to-do list of some sort and add one improvement at a time. |
1.0.1
Changed "en-US" to simply "en" for better compatibility, also added en.SDH as language option for SDH/HI subs
Added support for every existing 2 letter ISO 639 language code
Added Icon
Changed all application titles from SubtitleRenamer to SubtitleBatchRenamer to match the repo (and help avoid confusion since there are already a ton of projects named simply SubtitleRenamer)