mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
latex code to create list of hyphenation patterns
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9387 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
eef5f997f1
commit
242118065b
@ -1,10 +1,17 @@
|
||||
2004-12-16 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* configure.m4: remove code for checking languages in the LaTeX
|
||||
format...
|
||||
|
||||
* chkconfig.ltx: ... and replace it with a TeX solution
|
||||
|
||||
2004-12-13 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
* CREDITS: add John Spray
|
||||
|
||||
2004-12-07 Martin Vermeer <martin.vermeer@hut.fi>
|
||||
|
||||
* configure.m4: add printout of language list for which
|
||||
* configure.m4: add printout of language list for which
|
||||
hyphenation is enabled
|
||||
|
||||
2004-11-19 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
@ -152,6 +152,25 @@
|
||||
\message{^^J\prefix checking for LaTeX version... \fmtversion}
|
||||
\AddVariable{fmtversion}{\fmtversion}
|
||||
|
||||
%%% And now, the list of available languages
|
||||
% The trick is to know that \the\everyjob contains something like
|
||||
% \typeout{LaTeX2e <2001/06/01>}
|
||||
% \typeout{Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, nohyphenation, loaded.}
|
||||
% All we have to do is to extract the list from there:
|
||||
% (1) concatenate all the messages that are displayed everytime the
|
||||
% format is loaded. The is done by redefining locally \typeout to
|
||||
% append its argument to the macro \mesg.
|
||||
\def\mesg{}
|
||||
{\def\typeout#1{\xdef\mesg{\mesg #1}}
|
||||
\the\everyjob}
|
||||
% (2) strip the useless parts from \mesg. This uses the fact that TeX
|
||||
% allows to define macros with parameters delimited by arbitrary text.
|
||||
\def\strip#1patterns for #2, loaded.#3\endmark{\def\langs{#2}}
|
||||
\expandafter\strip\mesg\endmark
|
||||
% (3) handle the result
|
||||
\message{^^J\prefix checking for available hyphenation patterns... \langs}
|
||||
\AddVariable{languages}{\langs}
|
||||
|
||||
%%% Check for ec fonts. Most of this code has been shamelessely stolen
|
||||
%%% from the file ltxcheck.tex in the LaTeX distribution. In particular,
|
||||
%%% don't ask me how the macro \ecrm works...
|
||||
|
@ -219,19 +219,6 @@ else
|
||||
LATEX=
|
||||
ac_result="not useable"
|
||||
fi
|
||||
# Grab the list of languages avaliable to LaTeX by parsing the LaTeX log file, chklatex.log.
|
||||
LANGUAGES=`sed -n '/hyphenation patterns/{
|
||||
:loop
|
||||
/loaded\.$/!{
|
||||
$!{
|
||||
N
|
||||
s/\n//
|
||||
s/^.*for\ //
|
||||
tloop
|
||||
}
|
||||
}
|
||||
/loaded\.$/p
|
||||
}' chklatex.log`
|
||||
rm -f chklatex.ltx chklatex.log])dnl
|
||||
dnl
|
||||
# Search LaTeX2e
|
||||
@ -536,11 +523,6 @@ changequote(,)dnl
|
||||
echo "creating doc/LaTeXConfig.lyx"
|
||||
echo "s/@chk_linuxdoc@/$chk_linuxdoc/g" >> chkconfig.sed
|
||||
echo "s/@chk_docbook@/$chk_docbook/g" >> chkconfig.sed
|
||||
# Add a line to chkconfig.sed so that the placeholder in
|
||||
# LaTeXConfig.lyx.in will be replaced by the list of available
|
||||
# languages.
|
||||
test "${LANGUAGES}" != "" && \
|
||||
echo "s/@chk_languages@/${LANGUAGES}/g" >> chkconfig.sed
|
||||
sed -f chkconfig.sed "${srcdir}"/doc/LaTeXConfig.lyx.in >doc/LaTeXConfig.lyx
|
||||
|
||||
echo "creating $outfile"
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-12-16 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* LaTeXConfig.lyx.in: change a bit the description of language
|
||||
list (do not use a subsection in a description)
|
||||
|
||||
2004-12-07 Martin Vermeer <martin.vermeer@hut.fi>
|
||||
|
||||
* LaTeXConfig.lyx.in: add printout of language list for which
|
||||
|
@ -1,5 +1,5 @@
|
||||
#LyX 1.4.0cvs created this file. For more info see http://www.lyx.org/
|
||||
\lyxformat 237
|
||||
\lyxformat 238
|
||||
\begin_document
|
||||
\begin_header
|
||||
\textclass article
|
||||
@ -2108,14 +2108,10 @@ Table of contents
|
||||
\end_layout
|
||||
|
||||
\begin_deeper
|
||||
\begin_layout Subsubsection*
|
||||
|
||||
Languages for which hyphenation patterns are loaded:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
@chk_languages@
|
||||
Your LaTeX installation has hyphenation patterns for the following languages:
|
||||
@chk_languages@
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
Loading…
Reference in New Issue
Block a user