Uwe Stöhr
d8611f25f2
tex2lyx: remove some superfluous code
...
text.cpp: besides that eat_whitespace does nothing these calls would be wrong as whitespace is allowed as argument of the box commands
2012-07-06 23:35:33 +02:00
Uwe Stöhr
02b6586ad7
update a tex2lyx test file
...
box-color-size-space-align.tex:
- add all possible math spaces
- remove 2 invalid non-math spaces
2012-07-06 23:33:28 +02:00
Uwe Stöhr
487c8b5bd3
tex2lyx: update a command
...
Parser.cpp: improve a command as discussed
2012-07-03 00:39:41 +02:00
Juergen Spitzmueller
555ae019b8
update tex2lyx TODO
2012-07-01 14:48:20 +02:00
Juergen Spitzmueller
11f7efe2eb
Set the appropriate quote style when switching the main language
2012-07-01 11:27:42 +02:00
Juergen Spitzmueller
837869452a
Add quote style information to languages
2012-07-01 11:25:52 +02:00
Juergen Spitzmueller
507302b444
Whitespace
2012-07-01 08:38:54 +02:00
Uwe Stöhr
56f0e0c4fc
tex2lyx/Parser.cpp: refine \verb handling
2012-07-01 02:12:56 +02:00
Uwe Stöhr
d10063fd20
polyglossia tex2lyx coding style improvement
...
- Preamble.cpp/:
- move list definition out of anon namespace
- declare lists and a function in the class
- text.cpp: remove the now already defined list
2012-07-01 01:47:39 +02:00
Uwe Stöhr
85c479f4e7
test-structure.tex: add checks for \verb
2012-06-30 15:29:53 +02:00
Juergen Spitzmueller
e903d0158e
Whitespace
...
If someone can tell me how I can tell QtCreator to actually use tabs, not spaces, I would be most grateful (yes, I have set Tab Policy to Tabs Only in Prefs)
2012-06-30 13:45:58 +02:00
Juergen Spitzmueller
5eb9ece39e
Properly escape splitindex shortcut and try to encode splitindex name properly (part of bug #8227 )
2012-06-30 13:34:49 +02:00
Juergen Spitzmueller
51d591d168
Factor out method to get a properly encoded latex string
2012-06-30 13:30:48 +02:00
Uwe Stöhr
708979fb0e
tex2lyx: whitespace only
2012-06-30 03:38:02 +02:00
Uwe Stöhr
80884330d1
tex2lyx: fix handling of \verb
...
- Parser.cpp: \verb can have any character as delimiter (except of ASCII letters) not only '+', therefore partly revert [3943b887/lyxgit] and fix it for all cases
2012-06-30 03:25:19 +02:00
Uwe Stöhr
85ef627eac
fix mistake in tex2lyx testfile
...
- XeTeX-polyglossia.tex: Hebrew is used in the file and so it must be declared
2012-06-30 02:21:15 +02:00
Juergen Spitzmueller
0062538a54
Add some more characters that need to be escaped in labels etc.
2012-06-30 01:24:40 +02:00
Jean-Marc Lasgouttes
bbbc2b6541
Fix to #8159 : Undo doesn't restore environment depth correctly
...
The idea is to record undo at the place where the document is modified:
1/ in Buffer::updateBuffer, add a recordUndo, with the caveat that a
const_cast has to be used (because updateBuffer is const but
modifies the document, go figure).
2/ in GuiApplication::dispatch, add an extra undo group that
encompasses the updateBuffer call. Some other undo groups may be
redundant now, but it is not a problem since they do not cost
anything.
2012-06-29 15:25:47 +02:00
Jean-Marc Lasgouttes
c22334eb3b
Revert "Tentative fix to #8159 : Undo doesn't restore environment depth correctly"
...
This reverts commit e3854bb59b
.
2012-06-29 15:22:24 +02:00
Pavel Sanda
e43f9d3bbd
Revert a6e42e5079
.
...
Removing debug.h makes debugging via lyxerr<< twice as hard.
2012-06-28 20:52:20 +02:00
Juergen Spitzmueller
6de47fa873
fix bug #8209 : polyglossia commands ignored partial source preview
2012-06-28 18:15:43 +02:00
Uwe Stöhr
2c9310d935
tex2lyx: fix a typo
...
tex2lyx/text.cpp: the encoding must be _set_ here
2012-06-27 23:58:16 +02:00
Uwe Stöhr
8f7195a251
tex2lyx: fix a logic mistake
...
Preamble.cpp: set missing begin position for the search; thanks Vincent for spotting
2012-06-27 23:18:02 +02:00
Uwe Stöhr
d1800d4d5a
tex2lyx: reprivatize another variable
2012-06-27 22:48:22 +02:00
Uwe Stöhr
b6192b7c7f
texlyx: re-privatize a variable as suggested
2012-06-27 22:32:36 +02:00
Uwe Stöhr
62db3d535d
tex2lyx: fix some issues spotted by Vincent
2012-06-27 02:52:09 +02:00
Uwe Stöhr
4ab764c845
BoxUi.ui: revert unintended commit [a6e42e50/lyxgit]
2012-06-26 22:46:06 +02:00
Uwe Stöhr
a6e42e5079
removed unused includes
...
these files don't use the debug.h and also don't contain commented out debug code
2012-06-26 22:41:53 +02:00
Vincent van Ravesteijn
dfb8dc91c1
Update the button text of InsetInclude insets
...
The button text of InsetInclude insets shows whether the child document is
included or excluded from compilation. Changing this for a child document
in the document settings does not get reflected on screen. This patch
updates the button text on the updateBuffer() call.
2012-06-26 20:41:25 +02:00
Uwe Stöhr
2e8ed3b3b5
tex2lyx: support fontspec scale option
...
Preamble.cpp:
- support the font scaling
- improve coding style
text.cpp: - improve logic/coding style
XeTeX-polyglossia.tex:
- add scaling
- change document so that it is compilable using the Libertine font
2012-06-26 00:46:02 +02:00
Uwe Stöhr
d3bcdb24cc
tex2lyx/text.cpp: fix bug #8223
...
LyX does not yet support \framebox without an option we therefore cannot use our parse_outer_box routine (this is only for supported boxes)
2012-06-25 22:58:21 +02:00
Vincent van Ravesteijn
8941e980b9
BufferParams: Remove superfluous '\n'
...
This extra '\n' seems to have been an unintended side-effect of d7eaaba9
(Juergen Spitzmueller, "support for CJK font argument"; Jun 5 2008).
2012-06-25 11:28:38 +02:00
Vincent van Ravesteijn
e20238e21f
tex2lyx: Remove superfluous '\n'
...
Instead of adding the extra '\n' to tex2lyx, we should remove it from
BufferParams.cpp because it was introduced there unintendedly in d7eaaba9
(Juergen Spitzmueller; "support for CJK font argument"; Jun 5 2008).
This partly reverts commit c2810f922665c591a7c32d4c679e58e55132505a.
2012-06-25 11:26:20 +02:00
Jean-Marc Lasgouttes
2a13b02a94
Fix bug #8220 : tex2lyx crashes on single-character commands
...
Fix commit [aa9fed93/lyxgit]: it is never a good idea to call substr(4) on a string without checking its length. Moreover, it is even better in this case to check that the first letters are "text" as the reminder of the code assumes...
2012-06-25 11:04:56 +02:00
Uwe Stöhr
66e3ac003f
fix bug #8210
...
we need to store the document language from the beginning of the document in the context to be able to handle all kinds of language switch commands
2012-06-24 18:24:28 +02:00
Uwe Stöhr
8e7b5eebf0
update tex2lyx todo list
...
- Japanese is now supported as well as CJK
- also all XeTeX issues are now ironed out
- the support for ArmTeX has been dropped meanwhile
2012-06-24 18:20:19 +02:00
Uwe Stöhr
5ad84b9fbd
support non-CJK Japanese for tex2lyx
...
We cannot know the exact encoding and thus con only assume one (the one that Koji uses for the docs) and output a not at the beginning
2012-06-24 18:10:36 +02:00
Uwe Stöhr
adb0d7f63f
support synctex in tex2lyx.cpp
...
- tex2lyx/Preamble.cpp/h: handle \synctex and package srcltx
- tex2lyx/test/test-structure.tex: add \synctex
2012-06-24 16:59:21 +02:00
Uwe Stöhr
5d79cd531d
tex2lyx/Preamble.cpp: fix a typo
2012-06-24 15:37:51 +02:00
Uwe Stöhr
e1b181ddd4
update tex2lyx header format really to fileformat 433
...
- tex2lyx/Preamble.cpp/h: not all new header definitions since fileformat 413 have yet been added to texl2yx, so do it now; also change some new default values
2012-06-24 15:29:32 +02:00
Juergen Spitzmueller
4c2ae219e1
whitespace
2012-06-24 15:15:31 +02:00
Uwe Stöhr
47f7d44747
fix bug #8215
...
Font.cpp: CJK parts must not have a closing brace because they are within an environment
2012-06-24 14:42:23 +02:00
Uwe Stöhr
e7d1e5b0c9
tex2lyx comment corrections
...
tex2lyx/Preamble.cpp, tex2lyx/text.cpp: add info about CJK languages
2012-06-24 14:39:57 +02:00
Juergen Spitzmueller
dac9ec0c13
Merge branch 'master' of git.lyx.org:lyx
2012-06-24 10:57:02 +02:00
Juergen Spitzmueller
5b374e0c29
do not output empty language switch commands (bug #8216 )
2012-06-24 10:56:08 +02:00
Uwe Stöhr
a3f4f2d1e3
CJK support for tex2lyx
...
- support as best as possible; setting a document language is however not possible
- fixes bug #4377
2012-06-24 06:38:33 +02:00
Uwe Stöhr
3943b887a8
tex2lyx/Parser.cpp: fix bug #4468 : single '\' are allowed in the special case of '+' as comment argument delimiter
2012-06-23 20:00:49 +02:00
Uwe Stöhr
d37bb54e7b
- language: Kurmanji is since 2009 also supported by babel; no fileformat change necessary because Kurmanji is already covered by fileformat 432
...
- tex2lyx/Preamble.cpp: babel support for Kurmanji and remove comment residues of ArmTeX whose support was removed by fileformat 433
2012-06-23 18:56:10 +02:00
Uwe Stöhr
7a103ba6d7
tex2lyx/Preamble.cpp: remove a FIXME, the problem was only in trunk (bug #8211 ) and is now fixed
2012-06-23 16:57:22 +02:00
Juergen Spitzmueller
ca16190006
fix bug #8208 : missing \end for polyglossia-only languages at buffer end
2012-06-23 15:44:25 +02:00