Skip to content

Use escape of Qutation Mark for use with ngerman babel package#2

Closed
dani162 wants to merge 2 commits into
TomLebeda:mainfrom
dani162:main
Closed

Use escape of Qutation Mark for use with ngerman babel package#2
dani162 wants to merge 2 commits into
TomLebeda:mainfrom
dani162:main

Conversation

@dani162

@dani162 dani162 commented Jul 9, 2024

Copy link
Copy Markdown
Contributor

If you use a vowel after a " while using the ngerman babel package, the vowel will not be escaped correctly:

image

If the " is replaced by a \dq{} it works again, but only if the ngerman babel package is active. Probably would be best to provide an additional configuration parameter, but for now I only added it as an extra feature 🤷.

image

Latex Sample

\documentclass{article}

\usepackage{xcolor}
\usepackage{listings}
\usepackage[ngerman]{babel}

\begin{document}

\input{test.rs.tex}

\end{document}

@TomLebeda

TomLebeda commented Jul 9, 2024

Copy link
Copy Markdown
Owner

Good catch! How about I make an optional flag for the cli --german (or -g) that will enable the extra replacement? I think it fits better than a feature flag.

@dani162

dani162 commented Jul 9, 2024

Copy link
Copy Markdown
Contributor Author

Sure, I don't mind.
The only disadvantage is that you would always have to include this flag in the cli.
And maybe -g is a bit too short for such a specific feature.

@TomLebeda

Copy link
Copy Markdown
Owner

I just published new release 1.1.0 where this issue is solved by the CLI flag --german.

@TomLebeda TomLebeda closed this Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants