Page 1 of 1

Blank spaces in SRT subtitles

Posted: 09 Sep 2013 00:42
by dualsub
Hello,

I am currently developing a tool which merges two SRT files in a single one. The idea is to visualize two different subtitles and the same time, typically one in English and in another language. For people which English is not mother tongue, this could be an opportunity to learn some English while watching movies or series. The name of my tool will be "DualSub", and I am going to release it as open source on SourceForge very soon.

I am testing the merged subtitles with VLC. With VLC 1.x the result is as expected:

Image

Notice that I am using blank spaces to separate left and right subtitles, and a also a the character 'ยท' to split both zones.

The problem I found is that from VLC 2.x, repeated blank spaces are trimmed, even if these spaces are in the middle of the subtitle entries:

Image

This behaviour is the same for VLC 2.x in Windows, Linux, and Mac OS X.

I search in the subtitle configuration if it is possible to disable this space trimming behaviour, but I did not find such configuration parameter (even in the advance configuration settings).

Would it be possible to configure VLC 2.x to show subtitles without trimming blank spaces, just like VLC 1.x?

Thank you very much in advance!

Re: Blank spaces in SRT subtitles

Posted: 09 Sep 2013 01:26
by Jean-Baptiste Kempf
It is not possible. Use \h for hard spaces.