Re: [Wikitech-l] What type of language is the wikitext ?

2017-07-10 Thread Kaartic Sivaraam
On Wed, 5 Jul 2017 07:48:18 -0700, Gabriel Wicke  wrote,
> Here is an older blog post describing some of the issues in parsing
> wikitext, including examples:
> https://blog.wikimedia.org/2013/03/04/parsoid-how-wikipedia-catches-up-with-the-web/
> 
Thanks! Will look into it.

-- 
Kaartic

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

Re: [Wikitech-l] What type of language is the wikitext ?

2017-07-10 Thread Kaartic Sivaraam
On Wed, 5 Jul 2017 16:31:44 +0300, יגאל חיטרון  wrote,
> Hi. Any computer language that has parentheses isn't context free. So
> if
> you are not in Assembly, it's enough.
> About context-free - it's tricky question. I wouldn't call it context
> free
> because of some macro expansions, for example, the pipe ([[abc
> (def)|]] ->
> [[abc (def)|abc]]). The problem I don't know if it will really
> disturb you,
> because highlighting should not care about this.
> The first problem of context-free, templates, should not bother you
> either,
> because you do not have template expansion on the page is
> highlighted, only
> in "runtime". Even "subst" mechanism does not work before saving.
> I tried now to find some wikitext syntax constructs that created a
> "really"
> context sensitive problems, as text power (find ww for some w), but
> had not
> found anything.
> Any other oppinions?
> 
Thanks for the reply. So from what I could get does it mean that as far
as syntax-highlighting is concerned 'wikitext' could be considered to
be something close to a context-free language. As a result of, syntax
highlighting could be done with a program that works like a PDA.
Correct me if I'm wrong.

-- 
Kaartic

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

Re: [Wikitech-l] What type of language is the wikitext ?

2017-07-10 Thread יגאל חיטרון
Yes, but again, it's my opinion only.
Igal


2017-07-10 17:30 GMT+03:00 Kaartic Sivaraam 
:

> On Wed, 5 Jul 2017 16:31:44 +0300, יגאל חיטרון 
> wrote,
> > Hi. Any computer language that has parentheses isn't context free. So
> > if
> > you are not in Assembly, it's enough.
> > About context-free - it's tricky question. I wouldn't call it context
> > free
> > because of some macro expansions, for example, the pipe ([[abc
> > (def)|]] ->
> > [[abc (def)|abc]]). The problem I don't know if it will really
> > disturb you,
> > because highlighting should not care about this.
> > The first problem of context-free, templates, should not bother you
> > either,
> > because you do not have template expansion on the page is
> > highlighted, only
> > in "runtime". Even "subst" mechanism does not work before saving.
> > I tried now to find some wikitext syntax constructs that created a
> > "really"
> > context sensitive problems, as text power (find ww for some w), but
> > had not
> > found anything.
> > Any other oppinions?
> >
> Thanks for the reply. So from what I could get does it mean that as far
> as syntax-highlighting is concerned 'wikitext' could be considered to
> be something close to a context-free language. As a result of, syntax
> highlighting could be done with a program that works like a PDA.
> Correct me if I'm wrong.
>
> --
> Kaartic
>
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] What type of language is the wikitext ?

2017-07-10 Thread Kaartic Sivaraam
On Mon, 2017-07-10 at 17:30 +0300, יגאל חיטרון wrote:
> Yes, but again, it's my opinion only.
> Igal
> 
I get that :) It seems your opinion is not wrong from seeing the
current syntax highlighter implementation[1]. It does seems to imitate
a PDA when details are ignored.

[1]: 
https://github.com/wikimedia/apps-android-wikipedia/blob/master/app/src/main/java/org/wikipedia/edit/richtext/SyntaxHighlighter.java#L148

-- 
Kaartic

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

[Wikitech-l] Fwd: [Wikimedia-l] [fellowship] Opportunity for people working on "open projects that support a healthy Internet."

2017-07-10 Thread Pine W
Forwarding.

Pine


-- Forwarded message --
From: Melody Kramer 
Date: Mon, Jul 10, 2017 at 2:26 PM
Subject: [Wikimedia-l] [fellowship] Opportunity for people working on "open
projects that support a healthy Internet."
To: wikimedi...@lists.wikimedia.org


Hi all,

I wanted to pass along an opportunity that I saw earlier today via Twitter:
https://medium.com/read-write-participate/work-in-the-open-
with-mozilla-1410be0a83b2

It sets up people working on "open projects that support a healthy
Internet" with a mentor, a cohort of like-minded people from all over the
world, and a trip to Mozfest, which is a London-based open Internet
conference I've attended/presented at in past years and found really
mind-expanding due to the cross-disciplinary conversations that take place.

You can see previous projects here: https://mozilla.github.
io/leadership-training/round-3/projects/ — it looks like there's quite a
broad cross-section and many of the projects across the movement might be
applicable. The post notes participants will learn about "best practices
for project setup and communication, tools for collaboration, community
building, and running events."

Thank you to Leila for suggesting I pass this along to this listserv. Feel
free to share it broadly.


- Mel


--
Melody Kramer 
Senior Audience Development Manager
Read a random featured article from Wikipedia!


mkra...@wikimedia.org
___
Wikimedia-l mailing list, guidelines at: https://meta.wikimedia.org/
wiki/Mailing_lists/Guidelines and https://meta.wikimedia.org/
wiki/Wikimedia-l
New messages to: wikimedi...@lists.wikimedia.org
Unsubscribe: https://lists.wikimedia.org/mailman/listinfo/wikimedia-l,

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