In EO and in UnixAos, Texts has, PROCEDURE Store* (T: Text; f: Files.File; pos: LONGINT; VAR len: LONGINT); StoreAscii* (T: Text; f: Files.File; pos: LONGINT; VAR len: LONGINT); analogous to ET.StoreAscii, should also be possible. Is there an efficient means to accomplish Texts.StoreAscii without adding another procedure? Thanks, ... Lyall E. -- 123456789 123456789 123456789 123456789 123456789 123456789 123456789 Tel: +1 360 639 0202 Pender Is.: +1 250 629 3757 http://easthope.ca/Peter.html Bcc: peter at easthope. ca
No. The Oberon type „Texts.Text“ is more than pure ASCII text; e.g. it contains font information not available in pure ASCII text. So, you need a procedure to convert Texts.Text to pure ASCII. This is not intended to be done in module „Texts“, as the name states it handles „Texts" and not ASCII files. Theoretically you could incorporate „StoreAscii" in module „Edit“. But as the original module „Edit“ did not offer it, you would hamper the compatibility between Oberon implementations. This is the reason why EditTools (ET) was invented, offering the procedure „StoreAscii“. You can see module „EditTools" as an extension to the original "Edit". Jörg
Am 06.09.2017 um 21:53 schrieb peter@easthope.ca:
In EO and in UnixAos, Texts has, PROCEDURE Store* (T: Text; f: Files.File; pos: LONGINT; VAR len: LONGINT);
StoreAscii* (T: Text; f: Files.File; pos: LONGINT; VAR len: LONGINT); analogous to ET.StoreAscii, should also be possible.
Is there an efficient means to accomplish Texts.StoreAscii without adding another procedure?
Thanks, ... Lyall E.
--
123456789 123456789 123456789 123456789 123456789 123456789 123456789 Tel: +1 360 639 0202 Pender Is.: +1 250 629 3757 http://easthope.ca/Peter.html Bcc: peter at easthope. ca
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
I seem to remember that ......V4 does .... Text.Store * can/could examine the <file corresponding to the marked Frame, or better the 'Frame's Buffer'> and store in the <same format>. Schematically: DiskFile <==> TextBuffer => ScreenBitMap TextBuffer's format is known at all times. The default case could be <Store TextBuffer in its present format, in DiskFile>. You need all 3 formats: Aos, *nix, FAT; and what about these clowns who've updated, so that the century's old ASCII "quote" is now 3 bytes ?
participants (3)
-
eas lab -
Jörg -
peter@easthope.ca