<div dir="ltr">    <br><div class="gmail_extra"><br><div class="gmail_quote">2016-01-18 10:00 GMT+01:00 Gianluca Rigoletti <span dir="ltr"><<a href="mailto:gianluca.rigoletti@gmail.com" target="_blank">gianluca.rigoletti@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It could be a very interesting feature!<br>
Like Davide said, I would use a label instead of id or the simple fact<br>
that if someone write a page and after some time modify that page<br>
deleting or adding new formulas, consistency will be kept only if<br>
using unique label.<br>
<br>
About the hovering feature, it is also awesome. The only thing is to<br>
be able to use a tooltip. Try to give a look at this<br>
<a href="https://www.mediawiki.org/wiki/Extension:Tooltip" rel="noreferrer" target="_blank">https://www.mediawiki.org/wiki/Extension:Tooltip</a><br>
<br>
Integrating the content-ref tag in a template should not be a problem,<br>
because it does not style the element (if it does, the fix is simple).<br>
We may need to test it both on css adn ocg sides, so we can work<br>
better together.<br>
<br>
Regarding the feature of recerencing with latex, if you could just<br>
catch and parse the content id and put a "\label{}" and also catch a<br>
content-ref and put "\ref{}" maybe the link to db table is not<br>
necessary. However, this method could lead to problems when the<br>
referencing pages aren't in the same book, so for now I don't know, it<br>
was just a thought.<br></blockquote><div><br></div><div>I was thinking about the table not for ocg. We need it to save the reference label=ur#section and to be able of use reference without knowing the url of the page. Yes in ocg there could be problems with missing ref, but we can find a solution <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Well done Russell!<br>
<br>
Gianluca<br>
<div class="HOEnZb"><div class="h5"><br>
2016-01-18 1:46 GMT+01:00 Davide Valsecchi <<a href="mailto:valsecchi.davide94@gmail.com">valsecchi.davide94@gmail.com</a>>:<br>
> I have an idea that could make this feature really interesting for users.<br>
><br>
> We should reproduce a sort of label/ref latex mechanism along all wiki<br>
> pages.<br>
> When a label it's create with our tag, the section of the page to which it<br>
> refers is saved in a table in db and made unique.<br>
> When another page use <content-ref label=> a link to the right content is<br>
> created, without the need of knowing the right page.<br>
><br>
> To make things neat we should use a sort of "scope" for labels. When writing<br>
> ref for a specific course the user should use a label like<br>
> "/coursename/label". Doing so, similar labels won't conflict and they will<br>
> be easier to use and categorize.<br>
><br>
> Then we can go further. Imagine a tool that read all the labels and made<br>
> them searchable. We could also add metadata to label tag and made this<br>
> information avaiable for queries. When someone wants to refer a theorem or a<br>
> specific part, he has only to query to check if an existing content exists.<br>
><br>
> Alessandro, that could really interest you for semantics features.<br>
><br>
><br>
><br>
><br>
><br>
><br>
> 2016-01-18 0:56 GMT+01:00 Russell Greene <<a href="mailto:russellgreene8@gmail.com">russellgreene8@gmail.com</a>>:<br>
>><br>
>><br>
>><br>
>> On Sun, Jan 17, 2016 at 4:48 PM Davide Valsecchi<br>
>> <<a href="mailto:valsecchi.davide94@gmail.com">valsecchi.davide94@gmail.com</a>> wrote:<br>
>>><br>
>>> Really good ideas! I have some comments to do<br>
>>><br>
>>> 2016-01-18 0:19 GMT+01:00 Russell Greene <<a href="mailto:russellgreene8@gmail.com">russellgreene8@gmail.com</a>>:<br>
>>>><br>
>>>> Hey all, last night I made an MediaWiki extension for doing content<br>
>>>> referencing. The idea is for this to be applied to figures, equations,<br>
>>>> anything that would want to be referenced back to later.<br>
>>>><br>
>>>> Everything here is on the GitHub repo, under the branch<br>
>>>> ContentRefrencer, give it a try!<br>
>>>><br>
>>>> Anything here is up for debate/change.<br>
>>>><br>
>>>> Motivation:<br>
>>>><br>
>>>> Reuse of content. This way one chapter that requires a certain proof or<br>
>>>> math equation, they can reference to there, where it is explained in more<br>
>>>> depth instead of explaining it again.<br>
>>>><br>
>>>> Syntax:<br>
>>>><br>
>>>> Currently there are two new tags, content and content-ref.<br>
>>>><br>
>>>> Example:<br>
>>>><br>
>>>> <content name="Quadratic Formula" id=1.0><br>
>>>> <math> ... </math><br>
>>>> </content><br>
>>>><br>
>>><br>
>>> I think that it would be better to use a label instead of a numerical id.<br>
>>> It would be remembered and referred easier.<br>
>>> Look at Latex ref/label, you are trying to recreate the same behavior.<br>
>><br>
>> Okay! That should be really easy. I'll push that in a minute.<br>
>><br>
>>><br>
>>><br>
>>>><br>
>>>> and then later<br>
>>>> <content-ref id=1.0>See Quadratic formula</content-ref><br>
>>>><br>
>>>> This will work for any <content> elements in that page. In order to<br>
>>>> reference to a different page, just add the page attribute to the<br>
>>>> <content-ref> element:<br>
>>>><br>
>>>> <content-ref page="Physics/Quantum Mechanics" id=3>...</content-ref><br>
>>>><br>
>>><br>
>>> It works impressively! I see that for now it displays: "Figure: $name".<br>
>>> Why don't create a parameter for the type of reference? Like type=Figure or<br>
>>> type=math.<br>
>><br>
>><br>
>> I totally agree. The "Figure: " was just for demonstration purposes.<br>
>><br>
>>><br>
>>>><br>
>>>> Features:<br>
>>>><br>
>>>> So as of right now, this is very simple, and could live in a template,<br>
>>>> but there are more options with an extension.<br>
>>>><br>
>>><br>
>>> You know that we are using templates for theorems and definitions and so<br>
>>> on. Do you think that we could use your ref tag to create a link to them? We<br>
>>> can insert a label/id in the template, or maybe include automatically al the<br>
>>> content inside a <content> tag, but without your extension box. Maybe the<br>
>>> box could be optional?<br>
>><br>
>> One idea would be to include a <content> tag in the templates, so they can<br>
>> be referenced by a <content-ref>. This would keep the consistency that<br>
>> templates give, while also being referable.<br>
>>><br>
>>><br>
>>><br>
>>><br>
>>>><br>
>>>> Hover<br>
>>>> One feature I really want to figure out is showing the contents of the<br>
>>>> <content> tag when hovering over the corresponding <content-ref> tag. This<br>
>>>> would allow anyone to be able to see the content without even navigation<br>
>>>> outside the page.<br>
>>>><br>
>>>> dmath<br>
>>>> One cool feature would to have support similar to this in the dmath tag,<br>
>>>> to make it easier to pass on to OCG.<br>
>>><br>
>>><br>
>>> I think that for math we should pay a lot of attention. Maybe it would be<br>
>>> possible to insert a label inside dmath tag and then make reference to it<br>
>>> with your <content-ref> tag. Including math inside a <content> tag it's not<br>
>>> optimal because I don't know how we could make OCG recognize the link.<br>
>>><br>
>> We have full control over what the <dmath> tag does, so anything is<br>
>> possible. I am not familiar with how OCG works, so I would need someone to<br>
>> hold my hand through that.<br>
>><br>
>>><br>
>>> I hope my suggestions could give you hints. I think that a general way to<br>
>>> ref things is excellent, but we have to integrate it also in templates and<br>
>>> math.<br>
>>><br>
>>> What do you think?<br>
>>><br>
>>><br>
>>> Davide<br>
>>><br>
>>>><br>
>>>><br>
>>>> So what do you think? Is this something we need? Additional thoughts?<br>
>>>><br>
>>>> -Russell<br>
>>>><br>
>>>> _______________________________________________<br>
>>>> WikiToLearn-Tech mailing list<br>
>>>> <a href="mailto:WikiToLearn-Tech@kde.org">WikiToLearn-Tech@kde.org</a><br>
>>>> <a href="https://mail.kde.org/mailman/listinfo/wikitolearn-tech" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/wikitolearn-tech</a><br>
>>>><br>
>>><br>
><br>
><br>
> _______________________________________________<br>
> WikiToLearn-Tech mailing list<br>
> <a href="mailto:WikiToLearn-Tech@kde.org">WikiToLearn-Tech@kde.org</a><br>
> <a href="https://mail.kde.org/mailman/listinfo/wikitolearn-tech" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/wikitolearn-tech</a><br>
><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Gianluca<br>
</font></span></blockquote></div><br></div></div>