Mirror of Lyx repo
Go to file
Abdelrazak Younes 3461169526 Patch by Vincent that solves a number of problems related to the painting of a selection:
1. When a listing is inserted in a bit of text, the line above the listing is not drawn over the full width like it is done for lines above other insets. This is because InsetListing has a AlignLeft alignment. Now, if you start selecting downwards with the mouse in this empty area, strange selection drawings appear (see attachment).
This is caused by the fact that starting your selection at such a place, causes beg.boundary() to be true in TextMetrics::drawRowSelection(..). This is correct, but this value is true for _all_ selected lines. Now, the selection acts as if it is RTL text. Therefore, just like for end.boundary, this value needs to be reset for every line.
2. Starting your selection in an end margin often causes the selection in this end margin to be painted later. This is because when starting your selection in an end margin, you may have set a (possible empty) selection before really selecting the end margin. The problem is that the checksum (computed later) is the same for this empty selection and for the end margin selection. Therfore, we need a call to cur.setSelection() before evaluating cur.selection().
 
3. In the following two lines, it is assumed that there is only an end margin to be painted if the selection extends to the next paragraph. This is not true for the above described case of an AlignLeft Inset. Then, the margin has also be drawn within a paragraph
 
4. The end and begin margins are only painted when the selection extends into the following or previous paragraph. This difference is not resembled in the checksum if you first select a row completely and then procede to the next or previous paragraph as the selection remains at the end of a row. This also holds for the AlignLeft case. Therefore I added a term to the checksum to monitor whether the end and begin margins need to be drawn.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26399 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-14 14:32:40 +00:00
boost we should update boost 2008-08-13 21:41:32 +00:00
config Spare a few cpu cycles 2008-08-12 09:02:46 +00:00
development fix SCons after r26365 2008-09-12 23:26:06 +00:00
intl put the 0.16.1 code from gettext back 2008-06-09 13:50:05 +00:00
lib Add note. 2008-09-14 13:17:00 +00:00
m4 create the initial po/POTFILE.in at autogen.sh time; I hope this does 2008-06-17 15:14:20 +00:00
po Few glitches. 2008-09-14 13:17:43 +00:00
sourcedoc * Doxy: polish html output #2. 2008-02-03 14:00:18 +00:00
src Patch by Vincent that solves a number of problems related to the painting of a selection: 2008-09-14 14:32:40 +00:00
ABOUT-NLS put the 0.16.1 code from gettext back 2008-06-09 13:50:05 +00:00
ANNOUNCE relict from past. 2008-08-29 15:11:23 +00:00
autogen.sh Remove Makefile.depend from repository, like we did for POTFILES.in. It is 2008-09-12 10:23:43 +00:00
configure.ac Back to svn in route to rc3 2008-08-29 09:16:55 +00:00
COPYING
INSTALL we require at least autoconf 2.59c (objc support for mac os x) 2008-08-11 21:46:38 +00:00
INSTALL.autoconf
INSTALL.cmake build out of the box with win32libs from the kdewin installer 2008-03-24 14:19:36 +00:00
INSTALL.MacOSX * INSTALL.MacOSX (from Anders Ekberg) 2008-02-29 01:20:59 +00:00
INSTALL.scons
INSTALL.Win32 compile with MSVC 2008 2008-01-02 15:15:04 +00:00
lyx.1in missing autoconf stubs 2008-08-14 10:38:31 +00:00
Makefile.am let autoconf generate lyx.1; add information on LIBDIR there (not sure it is actully useful) 2008-08-12 21:18:49 +00:00
NEWS Prepare ANNOUNCE and NEWS for rc2 2008-08-07 08:12:13 +00:00
README Qt >= 4.2.0 is required. 2007-11-14 14:45:28 +00:00
README.Cygwin
README.localization Polish doc (don't repeat everything twice). 2008-01-24 10:38:04 +00:00
README.Win32
RELEASE-NOTES keep lines below 80 chars 2008-09-13 20:59:22 +00:00
rename.sh
UPGRADING Make this more explicit. 2008-01-09 18:45:48 +00:00

What is LyX?

    LyX is a document processor that encourages an approach to
    writing based on the structure of your documents, not their
    appearance. It is released under a Free Software / Open Source
    license.

    LyX is for people that write and want their writing to look great,
    right out of the box. No more endless tinkering with formatting
    details, 'finger painting' font attributes or futzing around with
    page boundaries. You just write. In the background, Prof. Knuth's
    legendary TeX typesetting engine makes you look good.

    On screen, LyX looks like any word processor; its printed output
    -- or richly cross-referenced PDF, just as readily produced --
    looks like nothing else. Gone are the days of industrially bland
    .docs, all looking similarly not-quite-right, yet coming out
    unpredictably different on different printer drivers. Gone are the
    crashes 'eating' your dissertation the evening before going to
    press.

    LyX is stable and fully featured. It is a multi-platform, fully
    internationalized application running natively on Unix/Linux and
    the Macintosh and modern Windows platforms.

What do I need to run LyX?

    Either of :
    * a Unix-like system (including Windows with cygwin)
    * Windows 2000 or newer
    * Mac OS 10.2 or newer

    A decent LaTeX2e installation (e.g. teTeX for unix) not older
       than 1995/12/01.
    Python 2.3 or later to convert old LyX files and for helper scripts
    (note that you need at least Python 2.3.4 for exporting LyX files
    to a pre-unicode format, as previous versions are affected by a bug
    about the normalization of unicode strings)

How does the LyX version scheme work?

    LyX uses a contiguous numbering scheme for versions, where a
    number "1.x.y" indicates a stable release '1.x', maintenance
    release 'y'.  In other words, LyX 1.5.0 was the first stable
    release in the 1.5-series of LyX. At the time of writing, the
    latest maintenance release in the 1.5-series was LyX 1.5.2

    Please note that maintenance releases are designed primarily to
    fix bugs, and that the file format will _never_ change due to a
    maintenance release.

    In addition to the stable releases and maintenance releases, some
    users may want to give a ''release candidate'' a try. This is a
    release that should be stable enough for daily work, but yet may
    be potentially unstable. If no major bugs are found, the release
    candiate is soon released as the first stable release in a a new
    series. To summarize, there are three possible types of file names
    that are of interest to normal users:

       lyx-1.5.0.tar.gz     -- stable release, first in the 1.5-series
       lyx-1.5.5.tar.gz     -- fifth maintenance release of LyX 1.5
       lyx-1.5.0rc1.tar.gz  -- potentially unstable release candidate

    Note that the goal is not parallel development as for the linux
    kernel --the team is too small to afford that-- but rather to
    include all the simple and safe bug fixes. This is so that the
    maintenance burden on us is not too high, and so that system
    administrators can install new releases without fear.  Experience
    shows that these releases will contain a few new features, and
    that the bulk of the patches will be documentation updates.

    If you get the source from Subversion, the version string will
    look like one of:

       1.5.1svn     -- this is the stable branch on which maintenance
               release 1.5.1 will eventually be tagged.
       1.6.0svn     -- this is the main branch on which stable
               release 1.6.0 will eventually be tagged.

What's new?

    Read NEWS.

How do I upgrade from an earlier LyX version?

    Read the file UPGRADING for info on this subject.

What do I need to compile LyX from the source distribution?

    * A good C++ compiler.  Development is being done mainly with
      gcc/g++, but some others work also. As of LyX 1.6.0, you need at
      least gcc 3.2.x.

    * The Qt4 library, version 4.2.0 or newer.

    Read the file "INSTALL" for more information on compiling.

Okay, I've installed LyX. What now?

    Once you've installed it, and everything looks fine, go read
    the "Introduction" item under the Help menu.  You should follow
    the instructions there, which tell you to read (or at least skim)
    the Tutorial. After that, you should also read "Help>LaTeX
    configuration" which provides info on your LaTeX configuration
    as LyX sees it.  You might be missing a package or two that you'd
    like to have.

    User-level configuration is possible via the Tools>Preferences menu.

Does LyX have support for non-English speakers/writers/readers?

    Yes. LyX supports writing in many languages, including
    right-to-left languages like Arabic or Hebrew. There is a port
    of LyX named CJK-LyX which adds support for Chinese, Korean
    and Japanese (http://cellular.phys.pusan.ac.kr/cjk.html)
    [This support is being merged in lyx-1.5]

    Menus and error messages have been translated to 17 languages.
    For the status of the different translations, see
    http://www.lyx.org/devel/i18n.php

    Keymaps can ease typing in many languages.

Internet resources of relevance to LyX

    The LyX homepage contains valuable information about LyX and the
    various LyX mailing lists, as well as links to mirrors and other
    LyX homepages around the world:
	http://www.lyx.org/

    The LyX Wiki is the place where users can share information on
    setting up and using LyX.
	http://wiki.lyx.org/

    The main LyX archive site:
	ftp://ftp.lyx.org/pub/lyx/

    The LyX Development page has information about the development
    effort. LyX is under Subversion control, so you can get the very
    latest sources from there at any time.
	http://www.lyx.org/devel
	ftp://ftp.devel.lyx.org/pub/lyx/

How do I submit a bug report?

    If possible, read the Introduction found under the Help menu in LyX.
    You'll find detailed info on submitting bug reports there.

    If you can't do that, send details to the LyX Developers' mailing
    list, or use the LyX bug tracker at http://bugzilla.lyx.org/.
    Don't forget to mention which version you are having problems with!

How can I participate in the development of LyX?

    Any help with the development of LyX is greatly appreciated ---
    after all, LyX wouldn't be what it is today without the help
    of volunteers. We need your help!

    If you want to work on LyX, you should contact the developer's
    mailing list for discussion on how to do your stuff.  LyX is being
    cleaned up, and therefore it's important to follow some rules.
    Read about those rules in development/Code_rules/.

    If you don't know C++, there are many other ways to
    contribute. Write documentation. Help to internationalize LyX
    by translating documentation or menus/error messages, or by
    writing a new keymap. Write a new textclass. Find bugs (but
    please read the list of known bugs first). Contribute money.
    Or just offer feature suggestions (but please read the online
    TODO list first).

Thank you for trying LyX. We appreciate your feedback in the mailing
lists.

The LyX Team.