sgc_072

Mailing List

Mar 29th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.38 KB | None | 0 0
  1. Hi,
  2. On the IRC, I asked about the meaning of the term "Rendering transformation". I went through the Rendering Framework doc and found that 'Rendering' is just a way to convert the DOM (Data Object Model: it connects different programming languages) into a valid output which is shown to the user.
  3.  
  4. Now in the project "Glossary Application" , the idea is to present a list of definitions in the glossary app. I wanted to inquire if the definitions of the 'technical terms'(words which a user while going through the x-wiki page will find difficult to understand) of the x-wiki page is to be listed in the glossary app? And when user clicks on that word then a new page opens listing the definition of that term, feature etc?
  5.  
  6. Thanks :)
  7.  
  8.  
  9.  
  10. Hi Sarthak,
  11.  
  12. > On 18 Mar 2017, at 19:42, Sarthak Gupta <sarthakgupta072@gmail.com> wrote:
  13. >
  14. > Hi,
  15. > On the IRC, I asked about the meaning of the term "Rendering
  16. > transformation”.
  17.  
  18. Yep I saw your question and answered on IRC but you were probably not connected anymore:
  19.  
  20. "
  21. 11:42
  22. sgc072: you can check http://rendering.xwiki.org which explains what is XWiki's rendering
  23. you should also read http://rendering.xwiki.org/xwiki/bin/view/Main/Architecture and http://rendering.xwiki.org/xwiki/bin/view/Main/Extending
  24. "
  25.  
  26. > I went through the Rendering Framework doc and found that
  27. > 'Rendering' is just a way to convert the DOM (Data Object Model: it
  28. > connects different programming languages) into a valid output which is
  29. > shown to the user.
  30. >
  31. > Now in the project "Glossary Application" , the idea is to present a list
  32. > of definitions in the glossary app. I wanted to inquire if the definitions
  33. > of the 'technical terms'(words which a user while going through the x-wiki
  34. > page will find difficult to understand) of the x-wiki page is to be listed
  35. > in the glossary app?
  36.  
  37. Not sure why you make a distinction between “definitions” and “technical terms”. For me they’re the same but I’m probably not understanding what you mean.
  38.  
  39. > And when user clicks on that word then a new page
  40. > opens listing the definition of that term, feature etc?
  41.  
  42. Yes, that seems natural.
  43.  
  44. What you should do is make a detailed proposal on this list of how this app will behave according to you (nothing is predefined, I only listed some ideas on the glossary GSOC page). Then we/I can review it and give you an opinion. In short, you have some liberty to decide what the app should do :)
  45.  
  46. For example you’ll need to devise how the user will add glossary entries. There could be an “Add Entry” form on the glossary home page but there could also be a way to highlight words or a sentences while viewing a page and having an situ-way of adding an entry (similar to the way annotations are added). This would seem convenient to me.
  47.  
  48. Thanks for being interested in this project. I believe it’s something that XWiki users will love!
  49. -Vincent
  50.  
  51. > Thanks :)
  52.  
  53.  
  54.  
  55.  
  56. ​Hi Vincent,
  57.  
  58. I have come up with an idea that:
  59. 1. I will make an extension that will link to the Glossary Page.
  60. 2. The idea would be whenever a user will select a list of words in the page, then a button will appear just above the text.
  61. 3. On clicking that button a dialog box will appear on the bottom right of the screen that will specify some options as follows:
  62. (i)For a user: (a) "Word name"(one word at a time. Next word could be accessed by clicking an another button)
  63. (b) Short description of the word, with a link for 'Read More'. Clicking on 'Read more' will direct the user to the glossary page.
  64. (ii) For an Admin: (a) The JavaScript will scan each and every word of the selected text, and will display if a word in the selected text is in the Glossary Page or not(by the use different color for each word that is 'in' and that is 'not in' the glossary page.
  65. (b) Add the word to the glossary page/ Make changes(which will direct the admin to the glossary page and there he could add new entries or make changes to the original one).
  66. 4. The glossary page will simply be created with 'Create Page' provided in X-wiki I suppose. I need to think of interface :P.
  67.  
  68. Please suggest some improvement or additional information that I should specify before writing a proposal.
  69. I also need to think how my timeline in my proposal will be divided :P
  70.  
  71. Thanks :)
  72.  
  73.  
  74.  
  75. Hi Sarthak,
  76.  
  77. > On 20 Mar 2017, at 20:00, Sarthak Gupta <sarthakgupta072@gmail.com> wrote:
  78. >
  79. > ​Hi Vincent,
  80. >
  81. > I have come up with an idea that:
  82. > 1. I will make an extension that will link to the Glossary Page.
  83.  
  84. The extension *is* the Glossary app. There’s no glossary page in XWiki ATM. The point of this project is to create this app/extension.
  85.  
  86. > 2. The idea would be whenever a user will select a list of words in the page, then a button will appear just above the text.
  87.  
  88. Ok. We could also introduce a shortcut key as we have for annotations (ctrl+M).
  89.  
  90. I guess you’re referring to creating glossary entries right?
  91.  
  92. Because for viewing the the Rendering Transformation would simply create standard links IMO.
  93.  
  94. > 3. On clicking that button a dialog box will appear on the bottom right of the screen that will specify some options as follows:
  95.  
  96. I think it should appear just below the word(s) you selected.
  97.  
  98. > (i)For a user: (a) "Word name"(one word at a time. Next word could be accessed by clicking an another button)
  99. > (b) Short description of the word, with a link for 'Read More'. Clicking on 'Read more' will direct the user to the glossary page.
  100.  
  101. I think it’s enough to do display that on hover without clicking. Clicking would go to the glossary page.
  102.  
  103. > (ii) For an Admin: (a) The JavaScript will scan each and every word of the selected text, and will display if a word in the selected text is in the Glossary Page or not(by the use different color for each word that is 'in' and that is 'not in' the glossary page.
  104.  
  105. That’s one way of doing it indeed. Another way (possibly better or not - We need to list the pros and cons of each approach) is to use a Rendering Transformation since it’s meant for that.
  106.  
  107. I don’t understand why only admins would see glossary terms on the page. IMO everyone should see them.
  108.  
  109. > (b) Add the word to the glossary page/ Make changes(which will direct the admin to the glossary page and there he could add new entries or make changes to the original one).
  110. > 4. The glossary page will simply be created with 'Create Page' provided in X-wiki I suppose. I need to think of interface :P.
  111.  
  112. IMO there should be 2 ways:
  113. 1) same mechanism as for annotations
  114. 2) on the glossary app home page with a form
  115.  
  116. It would be nice if you could create a design page on design.xwiki.org so that we can record all decisions that we take.
  117.  
  118. Thanks
  119.  
  120.  
  121.  
  122.  
  123. On Tue, Mar 21, 2017 at 4:09 PM, Vincent Massol <vincent@massol.net> wrote:
  124. Hi Sarthak,
  125.  
  126. > On 20 Mar 2017, at 20:00, Sarthak Gupta <sarthakgupta072@gmail.com> wrote:
  127. >
  128. > ​Hi Vincent,
  129. >
  130. > I have come up with an idea that:
  131. > 1. I will make an extension that will link to the Glossary Page.
  132.  
  133. ​​The extension *is* the Glossary app. There’s no glossary page in XWiki ATM. The point of this project is to create this app/extension.
  134.  
  135.  
  136. I was talking about the home page(I will make) of the glossary app that I proposed. :P​
  137.  
  138.  
  139. > 2. The idea would be whenever a user will select a list of words in the page, then a button will appear just above the text.
  140.  
  141. Ok. We could also introduce a shortcut key as we have for annotations (ctrl+M).
  142.  
  143. I guess you’re referring to creating glossary entries right?
  144.  
  145. ​Yup, glossary entries will be created on clicking the 'Make entry' button by admin or by shortcut key as proposed by you.
  146. Because for viewing the the Rendering Transformation would simply create standard links IMO.
  147.  
  148.  
  149. ​I need to think how this will work.
  150. > 3. On clicking that button a dialog box will appear on the bottom right of the screen that will specify some options as follows:
  151.  
  152. I think it should appear just below the word(s) you selected.
  153.  
  154. ​Yes, this would be better. The dialog box will move along the screen as we move to the next word.
  155. > (i)For a user: (a) "Word name"(one word at a time. Next word could be accessed by clicking an another button)
  156. > (b) Short description of the word, with a link for 'Read More'. Clicking on 'Read more' will direct the user to the glossary page.
  157.  
  158. I think it’s enough to do display that on hover without clicking. Clicking would go to the glossary page.
  159. ​Yes, I agree with this too.​
  160. > (ii) For an Admin: (a) The JavaScript will scan each and every word of the selected text, and will display if a word in the selected text is in the Glossary Page or not(by the use different color for each word that is 'in' and that is 'not in' the glossary page.
  161.  
  162. That’s one way of doing it indeed. Another way (possibly better or not - We need to list the pros and cons of each approach) is to use a Rendering Transformation since it’s meant for that.
  163.  
  164. I don’t understand why only admins would see glossary terms on the page. IMO everyone should see them.
  165.  
  166. ​I meant to say that the users will be able to see the words which have entries on the glossary page. But for admin, he would be able to see/select the both the words that are 'in' and 'not in' the glossary page and make changes to them.​
  167.  
  168.  
  169. > (b) Add the word to the glossary page/ Make changes(which will direct the admin to the glossary page and there he could add new entries or make changes to the original one).
  170. > 4. The glossary page will simply be created with 'Create Page' provided in X-wiki I suppose. I need to think of interface :P.
  171.  
  172. IMO there should be 2 ways:
  173. 1) same mechanism as for annotations
  174. 2) on the glossary app home page with a form
  175.  
  176. ​I am not able to grasp these points. So I would try discussing it on IRC​probably .
  177. It would be nice if you could create a design page on design.xwiki.org so that we can record all decisions that we take.
  178.  
  179. ​I have initiated a page, and going through the tutorials​ on how to use the 'design page' and 'create application'. I will come out with something in few days. :)
  180.  
  181. Thanks
  182.  
  183.  
  184.  
  185. Hi Vincent,
  186.  
  187. I have created a design page
  188.  
  189. Link: http://design.xwiki.org/xwiki/bin/view/Proposal/GlossaryApplication
  190.  
  191. I request you to review it and please tell me if anything needs to be added/modified in it.
  192.  
  193. Thanks :)
  194.  
  195.  
  196.  
  197.  
  198. Hi Sarthak,
  199.  
  200. > On 24 Mar 2017, at 16:44, Sarthak Gupta <sarthakgupta072@gmail.com> wrote:
  201. >
  202. > Hi Vincent,
  203. >
  204. > I have created a design page
  205. >
  206. > Link: http://design.xwiki.org/xwiki/bin/view/Proposal/GlossaryApplication
  207.  
  208. I’ve commented on the page.
  209.  
  210. Thanks
  211.  
  212.  
  213.  
  214.  
  215. Hi Vincent,
  216. I am not able to decide how would my approach be like to develop the glossary application. I have an idea what I need to do to develop this app but couldn't able to decide the milestones(that I will write in my proposal) I should set.
  217.  
  218. The things I know are to be done are:
  219. The glossary app homepage will be created by "App within minutes application".
  220. Using rendering transformation to create links to the app and to display the words.
  221. Developing the extension whose mechanism will be analogous to that of annotation extension.
  222. Linking the extension with the glossary home page and to pages containing definition of words.
  223. Please guide me.
  224.  
  225. Thanks
  226.  
  227.  
  228.  
  229.  
  230. Hi Sarthak,
  231.  
  232. > On 26 Mar 2017, at 14:45, Sarthak Gupta <sarthakgupta072@gmail.com> wrote:
  233. >
  234. > Hi Vincent,
  235. > I am not able to decide how would my approach be like to develop the
  236. > glossary application. I have an idea what I need to do to develop this app
  237. > but couldn't able to decide the milestones(that I will write in my
  238. > proposal) I should set.
  239. >
  240. > The things I know are to be done are:
  241. >
  242. > - The glossary app homepage will be created by "App within minutes
  243. > application".
  244.  
  245. Yes it’s fine to use AWM although it’s not required at all and another UI could be proposed/done.
  246.  
  247. See http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial/FAQTutorialManual to understand how it works. You really need to understand this rather than use the AWM which hides how it works.
  248.  
  249. > - Using rendering transformation to create links to the app and to
  250. > display the words.
  251.  
  252. Yes,except not direct links but on hover information + link in the on hover popup.
  253.  
  254. > - Developing the extension whose mechanism will be analogous to that of
  255. > annotation extension.
  256.  
  257. I don’t know what you call “extension”. I think you mean the in-context creation of glossary entries.
  258.  
  259. > - Linking the extension with the glossary home page and to pages
  260. > containing definition of words.
  261.  
  262. What do you call extension? In XWiki an extension has a special meaning, see http://extensions.xwiki.org/xwiki/bin/view/Extension/
  263.  
  264. > Please guide me.
  265.  
  266. I would if I knew what you’re looking for precisely :)
  267.  
  268. You’ve already listed several steps above. Couldn’t that be your milestones?
  269.  
  270. IMO you should also propose other features that could be implemented depending on how fast you progress on the main features. I’ll give you 2 examples (I’m not saying they’re the best but you should use your own experience/ideas by thinking about how you’d use this glossary feature and how to make it the best possible):
  271. * Provide an Admin UI to configure the Glossary application. For example to configure on which pages the transformation should execute (with regex includes/excludes)
  272. * Allow using Wikipedia (or other sources) to automatically gather information about glossary items.
  273.  
  274. Thanks!
  275.  
  276.  
  277.  
  278.  
  279. Hi ​V​incent,
  280.  
  281. ​I am going through what you said and will try to think of some other features that I can include in this glossary application.
  282.  
  283. My main query is that in my GSoC proposal I have to write about the timeline in which i will carry out different tasks related to the project.
  284. I am not able to get what should I include for different weeks and as a part of my mid-term​ and end-term evaluation. I know that I have to divide my tasks into smaller parts but not able to decide fully which parts are to be carried out first and which are to be carried out latter.
  285.  
  286. I don't know if this is a legitimate query or not, because it's my proposal and I should be the one framing it accordingly. :/
  287.  
  288.  
  289.  
  290.  
  291.  
  292. Hi,
  293.  
  294. > On 27 Mar 2017, at 18:01, Sarthak Gupta <sarthakgupta072@gmail.com> wrote:
  295. >
  296. > Hi
  297. > ​V​
  298. > incent,
  299. >
  300. > ​I am going through what you said and will try to think of some other
  301. > features that I can include in this glossary application.
  302. >
  303. > My main query is that in my GSoC proposal I have to write about the
  304. > timeline in which i will carry out different tasks related to the project.
  305. > I am not able to get what should I include for different weeks and as a
  306. > part of my mid-term​ and end-term evaluation. I know that I have to divide
  307. > my tasks into smaller parts but not able to decide fully which parts are to
  308. > be carried out first and which are to be carried out latter.
  309. >
  310. > I don't know if this is a legitimate query or not, because it's* my*
  311. > proposal and I should be the one framing it accordingly. :/
  312.  
  313. For example I propose the following order:
  314.  
  315. Step 1: Create Glossary app with ability to create new entries.
  316. Step 2: Create Transformation to display glossary terms when a page is rendered
  317. Step 3: Add ability to create glossary items in context
  318. Step 4: Create a functional test to prove that steps 1, 2 and 3 work.
  319. Step 5: Release + Document a first version
  320. Step 6: <new idea1>
  321. Step 7: <new idea2>
  322.  
  323. Now FYI, for an experienced xwiki dev this is roughly some ideas of timeframes:
  324. Step 1: 0.5 day
  325. Step 2: 1.5 days (including automated unit tests)
  326. Step 3: 2 days
  327. Step 4: 1 day
  328. Step 5: 0.5 day
  329.  
  330. This is why I was suggesting that you include other ideas since even if you multiply these delays to take into account the fact that you’re new to xwiki dev, it would still not amount to that much :)
  331.  
  332. Thanks
  333.  
  334.  
  335.  
  336.  
  337. Hi Vincent,
  338.  
  339. Thank You very much for your valuable advice.
  340. Now I am feeling little comfortable :D
  341. After some more research, I would be updating my design page and also will submit a draft of my proposal for a review.
  342.  
  343. Thanks Again :)
  344.  
  345.  
  346.  
  347.  
  348. Hi Vincent,
  349.  
  350. I have updated my design page and will submit the draft of my proposal in a day or so. Kindly review it suggest some changes.
  351.  
  352. Also I am not able to think of other features which I could add in this proposal.
  353.  
  354. >>Provide an Admin UI to configure the Glossary application. For example to configure on which pages the transformation should execute
  355. >(with regex includes/excludes)
  356.  
  357. And I think that features to be added in Admin UI should be expanded but I am not able to think one.
  358.  
  359. >* Allow using Wikipedia (or other sources) to automatically gather information about glossary items.
  360.  
  361. This would be done using the concept of Web Scraping I suppose?
  362.  
  363. Thanks. :)
  364.  
  365.  
  366.  
  367.  
  368. Hi Sarthak,
  369.  
  370. > On 28 Mar 2017, at 21:25, Sarthak Gupta <sarthakgupta072@gmail.com> wrote:
  371. >
  372. > Hi Vincent,
  373. >
  374. > I have updated my design page and will submit the draft of my proposal in a
  375. > day or so. Kindly review it suggest some changes.
  376.  
  377. I”ve added annotations on the page. We’re getting there! There are still lots of smallish problems though (see comments).
  378.  
  379. > Also I am not able to think of other features which I could add in this
  380. > proposal.
  381.  
  382. I’ll think of some more but we can always add them as we progress.
  383.  
  384. > Provide an Admin UI to configure the Glossary application. For example
  385. > to configure on which pages the transformation should execute
  386. >> (with regex includes/excludes)
  387. >
  388. > And I think that features to be added in Admin UI should be expanded but I
  389. > am not able to think one.
  390. >
  391. >> * Allow using Wikipedia (or other sources) to automatically gather
  392. > information about glossary items.
  393. >
  394. > This would be done using the concept of* Web Scraping* I suppose?
  395.  
  396. It would be much better if wikipedia was providing some API for this, such as a REST API for example. Web scraping is just too fragile.
  397.  
  398. Thanks
Add Comment
Please, Sign In to add comment