2002-05-06 23:07:59 +00:00
|
|
|
Ascii Subtitle / Font CODEPAGEs
|
|
|
|
===============================
|
|
|
|
|
2009-05-13 02:58:57 +00:00
|
|
|
The subtitle encoding issue seems a bit confusing, so I'll try to
|
2002-05-06 23:07:59 +00:00
|
|
|
summarize it here.
|
|
|
|
|
|
|
|
There are 2 approaches:
|
|
|
|
|
|
|
|
1. (preferred) You can generate Unicode subtitles with:
|
2010-04-12 10:56:17 +00:00
|
|
|
subfont --unicode <signle-byte encoding known by iconv> ...
|
2002-05-06 23:07:59 +00:00
|
|
|
or
|
2010-04-12 10:56:17 +00:00
|
|
|
subfont --unicode <path to custom encoding file> ...
|
|
|
|
(this custom encoding file could list all iso-8859-* characters to create
|
2002-05-06 23:07:59 +00:00
|
|
|
single font file for common encodings)
|
|
|
|
|
|
|
|
and then run mplayer this way (-subcp and -utf8 expect Unicode font!):
|
2010-04-12 10:56:17 +00:00
|
|
|
mplayer -subcp <any encoding known by iconv> ...
|
2002-05-06 23:07:59 +00:00
|
|
|
or
|
2010-04-12 10:56:17 +00:00
|
|
|
mplayer -utf8 ...
|
2002-05-06 23:07:59 +00:00
|
|
|
|
|
|
|
2. (current) Generate subtitles for some specific encoding with:
|
2010-04-12 10:56:17 +00:00
|
|
|
subfont <signle-byte encoding known by iconv> ...
|
2002-05-06 23:07:59 +00:00
|
|
|
or
|
2010-04-12 10:56:17 +00:00
|
|
|
subfont <path to custom signle-byte or EUC encoding file> ...
|
2002-05-06 23:07:59 +00:00
|
|
|
|
2009-05-13 02:58:57 +00:00
|
|
|
and then run mplayer without any encoding options for signle-byte
|
|
|
|
encodings, or with -unicode option for EUC (and the like) encodings
|
2002-05-06 23:07:59 +00:00
|
|
|
(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.
|
|
|
|
|
|
|
|
|
2009-05-13 02:58:57 +00:00
|
|
|
I tested charmap2enc script only with /usr/share/i18n/charmaps/EUC-KR.gz
|
2002-05-06 23:07:59 +00:00
|
|
|
(on RedHat). It wasn't intended to be perfect.
|
|
|
|
|
|
|
|
|
2009-05-13 02:58:57 +00:00
|
|
|
--
|
2002-05-06 23:07:59 +00:00
|
|
|
Artur Zaprzala
|