80 replies to this topic
Re: Subtitle and Italic #61
Re: Subtitle and Italic #62
Re: Subtitle and Italic #63
Re: Subtitle and Italic #64
Re: Subtitle and Italic #65
Posted 4 February 2011 - 09:46
I'm scared it is something when the last character is a color change at a end of a line (font.cpp)
case 'c': { char color[8]; int codeidx; for (codeidx = 0; codeidx < 8; codeidx++) { if ((i + 2 + codeidx) == uc_visual.end()) break; color[codeidx] = (char)((*(i + 2 + codeidx)) & 0xff); } if (codeidx == 8) { pGlyph ng; ng.newcolor = gRGB(color).argb(); ng.flags = GS_COLORCHANGE; ng.w = 0; glyphs.push_back(ng); i += 1 + codeidx; continue; } break; }
Re: Subtitle and Italic #66
Re: Subtitle and Italic #67
Posted 4 February 2011 - 12:13
@littlesat: trying:
=> is not color on the end . And it is same:
It is in case:
There is on end of first line
text = replace_all(text, "<i>", (std::string) gRGB(0,255,255)); text = replace_all(text, "<b>", (std::string) gRGB(255,255,0)); text = replace_all(text, "</i>", ""); text = replace_all(text, "</b>", "");
=> is not color on the end . And it is same:
COLORED1 COLORED2
It is in case:
7 00:00:33,067 --> 00:00:35,456 <i>-Baldricku!</i> <b>Ano, pane.</b>
There is on end of first line
<br />
Kdo nic nedělá, nic nezkazí!
Re: Subtitle and Italic #68
Posted 4 February 2011 - 12:50
I also discovered this in between.... something strange is going on here. I also replaced the color back to white string by e.g. 1234567890 and with the same results....? Strange why it is not renedering to the begin of the next line. I cannot find the reason yet. I still suggest we need a fix in font.cpp
Strange thing was that I tested with e.g.
which was rendered fine...
Strange thing was that I tested with e.g.
3 00:01:00,503 --> 00:01:03,965 Ik <b>heb</b> gewonnen. - Geef die tak aan mij.
which was rendered fine...
Re: Subtitle and Italic #69
Posted 4 February 2011 - 13:09
but if i displaying it with <i>.....</i> (without replacement chars) and have set for all subs yellow color (text = (std::string) gRGB(255,255,0) + text;), then are both texts true centered (of course, with <i> )
I think, there works bad centering, if is changed colors.
Problem making this variant only:
line1
<>line2</>
<>line1</>
<>line2</>
I think, there works bad centering, if is changed colors.
Problem making this variant only:
line1
<>line2</>
<>line1</>
<>line2</>
Kdo nic nedělá, nic nezkazí!
Re: Subtitle and Italic #70
Re: Subtitle and Italic #71
Re: Subtitle and Italic #72
Re: Subtitle and Italic #73
Re: Subtitle and Italic #74
Re: Subtitle and Italic #75
Posted 4 February 2011 - 14:05
ok. but in this case \n+color make problems...
It is stupid, but it helps:
Space before color info... :-)
It is stupid, but it helps:
text = replace_all(text, "<i>", " " + (std::string) gRGB(0,255,255)); text = replace_all(text, "<b>", " " + (std::string) gRGB(255,255,0));
Space before color info... :-)
Kdo nic nedělá, nic nezkazí!
Re: Subtitle and Italic #76
Posted 4 February 2011 - 14:49
Indeed... it happens when the color change in the begin of the line second (or third etc...) line.
Now I understand what happens here... the color change just works a round as it is a not printable character and if it is the first line it does not see the first char in line flag.
Nextflags was copied to flags and made zero after the copy and then color escape code is renedered. So the nextline flag is never seen again - I have to set a nextflags = flags before the continue in the code above in font.cpp.
Later today I'll fix it... (Kids are watching TV).
Thanks ims for thinking with me.... it was a brainbraker for me the whole morning as I was looking after the color change. At the end in esubtitle.cpp we do not have to change anything.
Now I understand what happens here... the color change just works a round as it is a not printable character and if it is the first line it does not see the first char in line flag.
Nextflags was copied to flags and made zero after the copy and then color escape code is renedered. So the nextline flag is never seen again - I have to set a nextflags = flags before the continue in the code above in font.cpp.
Later today I'll fix it... (Kids are watching TV).
Thanks ims for thinking with me.... it was a brainbraker for me the whole morning as I was looking after the color change. At the end in esubtitle.cpp we do not have to change anything.
Re: Subtitle and Italic #77
Re: Subtitle and Italic #78
Re: Subtitle and Italic #79
Re: Subtitle and Italic #80
Posted 4 February 2011 - 19:50
Thanks for help ims...
Now the start of the srt subtitles.... I have the idea the second and afterwards it starts with the third subtitle. The first two are skipped due to the push/pull mechanism which is very tricky in servicemp3.cpp
And what in this case adding into buffer with .srt subs at first permanently 2 subtitle lines with space on position 00:00:00,000 and 00:00:00:010 ? => all subs could be displayed ... Ugly ?
Kdo nic nedělá, nic nezkazí!
Also tagged with one or more of these keywords: Enigma2
IPTV
M3U playlist handling pluginStarted by DimitarCC, 22 Aug 2024 IPTV, M3U, Enigma2 |
|
|||
m3u/xml?Started by MatthijsNL, 18 Dec 2020 ENIGMA2 |
|
|||
Looking for a good explanation of calculate, calibrate and allocate in positioner setup menuStarted by jeandubois, 19 Nov 2019 enigma2 |
|
|||
Bestand beschermen tegen overschrijven bij software updateStarted by mimisiku, 23 Feb 2019 Enigma2 |
|
|||
plugin extensions epgimport rytec not visibleStarted by arkovda, 19 Aug 2018 enigma2, plugin extension and 2 more... |
|
7 user(s) are reading this topic
0 members, 7 guests, 0 anonymous users