This template was considered for deletion on 13 June 2012. The result of the discussion was "keep, but deprecate". |
This template was considered for deletion on 30 June 2012. The result of the discussion was "keep for now". |
This is a fork of Template:IPA, aiming to be a less ugly hack that will substitute HTML font tags used to render polytonic Greek script. The need to create this has emerged from a talk on Talk:Greek language. I've decided to fork this as a primitive means of semantic markup, that will help us weed out all the ((polytonic)) tags and get rid of the template itself, when technology standards are updated to properly support polytonic. Etz Haim 00:14, 8 Jan 2005 (UTC)
I've added some features to Template:Polytonic that we've used successfully in Template:IPA (details at Template talk:IPA.
.polytonic { font-family: Gentium, Athena, serif; color: green; }
See Template talk:IPA for more detailed instructions and discussion.
—Michael Z. 2005-01-28 16:39 Z
I've discovered quite by chance, that this template is better than Template:Unicode at representing some accented characters used in English, and I've therefore been using it for that purpose. See also Template talk:Unicode.
The following is a list of places I've used it in this way, all of which ought ideally to be converted to Template:Unicode when the latter has been upgraded to be more useful: rossb 06:33, 11 Mar 2005 (UTC)
Following the recent update to the Unicode template, I've now adopted it instead of the Polytonic template in the articles listed above. rossb 08:57, 1 Apr 2005 (UTC)
And following recent changes to the polytonic template, it's even less suitable for cases where the Unicode template should be used - see Template talk:Unicode. rossb 06:39, 11 Apr 2005 (UTC)
The way Template:IPA, Template:Unicode, and Template:Polytonic do their job has been changed. They should continue to work as before. Sorry if this causes any inconvenience.
The font declarations for these three templates have been moved to the style sheet at MediaWiki:Common.css. This reduces the size of Wikipedia pages' code, by as much as 100kB in the case of IPA. The respective font declarations are applied to HTML entities with one of the following attributes (capitalization counts). The three templates in question have been updated, so they will continue working as before.
class="IPA"
class="Unicode"
class="polytonic"
The only disadvantage of the new scheme is that only admin users are able to edit the font declarations in Common.css (or is it an advantage?). But you can override the font declaration for yourself by editing your own Wikipedia user style sheet. See Template talk:IPA#Applying custom styles to IPA text. Alternatively, you can use a browser like Mozilla Firefox, Opera, or Safari, in which Unicode text just works.
The reason for this change is that the Mediawiki software no longer allows comments in inline style sheets, because Microsoft Internet Explorer's incorrect parsing is unsafe and can be used for cross-site scripting attacks. See Wikimedia bug no. 3588.
Similar font declarations applied to any tables or divs on Wikipedia should have one of the above-mentioned class attributes added instead.
The style sheet code in Common.css looks like this:
/* Support for Template:IPA, Template:Unicode and Template:Polytonic. The inherit declaration resets the font for all browsers except MSIE6. The empty comment must remain. */ .IPA { font-family: Chrysanthi Unicode, Doulos SIL, Gentium, GentiumAlt, Code2000, TITUS Cyberbit Basic, DejaVu Sans, Bitstream Vera Sans, Bitstream Cyberbit, Arial Unicode MS, Lucida Sans Unicode, Hiragino Kaku Gothic Pro, Matrix Unicode; font-family /**/:inherit; } .Unicode { font-family: TITUS Cyberbit Basic, Code2000, Doulos SIL, Chrysanthi Unicode, Bitstream Cyberbit, Bitstream CyberBase, Bitstream Vera, Thryomanes, Gentium, GentiumAlt, Visual Geez Unicode, Lucida Grande, Arial Unicode MS, Microsoft Sans Serif, Lucida Sans Unicode; font-family /**/:inherit; } .polytonic { font-family: Athena, Gentium, Palatino Linotype, Arial Unicode MS, Lucida Sans Unicode, Lucida Grande, Code2000; font-family /**/:inherit; }
Please discuss this at Template talk:IPA#Font declaration has been moved to Common.css. —Michael Z. 2005-10-4 15:40 Z
The template does not work with Macintosh and IE
System Software Overview:
System Version: Mac OS X 10.3.9 (7W98) Kernel Version: Darwin 7.9.0
Explorer Version: 5.2.3 (5815.1) Encryption: 128 Bit User Agent: Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC) Machine Type: Unknown System Version: System 10.3.9 TCP/IP Software: Open Transport - version 16.3.0 Drag Manager: 68K & PPC Version Text Encoding Converter: Version 1.9.0 System Memory: 2097,148K Bytes
01:21, 28 December 2005 (UTC)
Hi,
The name of the French template has been changed. It is now fr:Modèle:Grec ancien. Please, correct the interwiki. Thank you. User:Bibi Saint-Pol 16:14, 5 June 2006 (UTC)
This template doesn't work well for every Ancient Greek character. ϡ is a snail @ IE6, and not Ϡ what it should be. (You must read my comment using IE6 to see what I mean. To other users: ((polytonic|ϡ)) is a snail @ IE6, and not this symbol on the right (click) what it should be.) --194.152.154.2 (Adolar von Csobánka (Talk)) 22:30, 18 August 2006 (UTC)
Let's see which font is the problem:
Font | Rendering |
---|---|
Athena | ϡ |
Gentium | ϡ |
Palatino Linotype | ϡ |
Arial Unicode MS | ϡ |
Lucida Sans Unicode | ϡ |
Lucida Grande | ϡ |
Code2000 | ϡ |
These are the fonts tried, in order, by class="polytonic"
. Now, can someone who is seeing the problem say which line is the one with the problem? A screenshot would be helpful. With that information, it might be possible to determine a better ordering for the fonts (moving the one with the problem towards the end of the list, for instance). --cesarb 21:44, 19 August 2006 (UTC)
Font | Rendering |
---|---|
Microsoft Sans Serif | ϡ |
Free Serif | ϡ |
TITUS Cyberbit Basic | ϡ |
Why not put the whole Greek alphabet into each line of the tables above, to get the full picture of which fonts are suitable for this template? —Michael Z. 2006-08-20 16:09 Z
Font | combining | variants | archaic | others | iota subs. | polytonic |
---|---|---|---|---|---|---|
browser default | ὰάᾶἀα̈́ᾳ | ϐϑϒϓϔϕϖϗ | ϚϛϜϝϞϟϠϡ | ϰϱϲϳ | ᾈᾨ | ᾸᾹῬῠῡῢΰῤῥ |
sans-serif | ὰάᾶἀα̈́ᾳ | ϐϑϒϓϔϕϖϗ | ϚϛϜϝϞϟϠϡ | ϰϱϲϳ | ᾈᾨ | ᾸᾹῬῠῡῢΰῤῥ |
serif | ὰάᾶἀα̈́ᾳ | ϐϑϒϓϔϕϖϗ | ϚϛϜϝϞϟϠϡ | ϰϱϲϳ | ᾈᾨ | ᾸᾹῬῠῡῢΰῤῥ |
Athena | ὰάᾶἀα̈́ᾳ | ϐϑϒϓϔϕϖϗ | ϚϛϜϝϞϟϠϡ | ϰϱϲϳ | ᾈᾨ | ᾸᾹῬῠῡῢΰῤῥ |
Gentium | ὰάᾶἀα̈́ᾳ | ϐϑϒϓϔϕϖϗ | ϚϛϜϝϞϟϠϡ | ϰϱϲϳ | ᾈᾨ | ᾸᾹῬῠῡῢΰῤῥ |
Palatino Linotype | ὰάᾶἀα̈́ᾳ | ϐϑϒϓϔϕϖϗ | ϚϛϜϝϞϟϠϡ | ϰϱϲϳ | ᾈᾨ | ᾸᾹῬῠῡῢΰῤῥ |
Arial Unicode MS | ὰάᾶἀα̈́ᾳ | ϐϑϒϓϔϕϖϗ | ϚϛϜϝϞϟϠϡ | ϰϱϲϳ | ᾈᾨ | ᾸᾹῬῠῡῢΰῤῥ |
Lucida Sans Unicode | ὰάᾶἀα̈́ᾳ | ϐϑϒϓϔϕϖϗ | ϚϛϜϝϞϟϠϡ | ϰϱϲϳ | ᾈᾨ | ᾸᾹῬῠῡῢΰῤῥ |
Lucida Grande | ὰάᾶἀα̈́ᾳ | ϐϑϒϓϔϕϖϗ | ϚϛϜϝϞϟϠϡ | ϰϱϲϳ | ᾈᾨ | ᾸᾹῬῠῡῢΰῤῥ |
Code2000 | ὰάᾶἀα̈́ᾳ | ϐϑϒϓϔϕϖϗ | ϚϛϜϝϞϟϠϡ | ϰϱϲϳ | ᾈᾨ | ᾸᾹῬῠῡῢΰῤῥ |
Microsoft Sans Serif | ὰάᾶἀα̈́ᾳ | ϐϑϒϓϔϕϖϗ | ϚϛϜϝϞϟϠϡ | ϰϱϲϳ | ᾈᾨ | ᾸᾹῬῠῡῢΰῤῥ |
Free Serif | ὰάᾶἀα̈́ᾳ | ϐϑϒϓϔϕϖϗ | ϚϛϜϝϞϟϠϡ | ϰϱϲϳ | ᾈᾨ | ᾸᾹῬῠῡῢΰῤῥ |
TITUS Cyberbit Basic | ὰάᾶἀα̈́ᾳ | ϐϑϒϓϔϕϖϗ | ϚϛϜϝϞϟϠϡ | ϰϱϲϳ | ᾈᾨ | ᾸᾹῬῠῡῢΰῤῥ |
I've just installed Internet Explorer 7, and it seems to overcome the problems completely as far as I can see. --rossb 08:42, 1 November 2006 (UTC)
Apparently, the template does not work any more since Sept 2006. The class="polytonic" tag, does not work either, in spite of the fact that the MediaWiki:Common.css file still contains:
.polytonic { font-family: Athena, Gentium, "Palatino Linotype", "Arial Unicode MS", "Lucida Sans Unicode", "Lucida Grande", Code2000; font-family /**/:inherit;
This is a pity because on the Mac (Safari) the breathings are can hardly be seen.
It appears this is a Wikimedia bug. Andreas (T) 15:16, 25 March 2007 (UTC)
the "polytonic" class in the css has been duplicated as the :lang(grc) pseudoclass, i.e. you should now get precisely the same rendering if you use ((lang|grc|...)). I'm transcluding ((lang)) to this template for this reason. If this works alright, the "polytonic" class may be deleted from common.css as redundant (and ((polytonic)) may be subst:ed by a bot). dab (𒁳) 11:06, 17 April 2007 (UTC)
At Talk:Eidos#Unicode, a user complained that, for him/her, ((lang-el)) (Greek: εἶδος) correctly displays the polytonic character, whereas ((polytonic)) (εἶδος) doesn't. Can ((polytonic)) be improved so that users aren't tempted to abandon it in favor of lang-el, i.e. so that if ((lang-el)) works for you, so will ((polytonic))? I find it mystifying and told the user that installing Gentium should work, but maybe there's some other technical or practical advantage of the rival template that can be incorporated here. Wareh 15:43, 5 July 2007 (UTC)
((editprotected)) Dear administrators, please add the following interwiki link:
[[ia:Patrono:Polytonic]]
Thank you in advance. Regards, --Julian (talk) 00:06, 19 December 2007 (UTC)