-
Notifications
You must be signed in to change notification settings - Fork 16
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
WIP/Help please: add VTXv4 file format support #21
base: master
Are you sure you want to change the base?
Conversation
also pinging @ZXGuesser! |
FileMonitor and LoadPageList assume one file per page, so if you have subpages in separate files you will just get multiple conflicting pages loaded, each with one subpage. The very first line (row zero) will be replaced by the inserter generated header anyway. Alpha Black is code 0x00 which suggests you have a problem handling nulls (or your TV doesn't support it?) The National Option Set bits are are in m_pagestatus. You can set it with p->SetPageStatus(). For German you would OR 0x200 with any other status bits (see ttxpage.h) |
FileMonitor and LoadPageList assume one file per page, so if you have
subpages in separate files you will just get multiple conflicting pages
loaded, each with one subpage.
That seems like what is happening. is there a way around that? I'm not
yet very familiar with the code (it's quite large), but can you in some
way append subpages to loaded pages? I'd happily code that if you can
tell me where to look for.
The very first line (row zero) will be replaced by the inserter
generated header anyway.
Interesting. So is there a reason why all the other decoders are parsing
it still?
Alpha Black is code 0x00 which suggests you have a problem handling
nulls (or your TV doesn't support it?)
D'oh! Casting to strings with a null byte in the front probably won't
help. (my tv definetly supports it; i can see the 'upstream teletext'
from which i generate my archive from just fine)
The National Option Set bits are are in m_pagestatus. You can set it
with p->SetPageStatus(). For German you would OR 0x200 with any other
status bits (see ttxpage.h)
I'll have a look, thanks! Are the language bits exposed to the user
somewhere, so you can manually override it? (dvbtext -- once again --
does not encode them)
|
Very difficult as it's sort of the opposite way round to how all the existing code works. The file monitor works by the pages having the filename they were loaded from.
Chunks of the code were copied over from https://github.com/peterkvt80/wxted and don't do anything but have never been removed to tidy up the source. That's why all the VTX and EP1 import code is present but not functional.
The page status is read from the .TTI files so there's no facility to override it. If the status is missing it defaults to 0x8000 (which is an English page with no flags set) but I suppose a config file setting could be added to change that default. |
thanks! those insights are very helpful. can you elaborate a bit how Setm_SubPage works exactly? for now, i'm just ignoring any subpages other than 1. small status update: black-on-white is working now ( if there is interest (and some test pages) I could get the other file importers working again.
that would be exactly what i need! |
Setm_SubPage sets the subpage number, but currently GetPageCount() gets called for carousels after they're loaded to forcibly renumber them. Presumably just to deal with malformed TTI files @peterkvt80?
EP1 is broken anyway, it's based on an incomplete understanding of the format so it would better to start again. I've been meaning to look into that at some point because wxTED needs the same attention.
The most awkward part is getting the configuration to the TTXPage object. I think by passing it to TTXPageStream and from there into new the TTXPage. |
VTXv4 is used by the dvbtext tool, which fetches pages from live DVB-{T,S,C} teletext
Thanks! I've found out that the charset replacement is encoded! regarding the subpages: what do you think of this idea?
this moves the question to: "can i access already parsed pages by their pagenum?" |
This is exactly the problem :) |
VTXv4 is used by the dvbtext tool, which fetches pages from live DVB-{T,S,C} teletext.
hi, I've implemented rudimentary support for a format I've got thousands of teletext pages for. There are some problems I've yet to overcome, these are:
I'd love to get some help with this, if you've got time, @peterkvt80. I can privately share with you my teletext archive, if you need to. Thanks!