Vincent Massol wrote:
> Hi Lucien and all,
> 
> Several ideas:
> 
> 1) If this were implemented at the xwiki syntax level we couldn't do  
> it with a macro as this would break the semantic of the wiki but it  
> could be done using semantic inline poroperties 
> (http://code.google.com/p/wikimodel/wiki/AdvancedStructuralElements 
> ). Note that we haven't implemented this yet in the rendering. Right  
> now the closest would be using custom XHTML attributes.
> 2) If it were to be implemented at the level of the wiki syntax it  
> would only work with XWiki syntax 2.0 since we don't have a XHTML to  
> wiki syntax converter for the 1.0 syntax (there would be too many  
> other problems too)
> 3) You must talk to Marius and reuse his Range and Selection API that  
> he implemented for Firefox/IE for selecting portions of text

Take a look here http://tinyurl.com/58u4ws . If you have questions 
please ask.

Regards,
Marius

> 4) I agree that it would be easier implemented at the xwiki syntax as  
> otherwise you would have a very hard time synchronizing document  
> changes with text selections. In addition having it at the wiki syntax  
> allows to enter annotations when editing the document using the  
> wysiwyg editor or the wiki editor and it solves the way to persist the  
> location information.
> 
> So, is 2) acceptable for your need Lucien?
> 
> If we agree that it's best to implement at the wiki syntax level then  
> we'll need to wait for 1.8 since we'll need to introduce semantic  
> properties in the rendering module.
> 
> This is an interesting use case ;)
> 
> Thanks
> -Vincent
> 
> On Nov 17, 2008, at 10:22 AM, Lucien PEREIRA wrote:
> 
>> Hi,
>>
>> I'd like to propose this design
>> <http://dev.xwiki.org/xwiki/bin/view/Design/AnnotationFeature> for
>> annotation feature implementation.
>>
>> Vote is about choosing between solution 1 and 2.
>>
>> if we can have an (almost) perfect bijective function between HTML and
>> XWiki code, I'm +1 for solution 2 because implementation will be more
>> efficient , stable and clean.
>> Otherwise solution 1 seems to be a good solution.
>>
>> WDYT?
>>
>> Lucien
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to