Content deleted Content added
m Archiving 1 discussion(s) from Module talk:Zh) (bot |
Anomalocaris (talk | contribs) m properly close <p>; <font> → <span style> |
||
Line 128:
:::Firefox 29.0.1 here. When I'm logged in, I'm using the Monobook skin, but that doesn't seem to have anything to do with this issue, since if I log out, the pinyin appears exactly the same whilst in the Vector skin. All of the font display settings in Firefox are default, they've never been tinkered. It probably doesn't matter, but I'm running Windows 7 with a Japanese system locale. --[[User:benlisquare|<span style="font-family:Monospace;padding:1px;color:orange">'''benlisquare'''</span>]]<sub>[[User talk:benlisquare|T]]•[[Special:Contributions/Benlisquare|C]]•[[Special:EmailUser/User:Benlisquare|E]]</sub> 14:39, 15 May 2014 (UTC)
::::Using Firefox 29.0.1 myself, with Mac OS 10.9.2. You don't need to log out to test other skins: go to the testcases, [[Template:Zh/testcases]], and expand the [show] for 'More information and options'. It has links to view the testcases with the various skins. This can be used with any page, but testcase pages supply the links for you. Note that since the module has been updated from the sandbox there's no difference between the two sides at the moment. I doubt the skin makes any difference; I had a look at their css and could see nothing related to language. Also the differences between them is much less that there used to be: I remember there being skins with serif body fonts and much more variation in styles but they've been removed.--<small>[[User:JohnBlackburne|JohnBlackburne]]</small><sup>[[User_talk:JohnBlackburne|words]]</sup><sub style="margin-left:-2.0ex;">[[Special:Contributions/JohnBlackburne|deeds]]</sub> 14:50, 15 May 2014 (UTC)
:::::I think the font in question is one that's bundled with Microsoft Windows, so you might be seeing something different to me. I can't recall the exact name of the font right now, but pretty much every single Chinese website (Sina.com, People's Daily, Xinhua, Chinese Wikipedia, etc) has alphanumeric characters display in it, at least in Mozilla Firefox and Google Chrome. (I think Internet Explorer 11 uses some MSHeiTi gothic font instead) As an example, [http://i.imgur.com/kjQi9DO.png here's People's Daily].<p>Now, as far as I know, this font does not properly support Latin letters with diacritics (i.e. French, Spanish, and Hanyu Pinyin), which means that Firefox grabs some other font to display those individual letters only. This is why some letters in pinyin [http://i.imgur.com/pAn6XNU.png are displayed with a different height] when in normal style, and end up having different thicknesses when in italic style. --[[User:benlisquare|<span style="font-family:Monospace;padding:1px;color:orange">'''benlisquare'''</span>]]<sub>[[User talk:benlisquare|T]]•[[Special:Contributions/Benlisquare|C]]•[[Special:EmailUser/User:Benlisquare|E]]</sub> 15:39, 15 May 2014 (UTC)</p>
:::::And if you want to compare the default fonts that Internet Explorer 11 and Mozilla Firefox choose to use, [http://i.imgur.com/WzXt9Qd.png here's the Chinese Wikipedia front page on Vector skin]: left is IE11, right is FF. --[[User:benlisquare|<span style="font-family:Monospace;padding:1px;color:orange">'''benlisquare'''</span>]]<sub>[[User talk:benlisquare|T]]•[[Special:Contributions/Benlisquare|C]]•[[Special:EmailUser/User:Benlisquare|E]]</sub> 15:45, 15 May 2014 (UTC)
Line 136:
I don't use windows but rather Ubuntu Linux. I checked the display in both Chrome and Firefox and in Firefox I turned on tools/web developer/inspector/fonts to see what font was loaded where. For the English and pinyin it is loading the same font – "DejaVu Sans". For the Chinese characters Firefox loads "AR PL UKai CN". I have a Chinese windows 7 PC my wife uses so I will check that tonight and compare. It looks like this is a bug in the Windows version of Firefox. It might be visually fixed by adding a font-family style to the span outputted by the template to ensure a sans-serif font is loaded. [[User:Rincewind42|Rincewind42]] ([[User talk:Rincewind42|talk]]) 04:59, 16 May 2014 (UTC)
:Oh right, now I remember what the name of the font was - it's SimSun. Right now, Firefox renders all the pinyin in SimSun, anything within the lang-ja parameter of the {{tl|nihongo}} template as [[:zh:微软哥特体|MS PGothic]], anything monospace as [[Courier New]], and everything else in Arial. Previously, the pinyin would also be rendered in Arial, which properly supported the diacritics.<p>In case this information is relevant, simplified Chinese is being displayed in [[:File:Simsun.svg|SimSun]], traditional Chinese is displayed in [[:zh:新細明體|PMingLiU]] ([http://i.imgur.com/6Ve7S0I.png which also cannot properly display pinyin]), and if anyone attempts to write pinyin in [[Georgia (typeface)|Georgia Italic]] (see [[#Abbreviating the writing systems]] section above), the diacritic letters are displayed in Times New Roman Italic. --[[User:benlisquare|<span style="font-family:Monospace;padding:1px;color:orange">'''benlisquare'''</span>]]<sub>[[User talk:benlisquare|T]]•[[Special:Contributions/Benlisquare|C]]•[[Special:EmailUser/User:Benlisquare|E]]</sub> 06:27, 16 May 2014 (UTC)</p>
::I checked on my wife's PC running Windows 7 (in Chinese mode) with IE11, the latest Firefox and Chrome. For some reason her version of Chrome uses a horrible courier like font for all of Wikipedia but doesn't vary the font for the pinyin. IE11 displays correctly too. However, in Firefox I did duplicate the bug that {{u|benlisquare}} is seeing. The pinyin is rendered in SimSun the same as the simplified Chinese which is not correct. In addition the Tongyong Pinyin and Wade-Giles is also displayed in SimSun.
Line 196:
===Latn problem===
There's a really big problem here when it comes to using any of the Asian language HTML codes and their romanizations in that when you use zh-Latn or ja-Latn or ko-Latn it forces browsers to encode the text as if it was zh, ja, or ko and draw on the fonts used to display those languages rather than the default font. Right now, all pinyin parsed through this module for users of Firefox is being parsed as SimSun (at least on my end).—[[User:Ryulong|<
:{{lang|zh-latn|It's something happening for all Windows users of Mozilla Firefox, including myself and [[#Font?|a few others who've made mentions]] earlier. I personally feel that SimSun looks really ugly for alphanumeric characters, so something should probably be done about it. I'm not going to switch browsers just for this, but it is quite annoying to see SimSun in the middle of a paragraph otherwise written entirely in Arial.}} --[[User:benlisquare|<span style="font-family:Monospace;padding:1px;color:orange">'''benlisquare'''</span>]]<sub>[[User talk:benlisquare|T]]•[[Special:Contributions/Benlisquare|C]]•[[Special:EmailUser/User:Benlisquare|E]]</sub> 08:57, 17 May 2014 (UTC)
::{{lang|ja-Latn|Try MS Mincho/Gothic or Meiryo or whatever I did that screwed up the fonts when I copied them from my old XP to my Vista machine. I can't believe that we have to explain this to people who happen to use other browsers and they wonder why you shouldn't encode the alphanumeric characters as CJK even if in their mind "It's not English so it should be tagged as Japanese" (like every time I spoke with Pigsonthewing when he made [[mono no aware]].}}—[[User:Ryulong|<
: The way it should be working is that browsers should be recognising the 'Latn' part and so rendering as Latin, i.e. European, text. The Latn subtag has been around for nine years so isn't new, and was designed precisely for this, so browsers would know it was Chinese (or Japanese or Korean) but Romanised so does not need to use Chinese/Japanese/Korean fonts.
|