Importing Subtitles

Issue #414 wontfix
Joerg created an issue

I have subtitles in xml format, that can not imported in Subler. So I change to srt with Subtitle Edit. But when there is a formating for top/bottom positon (region="topCenter"), i have to set manual the parameter X1:0 and remove {\an8}. Ist it possible to implement this ?

Example:

Source:

<p begin="2273104166t" end="2288953332t" region="bottomCenter" style="s1" xml:id="subtitle0">GESCHICHTE</p>
<p begin="9332239582t" end="9351425416t" region="topCenter" style="s1" xml:id="subtitle1">DER ZAUBERER VON OZ</p>
<p begin="10258998750t" end="10274013750t" region="topCenter" style="s1" xml:id="subtitle2">TINTENHERZ</p>
<p begin="24056532500t" end="24073632916t" region="bottomCenter" style="s1" xml:id="subtitle3">HAST DU MEINE FAMILIE GESEHEN?</p>

After Converting with Subtitle Edit:

1
00:03:47,310 --> 00:03:48,895
GESCHICHTE

2
00:15:33,224 --> 00:15:35,143
{\an8}DER ZAUBERER VON OZ

3
00:17:05,900 --> 00:17:07,401
{\an8}TINTENHERZ

4
00:40:05,653 --> 00:40:07,363
HAST DU MEINE FAMILIE GESEHEN?

Needed for Subler:

1
00:03:47,310 --> 00:03:48,895
GESCHICHTE

2
00:15:33,224 --> 00:15:35,143 X1:0
DER ZAUBERER VON OZ

3
00:17:05,900 --> 00:17:07,401 X1:0
TINTENHERZ

4
00:40:05,653 --> 00:40:07,363
HAST DU MEINE FAMILIE GESEHEN?

Comments (1)

  1. Damiano Galassi repo owner

    Sorry I won't implemented custom subtitles formats. But feel free to send a pull request. It could be different if that xml format is an actual standard.

  2. Log in to comment