Fix spacing of greek letters; other things.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@580 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-03-01 18:15:39 +00:00
parent b06cfe1dec
commit 0d167123ac
5 changed files with 42 additions and 27 deletions

View File

@ -1,3 +1,18 @@
2000-03-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/mathed/math_utils.C (MathedLookupBOP): fix the search
routine (this fixes bug where greek letters were surrounded by too
much white space).
* src/support/filetools.C (findtexfile): change a bit the search
algorithm, to fix bug introduced in 1.1.4. Note that --format is
no longer passed to kpsewhich, we may have to change that later.
* config/lyxinclude.m4 (LYX_PROG_CXX): better version-dependent
warning options to avoid problems with X header files (from Angus
Leeming).
* acinclude.m4: regenerated.
2000-03-02 Juergen Vigna <jug@sad.it> 2000-03-02 Juergen Vigna <jug@sad.it>
* src/insets/insettext.C (WriteParagraphData): Using the * src/insets/insettext.C (WriteParagraphData): Using the

View File

@ -183,11 +183,11 @@ dnl Check the version of g++
CXXFLAGS="$ac_save_CXXFLAGS" CXXFLAGS="$ac_save_CXXFLAGS"
elif test $ac_cv_prog_cxx_g = yes; then elif test $ac_cv_prog_cxx_g = yes; then
case $gxx_version in case $gxx_version in
2.95.1) CXXFLAGS="-g $lyx_opt -fpermissive -fno-rtti";; 2.95.1) CXXFLAGS="-g $lyx_opt -fpermissive -fno-rtti";;
2.95.*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";; 2.95.*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
2.96*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";; 2.96*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
*2.91.*) CXXFLAGS="-g $lyx_opt -Wno-return-type -fno-exceptions -fno-rtti";; *2.91.*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
*) CXXFLAGS="-g $lyx_opt -fno-exceptions -fno-rtti";; *) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
esac esac
else else
CXXFLAGS="$lyx_opt" CXXFLAGS="$lyx_opt"
@ -195,13 +195,14 @@ dnl Check the version of g++
if test x$with_warnings = xyes ; then if test x$with_warnings = xyes ; then
case $gxx_version in case $gxx_version in
2.95.*) CXXFLAGS="$CXXFLAGS -Wall -W -Wconversion";; 2.95.*) CXXFLAGS="$CXXFLAGS -Wall -W -Wconversion";;
2.96*) CXXFLAGS="$CXXFLAGS -Wall -W -Wconversion";; 2.96*) CXXFLAGS="$CXXFLAGS -Wall -W -Wconversion";;
*) CXXFLAGS="$CXXFLAGS -ansi -Wall -W";; *) CXXFLAGS="$CXXFLAGS -ansi -Wall -W -Wno-return-type";;
esac esac
if test $lyx_devel_version = yes ; then if test $lyx_devel_version = yes ; then
case $gxx_version in case $gxx_version in
2.95.*) ;; 2.95.*) ;;
2.96*) ;; 2.96*) ;;
*2.91*) ;;
*) CXXFLAGS="$CXXFLAGS -pedantic";; *) CXXFLAGS="$CXXFLAGS -pedantic";;
esac esac
fi fi

View File

@ -183,11 +183,11 @@ dnl Check the version of g++
CXXFLAGS="$ac_save_CXXFLAGS" CXXFLAGS="$ac_save_CXXFLAGS"
elif test $ac_cv_prog_cxx_g = yes; then elif test $ac_cv_prog_cxx_g = yes; then
case $gxx_version in case $gxx_version in
2.95.1) CXXFLAGS="-g $lyx_opt -fpermissive -fno-rtti";; 2.95.1) CXXFLAGS="-g $lyx_opt -fpermissive -fno-rtti";;
2.95.*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";; 2.95.*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
2.96*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";; 2.96*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
*2.91.*) CXXFLAGS="-g $lyx_opt -Wno-return-type -fno-exceptions -fno-rtti";; *2.91.*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
*) CXXFLAGS="-g $lyx_opt -fno-exceptions -fno-rtti";; *) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
esac esac
else else
CXXFLAGS="$lyx_opt" CXXFLAGS="$lyx_opt"
@ -195,13 +195,14 @@ dnl Check the version of g++
if test x$with_warnings = xyes ; then if test x$with_warnings = xyes ; then
case $gxx_version in case $gxx_version in
2.95.*) CXXFLAGS="$CXXFLAGS -Wall -W -Wconversion";; 2.95.*) CXXFLAGS="$CXXFLAGS -Wall -W -Wconversion";;
2.96*) CXXFLAGS="$CXXFLAGS -Wall -W -Wconversion";; 2.96*) CXXFLAGS="$CXXFLAGS -Wall -W -Wconversion";;
*) CXXFLAGS="$CXXFLAGS -ansi -Wall -W";; *) CXXFLAGS="$CXXFLAGS -ansi -Wall -W -Wno-return-type";;
esac esac
if test $lyx_devel_version = yes ; then if test $lyx_devel_version = yes ; then
case $gxx_version in case $gxx_version in
2.95.*) ;; 2.95.*) ;;
2.96*) ;; 2.96*) ;;
*2.91*) ;;
*) CXXFLAGS="$CXXFLAGS -pedantic";; *) CXXFLAGS="$CXXFLAGS -pedantic";;
esac esac
fi fi

View File

@ -86,11 +86,11 @@ int MathedLookupBOP(short id)
issorted = true; issorted = true;
} }
int result = 0;
binary_op_pair * res = lower_bound(binary_op_table, binary_op_pair * res = lower_bound(binary_op_table,
binary_op_table + bopCount, binary_op_table + bopCount,
id, compara()); id, compara());
if (res != (binary_op_table + bopCount)) if (res->id == id)
result = res->isrel; return res->isrel;
return result; else
return LMB_NONE;
} }

View File

@ -1008,7 +1008,7 @@ static cmdret do_popen(string const & cmd)
} }
string findtexfile(string const & fil, string const & format) string findtexfile(string const & fil, string const & /*format*/)
{ {
/* There is no problem to extend this function too use other /* There is no problem to extend this function too use other
methods to look for files. It could be setup to look methods to look for files. It could be setup to look
@ -1019,15 +1019,13 @@ string findtexfile(string const & fil, string const & format)
Lgb Lgb
*/ */
// If fil is a file with absolute path we just return it // If the file can be found directly, we just return a
if (AbsolutePath(fil)) return fil; // absolute path version of it.
if (FileInfo(fil).exist())
// Check in the current dir. return MakeAbsPath(fil);
if (FileInfo(OnlyFilename(fil)).exist())
return OnlyFilename(fil);
// No we try to find it using kpsewhich. // No we try to find it using kpsewhich.
string kpsecmd = "kpsewhich --format=" + format + " " + OnlyFilename(fil); string kpsecmd = "kpsewhich " + fil;
cmdret c = do_popen(kpsecmd); cmdret c = do_popen(kpsecmd);