2009/11/20 Stéphane Ducasse <[email protected]>:
> Hi nicolas
>
> I was dicussing today with juan vuletich about the management of end of line 
> convention and I think that
> he is right. When we edit a file we should be in control about that we want 
> to have.
> In CUIS when you edit a file you can decide the convention or change it.

The way how CIUS solves this shown at screenshot.

My humble question:
if i created a text file, what you think is more important to me:
  - being able to clearly read the text
  - or being able to see all control characters which may differ from
OS to OS???

My line of argumentation is, that text editor should serve for editing
a text, but not some sort of binary-mode editing
where text is a mix of usual symbols and non-human stuff, which having
meaning only to computer.

If i would want to see a binary contents of file, i use hex dump
display/edit, but not text editor.
(see another attachment)

Use right tool for things you do. By making a single tool for serving
everything - as result you getting a horrific & complex monster
without any means how to manage it and improve.

> He told me that in the squeak world people were pushing that the end of line 
> is controlled by the platform.

This is not correct.
I am pushing the idea, that text editor should serve to edit and
display text, and don't care about preserving or dealing with
different line-end conventions. Instead, import should deal with
normalizing the input to a form, edigible by editor, and then export
layer (file-out or whatever) may be instructed to save edited file
using one or other line-ends, but editor should use own convention(s)
and free to choose own ways how internally store the edited text.

> My point of view on this is :
>        - when I manipulate the text object may be we should have the platform 
> convention.
>        - when I edit a file I should get the control because I may want to 
> edit a file on mac with unix convention.
>
> So nicolas I saw that you pushed a slice about fixing end of line.
> What is the design behind it?
>

Stef, you can always read a full discussion about it on squeak-dev archives.
http://n4.nabble.com/support-of-various-line-ends-in-trunk-td622338.html#a622338

> Stef
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>



-- 
Best regards,
Igor Stasenko AKA sig.
This is a text
This is a text
This is a text
This is a text

<<attachment: cuis-editor.png>>

<<attachment: hexdump.png>>

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to