Skip to content

Problem with \href and active characters of babel-french #149

@petiard

Description

@petiard

Hello!

With that example:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt,french,a4paper,twoside]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{lmodern}
\frenchsetup{og=«,fg=»}
\usepackage{hyperref}
\hypersetup{colorlinks,linkcolor=blue,urlcolor=blue}
\usepackage{xcolor}
\begin{document}
\href{http://url}{Test: bla bla} \textcolor{red}{incorrect} (Test: bla bla)

\href{http://url}{Test; bla bla} \textcolor{red}{incorrect} (Test; bla bla)

\href{http://url}{Test! bla bla} \textcolor{red}{incorrect} (Test! bla bla)

\href{http://url}{Test? bla bla} \textcolor{red}{incorrect} (Test? bla bla)

\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

you can see than the espacement between Test and : or ; or ! or ? is not correct (in French, of course). Into the parens, the espacement is correct.

Best regards.

François

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions