Georg Baum [Tue, 18 Dec 2012 21:20:32 +0000 (22:20 +0100)]
Add toolbar images for stmaryrd.sty symbols
These are all generated by development/tools/generate_symbols_images.py, the
only manual adjustments were renamings due to case sensitive file systems on
windows.
The \frametitle command is less convenient to use than the \frame argument, but it provides more options (overlay/action and short title). We thus provide this additionally to the option, like beamer itself does.
This has a list-like structure (with \onslide item commands). The previous implementation was rather useless, since it required lots of ERT. Since the new implementation is so different, we use ERT for conersion/reversion.
Kornel Benko [Tue, 18 Dec 2012 09:49:21 +0000 (10:49 +0100)]
Cmake build:
New target: git-archive. It uses the archive comman of git to create
the complete source package.
This Target is only available if
1.) there is a git command on this host
2.) the lyx-source is under git control
Georg Baum [Sun, 16 Dec 2012 14:49:42 +0000 (15:49 +0100)]
Full delimiter support for llbracket and rrbracket
stmaryrd.sty sets these symbols up as variable size math delimiters (i.e.
they may be used with \left and \right). Now LyX knows about that and offers
them in the delimiter dialog as well as single symbols.
Georg Baum [Sun, 16 Dec 2012 13:44:49 +0000 (14:44 +0100)]
Fix errors found by generate_symbols_images.py
llltr is a copy-paste error, the correct name is llless.
astrosun needs the wasysym package (the automatism does not kick in because
the font is cmsy, not wasy).
Georg Baum [Sat, 15 Dec 2012 12:02:40 +0000 (13:02 +0100)]
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.
Georg Baum [Sat, 15 Dec 2012 10:21:01 +0000 (11:21 +0100)]
Move some glyphs up by 800 units.
Without this, qt will enlarge some glyphs out of proportion (no, I don't
understand why it does this, and I found out by accident how to avoid it).
Still, the vertical alignment is only roughly correct (also for the untouched
glyphs). If somebody cares some fine adjustment would be nice.
Fix a crash in PreviewLoader for command-line xhtml output
While exporting from the command-line, theApp() doesn't exist.
The colors foreground and background are only needed when
previewing, so ignore this during buffer export.
This replaces the fix in 4285b0b3 (Tommaso Cucinotta, 10-12-2012).
In this case, we do not need to pull in Qt dependencies.
This patch puts all projects into subfolders (at least for MSVS). In this
way, there is a better overview (especially if the number of test projects
will be increasing).
Georg Baum [Fri, 14 Dec 2012 21:30:47 +0000 (22:30 +0100)]
Re-encode stmary10 font
Use a 1:1 unicode "encoding" as for all other math symbol fonts.
This is not correct for using the font outside of LyX, but in LyX we misuse
the first 255 code points for symbol fonts (see code points of existing fonts
in lib/symbols). These code points are identical with the postscript versions
of the fonts, so if qt was able to use postscript fonts, they could be used
instead of the truetype versions.
The character varcurlywedge is duplicated at position 254, since qt refuses to
display a font at the tab position (9).
In addition, get rid of the broken private directory which is not needed for
generating ttf.
Georg Baum [Fri, 14 Dec 2012 21:16:06 +0000 (22:16 +0100)]
Import stmary10 front from stmary10.pfb
This is the result of loading
http://mirrors.ctan.org/fonts/stmaryrd/ps-type1/hoekwater/stmary10.pfb
into fontforge and saving in fontforge format. It will be needed to fix
bug #8434. I am saving it in fontforge format since a few modifications are
needed before a working .ttf can be exported.
Kornel Benko [Thu, 13 Dec 2012 11:38:38 +0000 (12:38 +0100)]
Cmake build autotests:
Split export test to test on each format and each input file
One can still check all exports with one commend
ctest -R "export.*"
While exporting from the command-line, theApp() doesn't exist.
It was only needed for getting hex names of colors. So, get them
directly from a ColorCache object with default mapping.
Scott Kostyshak [Wed, 12 Dec 2012 09:04:39 +0000 (04:04 -0500)]
Keep outer tabular borders when delete row/column
Fix #4981:
If the first or last column is deleted, the borders are preserved.
Similarly for the last row, but not for the first row. Selections are
supported.
Scott Kostyshak [Wed, 12 Dec 2012 08:44:38 +0000 (03:44 -0500)]
Fix a bug when selecting a cell in InsetTabular
Fix the following bug:
When in tabular, enter "ab" in a cell. Place the cursor before "b". Hold
shift and press <right>, then (still holding shift) <right> again. On
the second <right> nothing appears to happen.
Scott Kostyshak [Wed, 12 Dec 2012 08:44:17 +0000 (03:44 -0500)]
Fix another selection bug in InsetTabular
Fix #4981:
In tabular if a vertical selection is made with the keyboard (e.g.
LFUN_UP_SELECT), the selection is drawn if there are two cells selected.
Previously, the selection would be drawn only if there were more than
two selected.
Scott Kostyshak [Wed, 12 Dec 2012 08:43:53 +0000 (03:43 -0500)]
Fix a selection bug in InsetTabular
If you have a selection across cells in tabular, moving the cursor
vertically up or down (e.g. LFUN_UP) now removes the drawn selection.
Before, the selection was set to false but it was not repainted.
Kornel Benko [Tue, 11 Dec 2012 14:17:04 +0000 (15:17 +0100)]
Cmake build: First try to use autotests.
Many test are not running, but if changed the '-dbg xxx' to '-dbg any'
then all of sudden they pass ...
(The buffered output of lyx is often disrupted too early with 'kill -9',
so the expected data are not available for the appropriate test)
Richard Heck [Mon, 10 Dec 2012 16:09:50 +0000 (11:09 -0500)]
Fix lyx2lyx bug: We need to check for quoted names before we check
for unquoted ones. Otherwise, a quoted name with no spaces gets
treated as if it were an unquoted name.