INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Text (.srt) subtitles alignment support  (Read 11827 times)

audioriver

  • Citizen of the Universe
  • *****
  • Posts: 514
Text (.srt) subtitles alignment support
« on: January 07, 2017, 04:28:59 am »

There are some alignment tags for the popular srt format (perhaps for other text formats too, don't know) that allow basic position alignment, could you please consider supporting them?

Top-left: {\an7} - Top-center: {\an8}
Top-right: {\an9} - Middle-left: {\an4}
Middle-center: {\an5} - Middle-right: {\an6}
Bottom-left: {\an1} - Bottom-right: {\an3}
Logged
Windows 10 Pro x64

audioriver

  • Citizen of the Universe
  • *****
  • Posts: 514
Re: Text (.srt) subtitles alignment support
« Reply #1 on: February 15, 2017, 04:58:13 pm »

Anyone?

Logged
Windows 10 Pro x64

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10935
Re: Text (.srt) subtitles alignment support
« Reply #2 on: February 15, 2017, 05:09:06 pm »

We can probably do this. Can you provide an example subtitle file that uses these?
Logged
~ nevcairiel
~ Author of LAV Filters

audioriver

  • Citizen of the Universe
  • *****
  • Posts: 514
Re: Text (.srt) subtitles alignment support
« Reply #3 on: February 15, 2017, 05:24:44 pm »

We can probably do this. Can you provide an example subtitle file that uses these?

Thank you. There are some in the attached file, right at the beginning. They coincide with hard-coded English subtitles in this case, that's why alignment is required (to avoid what's happening in the screenshot).
Logged
Windows 10 Pro x64

audioriver

  • Citizen of the Universe
  • *****
  • Posts: 514
Re: Text (.srt) subtitles alignment support
« Reply #4 on: February 15, 2017, 05:29:26 pm »

Subtitle Edit is one of the programs that can add such tags in subtitle files, including .srt.
Logged
Windows 10 Pro x64

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10935
Re: Text (.srt) subtitles alignment support
« Reply #5 on: February 16, 2017, 02:24:13 am »

This should be supported as of 22.0.75. Luckily we already had all sorts of alignment handling, just needed to parse the tags. :)
Logged
~ nevcairiel
~ Author of LAV Filters

audioriver

  • Citizen of the Universe
  • *****
  • Posts: 514
Re: Text (.srt) subtitles alignment support
« Reply #6 on: February 16, 2017, 03:22:53 am »

Many thanks Hendrik!  :)
Logged
Windows 10 Pro x64
Pages: [1]   Go Up