On Thu, Nov 20, 2008 at 7:07 PM, Vincent Massol <vincent(a)massol.net> wrote:
On Nov 20, 2008, at 4:11 PM, Asiri Rathnayake wrote:
On Thu, Nov 20, 2008 at 8:30 PM, Asiri Rathnayake
<
asiri.rathnayake(a)gmail.com> wrote:
On Thu, Nov 20, 2008 at 8:17 PM, Asiri Rathnayake
<
asiri.rathnayake(a)gmail.com> wrote:
Hi Guillaume,
I can't help you much from the technical perspective. Re styles
that can
> be
> directly mapped to XWiki 2.0 syntax, I think they should be
> converted to
> use
> that syntax. To summarize my opinion:
>
> - When strict filtering is activated (conversion to XWiki 2.0
> syntax)
> - Only style attributes that can be directly mapped to wiki syntax
> element should be kept
> - This means that NO (% ... %) should appear
>
> Is that fine with everyone?
Just came into my mind, what about alignments ? (of texts, images
and the
like ?) Do you think they should also be ripped off when strict-
filtering
is on ?
+ same question for image height & width... I'm asking these
questions
because I think that sort of information should be preserved,
otherwise the
document will look really strange after import.
Again, may be we should introduce another level of style filtering.
So we
have 3 levels of filtering.
You should have a design that allows to plug any number of filtering
strategies (FilterStrategy interface) and implement 2 for now:
StrictFilterStrategy
NoopFilterStrategy (or some other name)
I think we can implement the moderate one later on after we start
using the tool and get user feedback.
At least I think it would be good to have those 2 fully done first.
Jusft for the record, I agree with Vincent on this, I think we should have
the strict filtering (wiki syntax only) working very well before worrying
about moderate filtering strategies.
Guillaume
Thanks
-Vincent
1. Strict filtering (Filter everything, a.k.a not
a single (%%))
2. Moderate (Filter styles as much as possible but try to preserve
those
formatting elements which makes the document look appealing, like
alignment,
image height & width etc.)
3. Filter nothing.
This is just an idea.
- Asiri
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://blog.xwiki.com/