]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/ChangeLog
some more gettext work
[lyx.git] / src / tex2lyx / ChangeLog
1 2004-05-27  Lars Gullik Bjonnes  <larsbj@gullik.net>
2
3         * Makefile.am (BUILT_SOURCES): move lengthcommon.C from here...
4         (tex2lyx_SOURCES): ... to here
5
6         * lengthcommon.C: new file
7
8 2004-04-30  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
9
10         * preamble.C: recognize \lyxdot
11         * text.C (parse_text): translate \lyxdot in graphics file names
12         * text.C (handle_ert): translate '\n' (fixes %-newline combinations
13         in \def commands)
14
15 2004-03-26  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
16
17         * text.C (parse_text): handle vspaces like '1cm' correctly
18
19 2004-02-01  Lars Gullik Bjonnes  <larsbj@gullik.net>
20
21         * text.C (parse_box): "\\" -> '\\' in calls to contains.
22
23 2004-01-07  Lars Gullik Bjonnes  <larsbj@gullik.net>
24
25         * text.C: reorder the using statements.
26         (translate_len): remove usage of a uninitialized variable.
27         (isLayout): make it adaptable and constify operator()
28         (findLayout): reformat slightly and dont use the same var for
29         different things.
30
31 2004-01-06  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
32
33         * text.C: fix status tag output for ERT inset
34
35 2003-12-17  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
36
37         * preamble.C: Change file format from 225 to 228
38         * text.C: Convert minipages and parboxes to box insets
39         * text.C: Changes for format 228 (see ../../development/FORMAT)
40         * text.C: Add lyxgreyedout environment
41         * context.[Ch]: New function Context::add_extra_stuff()
42
43 2003-12-08  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
44
45         * text.C: Use the new VSpace inset (fixes a bug with added_space top)
46         * text.C: Fix \= in tabbing env again
47         * text.C: Fix invocation of parse_command()
48
49 2003-11-18  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
50
51         * tex2lyx.C:
52         * tex2lyx.h:
53         * text.C: Read a list of commands and their arguments from a reLyX
54         compatible syntax file in order to parse optional argumnts correctly.
55         * preamble.C:
56         * table.C:
57         * text.C:
58         * tex2lyx.C:
59         * texparser.C
60         * math.C: change size() to !empty() where it was used as bool
61
62 2003-11-03  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
63
64         * math.C:
65         * table.C:
66         * text.C:
67         * context.[Ch]: New functions Context::set_item(),
68         Context::new_paragraph(ostream & os) and Context::atParagraphStart()
69         to make Context usage more explicit
70         * texparser.[Ch]: Rework Parser::tokenize (see comment in texparser.h)
71         * table.C:
72         * math.C:
73         * texparser.C: Don't silently drop comments
74         * texparser.C: Token::asInput() does not append a space anymore
75         * texparser.[Ch]: Renamed Parser::prev_token() to Parser::curr_token().
76         New function Parser::prev_token() returns now really the previous token
77         * Context.[Ch]:
78         * text.C: Convert known vspaces at paragraph start to \\added_space_top
79         * preamble.C: Don't put out newlines twice.
80         * text.C: Fix minipage position bug
81         * text.C: Fix \labelwidthstring bug
82         * text.C: Recognize alignment environments
83         * text.C: Fix a few cases of incorrect context usage, resulting
84         in missing or superflous \begin_layout / \end_laout lines.
85
86 2003-10-23  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
87
88         * math.C:
89         * preamble.C:
90         * table.C:
91         * tex2lyx.C:
92         * tex2lyx.h:
93         * texparser.C:
94         * texparser.h:
95         * text.C:
96         - add \text{}, \intertext{} and \fbox{} support in mathmode.
97         - add support for some math environments like displaymath
98         - allow parsing of partial documents (for inclusion with \input).
99         - steal commandline switches -c and -f from reLyX to support the
100                      previous point
101         - add support for lengths with comma (4,5cm instead of 4.5cm) to
102                      minipage environments. Handle \textwidth etc. without factor
103         - rearrange active_environments.[push,pop]back() so that they are always
104                called in pairs
105         - write an error message if layout file could not be found.
106         - convert \begin{comment}...\end{comment} to comment inset
107         - handle \= correctly inside tabbing environments
108         - fix multicolumn vertical rule bug in tables
109         - add missing \includegraphics options
110         - output minipages with latex lengths as ERT, since lyx cannot handle them
111         - recognize \textsl{}
112         - remove duplicate \ldots
113         - recognize \bibliographystyle and \bibliography
114         - handle \psfrag{ps-text}[ps-pos][tex-pos]{tex-text} correctly
115         - handle environments in table cells correctly
116         - add missing -userdir and -sysdir commandline switches
117         - recognize start of appendix
118         - handle optional arg to \item as ERT in itemize environment, since LyX
119                      does not support it directly
120
121 2003-10-18  Lars Gullik Bjønnes  <larsbj@gullik.net>
122
123         * Makefile.am (BUILT_SOURCES): use this instead of "linked_files"
124         and the link_files target. make the BUILT_SOURCES dependency
125         automatically link the needed files.
126
127 2003-10-14  Angus Leeming  <leeming@lyx.org>
128
129         * Makefile.am: move boost.C from the linked_files section
130         to the tex2lyx_SOURCES section.
131
132         * boost.C: new file. Simpler than the version in the main lyx source.
133         No reference to the emergencyCleanup stuff.
134
135         * tex2lyx.C: remove emergencyCleanup() stuff.
136
137 2003-10-08  Angus Leeming  <leeming@lyx.org>
138
139         Fix doxygen warnings.
140
141         * Spacing.h: \file Spacing.h -> \file tex2lyx/Spacing.h
142         * gettext.C: \file gettext.C -> \file tex2lyx/gettext.C
143         * gettext.h: \file gettext.h -> \file tex2lyx/gettext.h
144         * lyxfont.C: \file lyxfont.C -> \file tex2lyx/lyxfont.C
145         * lyxfont.h: \file lyxfont.h -> \file tex2lyx/lyxfont.h
146         * text.C:    \file text.C    -> \file tex2lyx/text.C
147
148 2003-09-26  Lars Gullik Bjønnes  <larsbj@gullik.net>
149
150         * tex2lyx.C: adjust for new debugstream.
151
152 2003-09-08  Angus Leeming  <leeming@lyx.org>
153
154         * math.C:
155         * preamble.C:
156         * table.C:
157         * tex2lyx.C:
158         * texparser.C: remove redundant using directives.
159
160 2003-08-19  Angus Leeming  <leeming@lyx.org>
161
162         * most files: add 'standard conformant' header blurb.
163         Also add Jean-Marc as an author where appropriate.
164
165 2003-08-08  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
166
167         * Makefile.am (EXTRA_DIST):
168         * test-insets.tex: new file. Describes the insets and special
169         characters that tex2lyx handles.
170
171         * text.C (parse_text): support \vref, \vpageref (only one optional
172         argument), \prettyref; add support for include inset; when \\ has
173         optional arguments, use ERT; support also \listoffigures,
174         \listoftables, and \listof{xxx} for existing float types;
175         translate lenghts properly for graphics inset.
176         (parse_environment): add support for minipages
177
178         * text.C (translate_len): A simple function to translate a latex
179         length to something lyx can understand. Not perfect, but rather
180         best-effort.
181
182 2003-08-07  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
183
184         * text.C (parse_text): special handling for \item and \bibitem
185         macros
186
187         * context.C (begin_layout, end_layout, begin_deeper, end_deeper):
188         tiny helper functions
189         (check_layout):
190         (check_end_deeper): add special handling for the case of a normal
191         paragraph inside a list-like environment.
192
193         * test-structure.tex: add more stuff there
194
195 2003-08-05  Alfredo Braunstein  <abraunst@libero.it>
196
197         * context.h: compile fix
198
199 2003-08-05  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
200
201         * text.C: some tweaks to make nesting work. What still does not
202         work is nesting a standard paragraph in a list.
203
204         * test-structure.tex: update a bit
205
206         * context.C (check_deeper, check_end_deeper): new methods to
207         handle the *_deeper stuff
208
209         * preamble.C (end_preamble): small tweaks
210
211 2003-08-03  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
212
213         * text.C: update to use Context struct, and more notably:
214         (cap, check_layout, check_end_layout): remove
215         (parse_text_snippet): new thin wrapper around parse_text, used for
216         things like \textrm{...}
217         (parse_environment): remove existing depth handling code, which is
218         handled transparently by the Context struct; make unknown
219         environments work (again?) through ERT
220
221         * test-structure.tex: new test file, used to try out various
222         layouts combinations
223
224         * tex2lyx.C:
225         * tex2lyx.h:
226         * table.C: update to use Context struct
227
228         * context.[Ch]: new helper struct which is passed to parse_*
229         functions and handles *_layout and *_deeper tags output
230
231         * Makefile.am (EXTRA_DIST): new file test-structure.tex
232         (tex2lyx_SOURCES): add context.[Ch]
233
234 2003-07-30  Angus Leeming  <leeming@lyx.org>
235
236         * Makefile.am: Hide the fact that we re-generate those symbolic links
237         brainlessly.
238
239 2003-07-29  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
240
241         * text.C (check_layout): \layout -> \begin_layout
242         (parse_text_in_inset): convenience function
243
244         * tex2lyx.C (main): \the_end -> \end_document
245
246         * preamble.C (end_preamble): update version number to 225
247
248         * text.C (parse_text): replace test on "lyxcode" with test on
249         LyXLayout::freespacing.
250         (check_end_layout): new function, used to check whether we need to
251         add an \end_layout
252
253 2003-07-28  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
254
255         * tex2lyx.C (clean_layouts): remove
256
257         * text.C: output lazily the \layout commands using the
258         check_layout function. Remove all explicit \layout tags.
259         (parse_text): pass an optional parameter 'layout'
260         (handle_par): remove
261
262         * text.C (output_command_layout): renamed from output_layout
263         (parse_environment): new method containing a part of parse_text
264
265         * tex2lyx.C:
266         * preamble.C:
267         * table.C: \begin_layout -> \layout. We are not quite ready for
268         that yet
269
270 2003-07-28  José Matos  <jamatos@lyx.org>
271
272         * text.C:
273         * tex2lyx.C:
274         * preamble.C:
275         * table.C: \layout -> \begin_layout.
276
277 2003-07-28  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
278
279         * text.C (parse_text): read environment from layout file too. Now,
280         all layout entries are supported (but many hacks remain); note
281         that the nesting support is broken and will have to be completely
282         redone
283         (parse_text): basic support for english double quotes
284
285         * table.C (handle_tabular): make the output more similar to LyX
286         and fix a little
287
288         * text.C (output_layout): fix handling of optional argument
289         (parse_text): small tweaks to make output format closer to lyx
290         format; support \tableofcontents; fix/improve support for various
291         special characters
292
293 2003-07-27  Angus Leeming  <leeming@lyx.org>
294
295         * Makefile.am: remove unused graphics_link_files cruft.
296         Thanks, Kayvan!
297
298 2003-07-27  Angus Leeming  <leeming@lyx.org>
299
300         * tex2lyx.C: add Debug::ANY hack.
301
302         * text.C: remove hardcoded command layouts.
303
304 2003-07-26  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
305
306         * text.C (parse_text): fix handling of \LaTeXe macro
307
308 2003-07-26  Angus Leeming  <leeming@lyx.org>
309
310         * Spacing.h:
311         * lyxfont.[Ch]:
312         * gettext.[Ch]: minimal (near empty) analogues of the real LyX
313         files; enough to get LyXTextClass and LyXLayout to compile without
314         needing to store any real information about Spacing or Font.
315
316         * Makefile.am: add these files above and also include a minimal
317         chunk of the main lyx source tree as soft links in order to add in
318         LyXTextClass and LyXLayout.
319
320         * .cvsignore: add all these soft links.
321
322         * preamble.C (end_preamble): passed a LyXTextClass arg.
323         (parse_preamble): returns the document LyXTextClass.
324
325         * tabular.C (handle_tabular): passed a LyXTextClass arg. In turn
326         pass it to parse_text.
327
328         * tex2lyx.C: add some global vars, build_lyxdir et al. For now,
329         give them some horrible hard-coded value.
330         (main): receive a LyXTextClass var from parse_preamble and pass it
331         on to parse_text.
332
333         * text.C (parse_text): receives a LyXTextClass arg. Use it to
334         remove the hard-coded handling of floats and instead check the
335         textclass for its existence. Also handle wide floats naturally.
336
337         * tex2lyx.h: associated changes to function declarations.
338
339 2003-07-18  Lars Gullik Bjønnes  <larsbj@gullik.net>
340
341         * texparser.C (catInit): same warning avoidance as in math_parser.C
342         (setCatCode): cast to safe type
343         (getCatCode): ditto
344
345 2003-05-17  Joao Luis M. Assirati  <assirati@fma.if.usp.br>
346
347         * texparser.C: fix paragraph parsing after comment
348
349 2003-04-29  André Pönitz  <poenitz@gmx.net>
350
351         * Makefile.am:
352           texparser.h: whitespace
353
354 2003-04-20  Kayvan A. Sylvan  <kayvan@sylvan.com>
355
356         * table.C: use string::erase(), not string::clear() to enable older
357         versions of gcc to compile the code.
358
359 2003-04-17  André Pönitz  <poenitz@gmx.net>
360
361         * math.C:
362           preamble.C:
363           table.C:
364     text.C: new files
365
366         * table.C: better table handling
367
368         * tex2lyx.C: lots of small changes
369
370 2003-02-25  Angus Leeming  <leeming@lyx.org>
371
372         * .cvsignore: ignore *.lo and libtexparser.la.
373
374 2003-02-20  Angus Leeming  <leeming@lyx.org>
375
376         * tex2lyx.C: swap <sstream> for "Lsstream.h".
377
378 2003-02-11  Angus Leeming  <leeming@lyx.org>
379
380         * tex2lyx.C (handle_opt): prevent infinite loop if opts is empty.
381         (handle_package): new function, factoring code out of Parser::parse.
382         (trim): copied across from support/lstrings.C
383         (Parser::parse): handle '\usepackage{foo, bar}'.
384
385 2003-02-11  André Pönitz  <poenitz@gmx.net>
386
387         * tex2lyx.C: first shot at real code
388
389 2003-02-11  Angus Leeming  <leeming@lyx.org>
390
391         * .cvsignore: new file.
392
393 2003-02-10  Angus Leeming  <leeming@lyx.org>
394
395         * Makefile.am: empty, dummy file so that autogen.sh and configure
396         are happy.