mathematical 1.2.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +24 -45
- data/Rakefile +6 -0
- data/ext/mathematical/extconf.rb +1 -1
- data/ext/mathematical/lasem/Makefile +1037 -0
- data/ext/mathematical/lasem/config.h +87 -0
- data/ext/mathematical/lasem/docs/Makefile +793 -0
- data/ext/mathematical/lasem/docs/reference/Makefile +735 -0
- data/ext/mathematical/lasem/docs/reference/lasem/Makefile +1023 -0
- data/ext/mathematical/lasem/itex2mml/Makefile +742 -0
- data/ext/mathematical/lasem/itex2mml/lex.yy.c +6294 -0
- data/ext/mathematical/lasem/itex2mml/y.tab.c +5796 -0
- data/ext/mathematical/lasem/itex2mml/y.tab.h +378 -0
- data/ext/mathematical/lasem/po/Makefile +413 -0
- data/ext/mathematical/lasem/src/Makefile +1322 -0
- data/ext/mathematical/lasem/src/lsmdomenumtypes.c +99 -0
- data/ext/mathematical/lasem/src/lsmdomenumtypes.h +26 -0
- data/ext/mathematical/lasem/src/lsmmathmlattributes.c +22 -0
- data/ext/mathematical/lasem/src/lsmmathmlenums.c +8 -0
- data/ext/mathematical/lasem/src/lsmmathmlenums.h +7 -0
- data/ext/mathematical/lasem/src/lsmmathmlenumtypes.c +737 -0
- data/ext/mathematical/lasem/src/lsmmathmlenumtypes.h +93 -0
- data/ext/mathematical/lasem/src/lsmmathmlmathelement.c +9 -1
- data/ext/mathematical/lasem/src/lsmmathmlstyle.h +8 -0
- data/ext/mathematical/lasem/src/lsmmathmlstyleelement.c +78 -0
- data/ext/mathematical/lasem/src/lsmmathmlstyleelement.h +7 -0
- data/ext/mathematical/lasem/src/lsmmathmltablerowelement.c +2 -2
- data/ext/mathematical/lasem/src/lsmmathmltraits.h +8 -0
- data/ext/mathematical/lasem/src/lsmsvgenumtypes.c +1083 -0
- data/ext/mathematical/lasem/src/lsmsvgenumtypes.h +111 -0
- data/ext/mathematical/lasem/tests/Makefile +765 -0
- data/ext/mathematical/mtex2MML/Makefile +25 -16
- data/ext/mathematical/mtex2MML/build/libmtex2MML.a +0 -0
- data/ext/mathematical/mtex2MML/build/mtex2MML.h +1 -1
- data/ext/mathematical/mtex2MML/src/lex.yy.c +3140 -3130
- data/ext/mathematical/mtex2MML/src/main.c +1 -1
- data/ext/mathematical/mtex2MML/src/mtex2MML.h +1 -1
- data/ext/mathematical/mtex2MML/src/mtex2MML.l +4 -1
- data/ext/mathematical/mtex2MML/src/mtex2MML.y +41 -42
- data/ext/mathematical/mtex2MML/src/parse_extras.c +148 -58
- data/ext/mathematical/mtex2MML/src/parse_extras.h +11 -3
- data/ext/mathematical/mtex2MML/src/y.tab.c +5902 -6075
- data/ext/mathematical/mtex2MML/src/y.tab.h +306 -313
- data/ext/mathematical/mtex2MML/tests/basic.c +2 -2
- data/ext/mathematical/mtex2MML/tests/deps/trim/trim.h +1 -1
- data/ext/mathematical/mtex2MML/tests/maliciousness.c +0 -1
- data/ext/mathematical/mtex2MML/tests/mathjax.c +11 -1
- data/ext/mathematical/mtex2MML/tests/numbered_equations.c +28 -1
- data/lib/mathematical/version.rb +1 -1
- data/mathematical.gemspec +3 -3
- data/test/mathematical/fixtures/png/numeric_test_1.png +0 -0
- data/test/mathematical/fixtures/png/numeric_test_3.png +0 -0
- data/test/mathematical/fixtures_test.rb +1 -6
- data/test/mathematical/mathjax_test.rb +2 -0
- data/test/test_helper.rb +10 -0
- metadata +28 -11
@@ -0,0 +1,378 @@
|
|
1
|
+
/* A Bison parser, made by GNU Bison 3.0.4. */
|
2
|
+
|
3
|
+
/* Bison interface for Yacc-like parsers in C
|
4
|
+
|
5
|
+
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
|
6
|
+
|
7
|
+
This program is free software: you can redistribute it and/or modify
|
8
|
+
it under the terms of the GNU General Public License as published by
|
9
|
+
the Free Software Foundation, either version 3 of the License, or
|
10
|
+
(at your option) any later version.
|
11
|
+
|
12
|
+
This program is distributed in the hope that it will be useful,
|
13
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
GNU General Public License for more details.
|
16
|
+
|
17
|
+
You should have received a copy of the GNU General Public License
|
18
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
19
|
+
|
20
|
+
/* As a special exception, you may create a larger work that contains
|
21
|
+
part or all of the Bison parser skeleton and distribute that work
|
22
|
+
under terms of your choice, so long as that work isn't itself a
|
23
|
+
parser generator using the skeleton or a modified version thereof
|
24
|
+
as a parser skeleton. Alternatively, if you modify or redistribute
|
25
|
+
the parser skeleton itself, you may (at your option) remove this
|
26
|
+
special exception, which will cause the skeleton and the resulting
|
27
|
+
Bison output files to be licensed under the GNU General Public
|
28
|
+
License without this special exception.
|
29
|
+
|
30
|
+
This special exception was added by the Free Software Foundation in
|
31
|
+
version 2.2 of Bison. */
|
32
|
+
|
33
|
+
#ifndef YY_ITEX2MML_YY_Y_TAB_H_INCLUDED
|
34
|
+
# define YY_ITEX2MML_YY_Y_TAB_H_INCLUDED
|
35
|
+
/* Debug traces. */
|
36
|
+
#ifndef YYDEBUG
|
37
|
+
# define YYDEBUG 0
|
38
|
+
#endif
|
39
|
+
#if YYDEBUG
|
40
|
+
extern int itex2MML_yydebug;
|
41
|
+
#endif
|
42
|
+
|
43
|
+
/* Token type. */
|
44
|
+
#ifndef YYTOKENTYPE
|
45
|
+
# define YYTOKENTYPE
|
46
|
+
enum yytokentype
|
47
|
+
{
|
48
|
+
TEXOVER = 258,
|
49
|
+
TEXATOP = 259,
|
50
|
+
CHAR = 260,
|
51
|
+
STARTMATH = 261,
|
52
|
+
STARTDMATH = 262,
|
53
|
+
ENDMATH = 263,
|
54
|
+
MI = 264,
|
55
|
+
MIB = 265,
|
56
|
+
MN = 266,
|
57
|
+
MO = 267,
|
58
|
+
SUP = 268,
|
59
|
+
SUB = 269,
|
60
|
+
MROWOPEN = 270,
|
61
|
+
MROWCLOSE = 271,
|
62
|
+
LEFT = 272,
|
63
|
+
RIGHT = 273,
|
64
|
+
BIG = 274,
|
65
|
+
BBIG = 275,
|
66
|
+
BIGG = 276,
|
67
|
+
BBIGG = 277,
|
68
|
+
BIGL = 278,
|
69
|
+
BBIGL = 279,
|
70
|
+
BIGGL = 280,
|
71
|
+
BBIGGL = 281,
|
72
|
+
FRAC = 282,
|
73
|
+
TFRAC = 283,
|
74
|
+
OPERATORNAME = 284,
|
75
|
+
MATHOP = 285,
|
76
|
+
MATHBIN = 286,
|
77
|
+
MATHREL = 287,
|
78
|
+
MOP = 288,
|
79
|
+
MOL = 289,
|
80
|
+
MOLL = 290,
|
81
|
+
MOF = 291,
|
82
|
+
MOR = 292,
|
83
|
+
PERIODDELIM = 293,
|
84
|
+
OTHERDELIM = 294,
|
85
|
+
LEFTDELIM = 295,
|
86
|
+
RIGHTDELIM = 296,
|
87
|
+
MOS = 297,
|
88
|
+
MOB = 298,
|
89
|
+
SQRT = 299,
|
90
|
+
ROOT = 300,
|
91
|
+
BINOM = 301,
|
92
|
+
TBINOM = 302,
|
93
|
+
UNDER = 303,
|
94
|
+
OVER = 304,
|
95
|
+
OVERBRACE = 305,
|
96
|
+
UNDERLINE = 306,
|
97
|
+
UNDERBRACE = 307,
|
98
|
+
UNDEROVER = 308,
|
99
|
+
TENSOR = 309,
|
100
|
+
MULTI = 310,
|
101
|
+
ARRAYALIGN = 311,
|
102
|
+
COLUMNALIGN = 312,
|
103
|
+
ARRAY = 313,
|
104
|
+
COLSEP = 314,
|
105
|
+
ROWSEP = 315,
|
106
|
+
ARRAYOPTS = 316,
|
107
|
+
COLLAYOUT = 317,
|
108
|
+
COLALIGN = 318,
|
109
|
+
ROWALIGN = 319,
|
110
|
+
ALIGN = 320,
|
111
|
+
EQROWS = 321,
|
112
|
+
EQCOLS = 322,
|
113
|
+
ROWLINES = 323,
|
114
|
+
COLLINES = 324,
|
115
|
+
FRAME = 325,
|
116
|
+
PADDING = 326,
|
117
|
+
ATTRLIST = 327,
|
118
|
+
ITALICS = 328,
|
119
|
+
BOLD = 329,
|
120
|
+
BOXED = 330,
|
121
|
+
SLASHED = 331,
|
122
|
+
RM = 332,
|
123
|
+
BB = 333,
|
124
|
+
ST = 334,
|
125
|
+
END = 335,
|
126
|
+
BBLOWERCHAR = 336,
|
127
|
+
BBUPPERCHAR = 337,
|
128
|
+
BBDIGIT = 338,
|
129
|
+
CALCHAR = 339,
|
130
|
+
FRAKCHAR = 340,
|
131
|
+
CAL = 341,
|
132
|
+
FRAK = 342,
|
133
|
+
CLAP = 343,
|
134
|
+
LLAP = 344,
|
135
|
+
RLAP = 345,
|
136
|
+
ROWOPTS = 346,
|
137
|
+
TEXTSIZE = 347,
|
138
|
+
SCSIZE = 348,
|
139
|
+
SCSCSIZE = 349,
|
140
|
+
DISPLAY = 350,
|
141
|
+
TEXTSTY = 351,
|
142
|
+
TEXTBOX = 352,
|
143
|
+
TEXTSTRING = 353,
|
144
|
+
XMLSTRING = 354,
|
145
|
+
CELLOPTS = 355,
|
146
|
+
ROWSPAN = 356,
|
147
|
+
COLSPAN = 357,
|
148
|
+
THINSPACE = 358,
|
149
|
+
MEDSPACE = 359,
|
150
|
+
THICKSPACE = 360,
|
151
|
+
QUAD = 361,
|
152
|
+
QQUAD = 362,
|
153
|
+
NEGSPACE = 363,
|
154
|
+
PHANTOM = 364,
|
155
|
+
HREF = 365,
|
156
|
+
UNKNOWNCHAR = 366,
|
157
|
+
EMPTYMROW = 367,
|
158
|
+
STATLINE = 368,
|
159
|
+
TOOLTIP = 369,
|
160
|
+
TOGGLE = 370,
|
161
|
+
FGHIGHLIGHT = 371,
|
162
|
+
BGHIGHLIGHT = 372,
|
163
|
+
SPACE = 373,
|
164
|
+
INTONE = 374,
|
165
|
+
INTTWO = 375,
|
166
|
+
INTTHREE = 376,
|
167
|
+
BAR = 377,
|
168
|
+
WIDEBAR = 378,
|
169
|
+
VEC = 379,
|
170
|
+
WIDEVEC = 380,
|
171
|
+
HAT = 381,
|
172
|
+
WIDEHAT = 382,
|
173
|
+
CHECK = 383,
|
174
|
+
WIDECHECK = 384,
|
175
|
+
TILDE = 385,
|
176
|
+
WIDETILDE = 386,
|
177
|
+
DOT = 387,
|
178
|
+
DDOT = 388,
|
179
|
+
DDDOT = 389,
|
180
|
+
DDDDOT = 390,
|
181
|
+
UNARYMINUS = 391,
|
182
|
+
UNARYPLUS = 392,
|
183
|
+
BEGINENV = 393,
|
184
|
+
ENDENV = 394,
|
185
|
+
MATRIX = 395,
|
186
|
+
PMATRIX = 396,
|
187
|
+
BMATRIX = 397,
|
188
|
+
BBMATRIX = 398,
|
189
|
+
VMATRIX = 399,
|
190
|
+
VVMATRIX = 400,
|
191
|
+
SVG = 401,
|
192
|
+
ENDSVG = 402,
|
193
|
+
SMALLMATRIX = 403,
|
194
|
+
CASES = 404,
|
195
|
+
ALIGNED = 405,
|
196
|
+
GATHERED = 406,
|
197
|
+
SUBSTACK = 407,
|
198
|
+
PMOD = 408,
|
199
|
+
RMCHAR = 409,
|
200
|
+
COLOR = 410,
|
201
|
+
BGCOLOR = 411,
|
202
|
+
XARROW = 412,
|
203
|
+
OPTARGOPEN = 413,
|
204
|
+
OPTARGCLOSE = 414
|
205
|
+
};
|
206
|
+
#endif
|
207
|
+
/* Tokens. */
|
208
|
+
#define TEXOVER 258
|
209
|
+
#define TEXATOP 259
|
210
|
+
#define CHAR 260
|
211
|
+
#define STARTMATH 261
|
212
|
+
#define STARTDMATH 262
|
213
|
+
#define ENDMATH 263
|
214
|
+
#define MI 264
|
215
|
+
#define MIB 265
|
216
|
+
#define MN 266
|
217
|
+
#define MO 267
|
218
|
+
#define SUP 268
|
219
|
+
#define SUB 269
|
220
|
+
#define MROWOPEN 270
|
221
|
+
#define MROWCLOSE 271
|
222
|
+
#define LEFT 272
|
223
|
+
#define RIGHT 273
|
224
|
+
#define BIG 274
|
225
|
+
#define BBIG 275
|
226
|
+
#define BIGG 276
|
227
|
+
#define BBIGG 277
|
228
|
+
#define BIGL 278
|
229
|
+
#define BBIGL 279
|
230
|
+
#define BIGGL 280
|
231
|
+
#define BBIGGL 281
|
232
|
+
#define FRAC 282
|
233
|
+
#define TFRAC 283
|
234
|
+
#define OPERATORNAME 284
|
235
|
+
#define MATHOP 285
|
236
|
+
#define MATHBIN 286
|
237
|
+
#define MATHREL 287
|
238
|
+
#define MOP 288
|
239
|
+
#define MOL 289
|
240
|
+
#define MOLL 290
|
241
|
+
#define MOF 291
|
242
|
+
#define MOR 292
|
243
|
+
#define PERIODDELIM 293
|
244
|
+
#define OTHERDELIM 294
|
245
|
+
#define LEFTDELIM 295
|
246
|
+
#define RIGHTDELIM 296
|
247
|
+
#define MOS 297
|
248
|
+
#define MOB 298
|
249
|
+
#define SQRT 299
|
250
|
+
#define ROOT 300
|
251
|
+
#define BINOM 301
|
252
|
+
#define TBINOM 302
|
253
|
+
#define UNDER 303
|
254
|
+
#define OVER 304
|
255
|
+
#define OVERBRACE 305
|
256
|
+
#define UNDERLINE 306
|
257
|
+
#define UNDERBRACE 307
|
258
|
+
#define UNDEROVER 308
|
259
|
+
#define TENSOR 309
|
260
|
+
#define MULTI 310
|
261
|
+
#define ARRAYALIGN 311
|
262
|
+
#define COLUMNALIGN 312
|
263
|
+
#define ARRAY 313
|
264
|
+
#define COLSEP 314
|
265
|
+
#define ROWSEP 315
|
266
|
+
#define ARRAYOPTS 316
|
267
|
+
#define COLLAYOUT 317
|
268
|
+
#define COLALIGN 318
|
269
|
+
#define ROWALIGN 319
|
270
|
+
#define ALIGN 320
|
271
|
+
#define EQROWS 321
|
272
|
+
#define EQCOLS 322
|
273
|
+
#define ROWLINES 323
|
274
|
+
#define COLLINES 324
|
275
|
+
#define FRAME 325
|
276
|
+
#define PADDING 326
|
277
|
+
#define ATTRLIST 327
|
278
|
+
#define ITALICS 328
|
279
|
+
#define BOLD 329
|
280
|
+
#define BOXED 330
|
281
|
+
#define SLASHED 331
|
282
|
+
#define RM 332
|
283
|
+
#define BB 333
|
284
|
+
#define ST 334
|
285
|
+
#define END 335
|
286
|
+
#define BBLOWERCHAR 336
|
287
|
+
#define BBUPPERCHAR 337
|
288
|
+
#define BBDIGIT 338
|
289
|
+
#define CALCHAR 339
|
290
|
+
#define FRAKCHAR 340
|
291
|
+
#define CAL 341
|
292
|
+
#define FRAK 342
|
293
|
+
#define CLAP 343
|
294
|
+
#define LLAP 344
|
295
|
+
#define RLAP 345
|
296
|
+
#define ROWOPTS 346
|
297
|
+
#define TEXTSIZE 347
|
298
|
+
#define SCSIZE 348
|
299
|
+
#define SCSCSIZE 349
|
300
|
+
#define DISPLAY 350
|
301
|
+
#define TEXTSTY 351
|
302
|
+
#define TEXTBOX 352
|
303
|
+
#define TEXTSTRING 353
|
304
|
+
#define XMLSTRING 354
|
305
|
+
#define CELLOPTS 355
|
306
|
+
#define ROWSPAN 356
|
307
|
+
#define COLSPAN 357
|
308
|
+
#define THINSPACE 358
|
309
|
+
#define MEDSPACE 359
|
310
|
+
#define THICKSPACE 360
|
311
|
+
#define QUAD 361
|
312
|
+
#define QQUAD 362
|
313
|
+
#define NEGSPACE 363
|
314
|
+
#define PHANTOM 364
|
315
|
+
#define HREF 365
|
316
|
+
#define UNKNOWNCHAR 366
|
317
|
+
#define EMPTYMROW 367
|
318
|
+
#define STATLINE 368
|
319
|
+
#define TOOLTIP 369
|
320
|
+
#define TOGGLE 370
|
321
|
+
#define FGHIGHLIGHT 371
|
322
|
+
#define BGHIGHLIGHT 372
|
323
|
+
#define SPACE 373
|
324
|
+
#define INTONE 374
|
325
|
+
#define INTTWO 375
|
326
|
+
#define INTTHREE 376
|
327
|
+
#define BAR 377
|
328
|
+
#define WIDEBAR 378
|
329
|
+
#define VEC 379
|
330
|
+
#define WIDEVEC 380
|
331
|
+
#define HAT 381
|
332
|
+
#define WIDEHAT 382
|
333
|
+
#define CHECK 383
|
334
|
+
#define WIDECHECK 384
|
335
|
+
#define TILDE 385
|
336
|
+
#define WIDETILDE 386
|
337
|
+
#define DOT 387
|
338
|
+
#define DDOT 388
|
339
|
+
#define DDDOT 389
|
340
|
+
#define DDDDOT 390
|
341
|
+
#define UNARYMINUS 391
|
342
|
+
#define UNARYPLUS 392
|
343
|
+
#define BEGINENV 393
|
344
|
+
#define ENDENV 394
|
345
|
+
#define MATRIX 395
|
346
|
+
#define PMATRIX 396
|
347
|
+
#define BMATRIX 397
|
348
|
+
#define BBMATRIX 398
|
349
|
+
#define VMATRIX 399
|
350
|
+
#define VVMATRIX 400
|
351
|
+
#define SVG 401
|
352
|
+
#define ENDSVG 402
|
353
|
+
#define SMALLMATRIX 403
|
354
|
+
#define CASES 404
|
355
|
+
#define ALIGNED 405
|
356
|
+
#define GATHERED 406
|
357
|
+
#define SUBSTACK 407
|
358
|
+
#define PMOD 408
|
359
|
+
#define RMCHAR 409
|
360
|
+
#define COLOR 410
|
361
|
+
#define BGCOLOR 411
|
362
|
+
#define XARROW 412
|
363
|
+
#define OPTARGOPEN 413
|
364
|
+
#define OPTARGCLOSE 414
|
365
|
+
|
366
|
+
/* Value type. */
|
367
|
+
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
368
|
+
typedef int YYSTYPE;
|
369
|
+
# define YYSTYPE_IS_TRIVIAL 1
|
370
|
+
# define YYSTYPE_IS_DECLARED 1
|
371
|
+
#endif
|
372
|
+
|
373
|
+
|
374
|
+
extern YYSTYPE itex2MML_yylval;
|
375
|
+
|
376
|
+
int itex2MML_yyparse (char **ret_str);
|
377
|
+
|
378
|
+
#endif /* !YY_ITEX2MML_YY_Y_TAB_H_INCLUDED */
|
@@ -0,0 +1,413 @@
|
|
1
|
+
# Makefile for program source directory in GNU NLS utilities package.
|
2
|
+
# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
|
3
|
+
# Copyright (C) 2004-2008 Rodney Dawes <dobey.pwns@gmail.com>
|
4
|
+
#
|
5
|
+
# This file may be copied and used freely without restrictions. It may
|
6
|
+
# be used in projects which are not available under a GNU Public License,
|
7
|
+
# but which still want to provide support for the GNU gettext functionality.
|
8
|
+
#
|
9
|
+
# - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE
|
10
|
+
# instead of PACKAGE and to look for po2tbl in ./ not in intl/
|
11
|
+
#
|
12
|
+
# - Modified by jacob berkman <jacob@ximian.com> to install
|
13
|
+
# Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
|
14
|
+
#
|
15
|
+
# - Modified by Rodney Dawes <dobey.pwns@gmail.com> for use with intltool
|
16
|
+
#
|
17
|
+
# We have the following line for use by intltoolize:
|
18
|
+
# INTLTOOL_MAKEFILE
|
19
|
+
|
20
|
+
GETTEXT_PACKAGE = lasem-0.6
|
21
|
+
PACKAGE = lasem
|
22
|
+
VERSION = 0.5.1
|
23
|
+
|
24
|
+
SHELL = /bin/sh
|
25
|
+
|
26
|
+
srcdir = .
|
27
|
+
top_srcdir = ..
|
28
|
+
top_builddir = ..
|
29
|
+
|
30
|
+
|
31
|
+
prefix = /usr/local
|
32
|
+
exec_prefix = ${prefix}
|
33
|
+
datadir = ${datarootdir}
|
34
|
+
datarootdir = ${prefix}/share
|
35
|
+
libdir = ${exec_prefix}/lib
|
36
|
+
localedir = ${datarootdir}/locale
|
37
|
+
subdir = po
|
38
|
+
install_sh = ${SHELL} /Users/gjtorikian/Development/mathematical/ext/mathematical/lasem/install-sh
|
39
|
+
# Automake >= 1.8 provides $(MKDIR_P).
|
40
|
+
# Until it can be supposed, use the safe fallback:
|
41
|
+
mkdir_p = $(install_sh) -d
|
42
|
+
|
43
|
+
INSTALL = /usr/bin/install -c
|
44
|
+
INSTALL_DATA = ${INSTALL} -m 644
|
45
|
+
|
46
|
+
GMSGFMT = /usr/local/bin/msgfmt
|
47
|
+
MSGFMT = /usr/local/bin/msgfmt
|
48
|
+
XGETTEXT = /usr/local/bin/xgettext
|
49
|
+
INTLTOOL_UPDATE = /usr/local/bin/intltool-update
|
50
|
+
INTLTOOL_EXTRACT = /usr/local/bin/intltool-extract
|
51
|
+
MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
|
52
|
+
GENPOT = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
|
53
|
+
|
54
|
+
ALL_LINGUAS =
|
55
|
+
|
56
|
+
PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi)
|
57
|
+
|
58
|
+
USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi)
|
59
|
+
|
60
|
+
USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
|
61
|
+
|
62
|
+
POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
|
63
|
+
|
64
|
+
DISTFILES = Makefile.in.in POTFILES.in $(POFILES)
|
65
|
+
EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS
|
66
|
+
|
67
|
+
POTFILES = \
|
68
|
+
../src/lasemrender.c \
|
69
|
+
../src/lsmattributes.c \
|
70
|
+
../src/lsmattributes.h \
|
71
|
+
../src/lsm.c \
|
72
|
+
../src/lsmcairo.c \
|
73
|
+
../src/lsmcairo.h \
|
74
|
+
../src/lsmdebug.c \
|
75
|
+
../src/lsmdebug.h \
|
76
|
+
../src/lsmutils.c \
|
77
|
+
../src/lsmutils.h \
|
78
|
+
../src/lsmdomentities.h \
|
79
|
+
../src/lsmdomentities.c \
|
80
|
+
../src/lsmdomcharacterdata.c \
|
81
|
+
../src/lsmdomcharacterdata.h \
|
82
|
+
../src/lsmdomdocument.c \
|
83
|
+
../src/lsmdomdocumentfragment.c \
|
84
|
+
../src/lsmdomdocumentfragment.h \
|
85
|
+
../src/lsmdomdocument.h \
|
86
|
+
../src/lsmdomelement.c \
|
87
|
+
../src/lsmdomelement.h \
|
88
|
+
../src/lsmdomenumtypes.c.template \
|
89
|
+
../src/lsmdomenumtypes.h.template \
|
90
|
+
../src/lsmdom.h \
|
91
|
+
../src/lsmdomimplementation.c \
|
92
|
+
../src/lsmdomimplementation.h \
|
93
|
+
../src/lsmdomnamednodemap.c \
|
94
|
+
../src/lsmdomnamednodemap.h \
|
95
|
+
../src/lsmdomnode.c \
|
96
|
+
../src/lsmdomnode.h \
|
97
|
+
../src/lsmdomnodelist.c \
|
98
|
+
../src/lsmdomnodelist.h \
|
99
|
+
../src/lsmdomparser.c \
|
100
|
+
../src/lsmdomparser.h \
|
101
|
+
../src/lsmdomtext.c \
|
102
|
+
../src/lsmdomtext.h \
|
103
|
+
../src/lsmdomtypes.h \
|
104
|
+
../src/lsmdomview.c \
|
105
|
+
../src/lsmdomview.h \
|
106
|
+
../src/lsm.h \
|
107
|
+
../src/lsmmathmlactionelement.c \
|
108
|
+
../src/lsmmathmlactionelement.h \
|
109
|
+
../src/lsmmathmlaligngroupelement.c \
|
110
|
+
../src/lsmmathmlaligngroupelement.h \
|
111
|
+
../src/lsmmathmlalignmarkelement.c \
|
112
|
+
../src/lsmmathmlalignmarkelement.h \
|
113
|
+
../src/lsmmathmlattributes.c \
|
114
|
+
../src/lsmmathmlattributes.h \
|
115
|
+
../src/lsmmathmldocument.c \
|
116
|
+
../src/lsmmathmldocument.h \
|
117
|
+
../src/lsmmathmlelement.c \
|
118
|
+
../src/lsmmathmlelement.h \
|
119
|
+
../src/lsmmathmlenums.c \
|
120
|
+
../src/lsmmathmlenums.h \
|
121
|
+
../src/lsmmathmlenumtypes.c.template \
|
122
|
+
../src/lsmmathmlenumtypes.h.template \
|
123
|
+
../src/lsmmathmlerrorelement.c \
|
124
|
+
../src/lsmmathmlerrorelement.h \
|
125
|
+
../src/lsmmathmlfencedelement.c \
|
126
|
+
../src/lsmmathmlfencedelement.h \
|
127
|
+
../src/lsmmathmlfractionelement.c \
|
128
|
+
../src/lsmmathmlfractionelement.h \
|
129
|
+
../src/lsmmathmlglyphtableams.c \
|
130
|
+
../src/lsmmathmlglyphtableams.h \
|
131
|
+
../src/lsmmathml.h \
|
132
|
+
../src/lsmmathmlitexelement.c \
|
133
|
+
../src/lsmmathmlitexelement.h \
|
134
|
+
../src/lsmmathmllayoututils.c \
|
135
|
+
../src/lsmmathmllayoututils.h \
|
136
|
+
../src/lsmmathmlmathelement.c \
|
137
|
+
../src/lsmmathmlmathelement.h \
|
138
|
+
../src/lsmmathmloperatordictionary.c \
|
139
|
+
../src/lsmmathmloperatordictionary.h \
|
140
|
+
../src/lsmmathmloperatorelement.c \
|
141
|
+
../src/lsmmathmloperatorelement.h \
|
142
|
+
../src/lsmmathmlpaddedelement.c \
|
143
|
+
../src/lsmmathmlpaddedelement.h \
|
144
|
+
../src/lsmmathmlphantomelement.c \
|
145
|
+
../src/lsmmathmlphantomelement.h \
|
146
|
+
../src/lsmmathmlpresentationcontainer.c \
|
147
|
+
../src/lsmmathmlpresentationcontainer.h \
|
148
|
+
../src/lsmmathmlpresentationtoken.c \
|
149
|
+
../src/lsmmathmlpresentationtoken.h \
|
150
|
+
../src/lsmmathmlradicalelement.c \
|
151
|
+
../src/lsmmathmlradicalelement.h \
|
152
|
+
../src/lsmmathmlrowelement.c \
|
153
|
+
../src/lsmmathmlrowelement.h \
|
154
|
+
../src/lsmmathmlscriptelement.c \
|
155
|
+
../src/lsmmathmlscriptelement.h \
|
156
|
+
../src/lsmmathmlspaceelement.c \
|
157
|
+
../src/lsmmathmlspaceelement.h \
|
158
|
+
../src/lsmmathmlstringelement.c \
|
159
|
+
../src/lsmmathmlstringelement.h \
|
160
|
+
../src/lsmmathmlstyle.c \
|
161
|
+
../src/lsmmathmlstyleelement.c \
|
162
|
+
../src/lsmmathmlstyleelement.h \
|
163
|
+
../src/lsmmathmlstyle.h \
|
164
|
+
../src/lsmmathmltablecellelement.c \
|
165
|
+
../src/lsmmathmltablecellelement.h \
|
166
|
+
../src/lsmmathmltableelement.c \
|
167
|
+
../src/lsmmathmltableelement.h \
|
168
|
+
../src/lsmmathmltablerowelement.c \
|
169
|
+
../src/lsmmathmltablerowelement.h \
|
170
|
+
../src/lsmmathmltraits.c \
|
171
|
+
../src/lsmmathmltraits.h \
|
172
|
+
../src/lsmmathmltypes.h \
|
173
|
+
../src/lsmmathmlunderoverelement.c \
|
174
|
+
../src/lsmmathmlunderoverelement.h \
|
175
|
+
../src/lsmmathmlutils.c \
|
176
|
+
../src/lsmmathmlutils.h \
|
177
|
+
../src/lsmmathmlview.c \
|
178
|
+
../src/lsmmathmlview.h \
|
179
|
+
../src/lsmproperties.c \
|
180
|
+
../src/lsmproperties.h \
|
181
|
+
../src/lsmstr.c \
|
182
|
+
../src/lsmstr.h \
|
183
|
+
../src/lsmsvgattributes.h \
|
184
|
+
../src/lsmsvgcircleelement.c \
|
185
|
+
../src/lsmsvgcircleelement.h \
|
186
|
+
../src/lsmsvgclippathelement.c \
|
187
|
+
../src/lsmsvgclippathelement.h \
|
188
|
+
../src/lsmsvgcolors.c \
|
189
|
+
../src/lsmsvgcolors.h \
|
190
|
+
../src/lsmsvgdefselement.c \
|
191
|
+
../src/lsmsvgdefselement.h \
|
192
|
+
../src/lsmsvgdocument.c \
|
193
|
+
../src/lsmsvgdocument.h \
|
194
|
+
../src/lsmsvgelement.c \
|
195
|
+
../src/lsmsvgelement.h \
|
196
|
+
../src/lsmsvgellipseelement.c \
|
197
|
+
../src/lsmsvgellipseelement.h \
|
198
|
+
../src/lsmsvgenums.c \
|
199
|
+
../src/lsmsvgenums.h \
|
200
|
+
../src/lsmsvgenumtypes.c.template \
|
201
|
+
../src/lsmsvgenumtypes.h.template \
|
202
|
+
../src/lsmsvgfilterelement.c \
|
203
|
+
../src/lsmsvgfilterelement.h \
|
204
|
+
../src/lsmsvgfiltergaussianblur.c \
|
205
|
+
../src/lsmsvgfiltergaussianblur.h \
|
206
|
+
../src/lsmsvgfilterprimitive.c \
|
207
|
+
../src/lsmsvgfilterprimitive.h \
|
208
|
+
../src/lsmsvggelement.c \
|
209
|
+
../src/lsmsvggelement.h \
|
210
|
+
../src/lsmsvggradientelement.c \
|
211
|
+
../src/lsmsvggradientelement.h \
|
212
|
+
../src/lsmsvg.h \
|
213
|
+
../src/lsmsvgimageelement.c \
|
214
|
+
../src/lsmsvgimageelement.h \
|
215
|
+
../src/lsmsvglength.c \
|
216
|
+
../src/lsmsvglength.h \
|
217
|
+
../src/lsmsvglineargradientelement.c \
|
218
|
+
../src/lsmsvglineargradientelement.h \
|
219
|
+
../src/lsmsvglineelement.c \
|
220
|
+
../src/lsmsvglineelement.h \
|
221
|
+
../src/lsmsvgmarkerelement.c \
|
222
|
+
../src/lsmsvgmarkerelement.h \
|
223
|
+
../src/lsmsvgmaskelement.c \
|
224
|
+
../src/lsmsvgmaskelement.h \
|
225
|
+
../src/lsmsvgmatrix.c \
|
226
|
+
../src/lsmsvgmatrix.h \
|
227
|
+
../src/lsmsvgpathelement.c \
|
228
|
+
../src/lsmsvgpathelement.h \
|
229
|
+
../src/lsmsvgpatternelement.c \
|
230
|
+
../src/lsmsvgpatternelement.h \
|
231
|
+
../src/lsmsvgpolygonelement.c \
|
232
|
+
../src/lsmsvgpolygonelement.h \
|
233
|
+
../src/lsmsvgpolylineelement.c \
|
234
|
+
../src/lsmsvgpolylineelement.h \
|
235
|
+
../src/lsmsvgradialgradientelement.c \
|
236
|
+
../src/lsmsvgradialgradientelement.h \
|
237
|
+
../src/lsmsvgrectelement.c \
|
238
|
+
../src/lsmsvgrectelement.h \
|
239
|
+
../src/lsmsvgstopelement.c \
|
240
|
+
../src/lsmsvgstopelement.h \
|
241
|
+
../src/lsmsvgstyle.c \
|
242
|
+
../src/lsmsvgstyle.h \
|
243
|
+
../src/lsmsvgsvgelement.c \
|
244
|
+
../src/lsmsvgsvgelement.h \
|
245
|
+
../src/lsmsvgsymbolelement.c \
|
246
|
+
../src/lsmsvgsymbolelement.h \
|
247
|
+
../src/lsmsvgtextelement.c \
|
248
|
+
../src/lsmsvgtextelement.h \
|
249
|
+
../src/lsmsvgtraits.c \
|
250
|
+
../src/lsmsvgtraits.h \
|
251
|
+
../src/lsmsvgtspanelement.c \
|
252
|
+
../src/lsmsvgtspanelement.h \
|
253
|
+
../src/lsmsvgtypes.h \
|
254
|
+
../src/lsmsvguseelement.c \
|
255
|
+
../src/lsmsvguseelement.h \
|
256
|
+
../src/lsmsvgview.c \
|
257
|
+
../src/lsmsvgview.h \
|
258
|
+
../src/lsmtraits.c \
|
259
|
+
../src/lsmtraits.h \
|
260
|
+
../src/lsmtypes.h
|
261
|
+
|
262
|
+
CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
|
263
|
+
|
264
|
+
.SUFFIXES:
|
265
|
+
.SUFFIXES: .po .pox .gmo .mo .msg .cat
|
266
|
+
|
267
|
+
AM_DEFAULT_VERBOSITY = 0
|
268
|
+
INTLTOOL_V_MSGFMT = $(INTLTOOL__v_MSGFMT_$(V))
|
269
|
+
INTLTOOL__v_MSGFMT_= $(INTLTOOL__v_MSGFMT_$(AM_DEFAULT_VERBOSITY))
|
270
|
+
INTLTOOL__v_MSGFMT_0 = @echo " MSGFMT" $@;
|
271
|
+
|
272
|
+
.po.pox:
|
273
|
+
$(MAKE) $(GETTEXT_PACKAGE).pot
|
274
|
+
$(MSGMERGE) $* $(GETTEXT_PACKAGE).pot -o $*.pox
|
275
|
+
|
276
|
+
.po.mo:
|
277
|
+
$(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $<
|
278
|
+
|
279
|
+
.po.gmo:
|
280
|
+
$(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \
|
281
|
+
&& rm -f $$file && $(GMSGFMT) -o $$file $<
|
282
|
+
|
283
|
+
.po.cat:
|
284
|
+
sed -f ../intl/po2msg.sed < $< > $*.msg \
|
285
|
+
&& rm -f $@ && gencat $@ $*.msg
|
286
|
+
|
287
|
+
|
288
|
+
all: all-yes
|
289
|
+
|
290
|
+
all-yes: $(CATALOGS)
|
291
|
+
all-no:
|
292
|
+
|
293
|
+
$(GETTEXT_PACKAGE).pot: $(POTFILES)
|
294
|
+
$(GENPOT)
|
295
|
+
|
296
|
+
install: install-data
|
297
|
+
install-data: install-data-yes
|
298
|
+
install-data-no: all
|
299
|
+
install-data-yes: all
|
300
|
+
linguas="$(USE_LINGUAS)"; \
|
301
|
+
for lang in $$linguas; do \
|
302
|
+
dir=$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \
|
303
|
+
$(mkdir_p) $$dir; \
|
304
|
+
if test -r $$lang.gmo; then \
|
305
|
+
$(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
|
306
|
+
echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
|
307
|
+
else \
|
308
|
+
$(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
|
309
|
+
echo "installing $(srcdir)/$$lang.gmo as" \
|
310
|
+
"$$dir/$(GETTEXT_PACKAGE).mo"; \
|
311
|
+
fi; \
|
312
|
+
if test -r $$lang.gmo.m; then \
|
313
|
+
$(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
|
314
|
+
echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
|
315
|
+
else \
|
316
|
+
if test -r $(srcdir)/$$lang.gmo.m ; then \
|
317
|
+
$(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \
|
318
|
+
$$dir/$(GETTEXT_PACKAGE).mo.m; \
|
319
|
+
echo "installing $(srcdir)/$$lang.gmo.m as" \
|
320
|
+
"$$dir/$(GETTEXT_PACKAGE).mo.m"; \
|
321
|
+
else \
|
322
|
+
true; \
|
323
|
+
fi; \
|
324
|
+
fi; \
|
325
|
+
done
|
326
|
+
|
327
|
+
# Empty stubs to satisfy archaic automake needs
|
328
|
+
dvi info ctags tags CTAGS TAGS ID:
|
329
|
+
|
330
|
+
# Define this as empty until I found a useful application.
|
331
|
+
install-exec installcheck:
|
332
|
+
|
333
|
+
uninstall:
|
334
|
+
linguas="$(USE_LINGUAS)"; \
|
335
|
+
for lang in $$linguas; do \
|
336
|
+
rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
|
337
|
+
rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
|
338
|
+
done
|
339
|
+
|
340
|
+
check: all $(GETTEXT_PACKAGE).pot
|
341
|
+
rm -f missing notexist
|
342
|
+
srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m
|
343
|
+
if [ -r missing -o -r notexist ]; then \
|
344
|
+
exit 1; \
|
345
|
+
fi
|
346
|
+
|
347
|
+
mostlyclean:
|
348
|
+
rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
|
349
|
+
rm -f .intltool-merge-cache
|
350
|
+
|
351
|
+
clean: mostlyclean
|
352
|
+
|
353
|
+
distclean: clean
|
354
|
+
rm -f Makefile Makefile.in POTFILES stamp-it
|
355
|
+
rm -f *.mo *.msg *.cat *.cat.m *.gmo
|
356
|
+
|
357
|
+
maintainer-clean: distclean
|
358
|
+
@echo "This command is intended for maintainers to use;"
|
359
|
+
@echo "it deletes files that may require special tools to rebuild."
|
360
|
+
rm -f Makefile.in.in
|
361
|
+
|
362
|
+
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
|
363
|
+
dist distdir: $(DISTFILES)
|
364
|
+
dists="$(DISTFILES)"; \
|
365
|
+
extra_dists="$(EXTRA_DISTFILES)"; \
|
366
|
+
for file in $$extra_dists; do \
|
367
|
+
test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
|
368
|
+
done; \
|
369
|
+
for file in $$dists; do \
|
370
|
+
test -f $$file || file="$(srcdir)/$$file"; \
|
371
|
+
ln $$file $(distdir) 2> /dev/null \
|
372
|
+
|| cp -p $$file $(distdir); \
|
373
|
+
done
|
374
|
+
|
375
|
+
update-po: Makefile
|
376
|
+
$(MAKE) $(GETTEXT_PACKAGE).pot
|
377
|
+
tmpdir=`pwd`; \
|
378
|
+
linguas="$(USE_LINGUAS)"; \
|
379
|
+
for lang in $$linguas; do \
|
380
|
+
echo "$$lang:"; \
|
381
|
+
result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
|
382
|
+
if $$result; then \
|
383
|
+
if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
|
384
|
+
rm -f $$tmpdir/$$lang.new.po; \
|
385
|
+
else \
|
386
|
+
if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
|
387
|
+
:; \
|
388
|
+
else \
|
389
|
+
echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
|
390
|
+
rm -f $$tmpdir/$$lang.new.po; \
|
391
|
+
exit 1; \
|
392
|
+
fi; \
|
393
|
+
fi; \
|
394
|
+
else \
|
395
|
+
echo "msgmerge for $$lang.gmo failed!"; \
|
396
|
+
rm -f $$tmpdir/$$lang.new.po; \
|
397
|
+
fi; \
|
398
|
+
done
|
399
|
+
|
400
|
+
Makefile POTFILES: stamp-it
|
401
|
+
@if test ! -f $@; then \
|
402
|
+
rm -f stamp-it; \
|
403
|
+
$(MAKE) stamp-it; \
|
404
|
+
fi
|
405
|
+
|
406
|
+
stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in
|
407
|
+
cd $(top_builddir) \
|
408
|
+
&& CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
|
409
|
+
$(SHELL) ./config.status
|
410
|
+
|
411
|
+
# Tell versions [3.59,3.63) of GNU make not to export all variables.
|
412
|
+
# Otherwise a system limit (for SysV at least) may be exceeded.
|
413
|
+
.NOEXPORT:
|