Italics and Bold support

Feature requests for VLC.
condescendingly
Blank Cone
Blank Cone
Posts: 10
Joined: 24 May 2009 20:33

Italics and Bold support

Postby condescendingly » 24 May 2009 20:35

You should add support for Italic and Bold tags in subtitles. Currently, only underline is supported.

EDIT: I can get it to show italic and bold in subtitles only if I use more advanced format (such as .ssa or . a s s, rather than .srt or .sub; but then i can't set the charset so it shows windows-1250 characters properly).

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Italics and Bold support

Postby Jean-Baptiste Kempf » 24 May 2009 23:10

This is a known bug on Windows only.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

condescendingly
Blank Cone
Blank Cone
Posts: 10
Joined: 24 May 2009 20:33

Re: Italics and Bold support

Postby condescendingly » 24 May 2009 23:21

But I'm using Ubuntu 9.04 and I don't see italic and bold. (?)

condescendingly
Blank Cone
Blank Cone
Posts: 10
Joined: 24 May 2009 20:33

Re: Italics and Bold support

Postby condescendingly » 06 Jun 2009 12:41

I solved this by installing mplayer. When I installed it, I could see italics and other srt subtitles formatting in VLC. I guess it's because of one of the mplayer's dependencies.

AIE88
New Cone
New Cone
Posts: 6
Joined: 10 Jun 2009 23:37

Re: Italics and Bold support

Postby AIE88 » 10 Jun 2009 23:42

I have the same problem with VLC 0.9.9 and 1.0.0 on windows

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Italics and Bold support

Postby VLC_help » 12 Jun 2009 14:23

AIE88: which bold and italics tags your subtitle file uses?

AIE88
New Cone
New Cone
Posts: 6
Joined: 10 Jun 2009 23:37

Re: Italics and Bold support

Postby AIE88 » 12 Jun 2009 21:15

It's a srt file with <i></i> tags.

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Re: Italics and Bold support

Postby The DJ » 12 Jun 2009 21:22

This might be an issue with the default font used by the Windows version of VLC. Some font's won't have official italic and bold versions, sometimes leading to these kinds of weird things. It would help if the subtitle file was online so we could take a look at it in various usage situations.
Don't use PMs for support questions.

AIE88
New Cone
New Cone
Posts: 6
Joined: 10 Jun 2009 23:37

Re: Italics and Bold support

Postby AIE88 » 13 Jun 2009 03:39

The bug occur even with a simple subtitle file:

Code: Select all

1 00:00:00,000 --> 00:01:00,000 <i>Test Italic</i> Test Normal
Image

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Re: Italics and Bold support

Postby The DJ » 13 Jun 2009 16:41

Yes, this does work on Mac OS X. Try selecting a different font in the advanced preferences.

Under Video -> Subtitles/OSD -> Text renderer, you can find the option "font" Try selecting a font on your Windows system that should have Italics support. (I have no idea of a direct example...)
Don't use PMs for support questions.

AIE88
New Cone
New Cone
Posts: 6
Joined: 10 Jun 2009 23:37

Re: Italics and Bold support

Postby AIE88 » 13 Jun 2009 19:08

I tried. Doesn't work. :(

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Re: Italics and Bold support

Postby The DJ » 15 Jun 2009 12:16

This is arguably one of the weirder bugs we have at the moment. I switched OS X to the freetype renderer as well, and then i can reproduce the problem with italics. Bold is not problem however. The weird thing is that I have certain other files that have no problem using italics. That just doesn't add up.
Don't use PMs for support questions.

condescendingly
Blank Cone
Blank Cone
Posts: 10
Joined: 24 May 2009 20:33

Re: Italics and Bold support

Postby condescendingly » 18 Jun 2009 19:28

One more thing - when italics tag isn't closed (</i>), VLC doesn't show italics.

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Re: Italics and Bold support

Postby The DJ » 19 Jun 2009 03:21

if something is not closed, then it's not valid.
Don't use PMs for support questions.

condescendingly
Blank Cone
Blank Cone
Posts: 10
Joined: 24 May 2009 20:33

Re: Italics and Bold support

Postby condescendingly » 19 Jun 2009 12:43

Not in Media Player Classic & GOM, which I used on Windows.

MPC, GOM:

1
00:00:00,000 --> 00:00:02.000
<i>This should be in italic
This should be in italic

is shown this way:

This should be in italic
This should be in italic


And this:
1
00:00:00,000 --> 00:00:02.000
<i>This should be in italic</i>
This should be in italic

This way:
This should be in italic
This should be in italic

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Re: Italics and Bold support

Postby The DJ » 19 Jun 2009 16:05

Not in Media Player Classic & GOM, which I used on Windows.
Irrelevant. I don't (and nor should you) care what other applications do. People should learn to write proper subtitles. If people don't close their formatting run, the behaviour will be undefined.
Don't use PMs for support questions.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Italics and Bold support

Postby Jean-Baptiste Kempf » 19 Jun 2009 17:24

Agreed with TheDJ.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Lotesdelere
Cone Master
Cone Master
Posts: 9952
Joined: 08 Sep 2006 04:39
Location: Europe

Re: Italics and Bold support

Postby Lotesdelere » 19 Jun 2009 17:48

The bug occur even with a simple subtitle file:

Code: Select all

1 00:00:00,000 --> 00:01:00,000 <i>Test Italic</i> Test Normal
Image
Yep, it doesn't work with SRT subtitles but it does work with SUB subtitles (on Windows).
Annoying as hell.

condescendingly
Blank Cone
Blank Cone
Posts: 10
Joined: 24 May 2009 20:33

Re: Italics and Bold support

Postby condescendingly » 19 Jun 2009 18:29

Irrelevant. I don't (and nor should you) care what other applications do. People should learn to write proper subtitles. If people don't close their formatting run, the behaviour will be undefined.
I agree with you, but sometimes I download the subtitles that don't have <i> closed with </i> and then I don't see the italics. Is there a way to add </i> at the end of every subtitle line?

<i>jsalkfjaslkf
ihjgpiejqil

would meen that the

jsalkfjaslkf
ihjgpiejqil


should entire be in italic.

Can you add </i> to every subtitle line that starts with <i>?

1
00:00:00,000 --> 00:00:02,000
<I>example
example

2
00:00:02,000 --> 00:00:03,000
<I>example2</i>
example2

3
00:00:03,000 --> 00:00:06,000
<I>example3
example3

Is there a program that can close all unclosed <i> tags? In this case lines 1 and 3.

neilwick
New Cone
New Cone
Posts: 2
Joined: 30 Jun 2009 01:51

Re: Italics and Bold support

Postby neilwick » 30 Jun 2009 02:13

Is there a program that can close all unclosed <i> tags? In this case lines 1 and 3.
I don't know where you're getting these defective SRT files, but I made up a little program to close your italics. This program runs from a command prompt in Windows.

Put the program in the folder where your SRT file is and open a Command Prompt to that folder. Type FIXSRT and you'll get a list of SRT files. Type the name of the one you want. You can leave out the .SRT extension if you want. The program is written in DOS and only handles 8.3 filenames, so the name may look odd. For example, "On the Waterfront.srt" may appear as "ONTHEW~1.SRT" Just type ONTHEW~1 for the filename.

It goes through the file and saves the result into FIXED.SRT in the same folder. If any line has an opening <i> tag it closes that at the end of the line and also puts italic tags around any following lines that appear on the same screen.

Get it here: http://www.canadatoyou.com/FIXSRT.EXE

condescendingly
Blank Cone
Blank Cone
Posts: 10
Joined: 24 May 2009 20:33

Re: Italics and Bold support

Postby condescendingly » 30 Jun 2009 11:53

Thank you, but, as I said before, I am using Ubuntu :( . Can I use this with Wine?

neilwick
New Cone
New Cone
Posts: 2
Joined: 30 Jun 2009 01:51

Re: Italics and Bold support

Postby neilwick » 30 Jun 2009 18:12

Sorry, I missed the connection that it was you who was talking about Ubuntu. I'm not that familiar with Wine, butI don't see why you couldn't use it with Wine. I think what I would do is to go to a Windows Command Prompt (command.exe or cmd.exe) and run it from there.

I suppose that for Linux, the ideal thing would be to make a Perl script. I assume you have Perl? I'm not so good with Perl, though. I would take me a little time to do that, even though it's a super-simple program. Let me know if it works in Wine. There's nothing tricky about it. It should either work or not.

condescendingly
Blank Cone
Blank Cone
Posts: 10
Joined: 24 May 2009 20:33

Re: Italics and Bold support

Postby condescendingly » 30 Jun 2009 19:00

I tried to do it with Wine, but it doesn't work. It says "Convert which file"? I can't type anything and when I press Enter nothing happens.
Image

AIE88
New Cone
New Cone
Posts: 6
Joined: 10 Jun 2009 23:37

Re: Italics and Bold support

Postby AIE88 » 23 Sep 2009 17:05

The bug occur even with a simple subtitle file:

Code: Select all

1 00:00:00,000 --> 00:01:00,000 <i>Test Italic</i> Test Normal
Image
Bump.
This bug is still here in the last version (1.0.2)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Italics and Bold support

Postby Jean-Baptiste Kempf » 24 Sep 2009 00:05

Did you try VLC 1.1 ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player Feature Requests”

Who is online

Users browsing this forum: No registered users and 25 guests