Mercurial > emacs
annotate etc/schema/calstbl.rnc @ 108750:3339da3cfeb3
Redesign bidi-aware edge positions of glyph rows, fix bug #6036.
dispextern.h (struct glyph_row): New members minpos and maxpos.
(MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
(MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
and maxpos members instead of start.pos and end.pos, respectively.
xdisp.c (display_line): Compare IT_CHARPOS with the position in
row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
(cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
(try_window_reusing_current_matrix, try_window_id): Use
ROW->minpos rather than ROW->start.pos.
(init_from_display_pos, init_iterator): Use EMACS_INT for
character and byte positions.
(find_row_edges): Renamed from find_row_end. Accept additional
arguments for minimum and maximum buffer positions seen by
display_line for this row. Don't use iterator to find the
position following the maximum one; instead, increment the
position found by display_line directly. Fix logic; eol_pos
should be tested before the rest. Handle the case of characters
delivered from display vector (bug#6036). Fix tests related to
it->method. Handle the truncated_on_right_p rows.
(RECORD_MAX_MIN_POS): New macro.
(display_line): Use it to record the minimum and maximum buffer
positions for glyphs in the row being assembled. Record the
position of the newline that terminates the line. If word wrap is
in effect, restore minimum and maximum positions seen up to the
wrap point, when iterator returns to it.
(try_window_reusing_current_matrix): Give up if in bidi-reordered
row and cursor not already at point. Restore original pre-bidi
code for unidirectional buffers.
dispnew.c (increment_row_positions, check_matrix_invariants):
Increment and check row->start.pos and row->end.pos, in addition
to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
.gdbinit (prowlims): Display row->minpos and row->maxpos.
Display truncated_on_left_p and truncated_on_right_p flags.
Formatting fixes.
(pmtxrows): Display the ordinal number of each row. Don't display
rows beyond the last one.
bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
it is not copied by bidi_copy_it.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 22 May 2010 22:32:21 +0300 |
parents | c5b49767c96e |
children |
rev | line source |
---|---|
99429
c5b49767c96e
Add copyright notice.
Chong Yidong <cyd@stupidchicken.com>
parents:
86361
diff
changeset
|
1 # Copyright (C) 1992-2002 HaL Computer Systems, Inc., O'Reilly & |
c5b49767c96e
Add copyright notice.
Chong Yidong <cyd@stupidchicken.com>
parents:
86361
diff
changeset
|
2 # Associates, Inc., ArborText, Inc., Fujitsu Software Corporation, |
c5b49767c96e
Add copyright notice.
Chong Yidong <cyd@stupidchicken.com>
parents:
86361
diff
changeset
|
3 # Norman Walsh, Sun Microsystems, Inc., and the Organization for the |
c5b49767c96e
Add copyright notice.
Chong Yidong <cyd@stupidchicken.com>
parents:
86361
diff
changeset
|
4 # Advancement of Structured Information Standards (OASIS). |
c5b49767c96e
Add copyright notice.
Chong Yidong <cyd@stupidchicken.com>
parents:
86361
diff
changeset
|
5 # |
c5b49767c96e
Add copyright notice.
Chong Yidong <cyd@stupidchicken.com>
parents:
86361
diff
changeset
|
6 # Permission to use, copy, modify and distribute the DocBook DTD and |
c5b49767c96e
Add copyright notice.
Chong Yidong <cyd@stupidchicken.com>
parents:
86361
diff
changeset
|
7 # its accompanying documentation for any purpose and without fee is |
c5b49767c96e
Add copyright notice.
Chong Yidong <cyd@stupidchicken.com>
parents:
86361
diff
changeset
|
8 # hereby granted in perpetuity, provided that the above copyright |
c5b49767c96e
Add copyright notice.
Chong Yidong <cyd@stupidchicken.com>
parents:
86361
diff
changeset
|
9 # notice and this paragraph appear in all copies. The copyright |
c5b49767c96e
Add copyright notice.
Chong Yidong <cyd@stupidchicken.com>
parents:
86361
diff
changeset
|
10 # holders make no representation about the suitability of the DTD for |
c5b49767c96e
Add copyright notice.
Chong Yidong <cyd@stupidchicken.com>
parents:
86361
diff
changeset
|
11 # any purpose. It is provided "as is" without expressed or implied |
c5b49767c96e
Add copyright notice.
Chong Yidong <cyd@stupidchicken.com>
parents:
86361
diff
changeset
|
12 # warranty. |
c5b49767c96e
Add copyright notice.
Chong Yidong <cyd@stupidchicken.com>
parents:
86361
diff
changeset
|
13 |
86361 | 14 # This file was generated automatically by Trang, and then manually |
15 # edited to add back definitions for overridden parameter entities and | |
16 # undefined elements, specifically: bodyatt, secur, paracon, | |
17 # tbl.table.mdl, tbl.entry.mdl, caution, graphic, legend, note, para, | |
18 # title, warning. This makes the semantics of this module as close as | |
19 # possible to the original DTD and also allows this schema to be used | |
20 # independently of DocBook. | |
21 | |
22 # ...................................................................... | |
23 | |
24 # DocBook CALS Table Model V4.2 ........................................ | |
25 | |
26 # File calstblx.mod .................................................... | |
27 | |
28 # Copyright 1992-2002 HaL Computer Systems, Inc., | |
29 # O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software | |
30 # Corporation, Norman Walsh, Sun Microsystems, Inc., and the | |
31 # Organization for the Advancement of Structured Information | |
32 # Standards (OASIS). | |
33 # | |
34 # This DTD is based on the CALS Table Model | |
35 # PUBLIC "-//USA-DOD//DTD Table Model 951010//EN" | |
36 # | |
99429
c5b49767c96e
Add copyright notice.
Chong Yidong <cyd@stupidchicken.com>
parents:
86361
diff
changeset
|
37 # $Id$ |
86361 | 38 # |
39 # Permission to use, copy, modify and distribute the DocBook DTD | |
40 # and its accompanying documentation for any purpose and without fee | |
41 # is hereby granted in perpetuity, provided that the above copyright | |
42 # notice and this paragraph appear in all copies. The copyright | |
43 # holders make no representation about the suitability of the DTD for | |
44 # any purpose. It is provided "as is" without expressed or implied | |
45 # warranty. | |
46 # | |
47 # If you modify the DocBook DTD in any way, except for declaring and | |
48 # referencing additional sets of general entities and declaring | |
49 # additional notations, label your DTD as a variant of DocBook. See | |
50 # the maintenance documentation for more information. | |
51 # | |
52 # Please direct all questions, bug reports, or suggestions for | |
53 # changes to the docbook@lists.oasis-open.org mailing list. For more | |
54 # information, see http://www.oasis-open.org/docbook/. | |
55 | |
56 # ...................................................................... | |
57 | |
58 # This module contains the definitions for the CALS Table Model | |
59 # converted to XML. | |
60 | |
61 # These definitions are not directly related to the table model, but are | |
62 # used in the default CALS table model and are usually defined elsewhere | |
63 # (and prior to the inclusion of this table module) in a CALS DTD. | |
64 | |
65 bodyatt = empty | |
66 secur = empty | |
67 | |
68 # no if zero(s), | |
69 # yes if any other digits value | |
70 | |
71 yesorno = string | |
72 titles = title? | |
73 # default for use in entry content | |
74 paracon = text | |
75 | |
76 # The parameter entities as defined below provide the CALS table model | |
77 # as published (as part of the Example DTD) in MIL-HDBK-28001. | |
78 # | |
79 # These following declarations provide the CALS-compliant default definitions | |
80 # for these entities. However, these entities can and should be redefined | |
81 # (by giving the appropriate parameter entity declaration(s) prior to the | |
82 # reference to this Table Model declaration set entity) to fit the needs | |
83 # of the current application. | |
84 tbl.table-titles.mdl = titles | |
85 tbl.table-main.mdl = tgroup+ | graphic+ | |
86 tbl.table.mdl = tbl.table-titles.mdl | tbl.table-main.mdl | |
87 tbl.table.att = | |
88 attribute tabstyle { text }?, | |
89 attribute tocentry { yesorno }?, | |
90 attribute shortentry { yesorno }?, | |
91 attribute orient { "port" | "land" }?, | |
92 attribute pgwide { yesorno }? | |
93 tbl.tgroup.mdl = colspec*, spanspec*, thead?, tfoot?, tbody | |
94 tbl.tgroup.att = attribute tgroupstyle { text }? | |
95 tbl.hdft.mdl = colspec*, row+ | |
96 tbl.row.mdl = (entry | entrytbl)+ | |
97 tbl.entrytbl.mdl = colspec*, spanspec*, thead?, tbody | |
98 tbl.entry.mdl = paracon | para | warning | caution | note | legend | |
99 # ===== Element and attribute declarations follow. ===== | |
100 start = table | |
101 table = element table { table.attlist, tbl.table.mdl } | |
102 table.attlist &= | |
103 attribute frame { | |
104 "top" | "bottom" | "topbot" | "all" | "sides" | "none" | |
105 }?, | |
106 attribute colsep { yesorno }?, | |
107 attribute rowsep { yesorno }?, | |
108 tbl.table.att, | |
109 bodyatt, | |
110 secur | |
111 tgroup = element tgroup { tgroup.attlist, tbl.tgroup.mdl } | |
112 tgroup.attlist &= | |
113 attribute cols { text }, | |
114 tbl.tgroup.att, | |
115 attribute colsep { yesorno }?, | |
116 attribute rowsep { yesorno }?, | |
117 attribute align { "left" | "right" | "center" | "justify" | "char" }?, | |
118 attribute char { text }?, | |
119 attribute charoff { text }?, | |
120 secur | |
121 colspec = element colspec { colspec.attlist, empty } | |
122 colspec.attlist &= | |
123 attribute colnum { text }?, | |
124 attribute colname { text }?, | |
125 attribute colwidth { text }?, | |
126 attribute colsep { yesorno }?, | |
127 attribute rowsep { yesorno }?, | |
128 attribute align { "left" | "right" | "center" | "justify" | "char" }?, | |
129 attribute char { text }?, | |
130 attribute charoff { text }? | |
131 spanspec = element spanspec { spanspec.attlist, empty } | |
132 spanspec.attlist &= | |
133 attribute namest { text }, | |
134 attribute nameend { text }, | |
135 attribute spanname { text }, | |
136 attribute colsep { yesorno }?, | |
137 attribute rowsep { yesorno }?, | |
138 attribute align { "left" | "right" | "center" | "justify" | "char" }?, | |
139 attribute char { text }?, | |
140 attribute charoff { text }? | |
141 thead = element thead { thead.attlist, tbl.hdft.mdl } | |
142 thead.attlist &= | |
143 attribute valign { "top" | "middle" | "bottom" }?, | |
144 secur | |
145 tfoot = element tfoot { tfoot.attlist, tbl.hdft.mdl } | |
146 tfoot.attlist &= | |
147 attribute valign { "top" | "middle" | "bottom" }?, | |
148 secur | |
149 tbody = element tbody { tbody.attlist, row+ } | |
150 tbody.attlist &= | |
151 attribute valign { "top" | "middle" | "bottom" }?, | |
152 secur | |
153 row = element row { row.attlist, tbl.row.mdl } | |
154 row.attlist &= | |
155 attribute rowsep { yesorno }?, | |
156 attribute valign { "top" | "middle" | "bottom" }?, | |
157 secur | |
158 entrytbl = element entrytbl { entrytbl.attlist, tbl.entrytbl.mdl } | |
159 entrytbl.attlist &= | |
160 attribute cols { text }, | |
161 tbl.tgroup.att, | |
162 attribute colname { text }?, | |
163 attribute spanname { text }?, | |
164 attribute namest { text }?, | |
165 attribute nameend { text }?, | |
166 attribute colsep { yesorno }?, | |
167 attribute rowsep { yesorno }?, | |
168 attribute align { "left" | "right" | "center" | "justify" | "char" }?, | |
169 attribute char { text }?, | |
170 attribute charoff { text }?, | |
171 secur | |
172 entry = element entry { entry.attlist, tbl.entry.mdl* } | |
173 entry.attlist &= | |
174 attribute colname { text }?, | |
175 attribute namest { text }?, | |
176 attribute nameend { text }?, | |
177 attribute spanname { text }?, | |
178 attribute morerows { text }?, | |
179 attribute colsep { yesorno }?, | |
180 attribute rowsep { yesorno }?, | |
181 attribute align { "left" | "right" | "center" | "justify" | "char" }?, | |
182 attribute char { text }?, | |
183 attribute charoff { text }?, | |
184 attribute rotate { yesorno }?, | |
185 attribute valign { "top" | "middle" | "bottom" }?, | |
186 secur | |
187 caution |= notAllowed | |
188 graphic |= notAllowed | |
189 legend |= notAllowed | |
190 note |= notAllowed | |
191 para |= notAllowed | |
192 title |= notAllowed | |
193 warning |= notAllowed | |
194 | |
195 # End of DocBook CALS Table Model V4.2 ................................. | |
196 | |
197 # ...................................................................... |