Coder Social home page Coder Social logo

babel-german's People

Contributors

jspitz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

babel-german's Issues

make shorthands "pdf safe"

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}{"~}{-}%

[manual] change `(Un-)""Sinn` to `(Un"~)""Sinn`

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?

Command \babelshorthand does not work with naustrian

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}

Correct name for Swiss variety

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.

hyphenation disabled after "|

[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

please document `\babelprovide[hyphenrules=...]{...}`

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.

English titles in the document with \autoref. [nswissgerman]

Problem description:

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}.

Output with nswissgerman:

1 MWE
1.1 subsection
section 1
subsection 1.1

Output with ngerman:

1
MWE 1.1
subsection
Abschnitt 1
Unterabschnitt 1.1

minimal working example:

\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}

mwe.tex.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.