Replace U+01B5 with U+17B in Polish teletext.
Both U+01B5 and U+017B refer to the same character, but with a different look.
U+01B5 is used with teletxt pages only. DVB subtitles use U+17B representation, teletext subtitles should use that one too.
For teletext pages there is no change: tuxbox.otb has both characters defined, and both look like U+01B5.
Here is a confirmation:
Not patched:
teletext-without_patch.jpg 175.22KB
64 downloads; patched:
teletext_patched.jpg 156.55KB
73 downloads
On the other hand, no ttf files has U+01B5 defined, so the character is missing in subtitles.
I've checked nmsbd.ttf, tuxtxt.ttf, valis_enigma.ttf
Not patched:
subtitles-without_patch.jpg 61.43KB
78 downloads; patched:
subtitles-patched.jpg 61.81KB
63 downloads
This problem might not have been spotted before as this letter is very rare in subtitles.
And the fix is very simple:
diff --git a/lib/dvb/teletext.cpp b/lib/dvb/teletext.cpp
index 314082b..15ca064 100644
--- a/lib/dvb/teletext.cpp
+++ b/lib/dvb/teletext.cpp
@@ -50,7 +50,7 @@ unsigned int NationalOptionSubsets[13*14] = {
0, 0x0023, 0x0024, 0xc2a7, 0xc384, 0xc396, 0xc39c, 0x005e, 0x005f, 0xcb9a, 0xc3a4, 0xc3b6, 0xc3bc, 0xc39f, // German
0, 0xc2a3, 0x0024, 0xc3a9, 0xcb9a, 0xc3a7, 0xe28692, 0xe28691, 0x0023, 0xc3b9, 0xc3a0, 0xc3b2, 0xc3a8, 0xc3ac, // Italian
0, 0x0023, 0x0024, 0xc5a0, 0xc497, 0xc8a9, 0xc5bd, 0xc48d, 0xc5ab, 0xc5a1, 0xc485, 0xc5b3, 0xc5be, 0xc4af/*FIXMEE*/, // Lithuanian/Lettish
- 0, 0x0023, 0xc584, 0xc485, 0xc6b5, 0xc59a, 0xc581, 0xc487, 0xc3b3, 0xc499, 0xc5bc, 0xc59b, 0xc582, 0xc5ba, // Polish
+ 0, 0x0023, 0xc584, 0xc485, 0xc5bb, 0xc59a, 0xc581, 0xc487, 0xc3b3, 0xc499, 0xc5bc, 0xc59b, 0xc582, 0xc5ba, // Polish
0, 0xc3a7, 0x0024, 0xc2a1, 0xc3a1, 0xc3a9, 0xc3ad, 0xc3b3, 0xc3ba, 0xc2bf, 0xc3bc, 0xc3b1, 0xc3a8, 0xc3a0, // Spanish/Portuguese
0, 0x0023, 0xc2a4, 0xc5a2, 0xc382, 0xc59e, 0xc78d, 0xc38e, 0xc4b1, 0xc5a3, 0xc3a2, 0xc59f, 0xc78e, 0xc3ae, // Rumanian
0, 0x0023, 0xc38b, 0xc48c, 0xc486, 0xc5bd, 0xc490, 0xc5a0, 0xc3ab, 0xc48d, 0xc487, 0xc5be, 0xc491, 0xc5a1, // Slovenian/Serbian/Croation
.
Attached is enigma patch as well.
Edited by macnuts, 30 January 2014 - 21:21.