summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/lexikon
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/lexikon
Initial commit
Diffstat (limited to 'macros/latex/contrib/lexikon')
-rw-r--r--macros/latex/contrib/lexikon/lexikon-doc.pdfbin0 -> 183464 bytes
-rw-r--r--macros/latex/contrib/lexikon/lexikon-doc.tex52
-rw-r--r--macros/latex/contrib/lexikon/lexikon.sty169
-rw-r--r--macros/latex/contrib/lexikon/lexikon.tex92
-rw-r--r--macros/latex/contrib/lexikon/lexikon.upl20
5 files changed, 333 insertions, 0 deletions
diff --git a/macros/latex/contrib/lexikon/lexikon-doc.pdf b/macros/latex/contrib/lexikon/lexikon-doc.pdf
new file mode 100644
index 0000000000..d29501a02b
--- /dev/null
+++ b/macros/latex/contrib/lexikon/lexikon-doc.pdf
Binary files differ
diff --git a/macros/latex/contrib/lexikon/lexikon-doc.tex b/macros/latex/contrib/lexikon/lexikon-doc.tex
new file mode 100644
index 0000000000..e8bc0acc6c
--- /dev/null
+++ b/macros/latex/contrib/lexikon/lexikon-doc.tex
@@ -0,0 +1,52 @@
+\documentclass[fontsize=13pt, DIV=8, pagesize=auto]{scrartcl}
+
+\usepackage{fixltx2e}
+\usepackage{etex}
+\usepackage{xspace}
+\usepackage{lmodern}
+\usepackage[T1]{fontenc}
+\usepackage{textcomp}
+\usepackage{microtype}
+\usepackage{hyperref}
+
+\newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}}
+\newcommand*{\pkg}[1]{\textsf{#1}}
+\newcommand*{\BibTeX}{Bib\kern-0.08em\TeX\@\xspace}
+
+\pdfstringdefDisableCommands{%
+ \def\BibTeX{BibTeX\xspace}%
+}
+
+\addtokomafont{title}{\rmfamily}
+
+\title{The \pkg{lexikon} package\thanks{This manual corresponds to \pkg{lexikon}~v0.1c, dated~1999/05/13.}}
+\author{Axel Kielhorn\\\mail{A.Kielhorn@tu-bs.de}}
+\date{1999/05/13}
+
+
+\begin{document}
+
+\maketitle
+
+\noindent
+This is the \pkg{lexikon} package.
+When I posted it to \texttt{de.comp.text.tex} some weeks ago it's name was
+\texttt{dictionary.sty}. I changed it to fit into 8~charakters.
+
+This package provides some commands which may be useful for a two language
+dictionary with addiional information for the keywords. There is only
+\texttt{lexikon.tex} as a documentation and it is in german but should be sufficient
+to line out the usage. If you need phonetic symbols you have to get the
+\pkg{ips.sty} and read the manual, I can't help you with that.
+
+This package is unsupported, but if you have an idea for an enhancement or
+find a bug just send me a mail. I'll try to fix it but won't spend many
+hours on the package because it already does what I need.
+
+A database interface would be nice but will take some time.
+My first idea was to use \BibTeX, but now i started using perl. I'm not sure
+It will ever be ready.
+
+\end{document}
+
+
diff --git a/macros/latex/contrib/lexikon/lexikon.sty b/macros/latex/contrib/lexikon/lexikon.sty
new file mode 100644
index 0000000000..83596f9ccc
--- /dev/null
+++ b/macros/latex/contrib/lexikon/lexikon.sty
@@ -0,0 +1,169 @@
+%%
+%% This is file `lexikon.sty'
+%%
+%% Copyright (C) 1998-1999 by Axel Kielhorn. All rights reserved.
+%% For additional copyright information see further down in this file.
+%%
+%% This file is to be used with the LaTeX2e system.
+%% ------------------------------------------------
+%%
+%% 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.
+%%
+%% IMPORTANT NOTICE:
+%%
+%% Error reports in case of UNCHANGED versions to
+%% Axel Kielhorn
+%% A.Kielhorn@tu-bs.de
+%%
+%% \CharacterTable
+%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+%%
+
+\ProvidesPackage{lexikon}%
+ [1999/05/13 v0.1c LaTeX2e lexikon package]
+
+\setlength{\parskip}{0.5\baselineskip plus 3pt}
+\setlength{\parindent}{0pt}
+
+\newlength\leftfield
+\newlength\rightfield
+\newlength\dictindent
+
+%% Skip the 2nd entry
+\newif\ifgrammar
+\DeclareOption{grammar} {\grammartrue}
+\DeclareOption{nogrammar} {\grammarfalse}
+%% Show only the keywords of the entry
+%% Usefull to generate short overviews
+\newif\ifkeywordonly
+\DeclareOption{keywordonly}{\keywordonlytrue}
+\DeclareOption{fullentry} {\keywordonlyfalse}
+%% Show only the first language
+%% To create single language dictionaries
+\newif\ifsinglelanguage
+\DeclareOption{singlelanguage}{\singlelanguagetrue}
+\DeclareOption{duallanguage} {\singlelanguagefalse}
+%% Show the second language in the first collumn
+%% The entries should be sorted by the 4th column
+\newif\ifinvertlanguages
+\DeclareOption{invertlanguages}%
+{\PackageError{Not supported yet, sorry}{Send me the code and I'll include it.}}
+\DeclareOption{noinvertlanguages}%
+{\invertlanguagesfalse}
+%% No phonetic by default (You will need ipa.sty and the WSUIPA fonts)
+\newif\ifphonetic
+\DeclareOption{phonetic} {\phonetictrue}
+\DeclareOption{nophonetic}{\phoneticfalse}
+
+\ExecuteOptions{grammar,fullentry,duallanguage,noinvertlanguages,nophonetic}
+\ProcessOptions
+
+\ifphonetic
+ \RequirePackage{ipa}
+\fi
+
+\if@twoside
+ \def\ps@dictheadings{\let\@mkboth\@gobbletwo
+ \def\@evenhead{\vbox{\hsize=\textwidth
+ \hb@xt@ \textwidth{{\strut\rightmark\ -- \leftmark\hfil}}
+ \vskip 1.5\p@ \hrule}}%
+ \def\@oddhead{\vbox{\hsize=\textwidth
+ \hb@xt@ \textwidth{{\hfil\strut\rightmark\ -- \leftmark}}
+ \vskip 1.5\p@ \hrule}}%
+ \def\@evenfoot{\vbox{\hsize=\textwidth
+ \hb@xt@ \textwidth{{\thepage\hfil}}}}%
+ \def\@oddfoot{\vbox{\hsize=\textwidth
+ \hb@xt@ \textwidth{{\hfil\thepage}}}}%
+ \def\chaptermark##1{}
+ \def\sectionmark##1{}}
+\else
+ \def\ps@dictheadings{\let\@mkboth\@gobbletwo
+ \def\@evenhead{}%
+ \def\@oddhead{\vbox{\hsize=\textwidth
+ \hb@xt@ \textwidth{{\hfil\strut\rightmark\ -- \leftmark}}
+ \vskip 1.5\p@ \hrule}}%
+ \def\@evenfoot{}%
+ \def\@oddfoot{\vbox{\hsize=\textwidth
+ \hb@xt@ \textwidth{{\hfil\thepage\hfil}}}}%
+ \def\chaptermark##1{}%
+ \def\sectionmark##1{}}
+\fi
+\raggedbottom
+
+\setlength{\headheight}{1.25\baselineskip}
+
+
+\ifsinglelanguage
+ \setlength{\leftfield}{\textwidth}
+ \setlength{\rightfield}{0pt}
+\else
+ \setlength{\leftfield}{0.45\textwidth}
+ \setlength{\rightfield}{0.45\textwidth}
+\fi
+\setlength{\dictindent}{1em}
+\addtolength{\leftfield}{-\dictindent}
+\addtolength{\rightfield}{-\dictindent}
+
+\newcommand{\dictentry}[8]{
+\hspace{\dictindent}%
+ \parbox[t]{\leftfield}
+ {\raggedright \hspace{-\dictindent}{\textbf{#1} }%
+ \ifkeywordonly
+ \else
+ \ifphonetic
+ {#2 }
+ \fi
+ \ifgrammar
+ {\textit{#3} }
+ \fi
+ {#4\par}
+ \fi
+ }
+ \hfill%
+\ifsinglelanguage
+\else
+ \parbox[t]{\rightfield}
+ {\raggedright \hspace{-\dictindent}{\textbf{#5} }%
+ \ifkeywordonly
+ \else
+ \ifphonetic
+ {#6 }
+ \fi
+ \ifgrammar
+ {\textit{#7} }
+ \fi
+ {#8\par}
+ \fi
+ }
+ \fi
+\par
+\markboth{#1}{#1}
+}
+
+\newcommand*{\dictchar}[1]{\goodbreak\vspace{1\baselineskip}%
+ \parbox[t]{\leftfield}{%
+ \centerline{\large\textbf{#1}}%
+ \vspace{0.5\baselineskip}%
+ }\par\nopagebreak%
+}
+
+
+\endinput
+%%
+%% End of file `lexikon.sty'. \ No newline at end of file
diff --git a/macros/latex/contrib/lexikon/lexikon.tex b/macros/latex/contrib/lexikon/lexikon.tex
new file mode 100644
index 0000000000..f014749994
--- /dev/null
+++ b/macros/latex/contrib/lexikon/lexikon.tex
@@ -0,0 +1,92 @@
+%%
+%% This is file `lexikon.sty'
+%%
+%% Copyright (C) 1998-1999 by Axel Kielhorn. All rights reserved.
+%% For additional copyright information see further down in this file.
+%%
+%% This file is to be used with the LaTeX2e system.
+%% ------------------------------------------------
+%%
+%% 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.
+%%
+%% IMPORTANT NOTICE:
+%%
+%% Error reports in case of UNCHANGED versions to
+%% Axel Kielhorn
+%% A.Kielhorn@tu-bs.de
+%%
+
+%\documentclass[a5paper,10pt,twoside,titlepage]{article}
+\documentclass[a5paper,10pt,titlepage]{article}
+\usepackage{german}
+\usepackage{lexikon}
+
+\def\dictfile{test}
+
+\title{Englisch Kurzreferenz}
+\author{Axel Kielhorn}
+
+\begin{document}
+\maketitle
+
+\section*{Einleitung}
+
+Die Eintr\"{a}ge in dieser Kurzreferenz sind folgenderma\ss en aufgebaut:
+\begin{itemize}
+\item Schl\"{u}sselwort in deutsch (\textbf{fett})
+\item Informatioen zur Aussprache gem\"{a}\ss\ "`Wahrig Deutsches W\"{o}rterbuch"''
+\item Grammatikalische Information (\textit{kursiv}) hierbei bedeutet
+ \begin{description}
+ \item [\textit{f}] weiblich
+ \item [\textit{m}] m\"{a}nnlich
+ \item [\textit{n}] s\"{a}chlich
+ \end{description}
+\item Erkl\"{a}rung zum Schl\"{u}sselwort
+\item Schl\"{u}sslewort in Englisch (\textbf{fett})
+\item Information zur Aussprache gem\"{a}\ss\ "`Merriam Webster"'
+\item Grammatikalische Information (\textit{kursiv}) hierbei bedeutet
+ \begin{description}
+ \item [\textit{n}] noun (Hauptwort)
+ \item [\textit{v}] verb (Tuwort)
+ \item [\textit{[C]}] countable (z\"{a}hlbar)
+ \item [\textit{[U]}] uncountable (nicht z\"{a}hlbar, diese W\"{o}rter haben keine
+ Mehrzahl und k\"{o}nnen nicht mit W\"{o}rtern wie "`ein"' oder "`viele"''
+ benutzt werden. Klassisches Beispiel: \textbf{Information}.)
+ \end{description}
+\item Erkl\"{a}rung zum englischen Schl\"{u}sselwort. Schr\"{a}nkt u.\,U. die
+Verwendung im Englischen ein.
+\end{itemize}
+
+\newpage
+
+\pagestyle{dictheadings} %% use scrpage or fancyhdr for a differnt layout
+
+\dictchar{D}
+\dictentry{Drehbank}{}{f}{}
+ {lathe}{}{n}{machine for holding and turning pieces of metal while they are being shaped}
+\dictentry{Drehmoment}{}{n}{}
+ {torque}{}{n [U]}{twisting force causing rotation}
+
+\dictchar{G}
+\dictentry{Gabelstabler}{}{m}{}
+ {fork-lift truck}{}{}{powered truck or trolley with mechanical means of lifting and lowering goods}
+\dictentry{Geschwindigkeit}{}{f}{}
+ {velocity}{}{n [U]}{speed, rate of motion}
+\dictentry{Getriebe}{}{n}{}
+ {gear drive}{}{n}{}
+
+\dictchar{L}
+\dictentry{Lager}{}{n}{}
+ {bearing}{}{n (usu pl)}
+ {device that supports moving parts an reduces friction}
+\dictentry{Leim}{}{m}{}
+ {glue}{}{n [U]}{thick, sticky liquid used for joining things}
+
+
+\end{document}
+\endinput
+%%
+%% End of file `dictionary.tex'.
diff --git a/macros/latex/contrib/lexikon/lexikon.upl b/macros/latex/contrib/lexikon/lexikon.upl
new file mode 100644
index 0000000000..47b1aa019d
--- /dev/null
+++ b/macros/latex/contrib/lexikon/lexikon.upl
@@ -0,0 +1,20 @@
+This is the lexikon package.
+When I posted it to de.comp.text.tex some weeks ago it's name was
+dictionary.sty. I changed it to fit into 8 charakters.
+
+This package provides some commands which may be useful for a two language
+dictionary with addiional information for the keywords. There is only
+lexikon.tex as a documentation and it is in german but should be sufficient
+to line out the usage. If you need phonetic symbols you have to get the
+ips.sty and read the manual, I can't help you with that.
+
+This package is unsupported, but if you have an idea for an enhancement or
+find a bug just send me a mail. I'll try to fix it but won't spend many
+hours on the package because it already does what I need.
+
+A database interface would be nice but will take some time.
+My first idea was to use bibtex, but now i started using perl. I'm not sure
+It will ever be ready.
+
+Axel Kielhorn
+A.Kielhorn@tu-bs.de \ No newline at end of file