-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] DVB Teletext subtitle incomplete #922 #926
Conversation
attempt to solve issue #922 by replacing 0xB and 0xA in the middle of row with space character
I looked at your code and it seems that characters between the end of a box and the start of a new box (which are not intended to be displayed) nevertheless end up in the output file. In the case of my samples, all these characters are spaces so that this is fine with them, but there might be others.
Some remarks:
|
@mkver , thanks for pointing out the issue that characters between 0xA and the next 0xB shouldn't be displayed. My third patch failed to address this situation and I think this is the main reason that caused regression test to fail just now. I will try incorporating your idea of setting characters between 0xA and the next 0xB to 0x20. |
I read your commit and am wondering about something: Imagine you have a situation like the following: 0xB 0xB something 0xA (potentially something) 0xB 0xB something different than 0xA (i.e. the last box is not closed by a 0xa, but by the end of the line). The last_replacement_index will then point to the place of 0xA and at line 678 there will again be a 0xA in there. And the break in the next loop implies that col_stop will contain the position of the last character >0x20 before the 0xA. This in turn means that nothing of the last box will end up in output. |
Thank you again @mkver, for your patience and pointing out potential flaws in the code. Here's what I changed in the latest commit:
|
There's some errors according to the CI... @canihavesomecoffee can you check if this is caused by this specific PR? |
@cfsmp3 and @canihavesomecoffee Just to add in some information (maybe this could help), the same issues were present in my PR as well and I had changed only the python modules in the api folder. So, I do not think that these warnings and errors are specific to this PR :) |
@mkver Are you able to test this PR with a number of files and see how it behaves? |
If someone can make a build for me, yes. |
For windows I assume?
…On Wed, Feb 14, 2018 at 9:06 PM, mkver ***@***.***> wrote:
If someone can make a build for me, yes.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#926 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFrJ2UNIpXNQZbKTv_99mZbkOi155pszks5tU7tdgaJpZM4R-N_p>
.
|
Yes. Sorry that I forgot to mention it. |
@mkver Here you are: Just replace the existing binaries with those. |
@mkver you're right - I did everything except actually merge it. Sorry about that. |
The new files don't have any missing text any more, i.e. the patch is good. I'll close #922. (There is just one line where the builds with the fix for #930 contain one space where libzvbi has two. Strange, but I can live with that. Maybe it contains a control character other than a color code or 0xA and 0xB.) Thanks to everybody involved for your work on this. |
Please prefix your pull request with one of the following: [FEATURE] [FIX] [IMPROVEMENT].
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
Attempt to solve issue #922 by replacing 0xB and 0xA in the middle of row with space character
Generated srt:

Playing the generated srt on windows 10 Movies & TV app:
