Page MenuHomePhabricator

Khannaanant262129 (vanshkhanna)
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Saturday

  • Clear sailing ahead.

User Details

User Since
Mar 1 2016, 6:11 PM (421 w, 1 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Khannaanant262129 [ Global Accounts ]

Recent Activity

Mar 24 2016

Khannaanant262129 renamed T130510: Enabling parsoid to generate WIKITEXT from other markups and HTML cleanup abilities[GSoC Proposal] from Enabling parsoid to generate WIKITEXT from other markups and HTML cleanup abilities to Enabling parsoid to generate WIKITEXT from other markups and HTML cleanup abilities[GSoC Proposal].
Mar 24 2016, 5:53 PM · Google-Summer-of-Code (2016), Parsoid
Khannaanant262129 added a comment to T130510: Enabling parsoid to generate WIKITEXT from other markups and HTML cleanup abilities[GSoC Proposal].

@Arlolra As the necessary changes as per your review has been made. Should this task be closed as resolved?

Mar 24 2016, 10:01 AM · Google-Summer-of-Code (2016), Parsoid
Khannaanant262129 updated the task description for T130510: Enabling parsoid to generate WIKITEXT from other markups and HTML cleanup abilities[GSoC Proposal].
Mar 24 2016, 9:16 AM · Google-Summer-of-Code (2016), Parsoid
Khannaanant262129 updated the task description for T130510: Enabling parsoid to generate WIKITEXT from other markups and HTML cleanup abilities[GSoC Proposal].
Mar 24 2016, 9:12 AM · Google-Summer-of-Code (2016), Parsoid
Khannaanant262129 updated the task description for T130510: Enabling parsoid to generate WIKITEXT from other markups and HTML cleanup abilities[GSoC Proposal].
Mar 24 2016, 8:54 AM · Google-Summer-of-Code (2016), Parsoid

Mar 23 2016

Khannaanant262129 added a comment to T130510: Enabling parsoid to generate WIKITEXT from other markups and HTML cleanup abilities[GSoC Proposal].

@Arlolra Thanks! for the review , I've made the changes as per your review.

Mar 23 2016, 7:22 PM · Google-Summer-of-Code (2016), Parsoid
Khannaanant262129 renamed T130510: Enabling parsoid to generate WIKITEXT from other markups and HTML cleanup abilities[GSoC Proposal] from Enabling parsoid to generate HTML from other markups and HTML cleanup abilities to Enabling parsoid to generate WIKITEXT from other markups and HTML cleanup abilities.
Mar 23 2016, 7:06 PM · Google-Summer-of-Code (2016), Parsoid

Mar 22 2016

Khannaanant262129 updated the task description for T130510: Enabling parsoid to generate WIKITEXT from other markups and HTML cleanup abilities[GSoC Proposal].
Mar 22 2016, 4:00 AM · Google-Summer-of-Code (2016), Parsoid

Mar 21 2016

Khannaanant262129 added a comment to T130510: Enabling parsoid to generate WIKITEXT from other markups and HTML cleanup abilities[GSoC Proposal].

@Sumit Thankyou so much , I have made the changes/additions as per your suggestions , please see if something else needs to be changed/added. Your help is deeply admired.
your sincerely,
vansh khanna

Mar 21 2016, 6:02 PM · Google-Summer-of-Code (2016), Parsoid
Khannaanant262129 updated the task description for T130510: Enabling parsoid to generate WIKITEXT from other markups and HTML cleanup abilities[GSoC Proposal].
Mar 21 2016, 5:38 PM · Google-Summer-of-Code (2016), Parsoid
Khannaanant262129 updated the task description for T130510: Enabling parsoid to generate WIKITEXT from other markups and HTML cleanup abilities[GSoC Proposal].
Mar 21 2016, 5:36 PM · Google-Summer-of-Code (2016), Parsoid
Khannaanant262129 removed projects from T130510: Enabling parsoid to generate WIKITEXT from other markups and HTML cleanup abilities[GSoC Proposal]: Outreachy-Round-12, Possible-Tech-Projects.
Mar 21 2016, 5:20 PM · Google-Summer-of-Code (2016), Parsoid

Mar 20 2016

Khannaanant262129 created T130510: Enabling parsoid to generate WIKITEXT from other markups and HTML cleanup abilities[GSoC Proposal].
Mar 20 2016, 7:58 PM · Google-Summer-of-Code (2016), Parsoid

Mar 16 2016

Khannaanant262129 added a comment to T129562: Demonstrate some understanding of Parsoid's serialization (html to wikitext).

The following issues were found with the wikitext generated

Mar 16 2016, 5:47 PM · Parsoid
Khannaanant262129 created P2775 Code from @Khannaanant262129 in T127329.
Mar 16 2016, 5:16 PM · Parsoid
Khannaanant262129 created P2774 Code from @Khannaanant262129 in T127329.
Mar 16 2016, 5:13 PM · Parsoid
Khannaanant262129 created P2773 Code from @Khannaanant262129 in T127329.
Mar 16 2016, 5:12 PM · Parsoid
Khannaanant262129 created P2772 Code from @Khannaanant262129 in T127329.
Mar 16 2016, 5:11 PM · Parsoid

Mar 14 2016

Khannaanant262129 edited P2755 Code from @Khannaanant262129 in T129562.
Mar 14 2016, 11:13 PM · Parsoid
Khannaanant262129 edited P2754 Code from @Khannaanant262129 in T129562.
Mar 14 2016, 11:08 PM · Parsoid
Khannaanant262129 edited P2753 Code from @Khannaanant262129 in T129562.
Mar 14 2016, 11:07 PM · Parsoid
Khannaanant262129 created P2760 Code from @Khannaanant262129 in T127329.
Mar 14 2016, 11:05 PM · Parsoid
Khannaanant262129 added a comment to T129562: Demonstrate some understanding of Parsoid's serialization (html to wikitext).
The syntax wasn't in accordance with markdown for tables,worked fine finally.

test.png (768×1 px, 115 KB)

Mar 14 2016, 10:56 PM · Parsoid

Mar 13 2016

Khannaanant262129 added a comment to T129562: Demonstrate some understanding of Parsoid's serialization (html to wikitext).

Here is my work so far:

Mar 13 2016, 3:25 PM · Parsoid
Khannaanant262129 created P2755 Code from @Khannaanant262129 in T129562.
Mar 13 2016, 3:10 PM · Parsoid
Khannaanant262129 created P2754 Code from @Khannaanant262129 in T129562.
Mar 13 2016, 3:04 PM · Parsoid
Khannaanant262129 created P2753 Code from @Khannaanant262129 in T129562.
Mar 13 2016, 3:02 PM · Parsoid

Mar 7 2016

Khannaanant262129 added a comment to T127329: Using Parsoid as a wikitext bridge for importing content into wikitext format.

@Arlolra , Actually that was step two on the current prototype i.e to input a markup file from the user and its type. I'll store it's path in the database and the file itself in the file system( it would keep the database light and efficient). Then the file is fetched along with another file that will contain the rules of the submitted markup file. And then convert the user-submitted file into HTML and for the rest we have parsoid.

Mar 7 2016, 12:52 PM · Outreach-Programs-Projects, Parsoid
Khannaanant262129 created P2715 Code from @khannaanant262129 in T127329 .
Mar 7 2016, 12:29 PM · Google-Summer-of-Code (2016), Possible-Tech-Projects, Parsoid
Khannaanant262129 created P2714 code from @khannaanant262129 in T127329.
Mar 7 2016, 12:26 PM · Google-Summer-of-Code (2016), Possible-Tech-Projects, Parsoid

Mar 6 2016

Khannaanant262129 added a comment to T127329: Using Parsoid as a wikitext bridge for importing content into wikitext format.

@RobLa-WMF, your help is deeply admired sir. @RobLa-WMF @Arlolra , I have added a paste

1
2var http = require('http');
3var fs = require('fs');
4
5http.createServer(onRequest).listen(8888);
6console.log("server is running....");
7
8
9content = fs.readFileSync('wiki.html').toString();
10replacetags(content);
11
12function replacetags(text){
13
14 console.log(text);
15
16 // for link tags '<a>' tag to [[ ]]
17 var linkOpen = text.replace("<a>", "[[");
18 var linkClose = linkOpen.replace("</a>", "]]");
19
20 //for heading tags '<h1'> to '</h1>
21 var hOpen = linkClose.replace("<h1>" , "=");
22 var hClose = hOpen.replace("</h1>" , "=");
23
24 //for line breaks
25
26 var brTagsRemoved = hClose.replace("<br>", "{{break}}");
27 var removeIOpen = brTagsRemoved.replace("<i>" , "''");
28 var final = removeIOpen.replace("</i>","''");
29
30
31
32 console.log(final);
33
34 fs.writeFileSync('wikitext.html' , final);
35
36}
37
38
39//404 response
40function send404Response(response){
41 response.writeHead(404, {"Content-Type" : "text/plain"});
42 response.write("Error404: Page not found!");
43 response.end();
44
45}
46//Handle request
47function onRequest(request,response){
48
49 if( request.method == 'GET' && request.url == '/')
50 {
51 response.writeHead(200, {"Content-Type" : "text/plain"});
52 fs.createReadStream("./wikitext.html").pipe(response);
53//pipe the page through the response object
54 }
55 else {
56 send404Response(response);
57 }
58}
59
60
61
62
63
64
65
66
67
. Your reviews and suggestions are awaited I'd also want to discuss a couple of good ideas that I have regarding the project.

Mar 6 2016, 4:05 AM · Outreach-Programs-Projects, Parsoid
Khannaanant262129 created P2712 Code from @Khannaanant262129 in T127329.
Mar 6 2016, 3:59 AM · Google-Summer-of-Code (2016), Possible-Tech-Projects, Parsoid

Mar 5 2016

Khannaanant262129 added a comment to T15303: Implement HTML e-mail support in MediaWiki.

@Adri @Parent5446 @Tinaj1234
The skill set for the project is not defined in the description yet. I have been working on CakePHP and node.js from development to deployment and willing to take up this for GSOC 2016.

Mar 5 2016, 7:48 PM · MediaWiki-Email
Khannaanant262129 added a comment to T127329: Using Parsoid as a wikitext bridge for importing content into wikitext format.

@RobLa-WMF , your suggestion is deeply admired sir. I'll certainly host the code to my git account.

Mar 5 2016, 6:11 PM · Outreach-Programs-Projects, Parsoid
Khannaanant262129 added a comment to T127329: Using Parsoid as a wikitext bridge for importing content into wikitext format.

@Arlolra I am attaching my code and the result. This is a working model of what has to be implemented in this project in the long run. It reads a html file and converts <a> , <i> , <br> and <h1> tags as per Wiki - Markup ( https://en.wikipedia.org/wiki/Help:Wiki_markup ) and saves the output in wikitext.html file. The screenshot below shows the html text and the equivalent wikitext.

Mar 5 2016, 6:03 PM · Outreach-Programs-Projects, Parsoid

Mar 4 2016

Khannaanant262129 added a comment to T127329: Using Parsoid as a wikitext bridge for importing content into wikitext format.

@Arlolra, The code is on my local machine presently and with in next 24 hours I will deploy it on my domain(vanshkhanna.com) so that you actually see a working prototype live.
p.s some issues with my hosting plan.
Or I can mail you the code or post here but I don't see that as a professional way of doing it. Is it cool?
your reply is deeply appreciated,
yours sincerely,
vansh khanna.

Mar 4 2016, 5:41 PM · Outreach-Programs-Projects, Parsoid

Mar 3 2016

Khannaanant262129 added a comment to T127329: Using Parsoid as a wikitext bridge for importing content into wikitext format.

@Arlolra My present prototype fetches text files and renders it's html equivalent
I was keen to show you my prototype so far and in the long run this is what that has to be implemented using a webservice in node.js

Mar 3 2016, 8:37 PM · Outreach-Programs-Projects, Parsoid
Khannaanant262129 added a comment to T127329: Using Parsoid as a wikitext bridge for importing content into wikitext format.

@Arlolra is there specific time at when I can reach you on IRC because I'm in India and whe have different time zones.
your reply is deeply appreciated.
yours sincerely,
vansh khanna.

Mar 3 2016, 7:41 PM · Outreach-Programs-Projects, Parsoid

Mar 2 2016

Khannaanant262129 added a comment to T127329: Using Parsoid as a wikitext bridge for importing content into wikitext format.

@ssastry , I'm keen to take up this project for Gsoc 2k16. I'd appreciate if we have a short discussion on this idea as I have plenty of ideas flooding through my mind. Presently I'm working on a small prototype model on nodejs which serves the same purpose on a smaller scale.
Thank you,
yours sincerely,
vansh khanna

Mar 2 2016, 6:10 PM · Outreach-Programs-Projects, Parsoid
Khannaanant262129 added a comment to T127329: Using Parsoid as a wikitext bridge for importing content into wikitext format.

@Arlolra , I'm keen to take up this project for Gsoc 2k16. I'd appreciate if we have a short discussion on this idea as I have plenty of ideas flooding through my mind. Presently I'm working on a small prototype model on nodejs which serves the same purpose on a smaller scale.
Thank you,
your sincerely,
vansh khanna

Mar 2 2016, 4:25 PM · Outreach-Programs-Projects, Parsoid

Mar 1 2016

Khannaanant262129 added a comment to T91626: Technology to transclude git content into wiki pages.

Another query I have is that this "Bug fixing" is in order to facilitate a comprehensive understanding of mediawiki or a selection criteria. Because I've been working on mediawiki for a month now on my local machine and don't feel the need for a "basic understanding". Thank-you.

Mar 1 2016, 6:31 PM · Outreach-Programs-Projects, Documentation, MediaWiki-Documentation
Khannaanant262129 added a comment to T91626: Technology to transclude git content into wiki pages.

I'm keen to work on this project. Kindly brief me about where to start from. Your help is deeply appreciated. Thank-you.

Mar 1 2016, 6:24 PM · Outreach-Programs-Projects, Documentation, MediaWiki-Documentation