[Wikidata-bugs] [Maniphest] [Commented On] T139573: Simple html formatting within Wikidata labels

2016-08-04 Thread Oliv0
Oliv0 added a comment.
@daniel Yes, that would be satisfying for Wikipedia users, but maybe not for Wikidata users who would like to have some way to enter a label in the user interface with the proper typography (French Ier, Spanish 3.er etc.) and see it displayed in the title of the item and as a property value in other items.
As a comparison for English-language users, this is as if for some technical reason they could not use in Wikidata labels a character which is used in English typography but is not really pronounced, for instance the quote character ("): labels would still be quite readable, but users would like to get this fixed.TASK DETAILhttps://phabricator.wikimedia.org/T139573EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Oliv0Cc: daniel, VIGNERON, Moyogo, Bugreporter, Ltrlg, Metamorforme42, Aklapper, Zppix, Oliv0, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T139573: Simple html formatting within Wikidata labels

2016-08-03 Thread daniel
daniel added a comment.
@Oliv0 I'd prefer a Lua module to implement the "show statement value instead of label if it exists" logic. This logic could be adjusted on-wiki, if needed. {{#property:}} should be reserved for the "low level" direct access. The module call can easily be wrapped in a template, so you would just have {{pretty-prop:P1234}} in the wikitext.

I can see that limited markup in labels would be nice for some use cases, but introducing it now opens a whole can of ugly worms in terms of compatibility.TASK DETAILhttps://phabricator.wikimedia.org/T139573EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: danielCc: daniel, VIGNERON, Moyogo, Bugreporter, Ltrlg, Metamorforme42, Aklapper, Zppix, Oliv0, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T139573: Simple html formatting within Wikidata labels

2016-08-03 Thread Oliv0
Oliv0 added a comment.
@daniel Markup in statement values is a different question (it has been raised a few times on frwiki e.g.. for image labels, which frequently use wikitext). This task is about what is displayed in Wikipedia by {{#property:}} or mw.wikibase.getEntity etc., that is labels, and about a very restricted use of html as you suggested.
If a "label with wikitext" multilingual wikitext property, when its value exists, could be used by {{#property:}} etc. instead of the label value, this could do the job but it would be a strange data structure, with the displayed label info coming both from the item label and from the value of a property.TASK DETAILhttps://phabricator.wikimedia.org/T139573EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Oliv0Cc: daniel, VIGNERON, Moyogo, Bugreporter, Ltrlg, Metamorforme42, Aklapper, Zppix, Oliv0, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T139573: Simple html formatting within Wikidata labels

2016-08-02 Thread daniel
daniel added a comment.
@Oliv0 would markup in statement values (see T141764) address the use cases you had in mind when filing this? If so, we can close this task, I think. Supporting markup in labels would be *much* more disruptive than adding a new data type.TASK DETAILhttps://phabricator.wikimedia.org/T139573EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: danielCc: daniel, VIGNERON, Moyogo, Bugreporter, Ltrlg, Metamorforme42, Aklapper, Zppix, Oliv0, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T139573: Simple html formatting within Wikidata labels

2016-08-02 Thread daniel
daniel added a comment.
@Bugreporter when and where would that property be used? Wikibase wouldn't know about it, and would not use it instead of the regular label.

To me that seems like a very different request: have a datatype that supports (limited) markup (wikitext or html or whatever), vs supporting markup in labels. These two may seem similar at a first glance, but they are very different from a technical perspective, and also sematically: labels are editorial content originated by the wikidata community, while statements are supposed to represent claims made by authorities documented in reliable sources. Allowing wikitext properties would thus not address this request as currently phrased.

So before discussing this any further, I suggest to make clear what semantics is desired, and what the intended use cases are.TASK DETAILhttps://phabricator.wikimedia.org/T139573EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: danielCc: daniel, VIGNERON, Moyogo, Bugreporter, Ltrlg, Metamorforme42, Aklapper, Zppix, Oliv0, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T139573: Simple html formatting within Wikidata labels

2016-08-02 Thread Bugreporter
Bugreporter added a comment.
@daniel My option is keep labels a plain string, and add a new wikitext datatype, so that we can create a new property "label in wikitext".TASK DETAILhttps://phabricator.wikimedia.org/T139573EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: BugreporterCc: daniel, VIGNERON, Moyogo, Bugreporter, Ltrlg, Metamorforme42, Aklapper, Zppix, Oliv0, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T139573: Simple html formatting within Wikidata labels

2016-08-02 Thread daniel
daniel added a comment.
I'm not convinced that the benefit this would have really outweighs the numerous complications it causes. However, if we decide to support markup in labels (and descriptions and aliases), I vote to:


Only allow a very restricted set of HTML tags. Perhaps , , , and .
Definitely disallow all block level elements, all media elements, all kinds of links, all metadata.
Not allow any attributes, especially no style, class, or id attributes.


A big problem is escaping. Do we want it to be possible to have a label that is literally "foo", with the markup not being interpreted, but shown verbatim? If so, how? Should we use subfoo/foo? If we do that, we need to escape all occurrences of "&" in any label, which may confuse existing clients, that expect labels to be plain text.

Transitioning from "plain text" to "limited html markup" is going to be tricky. I see no clean way to do this, at least none that wouldn't break compatibility with existing clients.TASK DETAILhttps://phabricator.wikimedia.org/T139573EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: danielCc: daniel, VIGNERON, Moyogo, Bugreporter, Ltrlg, Metamorforme42, Aklapper, Zppix, Oliv0, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T139573: Simple html formatting within Wikidata labels

2016-08-02 Thread daniel
daniel added a comment.

In T139573#2511361, @Bugreporter wrote:
I propose to create a new datatype for wikitext. Therefore we can create new properties for labels in wikitext (plain labels are still needed).


Labels are not statements, they do not have data types. They are just plain text.

Adding a wikitext (or other markup) datatype would allow you to provide statement values with markup, but would do nothing for labels, descriptions, or aliases.TASK DETAILhttps://phabricator.wikimedia.org/T139573EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: danielCc: daniel, VIGNERON, Moyogo, Bugreporter, Ltrlg, Metamorforme42, Aklapper, Zppix, Oliv0, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T139573: Simple html formatting within Wikidata labels

2016-08-01 Thread Bugreporter
Bugreporter added a comment.
I propose to create a new datatype for wikitext. Therefore we can create new properties for labels in wikitext (plain labels are still needed).TASK DETAILhttps://phabricator.wikimedia.org/T139573EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: BugreporterCc: daniel, VIGNERON, Moyogo, Bugreporter, Ltrlg, Metamorforme42, Aklapper, Zppix, Oliv0, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T139573: Simple html formatting within Wikidata labels

2016-07-30 Thread Moyogo
Moyogo added a comment.
There are several use cases for superscript in various languages:


Breton
1añ in 1añ Genver Q2150
Iañ in Lucius Iañ Q132793

Francoprovençal
Iér in Bartelomél Iér de Constantinople Q44501

French:
1er in 1er arrondissement de Paris Q161741
Ier in Ier millénaire Q25868

Occitan
Ièr in Rogièr Ièr de Fois Q1394056

Spanish:
n.os in Conciertos para piano n.os 1-4 (Mozart) Q162904
3er in 3.er Regimiento de Infantería de Marina (Estados Unidos) Q4636844

TASK DETAILhttps://phabricator.wikimedia.org/T139573EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MoyogoCc: daniel, VIGNERON, Moyogo, Bugreporter, Ltrlg, Metamorforme42, Aklapper, Zppix, Oliv0, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T139573: Simple html formatting within Wikidata labels

2016-07-26 Thread VIGNERON
VIGNERON added a comment.

In T139573#2488312, @Bugreporter wrote:
You may use characters ᵃᵇᶜᵈᵉᶠᵍʰⁱʲᵏˡᵐⁿᵒᵖʳˢᵗᵘᵛʷˣʸᶻ instead (note there're no q).


This is a very very very bad idea.
The goal is to improve the formatting, not to worsen it (François Ier is correct, although not perfect ; François Iᵉʳ is not correct).

I just removed all the IPA superscript codepoint whereever I found them.TASK DETAILhttps://phabricator.wikimedia.org/T139573EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: VIGNERONCc: VIGNERON, Moyogo, Bugreporter, Ltrlg, Metamorforme42, Aklapper, Zppix, Oliv0, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T139573: Simple html formatting within Wikidata labels

2016-07-25 Thread Moyogo
Moyogo added a comment.
@Oliv0 and @Bugreporter: ᵃᵇᶜᵈᵉᶠᵍʰⁱʲᵏˡᵐⁿᵒᵖʳˢᵗᵘᵛʷˣʸᶻ are not meant to be used as typographic superscripts. They are meant for very specific linguistics uses as they are modifier letters.

See http://www.unicode.org/versions/Unicode9.0.0/ch07.pdf#page=36
Only those superscript or subscript forms that have specific usage in IPA, the
Uralic Phonetic Alphabet (UPA), or other major phonetic transcription systems are
encoded.

One should not use characters ᵃᵇᶜᵈᵉᶠᵍʰⁱʲᵏˡᵐⁿᵒᵖʳˢᵗᵘᵛʷˣʸᶻ for typographic superscripts!TASK DETAILhttps://phabricator.wikimedia.org/T139573EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MoyogoCc: Moyogo, Bugreporter, Ltrlg, Metamorforme42, Aklapper, Zppix, Oliv0, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs