Re: Bug and/or Unwanted behavoure on typing indented text.

Irene Vatton wrote:
> Le mercredi 09 avril 2008 à 15:53 +0200, Corne Beerse a écrit :
>   
>> Hello,
>>
>> I'm not sure if it is a bug, feature or just the way it is designed.
>> It is however not the way I expected it to be.
>> I'm using Amaya 10 (Feb 26 2008).
>> I'm creating a xhtml transitional document
>> I'm typing text and like the next paragraphs to be indented
>>         Then it happens: At the start of the paragraph, I hit the
>>         indent button.
>>         The cursor indents as I expect.
>>         I start typing and...
>>         .... the paragraph removes and the text is entered at the end
>>         of the previous paragraph.
>>         I think this is a bug.
>>     
>
> Yes it is.
>   
I expect it is entered in the bug database ;-)
>   
>> Then I just type my text for the first indented paragraph, select it
>> and hit the indent button.
>> So far so good, the paragraph gets indented.
>>         My cursor is still at the end of the indented text.
>>         I hit enter to start a new paragraph...
>> .... the new paragraph is not indented...
>> This can be a bug (as I expect) or it can be as designed. I donnot
>> like it this way. Most wordprocessors and even several ascii editors
>> keep the indent as it is until an 'unindent' button is hit. I even do
>> recall the indent was kept as it its in previous versions of Amaya.
>> Can this also be updated/changed?
>>     
>
> The transmission of the specific style of the current element to the new
> created element won't encourage the use of CSS generic rules.
> I know that wordprocessors generate mainly specific style. But it's very
> tedious to update this kind of documents when you want to change the
> indent, or other style property (we're developing a command to help
> users to clean up documents generated by wordprocessors).
> A better way is to attach global CSS rules to structure elements
> (paragraphs, list items). So each new created element inherits the style
> and the style can be easily changed.
>   
I've peeked in the html code and have seen the way indent is implemented 
in amaya. For indent of normal paragraphs <p>, there is no alternative 
than to do it by style or such. Since Amaya is an example implementation 
and you say a global CSS rule would be better, why does Amaya not do it 
as follows (if possible?): If an indent is wanted on an paragraph, 
create a style 'indent1 on a paragraph' and use that. 2nd level indent 
can be 'indent2 on a paragraph' and so in. I have several ideas on where 
and how to store the style definition, they include the top of the same 
file, opening the attached css file or just ask the user.

Now I'm peeking at the html: if I remove the indent, the style is left 
in the type. Or is it cleared on save as 'obsolete'?

On the other hand, I also used the indent button on list items <li>. 
Since <li> items can be used nested, I kind of expected that would be 
the case. I have to admit, that is what I'm used to in msWord, but it is 
a way to avoid style-sheets. Otherwise, If I want the <li> items nested, 
how do I do that?

>   
>> btw: the above is on using indent on normal <p> paragraphs. While
>> using bullets it is even more strange to me, I expect that to be
>> related however.
>>
>>
>> Regards
>>
>> Corné
>>
>>     

Received on Friday, 11 April 2008 13:41:13 UTC