Bug 93331 - "grc" language (Ancient Greek) probably should be mapped to Greek script
Summary: "grc" language (Ancient Greek) probably should be mapped to Greek script
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: http://en.wikipedia.org/wiki/Pankration
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-06 20:41 PDT by Matt Falkenhagen
Modified: 2024-01-13 17:37 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Falkenhagen 2012-08-06 20:41:38 PDT
It looks like ICU doesn't assign a script for "grc" language (Ancient Greek). For example:

  char maximizedLocale[ULOC_FULLNAME_CAPACITY];
  uloc_addLikelySubtags("grc", maximizedLocale, sizeof(maximizedLocale), &status);
  // now maximizedLocale is "grc"

  char script[ULOC_SCRIPT_CAPACITY];
  uloc_getScript(maximizedLocale, script, sizeof(script), &status);
  // returns 0, and now script is the empty string. status is success.

Since "grc" is not mapped to a script, WebKit will use the font for the Common script, which might not be appropriate, especially for CJK fonts (see bug 88545).

We should check whether it's intentional that ICU/CLDR doesn't assign a script to "grc". Curiously, in icu/source/data/misc/supplementalData.txt, there is:
        grc{
            secondary{
                scripts{
                    "Cprt",
                    "Grek",
                    "Linb",
                }
            }
        }
So it's possible ICU can return these scripts somehow (though we'd then have to choose between them).

Wikipedia uses lang="grc" in articles like <http://en.wikipedia.org/wiki/Pankration>

FWIW, Firefox has the same behavior: lang="grc" content isn't rendered using their Greek font setting
Comment 1 Alexey Proskuryakov 2012-08-07 11:41:58 PDT
Is a modern Greek font optimal for rendering Ancient Greek?