]> git.lyx.org Git - lyx.git/log
lyx.git
11 years agoImplement new LFUN buffer-forall [<BUFFER-TYPE>] <LFUN-COMMAND>
Jean-Marc Lasgouttes [Fri, 20 Jul 2012 08:50:29 +0000 (10:50 +0200)]
Implement new LFUN buffer-forall [<BUFFER-TYPE>] <LFUN-COMMAND>

This is a patch from Scott Kostyshak. See the thread here for some
background info:
http://thread.gmane.org/gmane.editors.lyx.devel/142300/focus=142362

11 years agoMimic the autoconf behaviour to select only
Kornel Benko [Fri, 20 Jul 2012 07:47:22 +0000 (09:47 +0200)]
Mimic the autoconf behaviour to select only
configured GUI languages.
Data are assembled at "cmake" time only

11 years agoTypo + missing dependencies in cmake build
Kornel Benko [Thu, 19 Jul 2012 11:52:07 +0000 (13:52 +0200)]
Typo + missing dependencies in cmake build

11 years agoPort handling of installed languages (commit ed1515ef69d0381e9b0657cf1966f9d86e0cb25f)
Kornel Benko [Thu, 19 Jul 2012 09:54:22 +0000 (11:54 +0200)]
Port handling of installed languages (commit ed1515ef69d0381e9b0657cf1966f9d86e0cb25f)
to cmake build

11 years ago* sk.po
Kornel Benko [Thu, 19 Jul 2012 09:53:04 +0000 (11:53 +0200)]
* sk.po

11 years agoRead list of translated languages from a file
Jean-Marc Lasgouttes [Wed, 18 Jul 2012 22:02:56 +0000 (00:02 +0200)]
Read list of translated languages from a file

The previous scheme of loading all possible translations and checking whether the work
is a bit too much "brute force" and causes problems on Mac OS X (documents loaded
with the wrong language).

In the new scheme, autotools install a file lib/installed_translations that contains a list of installed languages (the .gmo files that got installed). This file is read
in Languages::readInstalledTranslations and allows to set the translated() property
of each language.

11 years agoFix bug #8254: An encoding problem
Enrico Forestieri [Wed, 18 Jul 2012 20:20:46 +0000 (22:20 +0200)]
Fix bug #8254: An encoding problem

Use the short version of a path, which is guaranteed to be ascii and
works even if the path is not encodable in the current codepage.

11 years agoMake sure that undo is recorded when magic tricks are played with InsetBibitem.
Jean-Marc Lasgouttes [Tue, 17 Jul 2012 21:59:04 +0000 (23:59 +0200)]
Make sure that undo is recorded when magic tricks are played with InsetBibitem.

Fixes bug #7111: Assertion with undo and InsetBibitem

  * add Paragraph::brokenBiblio(), with tells whether there is something to fix.
  * rename Paragraph::checkBiblio to fixBiblio; simplify it greatly by using
    InsetList methods
  * In TextMetrics::redoParagraph, call recordUndo before fixBiblio (only when
    there is something to fix obviously)

Special care is taken to update cursor only when it makes sense. Note
that there are cases where undo information is not recorded (current
cursor not in the slice where action happens)

11 years agodeactivate ~ in Basque, Estonian and Galician (bug #8265)
Juergen Spitzmueller [Wed, 18 Jul 2012 11:01:10 +0000 (13:01 +0200)]
deactivate ~ in Basque, Estonian and Galician (bug #8265)

11 years agoAdd \makeat switches to babel settings if necessary.
Juergen Spitzmueller [Wed, 18 Jul 2012 10:41:53 +0000 (12:41 +0200)]
Add \makeat switches to babel settings if necessary.

Babel settings might contain @ characters. Check for this and wrap the settings into \makeatletter ... \makeatother switches if necessary (see discussion at #8265).

11 years agoDo not kill the undo stack when doing a Save As...
Jean-Marc Lasgouttes [Wed, 18 Jul 2012 08:31:47 +0000 (10:31 +0200)]
Do not kill the undo stack when doing a Save As...

The code does a reload on the buffer to avoid loose pointers if the
file changes directory. This commit adds a bool parameter to
Buffer::reload to allow for keeping the undo stack intact. This is of
couse only wanted in this case, not when reloading an earlier version
of the file.

11 years agoFix crash introduced in my previous commit f6b1c24b
Jean-Marc Lasgouttes [Tue, 17 Jul 2012 20:26:44 +0000 (22:26 +0200)]
Fix crash introduced in my previous commit f6b1c24b

Cursor::fixIfBroken does not do what I thought it did. Lift some code
from StableDocIterator::asDocIterator instead.

11 years agoFix bug #8242: undo fails for longest label width
Jean-Marc Lasgouttes [Mon, 16 Jul 2012 21:39:24 +0000 (23:39 +0200)]
Fix bug #8242: undo fails for longest label width

In the existing code for setting layout of pragraph parameters,
Text::undoSpan is used to "guess" which paragraphs should be saved in Undo.
With this patch the approach is more precise: before every explicit change
to a paragraph, a Cursor::recordUndo call is inserted. This is much more robust than trying to guess.

In particular, we do not look at depth changes at all, since they are now
handled in updateBuffer since #8159 has been fixed.

11 years agoMake the toolbar code less noisy when the session file is not found
Jean-Marc Lasgouttes [Mon, 16 Jul 2012 21:11:26 +0000 (23:11 +0200)]
Make the toolbar code less noisy when the session file is not found

11 years agoTypo introduced in commit 16fd47ad.
Jean-Marc Lasgouttes [Sun, 15 Jul 2012 22:27:58 +0000 (00:27 +0200)]
Typo introduced in commit 16fd47ad.

11 years agoAdd comment in lstrings.h
Pavel Sanda [Sun, 15 Jul 2012 21:25:34 +0000 (23:25 +0200)]
Add comment in lstrings.h

11 years agoFix bug #7741: incorrect locale when starting R from LyX?
Jean-Marc Lasgouttes [Sun, 15 Jul 2012 20:22:10 +0000 (22:22 +0200)]
Fix bug #7741: incorrect locale when starting R from LyX?

The goal here is to get rid of the old code that modified variables
LANGUAGE and LC_ALL, therefore creating the problems mentionned
in the ticket.

In the new system, there is no explicit "GUI" message handler, that
needs to be reset at each language change. Instead, getGuiMessages
calls getMessages with the correct parameter. This allows to simplify
greatly the code and to remove a lot of old cruft.

11 years agoFix bug #5204: Undo removes text selection
Jean-Marc Lasgouttes [Sun, 15 Jul 2012 16:16:09 +0000 (18:16 +0200)]
Fix bug #5204: Undo removes text selection

This commit does a bit more than fix selection, since it saves the full cursor state
in the undo stack. This means that undo now restores:
* the selection
* the current font
* transient mark (shall we keep this one?), logical position...

In order to do that, it introduces an intermediate class between Cursor and DotIterator: CursorData.
The new inheritance diagram is thus
  DocIteraator -> CursorData -> Cursor

CursorData contains all the members of Cursor that define the current position, but not the stuff
related to current view of dispatch mechanism. It may make sense in the future to move members
between CursorData and Cursor and to move some member functions to CursorData.

Now UndoElement uses CursorData for cur_before and cur_after, but not for the cell. The undo API uses
also CursorData instead of DocIterator.

11 years agoAdd "Close Current View" to the context menu, as requested by
Richard Heck [Sun, 15 Jul 2012 02:16:13 +0000 (22:16 -0400)]
Add "Close Current View" to the context menu, as requested by
Andrew Parsloe.

11 years agoLFUN_CLOSE_TAB_GROUP does exactly the same thing as
Richard Heck [Sun, 15 Jul 2012 02:13:40 +0000 (22:13 -0400)]
LFUN_CLOSE_TAB_GROUP does exactly the same thing as
LFUN_BUFFER_CLOSE_ALL if there's only one tab group open, so there's
no need to enable it in that case.

11 years agoAPA.lyx: improve a comment
Uwe Stöhr [Sat, 14 Jul 2012 14:05:06 +0000 (16:05 +0200)]
APA.lyx: improve a comment

11 years agoSpanish docs update
Uwe Stöhr [Thu, 12 Jul 2012 22:52:49 +0000 (00:52 +0200)]
Spanish docs update

- Spanish Additional.lyx: update for trunk only

11 years agoadd new Spanish examples
Uwe Stöhr [Thu, 12 Jul 2012 22:19:42 +0000 (00:19 +0200)]
add new Spanish examples

- Spanish europeCV.lyx and modernCV.lyx: new files
- English europeCV.lyx: replace TeX-code by LyX's \nocite feature

11 years agoes.po: updates from Ignacio for trunk
Uwe Stöhr [Thu, 12 Jul 2012 21:57:07 +0000 (23:57 +0200)]
es.po: updates from Ignacio for trunk

11 years agoFix bug #8160 by updating the dtd for MathML.
Richard Heck [Tue, 10 Jul 2012 22:07:07 +0000 (18:07 -0400)]
Fix bug #8160 by updating the dtd for MathML.

11 years agoFix stupid typo.
Richard Heck [Tue, 10 Jul 2012 21:11:37 +0000 (17:11 -0400)]
Fix stupid typo.

11 years agoMake CJK.lyx exportable.
Georg Baum [Sun, 8 Jul 2012 20:35:22 +0000 (22:35 +0200)]
Make CJK.lyx exportable.

If there was an encoding set by the inputenc package, it must not be ignored.
Now all tex2lyx test cases can be exported to .tex again by LyX (although
there are still some differences in the .lyx output).

11 years agoFix tex2lyx -roundtrip for XeTeX documents
Georg Baum [Sun, 8 Jul 2012 19:33:55 +0000 (21:33 +0200)]
Fix tex2lyx -roundtrip for XeTeX documents

11 years agotex2lyx: fix a regression
Uwe Stöhr [Sun, 8 Jul 2012 19:32:26 +0000 (21:32 +0200)]
tex2lyx: fix a regression

Preamble.cpp: - partly revert [e1b181dd/lyxgit] because the math packages cannot by default be loaded as the user might have defined special commands

11 years agoDon't stop testing after first error.
Georg Baum [Sun, 8 Jul 2012 18:52:26 +0000 (20:52 +0200)]
Don't stop testing after first error.

This was the reason why I forgot to update the last test file in the last
commit.

11 years agoManually update test results to current format.
Georg Baum [Sun, 8 Jul 2012 18:09:02 +0000 (20:09 +0200)]
Manually update test results to current format.

Now you can see the regressions without differences caused by real
fixes or file format updates.

11 years agoAdd very simple tex2lyx regression test suite.
Georg Baum [Sun, 8 Jul 2012 17:28:19 +0000 (19:28 +0200)]
Add very simple tex2lyx regression test suite.

It is invoked by 'make check' (automake only, it would be nice if someone
could add it to cmake as well), or by calling

python src/tex2lyx/test/runtests.py <path to tex2lyx binary>

by hand. Currently, it does not compare the output (this comes later).
The added .lyx files are from tex2lyx around mid of april, so that you
can see the regressions of the current version if you run the test
yourself (simply run git diff afterwards).

The home made test runner is quite stupid, but better than nothing.
Feel free to improve it or replace it with something better, as long
as running it stays as simple as now.

11 years agoInclude the recently added test files in package
Georg Baum [Sun, 8 Jul 2012 16:12:26 +0000 (18:12 +0200)]
Include the recently added test files in package

11 years agoinstaller: rename install folder as discussed
Uwe Stöhr [Sun, 8 Jul 2012 13:48:26 +0000 (15:48 +0200)]
installer: rename install folder as discussed

- the proposed install folder is now "LyX 2.0" as discussed
- promote our wiki and also our website (as almost all other programs do as well and which is quite helpful)

11 years agotex2lyx/text.cpp: fix typos
Uwe Stöhr [Sat, 7 Jul 2012 11:40:07 +0000 (13:40 +0200)]
tex2lyx/text.cpp: fix typos

11 years agotex2lyx: improve CJK handling
Uwe Stöhr [Sat, 7 Jul 2012 11:37:26 +0000 (13:37 +0200)]
tex2lyx: improve CJK handling

- tex2lyx/text.cpp:
 - fix bug that swallowed valid braces
 - the encoding is "Bg5" not "BIG5"
 - add and update comments

- CJK.tex: add an example for the Bg5 encoding

11 years agodocs: port fix and update description of labeling
Uwe Stöhr [Sat, 7 Jul 2012 00:00:37 +0000 (02:00 +0200)]
docs: port fix and update description of labeling

- UserGuide.lyx: fix description of the labeling lists, fixes also bug #8224
- German UserGuide.lyx: adapt some sections to be compliant with the other language variants

11 years agotex2lyx: remove some superfluous code
Uwe Stöhr [Fri, 6 Jul 2012 21:35:33 +0000 (23:35 +0200)]
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

11 years agoupdate a tex2lyx test file
Uwe Stöhr [Fri, 6 Jul 2012 21:33:28 +0000 (23:33 +0200)]
update a tex2lyx test file

box-color-size-space-align.tex:
 - add all possible math spaces
 - remove 2 invalid non-math spaces

11 years agoremove an obsolete layout file
Uwe Stöhr [Fri, 6 Jul 2012 20:34:02 +0000 (22:34 +0200)]
remove an obsolete layout file

as the support for the buggy and outdated ArmTeX was removed, this layout is now obsolete and can also be removed

11 years ago* sk.po
Kornel Benko [Thu, 5 Jul 2012 15:42:04 +0000 (17:42 +0200)]
* sk.po

12 years agoHandle version numbers like 2.0.5dev in LYX_CHECK_VERSION
Jean-Marc Lasgouttes [Wed, 4 Jul 2012 10:18:15 +0000 (12:18 +0200)]
Handle version numbers like 2.0.5dev in LYX_CHECK_VERSION

12 years ago1.) Typo in checking for spaces <=> menu shortcuts
Kornel Benko [Tue, 3 Jul 2012 12:36:44 +0000 (14:36 +0200)]
1.) Typo in checking for spaces <=> menu shortcuts
2.) Do not use [[...]] strings in msgid to be checked

12 years agoinstaller: 3 fixes
Uwe Stöhr [Mon, 2 Jul 2012 23:42:30 +0000 (01:42 +0200)]
installer: 3 fixes

- uninstall.nsh: don't uninstall the user preferences by default
- configure.nsh:
 - set also the .lyx file association when the user is not admin
 - fix the path in which the LyX start menu shortcut is executed

12 years agoupdate APA template file
Uwe Stöhr [Mon, 2 Jul 2012 22:56:39 +0000 (00:56 +0200)]
update APA template file

APA.lyx: the template missed the \notes command

12 years agofix for APA layout
Uwe Stöhr [Mon, 2 Jul 2012 22:54:50 +0000 (00:54 +0200)]
fix for APA layout

- apa.layout: the commands \volume, \copnum and \notes are only allowed in the preamble; fixes bug #8187

12 years agoMerge branch 'master' of git.lyx.org:lyx
Uwe Stöhr [Mon, 2 Jul 2012 22:40:23 +0000 (00:40 +0200)]
Merge branch 'master' of git.lyx.org:lyx

12 years agotex2lyx: update a command
Uwe Stöhr [Mon, 2 Jul 2012 22:39:41 +0000 (00:39 +0200)]
tex2lyx: update a command

Parser.cpp: improve a command as discussed

12 years agoPort changes to update-po.sh script to trunk.
Richard Heck [Mon, 2 Jul 2012 21:48:24 +0000 (17:48 -0400)]
Port changes to update-po.sh script to trunk.

12 years agoFix typo.
Richard Heck [Mon, 2 Jul 2012 21:43:47 +0000 (17:43 -0400)]
Fix typo.

12 years agoinstaller: fix a permission right issue
Uwe Stöhr [Mon, 2 Jul 2012 21:37:15 +0000 (23:37 +0200)]
installer: fix a permission right issue

We must prevent that LyX is installed as admin and then afterwards the same LyX version also without admin privileges.

12 years ago* sk.po
Kornel Benko [Mon, 2 Jul 2012 21:27:29 +0000 (23:27 +0200)]
* sk.po

12 years agoinstaller: fix a typo in translation
Uwe Stöhr [Mon, 2 Jul 2012 21:04:18 +0000 (23:04 +0200)]
installer: fix a typo in translation

12 years agoDocument QuoteStyle options
Juergen Spitzmueller [Mon, 2 Jul 2012 08:50:06 +0000 (10:50 +0200)]
Document QuoteStyle options

12 years agoMerge branch 'master' of git.lyx.org:lyx
Uwe Stöhr [Sun, 1 Jul 2012 14:15:55 +0000 (16:15 +0200)]
Merge branch 'master' of git.lyx.org:lyx

12 years agoelsarticle already provides refstyle
Uwe Stöhr [Sun, 1 Jul 2012 14:15:42 +0000 (16:15 +0200)]
elsarticle already provides refstyle

- elsarticle.layout: elsarticle already provides refstyle thus the document becomes uncompilable if we don't declare this in the layout

Also OK for branch?

12 years agoupdate tex2lyx TODO
Juergen Spitzmueller [Sun, 1 Jul 2012 12:48:20 +0000 (14:48 +0200)]
update tex2lyx TODO

12 years agoSet the appropriate quote style when switching the main language
Juergen Spitzmueller [Sun, 1 Jul 2012 09:27:42 +0000 (11:27 +0200)]
Set the appropriate quote style when switching the main language

12 years agoAdd quote style information to languages
Juergen Spitzmueller [Sun, 1 Jul 2012 09:25:52 +0000 (11:25 +0200)]
Add quote style information to languages

12 years agoWhitespace
Juergen Spitzmueller [Sun, 1 Jul 2012 06:38:54 +0000 (08:38 +0200)]
Whitespace

12 years agotex2lyx/Parser.cpp: refine \verb handling
Uwe Stöhr [Sun, 1 Jul 2012 00:12:56 +0000 (02:12 +0200)]
tex2lyx/Parser.cpp: refine \verb handling

12 years agopolyglossia tex2lyx coding style improvement
Uwe Stöhr [Sat, 30 Jun 2012 23:47:39 +0000 (01:47 +0200)]
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

12 years agoFix #8201: our translation mechanism chokes on the character "
Pavel Sanda [Sat, 30 Jun 2012 17:19:38 +0000 (19:19 +0200)]
Fix #8201: our translation mechanism chokes on the character "

12 years agotest-structure.tex: add checks for \verb
Uwe Stöhr [Sat, 30 Jun 2012 13:29:53 +0000 (15:29 +0200)]
test-structure.tex: add checks for \verb

12 years agoWhitespace
Juergen Spitzmueller [Sat, 30 Jun 2012 11:45:58 +0000 (13:45 +0200)]
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)

12 years agoProperly escape splitindex shortcut and try to encode splitindex name properly (part...
Juergen Spitzmueller [Sat, 30 Jun 2012 11:34:49 +0000 (13:34 +0200)]
Properly escape splitindex shortcut and try to encode splitindex name properly (part of bug #8227)

12 years agoFactor out method to get a properly encoded latex string
Juergen Spitzmueller [Sat, 30 Jun 2012 11:30:48 +0000 (13:30 +0200)]
Factor out method to get a properly encoded latex string

12 years agotex2lyx: whitespace only
Uwe Stöhr [Sat, 30 Jun 2012 01:38:02 +0000 (03:38 +0200)]
tex2lyx: whitespace only

12 years agotex2lyx: fix handling of \verb
Uwe Stöhr [Sat, 30 Jun 2012 01:25:19 +0000 (03:25 +0200)]
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

12 years agofix mistake in tex2lyx testfile
Uwe Stöhr [Sat, 30 Jun 2012 00:21:15 +0000 (02:21 +0200)]
fix mistake in tex2lyx testfile

- XeTeX-polyglossia.tex: Hebrew is used in the file and so it must be declared

12 years agoAdd some more characters that need to be escaped in labels etc.
Juergen Spitzmueller [Fri, 29 Jun 2012 23:24:40 +0000 (01:24 +0200)]
Add some more characters that need to be escaped in labels etc.

12 years agoFix to #8159: Undo doesn't restore environment depth correctly
Jean-Marc Lasgouttes [Mon, 4 Jun 2012 16:02:59 +0000 (18:02 +0200)]
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.

12 years agoRevert "Tentative fix to #8159: Undo doesn't restore environment depth correctly"
Jean-Marc Lasgouttes [Fri, 29 Jun 2012 13:22:24 +0000 (15:22 +0200)]
Revert "Tentative fix to #8159: Undo doesn't restore environment depth correctly"

This reverts commit e3854bb59b98ee4f7514cf2ca5585cb6be949186.

12 years ago* FORMAT: drop the recent tradition of recording the commit checksum.
Pavel Sanda [Thu, 28 Jun 2012 18:55:29 +0000 (20:55 +0200)]
* FORMAT: drop the recent tradition of recording the commit checksum.

The same info can be easily obtained via blame and can not be done
correctly in git.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg174395.html

12 years agoRevert a6e42e50791d.
Pavel Sanda [Thu, 28 Jun 2012 18:52:20 +0000 (20:52 +0200)]
Revert a6e42e50791d.

Removing debug.h makes debugging via lyxerr<< twice as hard.

12 years agofix bug #8209: polyglossia commands ignored partial source preview
Juergen Spitzmueller [Thu, 28 Jun 2012 16:15:43 +0000 (18:15 +0200)]
fix bug #8209: polyglossia commands ignored partial source preview

12 years agotex2lyx: fix a typo
Uwe Stöhr [Wed, 27 Jun 2012 21:58:16 +0000 (23:58 +0200)]
tex2lyx: fix a typo

tex2lyx/text.cpp: the encoding must be _set_ here

12 years agotex2lyx: fix a logic mistake
Uwe Stöhr [Wed, 27 Jun 2012 21:18:02 +0000 (23:18 +0200)]
tex2lyx: fix a logic mistake

Preamble.cpp: set missing begin position for the search; thanks Vincent for spotting

12 years agotex2lyx: reprivatize another variable
Uwe Stöhr [Wed, 27 Jun 2012 20:48:22 +0000 (22:48 +0200)]
tex2lyx: reprivatize another variable

12 years agotexlyx: re-privatize a variable as suggested
Uwe Stöhr [Wed, 27 Jun 2012 20:32:36 +0000 (22:32 +0200)]
texlyx: re-privatize a variable as suggested

12 years agotex2lyx: fix some issues spotted by Vincent
Uwe Stöhr [Wed, 27 Jun 2012 00:52:09 +0000 (02:52 +0200)]
tex2lyx: fix some issues spotted by Vincent

12 years agofix 2 more installer issues
Uwe Stöhr [Tue, 26 Jun 2012 23:58:04 +0000 (01:58 +0200)]
fix 2 more installer issues

- LaTeX.nsh: the registry cannot be a variable
- declarations.nsh: remove doubled folder

12 years agoinstaller: output messages
Uwe Stöhr [Tue, 26 Jun 2012 23:07:46 +0000 (01:07 +0200)]
installer: output messages

- output a message when multiple index feature or Metafile support won't be available

12 years agoBoxUi.ui: revert unintended commit [a6e42e50/lyxgit]
Uwe Stöhr [Tue, 26 Jun 2012 20:46:06 +0000 (22:46 +0200)]
BoxUi.ui: revert unintended commit [a6e42e50/lyxgit]

12 years agoremoved unused includes
Uwe Stöhr [Tue, 26 Jun 2012 20:41:53 +0000 (22:41 +0200)]
removed unused includes

these files don't use the debug.h and also don't contain commented out debug code

12 years agoUpdate the button text of InsetInclude insets
Vincent van Ravesteijn [Tue, 26 Jun 2012 18:41:25 +0000 (20:41 +0200)]
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.

12 years agoinstaller fixes
Uwe Stöhr [Tue, 26 Jun 2012 01:05:59 +0000 (03:05 +0200)]
installer fixes

- LaTeX.nsh: fix handling of MiKTeX if LyX is installed without admin privileges
- configure.nsh: remove unused code

12 years agotex2lyx: support fontspec scale option
Uwe Stöhr [Mon, 25 Jun 2012 22:46:02 +0000 (00:46 +0200)]
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

12 years agotex2lyx/text.cpp: fix bug #8223
Uwe Stöhr [Mon, 25 Jun 2012 20:58:21 +0000 (22:58 +0200)]
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)

12 years agopolyglossia doesn't support Kurmanji
Uwe Stöhr [Mon, 25 Jun 2012 20:02:00 +0000 (22:02 +0200)]
polyglossia doesn't support Kurmanji

12 years agoUpdate distribution build script for git.
Richard Heck [Mon, 25 Jun 2012 13:33:27 +0000 (09:33 -0400)]
Update distribution build script for git.
(cherry picked from commit 082db5e769068d2c643cd8d6abfbf91f017d58a3)

12 years agoBufferParams: Remove superfluous '\n'
Vincent van Ravesteijn [Mon, 25 Jun 2012 09:24:04 +0000 (11:24 +0200)]
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).

12 years agotex2lyx: Remove superfluous '\n'
Vincent van Ravesteijn [Mon, 25 Jun 2012 09:21:27 +0000 (11:21 +0200)]
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.

12 years agoFix bug #8220: tex2lyx crashes on single-character commands
Jean-Marc Lasgouttes [Mon, 25 Jun 2012 09:04:56 +0000 (11:04 +0200)]
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...

12 years agofinish new installer
Uwe Stöhr [Mon, 25 Jun 2012 01:29:58 +0000 (03:29 +0200)]
finish new installer

- thanks to the new version of ImageMagick no longer admin permissions are required
- init.nsh: iron out 2 non-admin residues
- language files: add missing entries and remove some unused ones

12 years agoFrench UserGuide.lyx: some typos fixed
Uwe Stöhr [Sun, 24 Jun 2012 21:57:11 +0000 (23:57 +0200)]
French UserGuide.lyx: some typos fixed

12 years agofix bug #8210
Uwe Stöhr [Sun, 24 Jun 2012 16:24:28 +0000 (18:24 +0200)]
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

12 years agoupdate tex2lyx todo list
Uwe Stöhr [Sun, 24 Jun 2012 16:20:19 +0000 (18:20 +0200)]
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

12 years agosupport non-CJK Japanese for tex2lyx
Uwe Stöhr [Sun, 24 Jun 2012 16:10:36 +0000 (18:10 +0200)]
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

12 years agosupport synctex in tex2lyx.cpp
Uwe Stöhr [Sun, 24 Jun 2012 14:59:21 +0000 (16:59 +0200)]
support synctex in tex2lyx.cpp

- tex2lyx/Preamble.cpp/h: handle \synctex and package srcltx
- tex2lyx/test/test-structure.tex: add \synctex