[MPlayer-dev-eng] [PATCH] Latin National Sub-Sets with teletext

Ötvös Attila oattila at chello.hu
Sat Aug 25 21:29:29 CEST 2007


2007. augusztus 25. 18.47 dátummal Vladimir Voroshilov ezt írta:
> Hi, Otvos
>
> Please test attached patch.
> This is simplified version of your patch.
Hi Vladimir Voroshilov!

I corrected:
--- tvi_vbi.c
+++ tvi_vbi.c
@@ -295,8 +295,8 @@
                 return latin_subchars[lang][p-0x23];
             }else if (p==0x40){
                 return latin_subchars[lang][2];
-            }else if (p>=0x5c && p<=0x60){
-                return latin_subchars[lang][p-0x5c+3];
+            }else if (p>=0x5b && p<=0x60){
+                return latin_subchars[lang][p-0x5b+3];
             }else if (p>=0x7b && p<=0x7e){
                 return latin_subchars[lang][p-0x7b+9];
 	    }

I think this patch work with latin charset.
I test:
Hungarian, German (PRO7), French (TV5), Italian (Rai Uno).

I think problem with charset:

Old:
lang=d[7] & 0x7;
lang==3 -> charset=RUS_UNI in lang2id()

New:
lang=(d[7]>>1)&0x7;
lang==3 -> charset=RUS_UNI in lang2id()

Old Russian lang=3
New Russian lang=1 (3>>1)!

lang=1 French
lang=3 Czech/Slovak but charset RUS_UNI?

I that is way make lang + langsub:
lang with lang2id
langsub with Sub-Sets

I sorry. I can't test Russian (PTP -> No tetelext).

Best regard.
Attila
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tt_fix_lang_subset.patch
Type: text/x-diff
Size: 2638 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070825/57b7c3be/attachment.patch>


More information about the MPlayer-dev-eng mailing list