{y:i} and other font attributes in mplayer

Project:Linux software
Component:Documentation
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Related pages:#89: mplayer
Description

mplayer does not currently support {y:i} and other microdvd font attributes.

Comments

#1

This called MicroDVD or MDVD subtitle support.

from a forum:

I would like to know if are there DVD/DivX stand-alone players which properly work with subtitles:

- if subtitle file (*.txt) contain at the begining of line the following ID Tag: {y:i} then this line is displayed in italic

- if subtitle file (*.txt) contain at the begining of line the following Tag: / then this line is displayed in italic

- if subtitle file (*.txt) contain at the begining of line the following ID Tag: {y:b) then this line is displayed in bold

- if subtitle file (*.txt) contain a Tag: | then it make next line

Subtitle Txt file example:

{450}{650}Normal font text

{700}{900}/Italic text

{950}{1150}{y:i}Italic text - ID Tag small y:i

{1200}{1400}{Y:i}Italic text - ID Tag capital Y:i

{1450}{1650}{y:b}Bold text - ID Tag small y:b

{1700}{1900}{Y:b}Bold text - ID Tag capital Y:b

{2200}{2400}Line No.1|Line No.2|Line No.3

should be displayed on TV like this:

Normal font text

Italic text

Italic text - ID Tag small y:i

Italic text - ID Tag capital Y:i

Bold text - ID Tag small y:b

Bold text - ID Tag capital Y:b

Line No.1

Line No.2

Line No.3

#2

Same for <i></i> tags in .srt subs generated by SubRip.

#3

http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2005-September/03739...

The main problem is that AFAIK, the OSD layer is too limited to do
more fancy things than what it currently does. That's a pitty, but
that's the way it is unless someone goes ahead and re-writes it.

#4

[MPlayer-dev-eng] [PATCH] Remove font attributes from subtitles

http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2005-September/03691...

Sometimes subtitles files (i've seen this in mdvd and mpl2 only) contain
information on attributes of the following subtitle (like italics or color).
As of now mplayer just displays this information as part of subtitle. So far
i couldn't make head or tails out of subtitle rendering in mplayer so i made
small patch that removes this extranous information.
If someone would be so nice and get me started on subtitle rendering i'm
willing to try to make mplayer actually recognize and use this attributes.

#5

#6

The thread in #4 is old but has a lot of info for developers.

#7

Component:Code» Documentation

Here's a patch adding microdvd styles support: http://blog.cyryl.net/microdvd-dla-mplayera/

#11

Thanks cyryl for the patch. Djienkuje!