Re: Text Wrapping in Documents

Clemens Szyperski (szypersk@fit.qut.edu.au)
Mon, 3 Feb 1997 15:56:54 +1000 (EST)

Hi Marc,

> Testing, testing....
>
> While I'm checking to see if the Oberon/F discussion list is still
> alive, I have a question... :-)

Yes, I got you loud and clear :-)

> I'm using Oberon/F 1.21 under Windows 95. Whenever I drag & drop a
> plain text file into the Oberon/F application window, it opens the file.
> This is good. However, whenever a line of text has more than a page
> width of characters, the text wraps to the next line. This is bad. I'd
> like to see this text file as it is, and if a line of text is too long,
> I'd prefer to simply scroll to the right to see it.
> [...]
> Has anyone found another workaround for this? If there were some way to
> change the default behavior of how Oberon/F opens up a new document,
> this would seem to be the perfect solution.

This behavior is just that of the standard converter installed to convert a
plan ASCII text to an Oberon/F text. Have a look at the documentation of
module Converters. Since conversion of an ASCII text (read using module Files
directly) to a text model is pretty simple, you may want to venture into
creating your own converter. The converter would then insert a ruler into the
text model and set the right margin of that ruler to something very large.
(This is similar to your right margin trick for the document.) Once you get
the converter working, you can have Oberon/F install it automatically at
startup time (using module Config). This way, your converter permanently
replaces the standard one.

Hope this helps,

- Clemens