diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-09 00:44:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-09 00:44:40 +0000 |
commit | b4fc5f639874db951177ec539299d20908adb654 (patch) | |
tree | 52f08823ca58fffe3db6a9b075635038c567626c /Master/texmf-dist/doc/latex/ginpenc | |
parent | dec3d98ebe442d7ea93efbaa8dd2e2be8149a467 (diff) |
doc 4
git-svn-id: svn://tug.org/texlive/trunk@80 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/ginpenc')
-rw-r--r-- | Master/texmf-dist/doc/latex/ginpenc/README | 38 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/ginpenc/news-message.txt | 76 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/ginpenc/testginpenc.tex | 37 |
3 files changed, 151 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/ginpenc/README b/Master/texmf-dist/doc/latex/ginpenc/README new file mode 100644 index 00000000000..b472aa2ebfb --- /dev/null +++ b/Master/texmf-dist/doc/latex/ginpenc/README @@ -0,0 +1,38 @@ +ginpenc.sty +=========== + +If the package inputenc is used and German Umlauts are input directly, +they are converted to \"a etc. This breaks the sort algorithm of +makeindex, for instance. This package converts Umlauts and the Sharp s +to the short forms, defined by the babel package, e.g. "a, instead, if +the text is typeset in German. + + +Copyright 2003 Harald Harders + +This program can be redistributed and/or modified under the terms +of the LaTeX Project Public License Distributed from CTAN +archives in directory macros/latex/base/lppl.txt; either +version 1 of the License, or any later version. + + +automatic: - run make + - run make install + or + - run make + - copy ginpenc.sty to a place where LaTeX can find it + - run texhash or the corresponding command of your distribution + +by hand: - execute latex on ginpenc.ins + - execute latex on ginpenc.dtx (2x) + - copy ginpenc.sty and *.gie to a place LaTeX can find them + - run texhash or the corresponding command of your distribution + + +ChangeLog: +- 1.00 2003/09/29 First official version + + +2003-09-29 +Harald Harders +h.harders@tu-bs.de diff --git a/Master/texmf-dist/doc/latex/ginpenc/news-message.txt b/Master/texmf-dist/doc/latex/ginpenc/news-message.txt new file mode 100644 index 00000000000..9d1cfc1f0f2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ginpenc/news-message.txt @@ -0,0 +1,76 @@ +Path: news.tu-bs.de!news-han1.dfn.de!news-stu1.dfn.de!news.belwue.de!news.uni-freiburg.de!not-for-mail +From: Heiko Oberdiek <oberdiek@uni-freiburg.de> +Newsgroups: de.comp.text.tex +Subject: Re: Inputencoding herausfinden +Date: Fri, 08 Aug 2003 02:34:27 +0200 +Organization: Rechenzentrum der Universitaet Freiburg, Germany +Lines: 60 +Message-ID: <bguqq2$is4$2@n.ruf.uni-freiburg.de> +References: <slrnbj46l6.hfp.h.harders@pc52.ifw.ing.tu-bs.de> +NNTP-Posting-Host: merkur.informatik.uni-freiburg.de +Mime-Version: 1.0 +Content-Type: text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: 8bit +X-Newsreader: Forte Agent 1.91/32.564 +Xref: news.tu-bs.de de.comp.text.tex:138386 + +Harald Harders <h.harders@tu-bs.de> wrote: + +> gibt es eine Möglichkeit, nach der Verwendung von +> \usepackage[...]{inputenc} +> von LaTeX aus herauszufinden, welches Encoding geladen wurde? + +Ja: + +documentclass{article} +\usepackage[latin1]{inputenc} + +%%% \inputenc %%% BEGIN %%% +%%% * Package inputenc has to be loaded first. +%%% * \inputenc: <empty>, if no input encoding is set +%%% otherwise it contains the name of the current input encoding. + +% default value for \inputenc +\let\inputenc\empty +% redefinition of \inputencoding to store the input encoding name +\let\OrgInputencoding\inputencoding +\def\inputencoding#1{% + \def\inputenc{#1}% + \OrgInputencoding{#1}% +} +% get current input encoding +\begingroup + \makeatletter + \expandafter\ifx\csname @inpenc@undefined\endcsname\relax + \edef\x{\endgroup}% + \else + \def\@inpenc@undefined@#1{\def\noexpand\inputenc{#1}}% + \edef\x{\endgroup + \@inpenc@undefined + }% + \fi +\x +%%% \inputenc %%% END %%% + +\begin{document} + +\typeout{* Input encoding: `\inputenc'} + +\inputencoding{cp850} +\typeout{* Input encoding: `\inputenc'} + +\end{document} + +> Ich habe mal in inputenc.sty reingeschaut, aber mir ist nicht +> aufgefallen, dass irgendwo ein Makro oder so auf die Kodierung +> gesetzt würde. + +Faellt doch sofort ins Auge, die Option (\DeclareOption*) fuehrt +\inputencoding{\CurrentOption} aus, das Argument wird +dreimal verwendet, gleich bei der ersten Verwendung wird das +Argument von \inputencoding in \@inpenc@undefined gespeichert. +Obiger Code speichert den Wert lediglich in \inputenc um (und +entfernt das erste Token "\@inpenc@undefined@". + +Viele Gruesse + Heiko <oberdiek@uni-freiburg.de> diff --git a/Master/texmf-dist/doc/latex/ginpenc/testginpenc.tex b/Master/texmf-dist/doc/latex/ginpenc/testginpenc.tex new file mode 100644 index 00000000000..980ea5c60af --- /dev/null +++ b/Master/texmf-dist/doc/latex/ginpenc/testginpenc.tex @@ -0,0 +1,37 @@ +\listfiles +\documentclass{article} + +\usepackage{ginpenc} +\usepackage[latin1]{inputenc} +\usepackage[english,ngerman]{babel} +\usepackage{makeidx} + +\makeindex + +\providecommand\inputenc{??} + +\begin{document} +Please have a look into the file \jobname.idx. +Here, the entry written in German should be typed with \verb|"u| while +the English version is typed with \verb|\"u|. + +\typeout{\languagename:} +\typeout{* Input encoding: `\inputenc'} + +\index{Rüber (ger)} + +\inputencoding{cp850} +\typeout{* Input encoding: `\inputenc'} +\inputencoding{latin1} + +\selectlanguage{english} +\typeout{\languagename:} +\typeout{* Input encoding: `\inputenc'} + +\index{Rüber (eng)} + +\inputencoding{cp850} +\typeout{* Input encoding: `\inputenc'} +\printindex + +\end{document} |