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>
* src/insets/insettext.C (WriteParagraphData): Using the

View File

@ -186,8 +186,8 @@ dnl Check the version of g++
2.95.1) CXXFLAGS="-g $lyx_opt -fpermissive -fno-rtti";;
2.95.*) 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";;
*) CXXFLAGS="-g $lyx_opt -fno-exceptions -fno-rtti";;
*2.91.*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
esac
else
CXXFLAGS="$lyx_opt"
@ -196,12 +196,13 @@ dnl Check the version of g++
case $gxx_version in
2.95.*) 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
if test $lyx_devel_version = yes ; then
case $gxx_version in
2.95.*) ;;
2.96*) ;;
*2.91*) ;;
*) CXXFLAGS="$CXXFLAGS -pedantic";;
esac
fi

View File

@ -186,8 +186,8 @@ dnl Check the version of g++
2.95.1) CXXFLAGS="-g $lyx_opt -fpermissive -fno-rtti";;
2.95.*) 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";;
*) CXXFLAGS="-g $lyx_opt -fno-exceptions -fno-rtti";;
*2.91.*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
esac
else
CXXFLAGS="$lyx_opt"
@ -196,12 +196,13 @@ dnl Check the version of g++
case $gxx_version in
2.95.*) 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
if test $lyx_devel_version = yes ; then
case $gxx_version in
2.95.*) ;;
2.96*) ;;
*2.91*) ;;
*) CXXFLAGS="$CXXFLAGS -pedantic";;
esac
fi

View File

@ -86,11 +86,11 @@ int MathedLookupBOP(short id)
issorted = true;
}
int result = 0;
binary_op_pair * res = lower_bound(binary_op_table,
binary_op_table + bopCount,
id, compara());
if (res != (binary_op_table + bopCount))
result = res->isrel;
return result;
if (res->id == id)
return res->isrel;
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
methods to look for files. It could be setup to look
@ -1019,15 +1019,13 @@ string findtexfile(string const & fil, string const & format)
Lgb
*/
// If fil is a file with absolute path we just return it
if (AbsolutePath(fil)) return fil;
// Check in the current dir.
if (FileInfo(OnlyFilename(fil)).exist())
return OnlyFilename(fil);
// If the file can be found directly, we just return a
// absolute path version of it.
if (FileInfo(fil).exist())
return MakeAbsPath(fil);
// No we try to find it using kpsewhich.
string kpsecmd = "kpsewhich --format=" + format + " " + OnlyFilename(fil);
string kpsecmd = "kpsewhich " + fil;
cmdret c = do_popen(kpsecmd);