Re: [Wikitech-l] 2016W43 ArchCom-RFC meeting: Allow HTML in SVG?

2016-10-28 Thread mathieu stumpf guntz

Thank you Brian ant Stephen, I think that should help me. :)


Le 27/10/2016 à 20:02, Brian Wolff a écrit :

On Thursday, October 27, 2016, Mathieu Stumpf Guntz <
psychosl...@culture-libre.org> wrote:


Le 27/10/2016 à 19:22, Brian Wolff a écrit :

On Thursday, October 27, 2016, Mathieu Stumpf Guntz <
psychosl...@culture-libre.org> wrote:

Hi,

Somewhat of topic, but could someone provide me some links related to
translatable SVG?

Kind regards



Do you have anything in particular you want to know about translatable
svgs? Are you looking more for a help page on how to make them, for the
relavent part of the svg spec or for technical information about MW's
implementation?

I'm looking for help pages to make them and use them within the
Wikimedia projects.


https://commons.wikimedia.org/wiki/Commons:Translation_possible/Learn_more#Multiple_translations_within_one_SVG_file
is probably the best help page for that.

--
bawolff
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] 2016W43 ArchCom-RFC meeting: Allow HTML in SVG?

2016-10-27 Thread Brian Wolff
On Thursday, October 27, 2016, Mathieu Stumpf Guntz <
psychosl...@culture-libre.org> wrote:
>
>
> Le 27/10/2016 à 19:22, Brian Wolff a écrit :
>> On Thursday, October 27, 2016, Mathieu Stumpf Guntz <
>> psychosl...@culture-libre.org> wrote:
>>> Hi,
>>>
>>> Somewhat of topic, but could someone provide me some links related to
>>> translatable SVG?
>>>
>>> Kind regards
>>>
>>>
>> Do you have anything in particular you want to know about translatable
>> svgs? Are you looking more for a help page on how to make them, for the
>> relavent part of the svg spec or for technical information about MW's
>> implementation?
> I'm looking for help pages to make them and use them within the
> Wikimedia projects.
>

https://commons.wikimedia.org/wiki/Commons:Translation_possible/Learn_more#Multiple_translations_within_one_SVG_file
is probably the best help page for that.

--
bawolff
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] 2016W43 ArchCom-RFC meeting: Allow HTML in SVG?

2016-10-27 Thread Stephen Niedzielski
This may not be immediately applicable but after Wikimania, I always think
of User:Cmglee  when I hear the
word "SVG". Please forgive this message it is too off topic.

On Thu, Oct 27, 2016 at 11:46 AM, Mathieu Stumpf Guntz <
psychosl...@culture-libre.org> wrote:

>
>
> Le 27/10/2016 à 19:22, Brian Wolff a écrit :
> > On Thursday, October 27, 2016, Mathieu Stumpf Guntz <
> > psychosl...@culture-libre.org> wrote:
> >> Hi,
> >>
> >> Somewhat of topic, but could someone provide me some links related to
> >> translatable SVG?
> >>
> >> Kind regards
> >>
> >>
> > Do you have anything in particular you want to know about translatable
> > svgs? Are you looking more for a help page on how to make them, for the
> > relavent part of the svg spec or for technical information about MW's
> > implementation?
> I'm looking for help pages to make them and use them within the
> Wikimedia projects.
>
> >
> > --
> > bawolff
> > ___
> > Wikitech-l mailing list
> > Wikitech-l@lists.wikimedia.org
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
>
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] 2016W43 ArchCom-RFC meeting: Allow HTML in SVG?

2016-10-27 Thread Mathieu Stumpf Guntz


Le 27/10/2016 à 19:22, Brian Wolff a écrit :
> On Thursday, October 27, 2016, Mathieu Stumpf Guntz <
> psychosl...@culture-libre.org> wrote:
>> Hi,
>>
>> Somewhat of topic, but could someone provide me some links related to
>> translatable SVG?
>>
>> Kind regards
>>
>>
> Do you have anything in particular you want to know about translatable
> svgs? Are you looking more for a help page on how to make them, for the
> relavent part of the svg spec or for technical information about MW's
> implementation?
I'm looking for help pages to make them and use them within the
Wikimedia projects. 

>
> --
> bawolff
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] 2016W43 ArchCom-RFC meeting: Allow HTML in SVG?

2016-10-27 Thread Brian Wolff
On Thursday, October 27, 2016, Mathieu Stumpf Guntz <
psychosl...@culture-libre.org> wrote:
> Hi,
>
> Somewhat of topic, but could someone provide me some links related to
> translatable SVG?
>
> Kind regards
>
>

Do you have anything in particular you want to know about translatable
svgs? Are you looking more for a help page on how to make them, for the
relavent part of the svg spec or for technical information about MW's
implementation?

--
bawolff
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] 2016W43 ArchCom-RFC meeting: Allow HTML in SVG?

2016-10-27 Thread Mathieu Stumpf Guntz
Hi,

Somewhat of topic, but could someone provide me some links related to
translatable SVG?

Kind regards


Le 26/10/2016 à 03:26, Gabriel Wicke a écrit :
> See also https://phabricator.wikimedia.org/T96461, which discusses using
> https://github.com/cure53/DOMPurify, and Parsoid's Token-based sanitizer.
>
> On Tue, Oct 25, 2016 at 6:12 PM, Legoktm 
> wrote:
>
>> Hi,
>>
>> On 10/25/2016 03:14 PM, Rob Lanphier wrote:
>>> 3.  Should we turn our SVG validation code into a proper library?
>> Yes! This is . :)
>>
>> -- Legoktm
>>
>> ___
>> Wikitech-l mailing list
>> Wikitech-l@lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>>
>
>


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] 2016W43 ArchCom-RFC meeting: Allow HTML in SVG?

2016-10-25 Thread Gabriel Wicke
See also https://phabricator.wikimedia.org/T96461, which discusses using
https://github.com/cure53/DOMPurify, and Parsoid's Token-based sanitizer.

On Tue, Oct 25, 2016 at 6:12 PM, Legoktm 
wrote:

> Hi,
>
> On 10/25/2016 03:14 PM, Rob Lanphier wrote:
> > 3.  Should we turn our SVG validation code into a proper library?
>
> Yes! This is . :)
>
> -- Legoktm
>
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>



-- 
Gabriel Wicke
Principal Engineer, Wikimedia Foundation
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] 2016W43 ArchCom-RFC meeting: Allow HTML in SVG?

2016-10-25 Thread Legoktm
Hi,

On 10/25/2016 03:14 PM, Rob Lanphier wrote:
> 3.  Should we turn our SVG validation code into a proper library?

Yes! This is . :)

-- Legoktm

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] 2016W43 ArchCom-RFC meeting: Allow HTML in SVG?

2016-10-25 Thread Rob Lanphier
Hi everyone,

For [this week's ArchCom-RFC meeting][E325], let's talk about SVG.

As you probably know, MediaWiki optionally allows for SVG uploads,
which is allowed on many Wikimedia wikis (e.g. on Commons).  However,
in order to make this preference safe to use, we need to validate the
SVG.

One thing that's allowed in the SVG spec is to embed fragments of
XHTML inside the SVG.  This isn't just a obscure spec feature; this is
understood to be the best way to embed a caption for a diagram that
allows for word wrap when the image is scaled.  Having XHTML support
also would allow for greater compatibility between MediaWiki and
real-world SVG editing tools (e.g. like draw.io)

matmarex made a suggestion in [the bug for this][T138783]:
> We have a HTML validation library (the Sanitizer class) and it could
> probably be hooked up to validating HTML in SVG file uploads. But it
> would definitely require some work.

It's not officially an RFC, but I suggested it as a discussion topic
in [last week's ArchCom planning meeting][3], and no one objected.

Let's see if we can answer a couple of questions:
1.  Is this a good idea in theory?  i.e. is it possible/likely that an
experienced developer could implement something that can pass security
review, or is it conceptually flawed?
2.  Is matmarex's suggested approach a good one?
3.  Should we turn our SVG validation code into a proper library?
4.  (if there's time) Let's step through the [brion's June 30 comment][4]

This week it will be the usual time (Wednesday 21 UTC, 14 PDT, 23 CEST)
and place (#wikimedia-office).  Next week, things get complicated
because of the end of [Summer Time in Europe][5]; an announcement
about next week's meeting will hopefully find its way to the
[ArchComStatus page][6].

Rob

[E325]: 
[T138783]: 
[3]: 
[4]: 
[5]: 
[6]: 

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l