Add printing of list of languages for which hyphenation is enabled

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9354 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2004-12-07 09:38:57 +00:00
parent 3a79aaab3f
commit 38bba4b649
4 changed files with 475 additions and 421 deletions

View File

@ -1,3 +1,8 @@
2004-12-07 Martin Vermeer <martin.vermeer@hut.fi>
* configure.m4: add printout of language list for which
hyphenation is enabled
2004-11-19 Jürgen Spitzmüller <j.spitzmueller@gmx.de> 2004-11-19 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* layouts/memoir.layout: allow 2 optional arguments * layouts/memoir.layout: allow 2 optional arguments

View File

@ -219,6 +219,19 @@ else
LATEX= LATEX=
ac_result="not useable" ac_result="not useable"
fi 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 rm -f chklatex.ltx chklatex.log])dnl
dnl dnl
# Search LaTeX2e # Search LaTeX2e
@ -523,6 +536,11 @@ changequote(,)dnl
echo "creating doc/LaTeXConfig.lyx" echo "creating doc/LaTeXConfig.lyx"
echo "s/@chk_linuxdoc@/$chk_linuxdoc/g" >> chkconfig.sed echo "s/@chk_linuxdoc@/$chk_linuxdoc/g" >> chkconfig.sed
echo "s/@chk_docbook@/$chk_docbook/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 sed -f chkconfig.sed "${srcdir}"/doc/LaTeXConfig.lyx.in >doc/LaTeXConfig.lyx
echo "creating $outfile" echo "creating $outfile"

View File

@ -1,3 +1,8 @@
2004-12-07 Martin Vermeer <martin.vermeer@hut.fi>
* LaTeXConfig.lyx.in: add printout of language list for which
hyphenation is enabled
2004-12-02 Martin Vermeer <martin.vermeer@hut.fi> 2004-12-02 Martin Vermeer <martin.vermeer@hut.fi>
* UserGuide.lyx: document use of texconfig for * UserGuide.lyx: document use of texconfig for

View File

@ -1,5 +1,7 @@
#LyX 1.4.0cvs created this file. For more info see http://www.lyx.org/ #LyX 1.4.0cvs created this file. For more info see http://www.lyx.org/
\lyxformat 232 \lyxformat 237
\begin_document
\begin_header
\textclass article \textclass article
\language english \language english
\inputencoding default \inputencoding default
@ -7,14 +9,12 @@
\graphics dvips \graphics dvips
\paperfontsize 0 \paperfontsize 0
\spacing single \spacing single
\papersize Default \papersize default
\paperpackage a4 \paperpackage none
\use_geometry 0 \use_geometry false
\use_amsmath 0 \use_amsmath 0
\use_natbib 0 \cite_engine basic
\use_numerical_citations 0 \use_bibtopic false
\use_jurabib 0
\use_bibtopic 0
\paperorientation portrait \paperorientation portrait
\secnumdepth 2 \secnumdepth 2
\tocdepth 3 \tocdepth 3
@ -25,9 +25,11 @@
\papercolumns 1 \papercolumns 1
\papersides 1 \papersides 1
\paperpagestyle plain \paperpagestyle plain
\tracking_changes 0 \tracking_changes false
\end_header \end_header
\begin_body
\begin_layout Title \begin_layout Title
Inventory of your LaTeX configuration Inventory of your LaTeX configuration
@ -2105,6 +2107,29 @@ Table of contents
if you want to use non-English quotes. if you want to use non-English quotes.
\end_layout \end_layout
\begin_deeper
\begin_layout Subsubsection*
Languages for which hyphenation patterns are loaded:
\end_layout
\begin_layout Standard
@chk_languages@
\end_layout
\begin_layout Standard
If a language you use is not on this list, you should reconfigure your LaTeX
installation to include it.
For teTeX, this means running
\family typewriter
texconfig
\family default
.
\end_layout
\end_deeper
\begin_layout Subsection \begin_layout Subsection
color color
@ -2720,4 +2745,5 @@ url
is needed by LyX to be able to output url's corrently. is needed by LyX to be able to output url's corrently.
\end_layout \end_layout
\end_body
\end_document \end_document