Doc #63991 [Com]: Accents on uppercase Greek vowels hidden by PHP.net's fonts

From: Date: Sun, 28 Dec 2014 06:11:56 +0000
Subject: Doc #63991 [Com]: Accents on uppercase Greek vowels hidden by PHP.net's fonts
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11771@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63991&edit=1 ID: 63991 Comment by: jacob dot bednarz at gmail dot com Reported by: php at hatzidakis dot org Summary: Accents on uppercase Greek vowels hidden by PHP.net's fonts Status: Assigned Type: Documentation Problem Package: Website problem Operating System: Windows 7 Ultimate 64bit PHP Version: Irrelevant Assigned To: aharvey Block user comment: N Private report: N New Comment: This was last touched in 2012 and appears to be fixed since the beta release of the PHP.net site. Can this be closed? Previous Comments: ------------------------------------------------------------------------ [2013-01-16 08:17:50] php at hatzidakis dot org It looks OK on the beta site, as that one uses the Monospace font-family. The accents are visible as expected. ------------------------------------------------------------------------ [2013-01-16 01:40:25] aharvey@php.net Does this happen on the beta site: http://au1.php.net/manual/en/function.mb-convert-case.php?beta=1 ? We could just reuse the code styling from there as a stopgap if it's OK. Since I wrote the original example (bug #51858), the reasoning was that Greek was a non-Latin alphabet that virtually everyone has font support for: I'd rather fix the font issue than switch to something in, say, Cyrillic. ------------------------------------------------------------------------ [2013-01-15 13:59:41] php at hatzidakis dot org Description: ------------ On Firefox, the font Consolas that PHP.net is using within <code> tags such as in code examples, seems to be hiding the accents from uppercase Greek vowels. This issue does not appear on Internet Explorer or Chrome. Tested Firefox versions v15.0 and v17.01 official binaries on Windows 7 64bit and v12 and v18 on Windows XP. Although this is supported by UTF-8, uppercase Greek vowels must not have accents. It is thus important to be able to distinguish whether a sentence in uppercase Greek has accents or not on its vowels. The example #2 given in http://php.net/mb_convert_case: <?php $str = "Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός"; $str = mb_convert_case($str, MB_CASE_UPPER, "UTF-8"); echo $str; // Prints ΤΆΧΙΣΤΗ ΑΛΏΠΗΞ ΒΑΦΉΣ ΨΗΜΈΝΗ ΓΗ, ΔΡΑΣΚΕΛΊΖΕΙ ΥΠΈΡ ΝΩΘΡΟΎ ΚΥΝΌΣ $str = mb_convert_case($str, MB_CASE_TITLE, "UTF-8"); echo $str; // Prints Τάχιστη Αλώπηξ Βαφήσ Ψημένη Γη, Δρασκελίζει Υπέρ Νωθρού Κυνόσ ?> when viewed on Firefox doesn't include the accents on the capitalized vowels that show the function's effect in uppercasing Greek text. This may confuse developers into thinking the function also removes accents when uppercasing Greek vowels. Copying the example text and pasting it into a text editor makes the accents appear as normal. Test script: --------------- Just view example #2 on http://php.net/mb_convert_case or paste and view this simple html file: <html> <head> <title>test</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <style type="text/css"> * { font-family: Consolas ; font-size: x-large; } </style> </head> <body> ΤΆΧΙΣΤΗ ΑΛΏΠΗΞ ΒΑΦΉΣ ΨΗΜΈΝΗ ΓΗ, ΔΡΑΣΚΕΛΊΖΕΙ ΥΠΈΡ ΝΩΘΡΟΎ ΚΥΝΌΣ </body> </html> Expected result: ---------------- I expect the display to be: ΤΆΧΙΣΤΗ ΑΛΏΠΗΞ ΒΑΦΉΣ ΨΗΜΈΝΗ ΓΗ, ΔΡΑΣΚΕΛΊΖΕΙ ΥΠΈΡ ΝΩΘΡΟΎ ΚΥΝΌΣ Actual result: -------------- The display is instead: ΤΑΧΙΣΤΗ ΑΛΩΠΗΞ ΒΑΦΗΣ ΨΗΜΕΝΗ ΓΗ, ΔΡΑΣΚΕΛΙΖΕΙ ΥΠΕΡ ΝΩΘΡΟΥ ΚΥΝΟΣ NOTE: this is just how it looks due to the fonts. Copying the text into an editor reveals the hidden accents. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63991&edit=1

« previous php.doc.bugs (#11771) next »