def create_historic_main_page(): meta = { "publisher_name": "!BTX", "clear_screen": True, "links": { "0": "0", "10": "710", "11": "711", "#": "711" }, "publisher_color": 7 } data_cept = bytearray() data_cept.extend(Historic_UI.create_title("Historische Seiten")) data_cept.extend(b"\r\n") data_cept.extend( Cept.from_str("Nur wenige hundert der mehreren hundert-" "tausend BTX-Seiten sind überliefert.\n" "Die meisten entstammen dem Demomodus von" "Software-BTX-Decoderprogrammen.\n" "\n" "1988: C64 BTX Demo (Input 64 12/88)...--" "1989: Amiga BTX Terminal..............10" "1989: C64 BTX Demo (64'er 1/90).......--" "1991: BTX-VTX Manager v1.2............--" "1993: PC online 1&1...................11" "1994: MacBTX 1&1......................--" "1995: BTXTEST.........................--" "1996: RUN_ME..........................--" "\n" "Da historische Seiten erst angepaßt wer-" "den müssen, um nutzbar zu sein, sind\n" "noch nicht alle Sammlungen verfügbar." #XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX )) data_cept.extend(Historic_UI.footer("0 Zurück", None)) return (meta, Cept.compress(data_cept))
sys.stderr.write("showing page: '" + desired_pageid + "'\n") try: ret = create_page(desired_pageid) except: error=10 success = ret is not None if success: (page_cept_data_1, page_cept_data_2, links, inputs, autoplay) = ret error = 0 if success else 100 else: error = 100 if error == 0: if (compress): page_cept_data_1 = Cept.compress(page_cept_data_1) page_cept_data_2 = Cept.compress(page_cept_data_2) sys.stderr.write("Sending pal/char: ") if send(page_cept_data_1): # send palette and charset sys.stderr.write("Sending text: ") send(page_cept_data_2) # if user didn't interrupt, send page text else: # user interrupted palette/charset, so the decoder state is undefined last_filename_palette = "" last_filename_include = "" # showing page worked current_pageid = desired_pageid if add_to_history: history.append(current_pageid) else:
def create_historic_overview(collection, index): if collection == 10: name = "Amiga Demo" description = ("Der Amiga BTX Software-Decoder wurde mit" "Dumps von 113 BTX-Seiten aus 32\n" "Programmen ausgeliefert, sowie 56 eigens" "gestalteten Seiten zum Thema BTX.\n" "Die Seiten stammen vom April 1989.") distribution = [9, 17] start_page = ["20096/1", "Amiga Demo Startseite"] pages = [ ["1050", "Btx-Telex"], ["1188", "Teleauskunft"], ["1692", "Cityruf"], ["20000", "Deutsche Bundespost"], ["20096", "Commodore"], ["20511/223", "Kölner Stadtanzeiger"], ["21212", "Verbraucher-Zentrale NRW"], ["25800/0000", "Deutsche Bundesbahn"], ["30003", "Formel Eins"], ["30711", "Btx Südwest Datenbank GmbH"], ["33033", "Eden"], ["34034", "Frankfurter Allg. Zeitung"], ["34344", "Neue Mediengesellschaft Ulm"], ["35853", "ABIDA GmbH"], ["40040/200", "Axel Springer Verlag"], ["44479", "DIMDI"], ["50257", "Computerwelt Btx-Info-Dienst"], ["54004/04", "ÖVA Versicherungen"], ["57575", "Lotto Toto"], ["64064", "Markt & Technik"], ["65432/0", "ADAC"], ["67007", "Rheinpfalz Verlag/Druckerei"], ["201474/75", "Rhein-Neckar-Zeitung"], # [ "208585", "eba Pressebüro und Verlag [BROKEN]" ], ["208888", "Neue Mediengesellschaft Ulm"], ["402060", "AUTO & BTX WOLFSBURG"], ["50707545", "CHIP Magazin"], ["86553222", "Chaos Computer Club"], ["505050035", "Steinfels Sprachreisen"], ["920492040092", "Wolfgang Fritsch (BHP)"] ] elif collection == 11: name = "PC online 1&1" description = ("Der PC online 1&1 Decoder wurde mit\n" "von 25 BTX-Seiten aus 15 Programmen\n" "ausgeliefert. Die Seiten stammen vom\n" "November 1993.") distribution = [12] start_page = None pages = [["00000/88", "Teleauskunft"], ["00000/1188", "Mitteilungsdienst"], ["20111/1", "Vobis Microcomputer AG"], ["20111/11020", "- Übersicht 486"], ["20111/1102030", "- 486 DX-50 "], ["20111/110203010", "- 486 DX-50 Details"], ["21199", "Microsoft"], ["21199/1362", "- Produkte"], ["25800", "Deutsche Bundesbahn"], ["28000/101", "Postbank"], ["34561/10", "1&1 Telekommunkation"], ["34561/99", "- Forum [a-b]"], ["37107/2154", "WDR Computer-Club"], ["46801/8149999999", "Handelsblatt"], ["49498/0004902", "bhv Computerbücher"], ["49498/000490201", "- Neuheiten"], ["50000", "Deutsche Lufthansa"], ["52800", "IBM Deutschland"], ["52800/03", "- IBM Personal Systeme"], ["52800/31", "- HelpClubShop [a-c]"], ["58587/003", " ITZ Schulungen"], ["69010", "Deutscher Ind. Handelstag"], ["353535/00", "START Tourismus"], ["353535/01240", "- Veranstalter"], ["353535/01640", "- Reiseinformationen"]] else: return None start_with = 0 if index: for i in range(0, index): if i >= len(distribution): return None start_with += distribution[i] links = { "0": "78", } if start_page: links["10"] = Historic_UI.historic_link_from_str(start_page[0]) i = 20 for page in pages: links[str(i)] = Historic_UI.historic_link_from_str(page[0]) i += 1 meta = { "publisher_name": "!BTX", "clear_screen": True, "links": links, "publisher_color": 7 } sys.stderr.write("meta: " + pprint.pformat(meta) + "\n") data_cept = bytearray() data_cept.extend( Historic_UI.create_title("Historische Seiten: " + name)) data_cept.extend(b"\r\n") if not index: data_cept.extend(Cept.from_str(description)) data_cept.extend(b"\r\n\n") if start_page: data_cept.extend(Historic_UI.historic_line(start_page, 10)) data_cept.extend(b"\n") if index >= len(distribution): end = len(pages) else: end = start_with + distribution[index] for i in range(start_with, end): data_cept.extend(Historic_UI.historic_line(pages[i], i + 20)) right = "Weiter #" if index < len(distribution) else None data_cept.extend(Historic_UI.footer("0 Zurück", right)) return (meta, Cept.compress(data_cept))