Context: My document uses the libertine
package and I process it with pdfTeX
.
T1
encoding is better than OT1
. A LY1
encoding exists but is less common.
Problem: For reasons explained above, I use the T1
font encoding for my document. However, this font encoding does not provide neither the Th
nor the Qu
ligature. I thus looked at similar questions (Linux Libertine ligatures / T1; Should I use the font encoding LY1 with the package libertine?; and Linux libertine, the {\l} character, ligatures, and T1 fontenc) and noted that the font provides different ligatures according to the encoding chosen. Here is the difference (MWE below):
OT1
encoding: all ligatures.T1
encoding: common ligatures only.LY1
encoding: extended ligatures, but not with capital letters.
I would like to include at least Th
and Qu
ligatures in my document, but also want to benefit from T1
features (automatic hyphenation, accented characters being recognized as one single glyph), and be sure the text remains copy & past-able as well as search-able through the pdf.
Question: How to enable the Th
and Qu
ligatures in my document, without loosing T1
encoding benefits?
Bonus: The same question with the less common fb
, fh
, fj
, fk
, and ft
ligature.
Note: Processing the document with LuaTeX
or XeTeX
is not an option for me (I have no time to shift from pdfTeX
to another processing systems + I want to use microtype
's tracking and spacing features), but answers involving them are still welcome.
\documentclass{scrbook}
\usepackage[OT1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{libertine}
\begin{document}
Ligatures with \texttt{OT1} encoding: ff fi fl ffi fb fh fj fk ft Qu Th
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Ligatures with \texttt{T1} encoding: ff fi fl ffi
%
% No ligature : fb fh fj fk ft Qu Th
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Ligatures with \texttt{LY1} encoding: ff fi fl ffi fb fh fj fk ft
%
% No ligature: Qu Th
\end{document}
fonttable
for looking at the various glyphs made available by the T1 encoding.\xfonttable{T1}{LinuxBiolinumT-TLF}{m}{n}