Commit Graph

131 Commits

Author SHA1 Message Date
Georg Baum
ca546a8b7e Fix indentation for 'python -tt' 2013-11-19 21:37:33 +01:00
Pavel Sanda
8c23318a99 * header_check.sh: filter headers; we should suspect only .h files. 2013-05-15 03:46:04 -07:00
Pavel Sanda
392124e03e * header_check.sh: fix error order 2013-05-15 03:43:11 -07:00
Pavel Sanda
ee0c031d2d * header_check.sh: forgot on exec flag 2013-05-15 00:07:40 -07:00
Pavel Sanda
5ea35e2d62 * header_check.sh: more tweaks 2013-05-15 00:02:16 -07:00
Pavel Sanda
b1d8bdf670 * header_check.sh: Apply new changes from Scott.
I see lot of errors like:
The following string was expected to be '.cpp' or '.h':
 LyX.cpp: In member function 'void lyx::LyX::printError(const lyx::ErrorItem&)':
Warning: the error was not parsed correctly.
The following string was expected to be '.cpp' or '.h':
 LyX.cpp: In function 'void lyx::error_handler(int)':
2013-05-14 23:59:42 -07:00
Pavel Sanda
9d478d5587 Comment. 2013-05-03 21:45:59 -07:00
Scott Kostyshak
33b0cff2f3 header_check.sh: allow exclusion of common headers
Continuing to address #6305
2013-05-03 01:59:57 -04:00
Scott Kostyshak
6adae69810 Script for finding unneeded headers
The script does the following:

  All .cpp and .h files in the current directory and subdirectories
  are checked to see which include statements could be omitted without
  causing a build error.

Many of these omissions would not be desired. For example, currently
if you don't include Undo.h in Undo.cpp, there is no error because
Undo.h is included in Cursor.h which is included in Undo.cpp. But
clearly we do want to include Undo.h in Undo.cpp.

See #6305.
2013-05-02 02:40:48 -04:00
Georg Baum
45052f56ab Handle text-only wasy symbols correctly.
Some macros defined by wasysym.sty work only in text mode: They either
produce an error in math mode, or wrong output. These symbols are now marked
as text symbols, so that no \ensuremath is created for LaTeX export if they
appear inside \text{}, and the correct images are created.
2013-01-10 21:22:54 +01:00
Georg Baum
c10044ddc0 Add consistency checks.
development/tools/generate_symbols_images.py now checks for each symbol in
lib/symbols whether its image is listed in lib/Makefile.am and whether it has
a toolbar entry in lib/ui/stdtoolbars.inc.
2013-01-08 21:51:09 +01:00
Georg Baum
a98f7ad02d Fine tune image generation 2012-12-31 18:22:05 +01:00
Georg Baum
8838648858 Add script for automatic toolbar image creation.
Manually created toolbar images are needed in many cases, but for simple
symbols automatically generated ones are better than nothing.
2012-12-16 14:44:18 +01:00
Georg Baum
f67cf6f4bb Add support for stmaryrd.sty (bug #8434)
The stmaryrd package adds support for lots of math symbols, using a font
designed to accompany the computer modern fonts. The changes in detail:

- Fix generate_symbols_list.py to work with stmaryrd.sty. It loooks like it
  was automatically translated from a perl version and never used.
- Generate the new symbols in lib/symbols using generate_symbols_list.py and
  add some manual adjustments
- Generate stmary10.ttf by a simple ttf export from stmary10.sfd with fontforge
- Add license info for stmary10.ttf
- Create a test file with all symbols from stmaryrd.sty. Actually it would be
  nice to have this for the other fonts as well.
- The mechanics: lyx2lyx, tex2lyx, font machinery etc.
2012-12-15 13:10:31 +01:00
Pavel Sanda
f6a0356a5f * tools/lyx-fedora update from Kayvan. 2012-11-09 10:59:04 +01:00
Richard Heck
3f4b4d7676 Add lyx-fedora script, which builds a LyX RPM from the git sources
on Fedora.
2012-11-03 22:13:36 -04:00
Richard Heck
d49a4e5c5e Updates to lyx-build script. 2012-11-03 22:11:05 -04:00
Richard Heck
c3fe0fd7e2 Port changes to update-po.sh script to trunk. 2012-07-02 17:49:08 -04:00
Richard Heck
5451b6b4e0 Update distribution build script for git.
(cherry picked from commit 082db5e769)
2012-06-25 09:36:29 -04:00
Richard Heck
15a2216dab Update update-po.sh script.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40290 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-26 23:49:36 +00:00
Richard Heck
84359f46ce Script for building a maintenance distribution.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40278 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-25 17:45:26 +00:00
Richard Heck
019f8415f3 Updates to update-po script.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40063 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 19:03:43 +00:00
Richard Heck
f69348f48a Port script updates.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39148 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-20 14:47:21 +00:00
Richard Heck
ed9b6f935b Port changes to update-po.sh.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39109 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-16 15:35:46 +00:00
Richard Heck
7ea412465c Updates to check-po script.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39108 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-16 15:35:42 +00:00
Richard Heck
ca8eefc39c New script to remerge strings, check for changes, etc. Still under
development.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39098 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-16 14:46:56 +00:00
Richard Heck
ba3d0ac837 Check for git in update script.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38913 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-01 13:10:38 +00:00
Richard Heck
9ec3c86d66 Make the script more flexible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38661 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-09 15:36:59 +00:00
Richard Heck
30864d048f Add stats updating script to development/tools/.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38659 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-09 15:27:10 +00:00
Richard Heck
3cc6e03378 Add patch-premable to development tools.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38656 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-09 15:10:24 +00:00
Richard Heck
5577b5c6f0 Add lyxpak.py to the distribution, and configure it appropriately for export.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37506 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 14:50:06 +00:00
Enrico Forestieri
df6df99df8 The sets module is deprecated since Python 2.6, so use the built-in
type set, available as almost drop-in replacement since Python 2.4.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37505 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-05 22:59:01 +00:00
Richard Heck
1aad2779e4 Revert part of r37496. This was wrong.
Probalby we have a better "isLyXFile()" routine for use also in gather_files().



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37504 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-05 14:04:28 +00:00
Richard Heck
9865f85122 Allow lyxpak to work when LyX is run in place.
Note that this should also make lyx2lyx detection a lot easier than 
it was before.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37498 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-04 20:33:52 +00:00
Richard Heck
497a131804 Forgot this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37497 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-04 20:15:39 +00:00
Richard Heck
a621204d57 Clean up the lyxpak script a bit, towards possible inclusion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37496 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-04 19:43:52 +00:00
Richard Heck
9f933cecf0 Script for automatic updating of ui and bind files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37252 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-18 15:41:16 +00:00
Richard Heck
5bfb8069da Simple bash script to update all layouts to current format.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32372 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-06 03:30:24 +00:00
Uwe Stöhr
d98251c379 - gen_lfuns.py: reduce the space between items in LFUNs.lyx to save whitespace
- LFUNs.lyx: rebuilt with changed gen_lfuns.py

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31681 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-19 23:44:11 +00:00
Uwe Stöhr
8355b32381 - LFUNs.lyx: there is no need to use AMS for this file.
- gen_lfuns.py: change the script accordingly and add the missing \spacing tag

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31669 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-19 00:01:01 +00:00
Enrico Forestieri
7270242aad Add lyxeditor script to development/tools, adjust properties of other
files and also add lyxpak.py to the distributed files.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29998 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-06 15:17:51 +00:00
Pavel Sanda
de66d50203 Allow output to pipe.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29703 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-17 00:34:29 +00:00
Pavel Sanda
38cb5cb02a next cases
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29701 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-17 00:04:10 +00:00
Pavel Sanda
d0c3f0e8fb not needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29700 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-17 00:04:08 +00:00
Pavel Sanda
db4ef7df34 Towards bug http://www.lyx.org/trac/ticket/5676
Python script for building LFUNs.lyx
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg151172.html

Patch by Ewan Davies


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29698 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-16 23:53:32 +00:00
André Pönitz
f1cba8ff64 more latin1..utf8 schanges. all of src/* should be utf8 now
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27425 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-14 15:58:50 +00:00
André Pönitz
04e8c050b2 update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25240 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 16:48:23 +00:00
Enrico Forestieri
1a2af1197e Allow to specify either text mode or math mode commands (or both) in the
unicodesymbols file. When the command for a mode is not specified, the
other one is used (taking care that it also works in the "wrong" mode).
This allows to avoid the \lyxmathsym macro when a native math command
is available. Patch from Georg, modifications to the unicodesymbols
file by me.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25061 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 01:35:42 +00:00
Enrico Forestieri
bed989943b Too much comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24193 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-09 18:28:47 +00:00
Enrico Forestieri
801ae9954d Maybe this script is useful to someone.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24192 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-09 18:16:18 +00:00
André Pönitz
afc94c736f add -DQT_NO_KEYWORDS to the statistic scripts, since that's what we use in
reality


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23722 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 19:48:58 +00:00
André Pönitz
fe8f68ee32 quick shot at designer 4.3 -> 4.2 conversion.
Usage: perl -i designer43to42  <the_ui_file_you_want_to_fix>


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23645 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 18:31:14 +00:00
Jean-Marc Lasgouttes
0baeaadd2b trim some grey hair
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22959 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 09:58:52 +00:00
André Pönitz
5c4a20fe04 I'll find a solution for the 'dirList problem', Abdel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21884 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-30 20:57:53 +00:00
André Pönitz
0c2fa7e599 add new helper script
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21828 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-27 20:21:47 +00:00
André Pönitz
4dfc6f46c9 add -I.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21822 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-27 19:48:49 +00:00
André Pönitz
e3fcaf5cde some new numbers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21701 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 22:35:38 +00:00
André Pönitz
bae2e86422 improve statistic script a bit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21700 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 22:27:30 +00:00
André Pönitz
f26f32155a numbers...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21416 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-04 09:38:51 +00:00
André Pönitz
7489fe3f6a small update. almost 30k for <iostream> ...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21310 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-31 18:24:28 +00:00
André Pönitz
45482a947d remove traces of qmake experiment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21152 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 16:44:16 +00:00
André Pönitz
ea75523e59 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20877 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-09 22:19:04 +00:00
Georg Baum
c070ca00dd Convert kmap files from LaTeX commands to unicode as discussed last week
* development/tools/convert_kmap.py: New conversion script

	* lib/kbd/*.kmap: Convert with convert_kmap.py


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17663 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-31 16:07:05 +00:00
Georg Baum
e24eeddb96 comment debug output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17169 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-13 19:55:56 +00:00
Georg Baum
feb7895965 Add machinery to output arbitrary unicode characters with LaTeX commands
read from a text file.

	* src/encoding.[Ch]

	(Encoding::latexChar): New, output a character to LaTeX
	(Encoding::validate): New, add needed preamble stuff for a character
	(Encodings::read): Read new unicodesymbols file
	(Encodings::isCombiningChar): New, is a character a combining char?

	* src/paragraph_pimpl.C
	(isEncoding): Delete, no longer needed
	(getEncoding): New, get the real encoding of a font
	(Paragraph::Pimpl::latexSurrogatePair): New, output a surrogate pair
	to LaTeX
	(Paragraph::Pimpl::simpleTeXBlanks): Use latexSurrogatePair if needed
	(Paragraph::Pimpl::simpleTeXSpecialChars): Ditto, and replace several
	hardcoded characters with a call of encoding.latexChar()
	(Paragraph::Pimpl::validate): replace several hardcoded characters
	with a call of encoding.validate()

	* src/support/debugstream.h
	(basic_debugstream::disable): New, disable the stream completely
	(basic_debugstream::enable): New, reenable the stream

	* src/lyx_main.[Ch]: Adjust to changes above

	* src/paragraph.C: Ditto

	* lib/unicodesymbols: New file with UCS4 -> LaTeX command mapping.
	It is far from complete yet, but contains most accents on latin
	characters.

	* lib/Makefile.am: add lib/unicodesymbols

	* development/scons/scons_manifest.py: ditto

	* development/tools/unicodesymbols.py: Helper script to update
	lib/unicodesymbols with new symbols


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16920 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-28 21:27:45 +00:00
Michael Schmitt
69c839dccf * development/tools/mkdoclinks.sh:
* development/tools/makeLyXsigc.sh:
        * development/tools/scgen.pl: remove obsolete files


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14637 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 10:21:06 +00:00
Lars Gullik Bjønnes
ef8e527612 drop reLyX like it is hot, and setup to use tex2lyx instead (and remerged po files + no.po small update)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10244 a592a061-630c-0410-9148-cb99ea01b6c8
2005-07-16 15:18:14 +00:00
Angus Leeming
46ee486bda Whitespace, only whitespace. Part II.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9138 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-28 14:35:53 +00:00
Angus Leeming
732bb6aeff For Andr�'s pleasure...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5480 a592a061-630c-0410-9148-cb99ea01b6c8
2002-10-23 13:41:25 +00:00
Jean-Marc Lasgouttes
83c3a7d979 get rid of more xtl
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4341 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-05 15:23:19 +00:00
Dekel Tsur
160d830280 Add glyph for \colon for the symbol font.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3211 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-15 11:26:57 +00:00
Dekel Tsur
1b6f3b67d3 *** empty log message ***
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2789 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-21 18:23:02 +00:00
Dekel Tsur
e63b166d6d Small update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2683 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-04 13:15:31 +00:00
Dekel Tsur
0cf717d0c8 More fonts in mathed.
Please test.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2632 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-30 22:42:26 +00:00
Allan Rae
9a95625922 libsigc++-1.0.3: you will need to ./autogen.sh ; ./configure
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1943 a592a061-630c-0410-9148-cb99ea01b6c8
2001-04-20 01:43:28 +00:00
Allan Rae
d486ef026e libsigc++ update to fix struct timespec bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1035 a592a061-630c-0410-9148-cb99ea01b6c8
2000-09-25 03:05:21 +00:00
Allan Rae
88ebef6dbc Signal3 now supported
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@963 a592a061-630c-0410-9148-cb99ea01b6c8
2000-08-10 04:54:00 +00:00
Jean-Marc Lasgouttes
5ce5f0a6f7 Re-implement rhe "bindist" Makefile target
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@841 a592a061-630c-0410-9148-cb99ea01b6c8
2000-06-27 15:24:11 +00:00
Lars Gullik Bjønnes
6d678c927c more FILMagain stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@808 a592a061-630c-0410-9148-cb99ea01b6c8
2000-06-12 11:55:12 +00:00
Lars Gullik Bjønnes
6bba977f42 FILMagain changes (will need some work)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@807 a592a061-630c-0410-9148-cb99ea01b6c8
2000-06-12 11:27:15 +00:00
Lars Gullik Bjønnes
27de1486ca Initial revision
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@140 a592a061-630c-0410-9148-cb99ea01b6c8
1999-09-27 18:44:28 +00:00