NEW95835
RenderQuote's QUOTE_LANG table should be auto-generated from CLDR
https://bugs.webkit.org/show_bug.cgi?id=95835
Summary RenderQuote's QUOTE_LANG table should be auto-generated from CLDR
Nicholas Shanks
Reported 2012-09-05 03:15:59 PDT
Bug 93424 added a whole load of quote characters derived from Unicode's CLDR data. These data were entered into the .cpp file by hand, copied from the referenced URL, and will need to be updated any time the CLDR data change, again, by hand. I consider it highly unlikely that such updates will happen in a timely manner, as no-one will be looking out for them. Option 1: Instead an auto-generated file should be created by the build process to keep the table up-to-date, using the latest CLDR XML data which the build machine will need to have available, or be able to retrieve over the network. Option 2: Create some scripts which take everything WebKit needs from CLDR and performs all necessary operations on the data. These scripts can then be manually run every time there is a new CLDR release (instead of at build-time). I haven't found exactly where the quote characters are specified in CLDR.
Attachments
Nicholas Shanks
Comment 1 2012-09-05 03:23:21 PDT
Also see bug 95836
Elliott Sprehn
Comment 2 2012-09-06 11:58:47 PDT
This should be a script that you run that downloads the XML and transforms it into a cpp/h file. We can't do it at build time because the CLDR being down, or you not having an internet connection, would prevent you from building a working webkit. The quotations are stored in each language XML http://unicode.org/cldr/trac/browser/trunk/common/main/en.xml <delimiters> <quotationStart>“</quotationStart> <quotationEnd>”</quotationEnd> <alternateQuotationStart>‘</alternateQuotationStart> <alternateQuotationEnd>’</alternateQuotationEnd> </delimiters> This would be a nice change. :)
Brent Fulgham
Comment 3 2022-07-13 11:00:57 PDT
Although the code has changed a bit, this suggestion is still relevant.
Radar WebKit Bug Importer
Comment 4 2022-07-13 11:01:14 PDT
Myles C. Maxfield
Comment 5 2022-07-16 20:06:34 PDT
+1 on this, we should definitely do this. I think there's a larger question of "how to call ICU functions at build time" which would be preferable to ingesting raw CLDR data. I'm currently in discussions with Apple's build teams about the right way to do this.
Note You need to log in before you can comment on or make changes to this bug.