Alain Pierrot
i2S
+33140279977
+33607627588
mailto:a.pierrot at i2s.fr



Le 31 mai 07 ? 19:01, Hussein Shafie a ?crit :

> Alain Pierrot wrote:
>>
>> Le 31 mai 07 ? 10:41, Hussein Shafie a ?crit :
>>
>>> Daniel Dekany wrote:
>>>> When I paste text from another application that contains line- 
>>>> breaks
>>>> XXE will *show* the text with line-breaks in the styled view, yet
>>>> there is nothing in the XML that would cause those line-breaks  
>>>> (like
>>>> <br/>-s would in XHTML).
>>>
>>> Newlines characters are not normalized to whitespace characters  
>>> in the
>>> target of the paste command.
>>>
>>> This is totally harmless. That is, this is visually disturbing,  
>>> but  does
>>> not corrupt your XML document.
>>>
>>>
>>>
>>>> And indeed if I save, close, and re-open the document, those   
>>>> strange
>>>> visual line-breaks are gone. I think those
>>>> line-breaks shouldn't be there directly after the pasting either.
>>>>
>>>> I'm using XXE 3.6.0, J2SE 1.6.0_01, Windows XP.
>>>>
>>>
>>> We'll try to fix this bug in next release. Thank you for  
>>> reporting it.
>> This modification should be discussed before:
>> Quite often, these line breaks are meaningful, and the element within
>> which the text has been pasted needs to be split where a line break
>> occurs.
>
> Don't worry for that. Newlines characters need to be normalized to  
> space
> characters, but not when the element where the text is to be pasted
> preserves whitespace.
>
> Example: I paste in a <pre>: XXE keeps all whitespace as is.
> I paste in a <p>: XXE normalizes whitespace.
>
Yes indeed, but
for instance, if I encode according to TEI, I'll have make each line  
an element <l> embedded within a line group <lg>, not a <pre> with  
preserve space...
Which takes me back to 'ergonomy' of my process:
do I constrain my editors and have them prepare XML data (not very  
realistic, given that they cut & paste from indescript sources and  
don't work with native XML apps)
or
train them into using XMLeditor to post-edit whatever input they get?
In the latter case, the most convenient is to paste data, notice that  
line feeds appear where there are relevant and decide what is to be  
done about it?

This is is a straightforward question, I really do not know what is  
best .

Any input is welcome.

And XMLEditor is really a great product, which helps a lot!
Whatever decision you make, it won't impact on my involvement on

>
>
>> (For instance, in poetry, these line breaks separated the lines  
>> of  the
>> poem and two line breaks separated two strophes).
>> Normalising white space before pasting would lose the information,
>> compelling the editor to manage beforehand his copy/paste operation 
>> (s).
>> Some of my users are trained into using the present feature to paste
>> the whole poem in a line element,
>> then set the caret at the linebreaks and use the split function to
>> structure their text.
>> Not very clean, but effective...
>> (Btw, I had written an ad hoc macro that does the trick in one
>> operation, but it seems they don't really use it! ? My  
>> documentation
>> and training aren't very effective ;-( )
>
>
>
> --
> XMLmind XML Editor Support List
> xmleditor-support at xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
> ---------------------------------------------------------------------- 
> -----------------
> Orange vous informe que cet  e-mail a ete controle par l'anti-virus  
> mail.
> Aucun virus connu a ce jour par nos services n'a ete detecte.
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20070601/ceb5a8e7/attachment.htm
 

Reply via email to