summaryrefslogtreecommitdiffstats
path: root/DOCS/OUTDATED-tech/subcp.txt
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-07-28 18:15:33 +0200
committerwm4 <wm4@mplayer2.org>2012-07-28 20:44:59 +0200
commit5368c46453223acf87de7ef89a35a37402c2d8eb (patch)
tree051bf39b80c5fbbb5212ecc93ef3531031194640 /DOCS/OUTDATED-tech/subcp.txt
parentf606bb6d97cfdfb8f740259eb4ea683adddfd06b (diff)
downloadmpv-5368c46453223acf87de7ef89a35a37402c2d8eb.tar.bz2
mpv-5368c46453223acf87de7ef89a35a37402c2d8eb.tar.xz
Rename DOCS/tech/ to DOCS/OUTATED-tech/
While DOCS/tech/ contains lots of documentation about mplayer's internals, most of it seems outdated, and hasn't been touched in many years. On the other hand, there still might be useful things in there, but it's hard to tell which parts. Instead of deleting all it, rename the directory to "warn" potential developers that the documentation is completely outdated.
Diffstat (limited to 'DOCS/OUTDATED-tech/subcp.txt')
-rw-r--r--DOCS/OUTDATED-tech/subcp.txt42
1 files changed, 42 insertions, 0 deletions
diff --git a/DOCS/OUTDATED-tech/subcp.txt b/DOCS/OUTDATED-tech/subcp.txt
new file mode 100644
index 0000000000..50d9cc69f9
--- /dev/null
+++ b/DOCS/OUTDATED-tech/subcp.txt
@@ -0,0 +1,42 @@
+Ascii Subtitle / Font CODEPAGEs
+===============================
+
+The subtitle encoding issue seems a bit confusing, so I'll try to
+summarize it here.
+
+There are 2 approaches:
+
+1. (preferred) You can generate Unicode subtitles with:
+ subfont --unicode <signle-byte encoding known by iconv> ...
+or
+ subfont --unicode <path to custom encoding file> ...
+ (this custom encoding file could list all iso-8859-* characters to create
+single font file for common encodings)
+
+and then run mplayer this way (-subcp and -utf8 expect Unicode font!):
+ mplayer -subcp <any encoding known by iconv> ...
+or
+ mplayer -utf8 ...
+
+2. (current) Generate subtitles for some specific encoding with:
+ subfont <signle-byte encoding known by iconv> ...
+or
+ subfont <path to custom signle-byte or EUC encoding file> ...
+
+and then run mplayer without any encoding options for signle-byte
+encodings, or with -unicode option for EUC (and the like) encodings
+(which is only partially implemented in mplayer).
+
+AFAIK, CJK encodings: EUC-*, BIG5 and GB2312 work more or less this way:
+- 0x8e (SINGLE-SHIFT TWO, SS2) begins a 2-byte character,
+- 0x8f (SINGLE-SHIFT THREE, SS3) begins a 3-byte character,
+- 0xa0-0xff begin 2-byte characters,
+- other characters are single-byte.
+
+
+I tested charmap2enc script only with /usr/share/i18n/charmaps/EUC-KR.gz
+(on RedHat). It wasn't intended to be perfect.
+
+
+--
+Artur Zaprzala