Mercurial > emacs
annotate admin/unidata/Makefile.in @ 107595:69c12db7031d
Retrospective commit from 2009-10-05.
Continue working on paragraph base direction.
Support per-buffer default paragraph direction.
buffer.h (struct buffer): New member paragraph_direction.
buffer.c (init_buffer_once): Initialize it.
(syms_of_buffer): Declare Lisp variables
default-paragraph-direction and paragraph-direction.
dispextern.h (struct it): New member paragraph_embedding.
xdisp.c (init_iterator): Initialize it from the buffer's value
of paragraph-direction.
<Qright_to_left, Qleft_to_right>: New variables.
(syms_of_xdisp): Initialize and staticpro them.
(set_iterator_to_next, next_element_from_buffer): Use the value of
paragraph_embedding to determine the paragraph direction.
bidi.c (bidi_line_init): Fix second argument to
bidi_set_sor_type.
(bidi_init_it): Initialize paragraph_dir to NEUTRAL_DIR.
(bidi_get_next_char_visually): Record the last character of the
separator in separator_limit, not the character after that.
(bidi_find_paragraph_start): Accept character and byte positions
instead of the whole iterator stricture. All callers changed.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 01 Jan 2010 06:22:52 -0500 |
parents | ce88a631c161 |
children | 1d1d5d9bd884 |
rev | line source |
---|---|
91461 | 1 # Makefile -- Makefile to generate character property tables. |
100971 | 2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 |
91461 | 3 # National Institute of Advanced Industrial Science and Technology (AIST) |
4 # Registration Number H13PRO009 | |
5 # | |
6 # This file is part of GNU Emacs. | |
7 | |
94829
aeac1d771ae4
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91873
diff
changeset
|
8 # GNU Emacs is free software: you can redistribute it and/or modify |
91461 | 9 # it under the terms of the GNU General Public License as published by |
94829
aeac1d771ae4
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91873
diff
changeset
|
10 # the Free Software Foundation, either version 3 of the License, or |
aeac1d771ae4
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91873
diff
changeset
|
11 # (at your option) any later version. |
91461 | 12 |
13 # GNU Emacs is distributed in the hope that it will be useful, | |
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 # GNU General Public License for more details. | |
17 | |
18 # You should have received a copy of the GNU General Public License | |
94829
aeac1d771ae4
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91873
diff
changeset
|
19 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
aeac1d771ae4
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91873
diff
changeset
|
20 |
91461 | 21 |
22 EMACS = ../../src/emacs | |
23 DSTDIR = ../../lisp/international | |
24 RUNEMACS = ${EMACS} -Q --multibyte -batch | |
25 | |
26 all: ${DSTDIR}/charprop.el | |
27 | |
28 .el.elc: | |
29 ${RUNEMACS} -batch -f batch-byte-compile $< | |
30 | |
31 unidata.txt: UnicodeData.txt | |
91873
008f96c5e9bc
(unidata.txt): Don't use $<, it's non-portable in this context.
Eli Zaretskii <eliz@gnu.org>
parents:
91539
diff
changeset
|
32 sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' < UnicodeData.txt > $@ |
91461 | 33 |
34 ${DSTDIR}/charprop.el: unidata-gen.elc unidata.txt | |
35 ELC=`/bin/pwd`/unidata-gen.elc; \ | |
36 DATA=`/bin/pwd`/unidata.txt; \ | |
37 cd ${DSTDIR}; \ | |
38 ${RUNEMACS} -batch --load $${ELC} -f unidata-gen-files $${DATA} | |
39 | |
40 install: charprop.el | |
41 cp charprop.el ${DSTDIR} | |
42 cp `sed -n 's/^;; FILE: //p' < charprop.el` ${DSTDIR} | |
43 | |
44 clean: | |
45 if test -f charprop.el; then \ | |
46 rm -f `sed -n 's/^;; FILE: //p' < charprop.el`; \ | |
47 fi | |
48 rm -f charprop.el unidata-gen.elc unidata.txt |