aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorEli Zaretskii2010-06-12 17:15:25 +0300
committerEli Zaretskii2010-06-12 17:15:25 +0300
commit317fbf3360f9b1163bc371d8d66c67994cb238e9 (patch)
tree9a86894ea0180bd8282e8076becd63865f32bded /admin
parent6e6e5760b3bafc41e425aad03ec61e59731713d5 (diff)
downloademacs-317fbf3360f9b1163bc371d8d66c67994cb238e9.tar.gz
emacs-317fbf3360f9b1163bc371d8d66c67994cb238e9.zip
Derive bidi type table from UnicodeData.txt.
src/bidi.c (bidi_initialize): Remove explicit initialization of bidi_type_table; include biditype.h instead. Don't support entries whose second codepoint is zero. src/biditype.h: New file. admin/unidata/biditype.awk: New file. admin/unidata/Makefile.in (../../src/biditype.h): New target. admin/unidata/makefile.w32-in (../../src/biditype.h): New target.
Diffstat (limited to 'admin')
-rw-r--r--admin/ChangeLog8
-rw-r--r--admin/unidata/Makefile.in5
-rw-r--r--admin/unidata/makefile.w32-in9
3 files changed, 19 insertions, 3 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog
index 9e359c95c19..430e3c30f3c 100644
--- a/admin/ChangeLog
+++ b/admin/ChangeLog
@@ -1,3 +1,11 @@
12010-06-12 Eli Zaretskii <eliz@gnu.org>
2
3 * unidata/biditype.awk: New file.
4
5 * unidata/Makefile.in (../../src/biditype.h): New target.
6
7 * unidata/makefile.w32-in (../../src/biditype.h): New target.
8
12010-06-09 Juanma Barranquero <lekktu@gmail.com> 92010-06-09 Juanma Barranquero <lekktu@gmail.com>
2 10
3 * unidata/UnicodeData.txt: Update from 11 * unidata/UnicodeData.txt: Update from
diff --git a/admin/unidata/Makefile.in b/admin/unidata/Makefile.in
index 2b31e6ed949..e2a91c94ab1 100644
--- a/admin/unidata/Makefile.in
+++ b/admin/unidata/Makefile.in
@@ -23,7 +23,7 @@ EMACS = ../../src/emacs
23DSTDIR = ../../lisp/international 23DSTDIR = ../../lisp/international
24RUNEMACS = ${EMACS} -Q --multibyte -batch 24RUNEMACS = ${EMACS} -Q --multibyte -batch
25 25
26all: ${DSTDIR}/charprop.el 26all: ${DSTDIR}/charprop.el ../../src/biditype.h
27 27
28.el.elc: 28.el.elc:
29 ${RUNEMACS} -batch -f batch-byte-compile $< 29 ${RUNEMACS} -batch -f batch-byte-compile $<
@@ -37,6 +37,9 @@ ${DSTDIR}/charprop.el: unidata-gen.elc unidata.txt
37 cd ${DSTDIR}; \ 37 cd ${DSTDIR}; \
38 ${RUNEMACS} -batch --load $${ELC} -f unidata-gen-files $${DATA} 38 ${RUNEMACS} -batch --load $${ELC} -f unidata-gen-files $${DATA}
39 39
40../../src/biditype.h: UnicodeData.txt
41 gawk -F";" -f biditype.awk $< > $@
42
40install: charprop.el 43install: charprop.el
41 cp charprop.el ${DSTDIR} 44 cp charprop.el ${DSTDIR}
42 cp `sed -n 's/^;; FILE: //p' < charprop.el` ${DSTDIR} 45 cp `sed -n 's/^;; FILE: //p' < charprop.el` ${DSTDIR}
diff --git a/admin/unidata/makefile.w32-in b/admin/unidata/makefile.w32-in
index 29562283bcb..822bd42de7b 100644
--- a/admin/unidata/makefile.w32-in
+++ b/admin/unidata/makefile.w32-in
@@ -29,7 +29,7 @@ EMACSLOADPATH = $(lisp);$(lisp)/international;$(lisp)/emacs-lisp
29# Quote EMACS so it could be a file name with embedded whitespace 29# Quote EMACS so it could be a file name with embedded whitespace
30RUNEMACS = "$(EMACS)" -Q --multibyte -batch 30RUNEMACS = "$(EMACS)" -Q --multibyte -batch
31 31
32all: $(DSTDIR)/charprop.el 32all: $(DSTDIR)/charprop.el ../../src/biditype.h
33 33
34.el.elc: 34.el.elc:
35 $(RUNEMACS) -f batch-byte-compile $< 35 $(RUNEMACS) -f batch-byte-compile $<
@@ -50,6 +50,11 @@ charprop-CMD: unidata-gen.elc unidata.txt
50 50
51${DSTDIR}/charprop.el: charprop-$(SHELLTYPE) 51${DSTDIR}/charprop.el: charprop-$(SHELLTYPE)
52 52
53../../src/biditype.h: UnicodeData.txt
54 gawk -F";" -f biditype.awk -v BINMODE=2 $< > biditype.h
55 $(CP) -f biditype.h $@
56 $(DEL) biditype.h
57
53clean: 58clean:
54 - $(DEL) unidata-gen.elc unidata.txt 59 - $(DEL) unidata-gen.elc unidata.txt biditype.h
55 60