FPGA - Oberon-7 - Plain File
Hi, Just thinking, how to remove rich format header with font names from a text file. In debugging I wish to create test files with no format info, ideally a tool that could hex/text edit. There is already `Tools' that can dump files, mem. I need the reverse a tool that could also create/edit a file from a text stream ascii or hex. Anything existing or quick to code? -- Tomas Kral <thomas.kral@email.cz>
The previous Oberon systems had a module called „EditTools.Mod“. That module provides a procedure „StoreAscii“. You can try to port it to ProjectOberon as the source is rather portable. BTW: the conversion involves more than deleting the prolog. You have to change line ends and possibly umlauts, as Oberon uses an own format that is not ASCII nor Latin-1 nor Unicode... However, in ProjectOberon umlauts are not supported, although the Oberon fonts have glyphs for umlauts... br Jörg
Am 03.10.2018 um 20:35 schrieb Tomas Kral <thomas.kral@email.cz>:
Hi,
Just thinking, how to remove rich format header with font names from a text file.
In debugging I wish to create test files with no format info, ideally a tool that could hex/text edit. There is already `Tools' that can dump files, mem. I need the reverse a tool that could also create/edit a file from a text stream ascii or hex.
Anything existing or quick to code?
-- Tomas Kral <thomas.kral@email.cz> -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
There is Claudio Nieder's java code at https://sourceforge.net/p/oberon/oberonv4/ci/master/tree/utils/ch/claudio/ob... And there is Pieter Muller's code to escape Oberon specific stuff for using sourceforge for storage/diffs of Oberon System 3 files. I include it as a file which is created by itself. It is plain asci and so it readable, but not compilable at all ... It contains some documentation after the END CvsClient. -- Bernhard
-----Original Message----- From: Tomas Kral [mailto:thomas.kral@email.cz] Sent: Wednesday, October 03, 2018 8:35 PM To: Oberon@lists.inf.ethz.ch Subject: [Oberon] FPGA - Oberon-7 - Plain File
Hi,
Just thinking, how to remove rich format header with font names from a text file.
In debugging I wish to create test files with no format info, ideally a tool that could hex/text edit. There is already `Tools' that can dump files, mem. I need the reverse a tool that could also create/edit a file from a text stream ascii or hex.
Anything existing or quick to code?
-- Tomas Kral <thomas.kral@email.cz>
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Tomas Kral Sent: Thursday, 4 October 2018 4:05 AM To: Oberon@lists.inf.ethz.ch Subject: [Oberon] FPGA - Oberon-7 - Plain File
Just thinking, how to remove rich format header with font names from a text file.
Use 'Texts.Read' to read characters from the rich text file and 'Files.Write' to write them to the plain text file, adding the neccessary LF or CR/LF line terminators to suit your target OS. In Project Oberon this is already implemented for you: see Tools.Convert, Regards, Chris Burrows CFB Software http://www.astrobe.com/RISC5
participants (4)
-
Chris Burrows -
Jörg Straube -
Tomas Kral -
Treutwein Bernhard