jspitz / babel-german Goto Github PK
View Code? Open in Web Editor NEWBabel support for (LaTeX) documents written in German
Babel support for (LaTeX) documents written in German
hyperref currently contains some code to detect active languages and redefines then some shorthands so that they do the right thing e.g. in bookmarks.
This language support is incomplete and difficult to adjust or extend for the user. It would imho make more sense if this is done by the language support packages themselves. So I'm planing to remove the code in hyperref.
I suggest to change affected shorthand definitions in the language package to use \texorpdfstring. We also plan to add a dummy definition for \texorpdfstring to latex, but to avoid problems with older formats, a dummy definition should be added:
\providecommand\texorpdfstring[2]{#1}
\declare@shorthand{ngerman}{"~}{%
\texorpdfstring
{\textormath{\leavevmode\hbox{-}}{-}}%tex command
{-}% bookmark/hyperref command
}
The affected shorthands currently in hyperref are:
\declare@shorthand{german}{"f}{f}%
\declare@shorthand{german}{"|}{}%
\declare@shorthand{german}{"~}{-}%
\declare@shorthand{ngerman}{"|}{}%
\declare@shorthand{ngerman}{"~}{-}%
Change (Un-)""Sinn
to (Un"~)""Sinn
in the explanation of ""
in Table 1 in germanb.pdf
as well as in ngermanb.pdf
, because otherwise it would be possible to have a linebreak before the closing bracket, which of course should be avoided, right?
Im folgenden Dokument wird die Ligatur nicht wie erwartet aufgelöst. Mit ngerman
funktioniert es.
\documentclass{article}
\usepackage[naustrian]{babel}
\newcommand\Test{Auf\babelshorthand{"|}lage}
\begin{document}
\Test
\end{document}
Currently in the documentation the terms Swiss German and Swiss Standard German are used with the same meaning randomly. However, every Swiss knows and it's well documented that those are two different things (if you don't know click the links). What you want to say is Swiss Standard German or Swiss High German. Please correct the documentation.
For the sake of simplicity you can keep the option name (n)swissgerman
.
[LaTeX2e <2018-04-01> patch level 5]
[ngermanb 2018/03/29 v2.10]
Contrary to german.sty
, \usepackage[german]{babel}
disables hyphenation after "|
in T1 encoding. This is clearly a bug. [Ditto for 'ngerman', BTW.] MWE:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[german]{babel}
\begin{document}
\showhyphens{Aufforderung}
\showhyphens{Auf"|forderung}
\end{document}
Result:
Underfull \hbox (badness 10000) in paragraph at lines 7--7
[] \T1/cmr/m/n/10 Auf-for-de-rung
Underfull \hbox (badness 10000) in paragraph at lines 8--8
[] \T1/cmr/m/n/10 Auf-forderung
Since a few years, Babel comes with the hyphenrules
option to directly set the hyphenation patterns for a language; it is thus no longer necessary to use the hyphsubst
package. Example
\babelprovide[hyphenrules=ngerman-x-latest]{ngerman}
This even works in the middle of documents.
Since this is of special importance to 'babel-german' I update the documentation accordingly.
I use babel with the option: \usepackage[nswissgerman]{babel}
I noticed that the references in the document use English names. This names are loaded correctly in hyperref with the option \usepackage[ngerman]{babel}
.
1 MWE
1.1 subsection
section 1
subsection 1.1
1
MWE 1.1
subsection
Abschnitt 1
Unterabschnitt 1.1
\documentclass{article}
\usepackage[nswissgerman]{babel}
\usepackage{hyperref}
\usepackage{biblatex}
\begin{document}
\section{MWE} \label{section}
\subsection{subsection} \label{subsection}
\autoref{section} \\ \autoref{subsection}
\end{document}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.