Note that case mappings will only be used if mbstring extension is not present. Normalization data files updated to Unicode 5.1.0; passes the automated tests. Seem to have long since lost the script I originally used to generate the Utf8Case.php mapping file, which appears not to have been updated since 2002 or so. :) Made a new one and moved it into the UtfNormal sub-library. Note a couple limitations: * Case mapping (still) uses only the 1:1 simple mappings. Any full or locale-specific mappings are ignored. * These case mappings are not used anyway when the PHP mbstring extension is available; mbstring's case conversion functions are used instead, with whatever version of Unicode support and whatever complex mapping support they may or may not have. * The generated Utf8Case.php file is not used directly -- you must also regenerate the serialized version in the 'serialized' directory after updating it to a new Unicode version.
28 lines
741 B
Makefile
28 lines
741 B
Makefile
|
|
MESSAGE_SOURCES=$(wildcard ../languages/messages/Messages*.php)
|
|
MESSAGE_TARGETS=$(patsubst ../languages/messages/Messages%.php, Messages%.ser, $(MESSAGE_SOURCES))
|
|
SPECIAL_TARGETS=Utf8Case.ser
|
|
ALL_TARGETS=$(MESSAGE_TARGETS) $(SPECIAL_TARGETS)
|
|
DIST_TARGETS=$(SPECIAL_TARGETS) \
|
|
MessagesDe.ser \
|
|
MessagesEn.ser \
|
|
MessagesFr.ser \
|
|
MessagesJa.ser \
|
|
MessagesNl.ser \
|
|
MessagesPl.ser \
|
|
MessagesSv.ser
|
|
|
|
.PHONY: all dist clean
|
|
|
|
all: $(ALL_TARGETS)
|
|
|
|
dist: $(DIST_TARGETS)
|
|
|
|
clean:
|
|
rm -f $(ALL_TARGETS)
|
|
|
|
Utf8Case.ser : ../includes/normal/Utf8Case.php
|
|
php serialize.php -o $@ $<
|
|
|
|
Messages%.ser : ../languages/messages/Messages%.php ../languages/messages/MessagesEn.php
|
|
php serialize-localisation.php -o $@ $<
|