]> git.lyx.org Git - lyx.git/log
lyx.git
17 years agoupdate gl.po; remerge to use the new lyx_pot.py code
Jean-Marc Lasgouttes [Mon, 26 Mar 2007 13:59:28 +0000 (13:59 +0000)]
update gl.po; remerge to use the new lyx_pot.py code

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17570 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix bug 3293 by Bernhard Roider:
Abdelrazak Younes [Mon, 26 Mar 2007 13:43:49 +0000 (13:43 +0000)]
Fix bug 3293 by Bernhard Roider:

This changes the semantics of isOK() and operator(), comments from Bernhard below:

With the old version of lyxlex it was _impossible_ to check whether reading an integer, float, ... succeeded or not. The current solution to check for is.bad() in some cases and in other cases use is.good() does not give the desired information. Moreover the result of is.bad() depends on the stl implementation and behaves different for linux and windows.

the bug was introduced by the patch that fixed the bug that crashed lyx when "inset-insert ert" was executed from the command buffer.
The lexer has the method isOK() which reflects the status of the stream is.
The operators void* and ! are not really well defined (they depend on the value of is.bad()). What is missing is a test if the last reading operation was successful and thus the returned value is valid.
That's what i implemented in this patch.

The new rule for using the lexer:

if you want to know if the lexer still has data to read (either from the stream or from the pushed token) then use "lex.isOK()".
If you want to test if the last reading operation was successful then use eg. "if (lex) {...}" or unsuccessful then use eg. "if (!lex) {...}"

an example:

int readParam(LyxLex &lex) {

    int param = 1; // default value
    if (lex.isOK()) { // the lexer has data to read
        int p;    // temporary variable
        lex >> p;
        if (lex) param = p; // only use the input if the reading operation was successful
    }
    return param;
}

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17569 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix bug 3258:
Abdelrazak Younes [Mon, 26 Mar 2007 13:36:27 +0000 (13:36 +0000)]
Fix bug 3258:

http://bugzilla.lyx.org/show_bug.cgi?id=3258

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17568 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agofix MSVC warning.
Abdelrazak Younes [Mon, 26 Mar 2007 10:33:27 +0000 (10:33 +0000)]
fix MSVC warning.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17567 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoGet rid of LyXRC::font_norm_type, since it is no longer needed for arabic
Georg Baum [Mon, 26 Mar 2007 08:24:38 +0000 (08:24 +0000)]
Get rid of LyXRC::font_norm_type, since it is no longer needed for arabic
support.
LyXRC::font_norm stays for now, since it is still used for the kbmap stuff.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17566 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoremove lyxrc variables that where only used by xforms
Georg Baum [Mon, 26 Mar 2007 08:14:17 +0000 (08:14 +0000)]
remove lyxrc variables that where only used by xforms

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17565 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agocompile fix
Georg Baum [Mon, 26 Mar 2007 07:38:33 +0000 (07:38 +0000)]
compile fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17564 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agodisable requirement for 2.4.4 version
Peter Kümmel [Mon, 26 Mar 2007 06:55:16 +0000 (06:55 +0000)]
disable requirement for 2.4.4 version

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17562 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoPresent to Abdel: Syntax highlighting for LaTeX Log. (I know I should have been readi...
Bo Peng [Mon, 26 Mar 2007 04:25:49 +0000 (04:25 +0000)]
Present to Abdel: Syntax highlighting for LaTeX Log. (I know I should have been reading windows installers :-)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17561 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoAvoid random kerning values.
Enrico Forestieri [Mon, 26 Mar 2007 00:05:28 +0000 (00:05 +0000)]
Avoid random kerning values.

* src/mathed/MathData.C
(MathArray::metrics): Explicitly initialize kerning_ as it may
contain random data when the nucleus is an empty MathFont inset.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17560 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix crash in debug mode (MSVC) due to an assertion in Qt.
Abdelrazak Younes [Sun, 25 Mar 2007 23:22:25 +0000 (23:22 +0000)]
Fix crash in debug mode (MSVC) due to an assertion in Qt.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17559 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agocmake:
Peter Kümmel [Sun, 25 Mar 2007 22:03:59 +0000 (22:03 +0000)]
cmake:
 - add flags for debug/release/profile
 - also build qt4 as one file with gcc

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17558 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * src/text.C: fix bug #2810
Michael Schmitt [Sun, 25 Mar 2007 17:11:30 +0000 (17:11 +0000)]
* src/text.C: fix bug #2810

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17557 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoadd some comments
Georg Baum [Sun, 25 Mar 2007 16:45:51 +0000 (16:45 +0000)]
add some comments

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17556 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix crash with included files
Georg Baum [Sun, 25 Mar 2007 16:31:16 +0000 (16:31 +0000)]
Fix crash with included files

* src/buffer.C
(Buffer::makeLaTeXFile): Use runparams.encoding to be consistent

* src/insets/insetinclude.C
(InsetInclude::latex): Change runparams.encoding to the encoding of
the child document for makeLateXFile

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17555 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoAdd FIXME.
Abdelrazak Younes [Sun, 25 Mar 2007 16:22:13 +0000 (16:22 +0000)]
Add FIXME.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17554 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoThird present for Bo: Add syntax highlighting to the LateX preamble.
Abdelrazak Younes [Sun, 25 Mar 2007 16:13:14 +0000 (16:13 +0000)]
Third present for Bo: Add syntax highlighting to the LateX preamble.
TODO: extract the latexHighlighter class into its own .[Ch] files.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17553 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoAdd a vertical spacer for nice resizing.
Abdelrazak Younes [Sun, 25 Mar 2007 15:50:32 +0000 (15:50 +0000)]
Add a vertical spacer for nice resizing.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17552 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoSecond present for Bo: De-clutter the widget:
Abdelrazak Younes [Sun, 25 Mar 2007 15:34:23 +0000 (15:34 +0000)]
Second present for Bo: De-clutter the widget:
- spacing set to zero
- controls moved to the side.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17551 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agocorrect tab order and remove duplicate shortcuts
Edwin Leuven [Sun, 25 Mar 2007 15:28:33 +0000 (15:28 +0000)]
correct tab order and remove duplicate shortcuts

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17550 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoadd missing #include
Michael Schmitt [Sun, 25 Mar 2007 15:22:54 +0000 (15:22 +0000)]
add missing #include

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17549 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agobiblio.h is already included in bufferparams.h
Abdelrazak Younes [Sun, 25 Mar 2007 14:04:54 +0000 (14:04 +0000)]
biblio.h is already included in bufferparams.h

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17548 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * src/rowpainter.C
Georg Baum [Sun, 25 Mar 2007 14:04:29 +0000 (14:04 +0000)]
* src/rowpainter.C
(RowPainter::paintHebrewComposeChar): Convert characters 0xf8 and
0xe3 from CP1255 to UCS4 encoding

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17547 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix gcc warning.
Abdelrazak Younes [Sun, 25 Mar 2007 13:21:23 +0000 (13:21 +0000)]
Fix gcc warning.
Those arguments are not needed because update() will always look at what is currently selected and the info is there.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17546 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoBetter comment from Dov Feldstern (and remove now obsolete comment about
Georg Baum [Sun, 25 Mar 2007 10:53:01 +0000 (10:53 +0000)]
Better comment from Dov Feldstern (and remove now obsolete comment about
the isComposeChar functions)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17544 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * src/encoding.C
Georg Baum [Sun, 25 Mar 2007 10:45:03 +0000 (10:45 +0000)]
* src/encoding.C
(Encodings::isComposeChar_hebrew): Change code points from CP1255 to
UCS4

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17543 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoCompilation fix: enums can't be forward declared.
Georg Baum [Sun, 25 Mar 2007 10:35:38 +0000 (10:35 +0000)]
Compilation fix: enums can't be forward declared.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17542 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agofix compiler warning
Georg Baum [Sun, 25 Mar 2007 10:32:22 +0000 (10:32 +0000)]
fix compiler warning

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17541 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agomake lyx compile again:
Edwin Leuven [Sun, 25 Mar 2007 09:55:37 +0000 (09:55 +0000)]
make lyx compile again:

* qwidget doesn't have sizegrip property here

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17540 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoCleanup and polish of the Citation dialog:
Abdelrazak Younes [Sun, 25 Mar 2007 01:32:12 +0000 (01:32 +0000)]
Cleanup and polish of the Citation dialog:
- now simple citation insertion can be done with the keyboard only (enter key will close the dialog and insert the chosen key).
- now search also within bib entry information (very fast)
- new case sensitive option
- new regex option.
- QCitation: code simplified, some code went to ControlCitation.
- QCitationDialog: code simplified
- lots of polish in the dialogs...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17539 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoPresent for Bo: Cleanup ViewSource and make it a DockWidget.
Abdelrazak Younes [Sun, 25 Mar 2007 01:25:29 +0000 (01:25 +0000)]
Present for Bo: Cleanup ViewSource and make it a DockWidget.

* DockView.h: add the orientation option.

* QViewSource: now a model and a controller

* QViewSourceDialog: now only a simple QWidget.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17538 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago* BufferParams:
Abdelrazak Younes [Sun, 25 Mar 2007 01:12:38 +0000 (01:12 +0000)]
* BufferParams:
  * transfer CiteEngine enum declaration to biblio.h
  * delete unneeded CiteEngine_enum
  * cite_engine is now cite_engine_ and is private.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17537 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoremove useless declaration
Abdelrazak Younes [Sun, 25 Mar 2007 00:57:12 +0000 (00:57 +0000)]
remove useless declaration

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17536 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago* Buffer::fillWithBibkeys()
Abdelrazak Younes [Sun, 25 Mar 2007 00:56:01 +0000 (00:56 +0000)]
* Buffer::fillWithBibkeys()
  - replace unneeded dynamic_cast with static_cast
  - fix citation info for normal BIBITEM entries.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17535 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoremove useless assertion (already handled by std-debug), gets rid of two gcc warnings.
Abdelrazak Younes [Sun, 25 Mar 2007 00:49:09 +0000 (00:49 +0000)]
remove useless assertion (already handled by std-debug), gets rid of two gcc warnings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17534 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoBugfix: no need to update if the dialog is not visible.
Abdelrazak Younes [Sun, 25 Mar 2007 00:45:34 +0000 (00:45 +0000)]
Bugfix: no need to update if the dialog is not visible.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17533 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoUpdate special arabic support to UCS4
Georg Baum [Sat, 24 Mar 2007 21:12:29 +0000 (21:12 +0000)]
Update special arabic support to UCS4

* src/encoding.C
(arabic_table): Delete (this was used for fonts in iso8859-6 encoding)
(arabic_table2): Rename to arabic_table and update code points to UCS4.
The old code points in this table where a custom encoding:
Some ASCII positions and some unused positions of the iso8859-6
encoding where used to encode the shaped forms. Example:
The character hamza was encoded with 0x41. The iso8859-6 encoding in
lib/encodings contained ithe value 0xfe80 at position 0x41 before
the transition to unicode => Change the value 0x41 to 0xfe80 in the
table.
This old custom encoding was needed because the transformed characters
needed to be transported through 8bit characters.
(Encodings::is_arabic_special): Change code points from iso8859-6 to UCS4
(Encodings::isComposeChar_arabic): Ditto
(Encodings::is_arabic): Ditto
(Encodings::transformChar): Always use arabic_table

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17532 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agosupport direct conversion from format 1 to format 3
Georg Baum [Sat, 24 Mar 2007 12:39:45 +0000 (12:39 +0000)]
support direct conversion from format 1 to format 3

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17531 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoalso improve build times when working on some files
Peter Kümmel [Sat, 24 Mar 2007 11:33:03 +0000 (11:33 +0000)]
also improve build times when working on some files

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17530 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agofinal compilation: wheel was already invented :(
Peter Kümmel [Fri, 23 Mar 2007 23:56:27 +0000 (23:56 +0000)]
final compilation: wheel was already invented :(

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17529 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoAccount for kerning when positioning scripts in the MathFontOld and
Enrico Forestieri [Fri, 23 Mar 2007 18:55:50 +0000 (18:55 +0000)]
Account for kerning when positioning scripts in the MathFontOld and
MathUnknown insets.

* src/mathed/InsetMathUnknown.C
(InsetMathUnknown::metrics): Cache kerning of last char.

* src/mathed/InsetMathUnknown.h
* src/mathed/InsetMathFontOld.h
(InsetMathUnknown::kerning): New. Return cached kerning value.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17528 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoTidy up po/lyx_pot.py, I did not 'svn add' the latest version of the script
Bo Peng [Fri, 23 Mar 2007 15:21:45 +0000 (15:21 +0000)]
Tidy up po/lyx_pot.py, I did not 'svn add' the latest version of the script

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17527 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix bug 440
Georg Baum [Fri, 23 Mar 2007 15:09:21 +0000 (15:09 +0000)]
Fix bug 440

* src/frontends/controllers/ControlCharacter.[Ch]
(reset_lang_) New flag (needed because the language is never
inherited)

* src/frontends/controllers/ControlCharacter.C
(ControlCharacter::getLanguage): Use reset_lang_
(ControlCharacter::setLanguage): Set reset_lang_ if needed

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17526 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoadd further comment
Georg Baum [Fri, 23 Mar 2007 15:07:10 +0000 (15:07 +0000)]
add further comment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17525 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agopo/Makefile.in.in, use $(srcdir) instead of $(top_srcdir)/po
Bo Peng [Fri, 23 Mar 2007 14:56:48 +0000 (14:56 +0000)]
po/Makefile.in.in, use $(srcdir) instead of $(top_srcdir)/po

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17524 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agopo/Makefile.in.in: call lyx_pot.py with correct -b option
Bo Peng [Fri, 23 Mar 2007 14:49:48 +0000 (14:49 +0000)]
po/Makefile.in.in: call lyx_pot.py with correct -b option

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17523 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoScons: add description to update_po target to INSTALL.scons
Bo Peng [Fri, 23 Mar 2007 14:36:07 +0000 (14:36 +0000)]
Scons: add description to update_po target to INSTALL.scons

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17522 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoScons update_po target: Windows/cmd.exe is unhappy about single quotes
Bo Peng [Fri, 23 Mar 2007 14:27:27 +0000 (14:27 +0000)]
Scons update_po target: Windows/cmd.exe is unhappy about single quotes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17521 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoMake it possible to call lyx_pot.py when builddir != srcdir.
Jean-Marc Lasgouttes [Fri, 23 Mar 2007 14:22:08 +0000 (14:22 +0000)]
Make it possible to call lyx_pot.py when builddir != srcdir.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17520 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoWorkaround for bug 3040
Georg Baum [Fri, 23 Mar 2007 09:18:07 +0000 (09:18 +0000)]
Workaround for bug 3040

* src/rowpainter.C
(RowPainter::paintChars): Paint hebrew characters one at a time

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17519 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoCorrectly implement rule 18a in appendix G of the TeXbook
Enrico Forestieri [Fri, 23 Mar 2007 02:12:48 +0000 (02:12 +0000)]
Correctly implement rule 18a in appendix G of the TeXbook

* src/mathed/InsetMathScript.C
(isAlphaSymbol): New. Return true if nucleus is a letter or a
symbol whose type is mathord or mathalpha.
(InsetMathScript::dy01): Apply rule 18a accounting for nucleus type.

* src/mathed/MathData.C
(MathArray::metrics): Account for the fact that some fonts (eg.
mathcal) do not have a lower case x glyph.

* src/mathed/InsetMathSymbol.[Ch]
(InsetMathSymbol::isOrdAlpha): New. Return true if type of symbol
is mathord or mathalpha.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17518 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoAdd comments to installer code
Bo Peng [Fri, 23 Mar 2007 02:03:42 +0000 (02:03 +0000)]
Add comments to installer code

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17517 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agomsvc: don't #define max and min
Peter Kümmel [Thu, 22 Mar 2007 23:42:21 +0000 (23:42 +0000)]
msvc: don't #define max and min

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17516 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agofix c&p error
Peter Kümmel [Thu, 22 Mar 2007 23:22:10 +0000 (23:22 +0000)]
fix c&p error

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17515 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agocompile qt4 three times faster with msvc:
Peter Kümmel [Thu, 22 Mar 2007 23:07:24 +0000 (23:07 +0000)]
compile qt4 three times faster with msvc:
 - only trivial renaming
 - one used variable removed

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17514 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoalso merge qt files
Peter Kümmel [Thu, 22 Mar 2007 22:58:52 +0000 (22:58 +0000)]
also merge qt files

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17513 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agopo/Makefile.in.in, replace awk scripts with the Python version
Bo Peng [Thu, 22 Mar 2007 20:12:54 +0000 (20:12 +0000)]
po/Makefile.in.in, replace awk scripts with the Python version

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17512 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoScons: finalize update_po target.
Bo Peng [Thu, 22 Mar 2007 20:04:12 +0000 (20:04 +0000)]
Scons: finalize update_po target.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17511 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoScons: update_po should now work (missing dependency though)
Bo Peng [Thu, 22 Mar 2007 18:26:58 +0000 (18:26 +0000)]
Scons: update_po should now work (missing dependency though)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17510 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoScons: update_po target, move processing functions to po/lyx_pot.py
Bo Peng [Thu, 22 Mar 2007 15:39:44 +0000 (15:39 +0000)]
Scons: update_po target, move processing functions to po/lyx_pot.py

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17509 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFic compilation on itanium by adding a missing file from boost 1.34 branch
Georg Baum [Thu, 22 Mar 2007 08:36:25 +0000 (08:36 +0000)]
Fic compilation on itanium by adding a missing file from boost 1.34 branch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17506 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoGet ProvidesNatbib working correctly, esp. for egs.layout.
Martin Vermeer [Thu, 22 Mar 2007 07:22:16 +0000 (07:22 +0000)]
Get ProvidesNatbib working correctly, esp. for egs.layout.

* insetcite: call getEngine()
* bufferparams: move getEngine() here, and let it sense the
provides(natbib)
flag
* ControlBibtex, ControlCitation: correct getEngine() call
* biblio: remove old getEngine()

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17505 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoScons: update_po target part five: update po files
Bo Peng [Thu, 22 Mar 2007 04:42:34 +0000 (04:42 +0000)]
Scons: update_po target part five: update po files

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17504 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoScons: update_po target part four: lyx.po
Bo Peng [Thu, 22 Mar 2007 03:15:58 +0000 (03:15 +0000)]
Scons: update_po target part four: lyx.po

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17503 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoScons: update_po target part three: ui_l10n
Bo Peng [Thu, 22 Mar 2007 02:51:51 +0000 (02:51 +0000)]
Scons: update_po target part three: ui_l10n

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17502 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoScons: update_po target part two: qt4_l10n and layouts_l10n
Bo Peng [Thu, 22 Mar 2007 02:37:26 +0000 (02:37 +0000)]
Scons: update_po target part two: qt4_l10n and layouts_l10n

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17501 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoremove " around is_IS in lib/languages
Bo Peng [Thu, 22 Mar 2007 02:33:59 +0000 (02:33 +0000)]
remove " around is_IS in lib/languages

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17500 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoCache char right bearings
Enrico Forestieri [Wed, 21 Mar 2007 23:13:32 +0000 (23:13 +0000)]
Cache char right bearings

* src/frontends/qt4/GuiFontMetrics.C
(GuiFontMetrics::rbearing): Cache char rbearing.

* src/frontends/qt4/GuiFontMetrics.h:
Implement rbearing_cache_ as a QHash.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17499 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agosome more small changes to speed up the compilation time by merged files
Peter Kümmel [Wed, 21 Mar 2007 21:22:10 +0000 (21:22 +0000)]
some more small changes to speed up the compilation time by merged files

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17498 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoAccount for real width of nucleus when positioning superscripts in mathed
Enrico Forestieri [Wed, 21 Mar 2007 17:21:59 +0000 (17:21 +0000)]
Account for real width of nucleus when positioning superscripts in mathed

* src/mathed/MathSupport.[Ch]
(mathed_char_kerning): New. Compute right kerning for the given
font and character as the difference between right bearing and
logical width.

* src/mathed/InsetMathScript.[Ch]
(InsetMathScript::dx1, InsetMathScript::metrics): Account for
nucleus right kerning.
(InsetMathScript::nker): New. Return the nucleus right kerning
if positive, zero otherwise.

* src/mathed/MathData.[Ch]
(MathArray::metrics): Cache the nucleus right kerning value.
(MathArray::kerning): New. Return cached right kerning.

* src/mathed/InsetMathChar.[Ch]
(InsetMathChar::metrics): Cache the character right kerning.
(InsetMathChar::kerning): New. Return cached right kerning.

* src/mathed/InsetMath.h
(InsetMath::kerning): New virtual method.

* src/mathed/InsetMathSymbol.[Ch]
(InsetMathSymbol::metrics): Cache the symbol right kerning.
(InsetMathSymbol::kerning): New. Return cached right kerning.

* src/mathed/InsetMathFont.[Ch]
(InsetMathFont::kerning): New. Return cached right kerning.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17497 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoScons: update_po target, part one: language_l10n.pot
Bo Peng [Wed, 21 Mar 2007 03:23:54 +0000 (03:23 +0000)]
Scons: update_po target, part one: language_l10n.pot

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17496 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agocmake build system:
Peter Kümmel [Tue, 20 Mar 2007 22:13:21 +0000 (22:13 +0000)]
cmake build system:
   Add "merge" option which minimizes the number of files to build.
   only the qt4 and boost files will not merged into one file.
   This really speeds up the compilation.
   Usage:
     cmake ../trunk/development/cmake -Dmerge=1

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17495 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agotrivial changes for all-in-one compilation
Peter Kümmel [Tue, 20 Mar 2007 21:53:01 +0000 (21:53 +0000)]
trivial changes for all-in-one compilation

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17494 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * de.po: tiny update
Michael Schmitt [Tue, 20 Mar 2007 19:43:55 +0000 (19:43 +0000)]
* de.po: tiny update

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17493 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago * po/*.po: remerge
Michael Schmitt [Tue, 20 Mar 2007 18:52:50 +0000 (18:52 +0000)]
* po/*.po: remerge

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17491 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoRead and add comments to installer files...
Bo Peng [Tue, 20 Mar 2007 04:10:23 +0000 (04:10 +0000)]
Read and add comments to installer files...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17488 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agofix crash on import
Georg Baum [Mon, 19 Mar 2007 20:39:30 +0000 (20:39 +0000)]
fix crash on import

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17487 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix bug 3348
Georg Baum [Mon, 19 Mar 2007 16:15:34 +0000 (16:15 +0000)]
Fix bug 3348

* src/LaTeX.C
(exists): New helper: test for existance of file with possibly
invalid filename
(insertIfExists): Use exists() instead of fs::native and fs::exists()
(handleFoundFile): Ditto

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17485 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix bug 2932 (non-UI part only)
Georg Baum [Mon, 19 Mar 2007 16:08:17 +0000 (16:08 +0000)]
Fix bug 2932 (non-UI part only)

* src/mathed/InsetMathGrid.[Ch]
(InsetMathGrid::allow_pagebreak_): New member

* src/mathed/InsetMathGrid.C
(InsetMathGrid::eolString): Output \\* if allow_pagebreak_ is false

* src/mathed/MathParser.C
(addRow): Set allow_pagebreak_ in rowinfo if needed
(Parser::parse1): Parse '\\*' correctly

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17484 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agocompile fix (forgot this in rev. 17470)
Georg Baum [Mon, 19 Mar 2007 15:58:20 +0000 (15:58 +0000)]
compile fix (forgot this in rev. 17470)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17483 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agohungarian update
Jean-Marc Lasgouttes [Mon, 19 Mar 2007 10:53:37 +0000 (10:53 +0000)]
hungarian update

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17482 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoEmbeddedObjects: corrected index
Uwe Stöhr [Sun, 18 Mar 2007 19:05:58 +0000 (19:05 +0000)]
EmbeddedObjects: corrected index

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17478 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix bug 3345
Uwe Stöhr [Sun, 18 Mar 2007 17:05:18 +0000 (17:05 +0000)]
Fix bug 3345
http://bugzilla.lyx.org/show_bug.cgi?id=3345

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17477 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agosilence compiler warning
Georg Baum [Sun, 18 Mar 2007 16:52:54 +0000 (16:52 +0000)]
silence compiler warning

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17476 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agosilence automake warning
Georg Baum [Sun, 18 Mar 2007 16:49:28 +0000 (16:49 +0000)]
silence automake warning

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17475 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoEmbeddedObjects: Spanish update prepared for Ignacio to translate
Uwe Stöhr [Sun, 18 Mar 2007 15:42:30 +0000 (15:42 +0000)]
EmbeddedObjects: Spanish update prepared for Ignacio to translate
(The new files will be translated too and then renamed.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17473 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoCustomization.lyx: reflect the latest EmbeddedObjects update
Uwe Stöhr [Sun, 18 Mar 2007 15:10:21 +0000 (15:10 +0000)]
Customization.lyx: reflect the latest EmbeddedObjects update

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17472 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFig bug 3335 (http://bugzilla.lyx.org/show_bug.cgi?id=3335)
Enrico Forestieri [Sun, 18 Mar 2007 15:00:57 +0000 (15:00 +0000)]
Fig bug 3335 (http://bugzilla.lyx.org/show_bug.cgi?id=3335)

* src/mathed/InsetMathScript.[Ch]
(InsetMathScript::dy01): new, jointly account for both superscript
and subscript according to the rules in Appendix G of the TeXbook.
(InsetMathScript::dy0, InsetMathScript::dy1): set ascent and descent
values using dy01 for non-limits super/subscripts.
(InsetMathScript::metrics): account for the new super/subscript
placement rules when setting ascent and descent values.

* src/mathed/MathData.[Ch]
(MathArray::metrics): cache parameters needed for super/subscript
placement. When nucleus is not empty, set its ascent value to zero
such that it is correctly computed later, otherwise ascent values
less than that of an 'I' are not reported.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17471 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix bug 3235
Georg Baum [Sun, 18 Mar 2007 10:59:16 +0000 (10:59 +0000)]
Fix bug 3235

* src/insets/insetcaption.C
(InsetCaption::latex): Copy back encoding to runparams_in

* src/insets/insetfoot.C
(InsetFoot::latex): ditto

* src/insets/insetnote.C
(InsetNote::latex): ditto

* src/exporter.C
(Exporter::Export): Create runparams with document encoding

* src/converter.C
(bool Converters::convert): ditto

* src/buffer.C
(Buffer::writeLaTeXSource): Copy back encoding to runparams_in
(Buffer::runChktex): Create runparams with document encoding
(Buffer::changeRefsIfUnique): ditto

* src/outputparams.[Ch]
(encoding): New member

* src/lyxfont.C
(LyXFont::latexWriteStartChanges): Don't switch the encoding anymore.
This is now done in Paragraph::simpleTeXOnePar.
(LyXFont::latexWriteEndChanges): Ditto

* src/output_latex.C
(TeXOnePar): Ditto

* src/paragraph.C
(Paragraph::simpleTeXOnePar): Switch the encoding between font
changes if needed.

* All other files: Adjust to the changes above

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17470 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix TOC generation for build dir != src dir
Georg Baum [Sun, 18 Mar 2007 10:44:26 +0000 (10:44 +0000)]
Fix TOC generation for build dir != src dir
* lib/doc/depend.py
(documents): Add dir_prefix argument
(all_documents): Ditto
(main): Create document list with empty prefix, since the prefix will
be addded by a Makefile variable
(main): Don't use isdir to detect english language, since that does
not work for build dir != src dir

* lib/doc/doc_toc.py
(main): Don't use isdir to detect english language, since that does
not work for build dir != src dir, rather create the dir if it does
not exists.

* lib/doc/Makefile.depend: Regenerated

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17469 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoSCons: build TOC.lyx during installation
Bo Peng [Sun, 18 Mar 2007 06:03:28 +0000 (06:03 +0000)]
SCons: build TOC.lyx during installation

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17468 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agosmall cleanup of the include dialog:
Uwe Stöhr [Sun, 18 Mar 2007 03:42:40 +0000 (03:42 +0000)]
small cleanup of the include dialog:
"Include" was for good reason the default method but not the first item in the dropdown list.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17467 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoEmbeddedObjects.lyx:
Uwe Stöhr [Sun, 18 Mar 2007 03:27:19 +0000 (03:27 +0000)]
EmbeddedObjects.lyx:
- new section about external material
- two hints concerning caption layout
The manual is now feature complete!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17466 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agocorrect tooltip name for consistency
Uwe Stöhr [Sat, 17 Mar 2007 19:46:33 +0000 (19:46 +0000)]
correct tooltip name for consistency

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17465 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agofix bug: vert. maximized window is completely maximized after restart
Peter Kümmel [Sat, 17 Mar 2007 12:28:26 +0000 (12:28 +0000)]
fix bug: vert. maximized window is completely maximized after restart

src/frontends/Application.h : enum for maximized
src/frontends/LyXView.h     : enum for maximized
src/frontends/qt4/GuiView.h : enum for maximized
src/frontends/Application.C : enum for maximized
src/lyx_main.C              : enum for maximized
src/frontends/qt4/GuiView.C : restore complete, vert. hor. maximized window

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17463 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoundo file format change
Georg Baum [Sat, 17 Mar 2007 10:30:31 +0000 (10:30 +0000)]
undo file format change

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17462 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoDE UserGuide.lyx: huge updates from Hartmut and small changes by me
Uwe Stöhr [Sat, 17 Mar 2007 01:24:48 +0000 (01:24 +0000)]
DE UserGuide.lyx: huge updates from Hartmut and small changes by me

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17461 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago> Rename marc.theaimsgroup.com to marc.info
Uwe Stöhr [Sat, 17 Mar 2007 00:18:10 +0000 (00:18 +0000)]
> Rename marc.theaimsgroup.com to marc.info
Forgot this

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17459 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agohopefully fix bug 3152.
Abdelrazak Younes [Fri, 16 Mar 2007 20:31:29 +0000 (20:31 +0000)]
hopefully fix bug 3152.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17457 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agofix MSVC linking error
Abdelrazak Younes [Fri, 16 Mar 2007 15:24:36 +0000 (15:24 +0000)]
fix MSVC linking error

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17456 a592a061-630c-0410-9148-cb99ea01b6c8