Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Improve comments and formatting in osd_subtitle.xml reference impleme…

…ntation.
  • Loading branch information...
commit 3cf139e762ca68af3408aea2b38e7e934933e112 1 parent 4379cfa
@stichnot stichnot authored
Showing with 94 additions and 53 deletions.
  1. +94 −53 mythtv/themes/default/osd_subtitle.xml
View
147 mythtv/themes/default/osd_subtitle.xml
@@ -1,57 +1,98 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE mythuitheme SYSTEM "http://www.mythtv.org/schema/mythuitheme.dtd">
<mythuitheme>
- <window name="osd_subtitle">
- <!--
- This is a reference implementation of the system/provider defaults
- specified in SubtitleFormat:CreateProviderDefault().
-
- Note that if all attributes/elements are simply inherited from
- provider, then the specification is optional. E.g., the following
- could be omitted:
-
- <fontdef name="sample" from="provider"></fontdef>
- <shape name="sample" from="provider"></shape>
-
- Also note that these specific definitions are unnecessary since
- they are the same as the defaults in the code. A theme only needs
- to include the definitions that it want to change/override.
- -->
-
- <shape name="black_background" from="provider">
- <type>box</type>
- <fill color="#000000" alpha="255" />
- </shape>
-
- <fontdef name="text" face="Droid Sans" from="provider">
- </fontdef>
- <shape name="text" from="black_background">
- </shape>
-
- <fontdef name="teletext" face="FreeMono" from="provider">
- </fontdef>
-
- <fontdef name="608" face="FreeMono" from="provider">
- </fontdef>
- <shape name="608" from="black_background">
- </shape>
-
- <fontdef name="708_0" face="FreeMono" from="provider">
- </fontdef>
- <fontdef name="708_1" face="FreeMono" from="provider">
- </fontdef>
- <fontdef name="708_2" face="DejaVu Serif" from="provider">
- </fontdef>
- <fontdef name="708_3" face="Droid Sans Mono" from="provider">
- </fontdef>
- <fontdef name="708_4" face="Liberation Sans" from="provider">
- </fontdef>
- <fontdef name="708_5" face="Purisa" from="provider">
- </fontdef>
- <fontdef name="708_6" face="URW Chancery L" from="provider">
- </fontdef>
- <fontdef name="708_7" face="Impact" from="provider">
- </fontdef>
-
- </window>
+ <window name="osd_subtitle">
+ <!--
+ This is a reference implementation of the system/provider
+ defaults specified in
+ SubtitleFormat:CreateProviderDefault().
+
+ Note that if all attributes/elements are simply inherited
+ from provider, then the specification is optional. E.g.,
+ the following could be omitted:
+
+ <fontdef name="sample" from="provider"></fontdef>
+ <shape name="sample" from="provider"></shape>
+
+ Also note that these specific definitions are unnecessary
+ since they are the same as the defaults in the code. A
+ theme only needs to include the definitions that it wants
+ to change/override.
+ -->
+
+ <shape name="black_background" from="provider">
+ <type>box</type>
+ <fill color="#000000" alpha="255" />
+ </shape>
+
+
+ <!--
+ Subtitle type "text" generally comes from external text
+ files like .srt or .txt files.
+ -->
+ <fontdef name="text" face="Droid Sans" from="provider">
+ </fontdef>
+
+ <shape name="text" from="black_background">
+ </shape>
+
+
+ <!--
+ Digital teletext text-based subtitles. Not to be confused
+ with bitmap teletext subtitles, or CEA-608 teletext
+ captions. A monospaced font should be used.
+ -->
+ <fontdef name="teletext" face="FreeMono" from="provider">
+ </fontdef>
+
+
+ <!--
+ CEA-608 closed captions. These also apply to CEA-608 VBI
+ teletext captions. A monospaced font should be used.
+ -->
+ <fontdef name="608" face="FreeMono" from="provider">
+ </fontdef>
+
+ <shape name="608" from="black_background">
+ </shape>
+
+
+ <!--
+ CEA-708 closed captions. The spec defines 8 different
+ font tags, but in practice (at least in the U.S.), only
+ tags 0 and 3 are used by broadcasters.
+ -->
+ <!-- Font tag 0: "Default" -->
+ <fontdef name="708_0" face="FreeMono" from="provider">
+ </fontdef>
+
+ <!-- Font tag 1: "Monospaced Serif" -->
+ <fontdef name="708_1" face="FreeMono" from="provider">
+ </fontdef>
+
+ <!-- Font tag 2: "Proportional Serif" -->
+ <fontdef name="708_2" face="DejaVu Serif" from="provider">
+ </fontdef>
+
+ <!-- Font tag 3: "Monospaced Serif" -->
+ <fontdef name="708_3" face="Droid Sans Mono" from="provider">
+ </fontdef>
+
+ <!-- Font tag 4: "Proportional Sans Serif" -->
+ <fontdef name="708_4" face="Liberation Sans" from="provider">
+ </fontdef>
+
+ <!-- Font tag 5: "Casual" -->
+ <fontdef name="708_5" face="Purisa" from="provider">
+ </fontdef>
+
+ <!-- Font tag 6: "Cursive" -->
+ <fontdef name="708_6" face="URW Chancery L" from="provider">
+ </fontdef>
+
+ <!-- Font tag 7: "Small Capitals" -->
+ <fontdef name="708_7" face="Impact" from="provider">
+ </fontdef>
+
+ </window>
</mythuitheme>
Please sign in to comment.
Something went wrong with that request. Please try again.