diff options
author | Karl Berry <karl@freefriends.org> | 2010-01-17 23:33:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-01-17 23:33:42 +0000 |
commit | 40190d1a805efa22d48e4e5c85f4a3d3a1a5f983 (patch) | |
tree | 797b317e002fa020012d1ef68c28ab9d5ffa0a21 /Master/texmf-dist/source/latex/oberdiek | |
parent | 141203d77d129a6f04915541e9d0506493bdeab3 (diff) |
oberdiek update (17jan10)
git-svn-id: svn://tug.org/texlive/trunk@16759 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek')
5 files changed, 87 insertions, 15 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/accsupp.dtx b/Master/texmf-dist/source/latex/oberdiek/accsupp.dtx index 9450462b875..02944eebb84 100644 --- a/Master/texmf-dist/source/latex/oberdiek/accsupp.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/accsupp.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright (C) 2007 by Heiko Oberdiek <oberdiek@uni-freiburg.de> +% Copyright (C) 2007, 2010 by Heiko Oberdiek <oberdiek@uni-freiburg.de> % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -75,7 +75,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: accsupp 2007/11/14 v0.2 Accessibility support by marked content (HO)} +\Msg{* Package: accsupp 2010/01/16 v0.3 Accessibility support by marked content (HO)} \Msg{************************************************************************} \keepsilent @@ -86,7 +86,7 @@ This is a generated file. -Copyright (C) 2007 by Heiko Oberdiek <oberdiek@uni-freiburg.de> +Copyright (C) 2007, 2010 by Heiko Oberdiek <oberdiek@uni-freiburg.de> This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either @@ -153,7 +153,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{accsupp.drv}% - [2007/11/14 v0.2 Accessibility support by marked content (HO)]% + [2010/01/16 v0.3 Accessibility support by marked content (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc}[2008/08/11] \begin{document} @@ -162,7 +162,7 @@ and the derived files %</driver> % \fi % -% \CheckSum{395} +% \CheckSum{432} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -183,7 +183,7 @@ and the derived files % \GetFileInfo{accsupp.drv} % % \title{The \xpackage{accsupp} package} -% \date{2007/11/14 v0.2} +% \date{2010/01/16 v0.3} % \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}} % % \maketitle @@ -274,6 +274,43 @@ and the derived files % to \cs{hypersetup}. % \end{description} % +% \subsection{Workaround, option \xoption{space}} +% +% PDF specification says in ``10.8.3 Replacement Text'' +% \begin{quote} +% Just as alternative descriptions can be provided for images and other +% items that do not translate naturally into text (\dots), replacement +% text can be specified for content that does translate into text but +% that is represented in a nonstandard way. These nonstandard representations +% might include, for example, glyphs for ligatures or custom characters, or +% inline graphics corresponding to letters in an illuminated manustript or to +% dropped capitals. +% \end{quote} +% However, the ActualText is ignored in Acrobat Reader +% (until version 9 at least), if the content does not contain glyphs. +% Option \xoption{space} adds such an invisible glyph, a space +% character. The font name can be configured by option \xoption{spacefont}, +% the default font is \texttt{phvr8r}. The character slot is given +% by option \xoption{spacechar}, default is \texttt{32}, the usual +% position of the space character. +% +% These options can also be given as package options or in +% macro \cs{AccSuppSetup} that takes a key value list as argument. +% Usually only option \xoption{space} is necessary, if the +% contents does not contain glyphs otherwise. Option \xoption{space} +% is enabled by |space| or |space=true| and disabled by |space=false|. +% It is disabled as default. The option is evaluated by \cs{BeginAccSupp} +% and ignored by \cs{EndAccSupp}. +% +% Note: Even with option \xoption{space} I get sometimes wrong texts +% when cut \& paste from AR7/Linux or AR8/Linux, e.g. +% \begin{quote} +% |Hello| $\rightarrow$ |Helo|, |Helol|, |Hell|, \dots\\ +% |Hello World| $\rightarrow$ |Helo WorldW|, |Helo World|, \dots +% \end{quote} +% I do not know what Acrobat Reader is doing here, thus feedback and +% insights are welcome. +% % \subsection{Driver options} % % Driver options are package options only. @@ -447,7 +484,7 @@ A\notparallel B % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{accsupp}% - [2007/11/14 v0.2 Accessibility support by marked content (HO)] + [2010/01/16 v0.3 Accessibility support by marked content (HO)] % \end{macrocode} % % \begin{macrocode} @@ -463,6 +500,14 @@ A\notparallel B } % \end{macrocode} % +% \subsection{Space setup} +% +% \begin{macrocode} +\DeclareBoolOption{space} +\DeclareStringOption[phvr8r]{spacefont} +\DeclareStringOption[32]{spacechar} +% \end{macrocode} +% % \subsection{Driver detection and setup} % % \paragraph{Driver declarations.} @@ -618,6 +663,7 @@ A\notparallel B >>% }% \ACCSUPP@bdc + \ACCSUPP@space \endgroup } \newcommand*{\EndAccSupp}[1]{% @@ -626,6 +672,24 @@ A\notparallel B \ACCSUPP@emc \endgroup } +\def\ACCSUPP@space{% + \ifACCSUPP@space + \begingroup + \@ifundefined{ACCSUPP@Font}{% + \global\font\ACCSUPP@Font=\ACCSUPP@spacefont\relax + }{}% + \leavevmode + \setbox\z@\hbox{\ACCSUPP@Font\char\ACCSUPP@spacechar}% + \wd\z@\z@ + \ht\z@\z@ + \dp\z@\z@ + \copy\z@ + \endgroup + \fi +} +\newcommand*{\AccSuppSetup}{% + \setkeys{ACCSUPP}% +} % \end{macrocode} % % \subsubsection{Input methods} @@ -704,7 +768,7 @@ A\notparallel B %<*pdftex> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{accsupp-pdftex.def}% - [2007/11/14 v0.2 accsupp driver for pdfTeX (HO)]% + [2010/01/16 v0.3 accsupp driver for pdfTeX (HO)]% % \end{macrocode} % % \begin{macrocode} @@ -725,7 +789,7 @@ A\notparallel B %<*dvipdfm> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{accsupp-dvipdfm.def}% - [2007/11/14 v0.2 accsupp driver for dvipdfm (HO)]% + [2010/01/16 v0.3 accsupp driver for dvipdfm (HO)]% % \end{macrocode} % % \begin{macrocode} @@ -746,7 +810,7 @@ A\notparallel B %<*dvips> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{accsupp-dvips.def}% - [2007/11/14 v0.2 accsupp driver for dvips (HO)]% + [2010/01/16 v0.3 accsupp driver for dvips (HO)]% % \end{macrocode} % % \begin{macrocode} @@ -806,7 +870,7 @@ A\notparallel B \catcode`\%=14 % \catcode`\ =10 % \catcode13=5 % - \RequirePackage{accsupp}[2007/11/14]\relax + \RequirePackage{accsupp}[2010/01/16]\relax \RestoreCatcodes } \Test @@ -1023,6 +1087,12 @@ A\notparallel B % \item % Catcode section rewritten, test added. % \end{Version} +% \begin{Version}{2010/01/16 v0.3} +% \item +% \cs{AccSuppSetup} added. +% \item +% Options \xoption{space}, \xoption{spacefont}, \xoption{spacechar} added. +% \end{Version} % \end{History} % % \PrintIndex diff --git a/Master/texmf-dist/source/latex/oberdiek/ltxcmds.dtx b/Master/texmf-dist/source/latex/oberdiek/ltxcmds.dtx index 9b7e1427879..9d82ba45377 100644 --- a/Master/texmf-dist/source/latex/oberdiek/ltxcmds.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/ltxcmds.dtx @@ -841,6 +841,8 @@ and the derived files % \begin{Version}{2009/12/12 v1.1} % \item % Short title shortened. +% \item +% \cs{ltx@IfUndefined} added. % \end{Version} % \end{History} % diff --git a/Master/texmf-dist/source/latex/oberdiek/oberdiek.ins b/Master/texmf-dist/source/latex/oberdiek/oberdiek.ins index 76e53ac4251..3552d348fff 100644 --- a/Master/texmf-dist/source/latex/oberdiek/oberdiek.ins +++ b/Master/texmf-dist/source/latex/oberdiek/oberdiek.ins @@ -1,5 +1,5 @@ % oberdiek.ins -% 2010/01/11 +% 2010/01/16 % % Copyright (C) 1999, 2001, 2006 by % Heiko Oberdiek <oberdiek@uni-freiburg.de> diff --git a/Master/texmf-dist/source/latex/oberdiek/oberdiek.tex b/Master/texmf-dist/source/latex/oberdiek/oberdiek.tex index 52911fbb64d..1540ec82cd3 100644 --- a/Master/texmf-dist/source/latex/oberdiek/oberdiek.tex +++ b/Master/texmf-dist/source/latex/oberdiek/oberdiek.tex @@ -6,7 +6,7 @@ \newcommand*{\Subject}{CTAN:\CTANdir} \newcommand*{\Author}{Heiko Oberdiek} \newcommand*{\Email}{oberdiek@uni-freiburg.de} -\newcommand*{\Date}{2010/01/11} +\newcommand*{\Date}{2010/01/16} % Copyright (C) 2006 by % Heiko Oberdiek <oberdiek@uni-freiburg.de> @@ -161,7 +161,7 @@ \section{Overview} \begin{overview} -\entry{accsupp}{2007/11/14}{0.2}{Accessibility support by marked content}% +\entry{accsupp}{2010/01/16}{0.3}{Accessibility support by marked content}% [\entrysep] \entry{aliascnt}{2009/09/08}{1.3}{Alias counter}% [\entrysep] diff --git a/Master/texmf-dist/source/latex/oberdiek/zref.dtx b/Master/texmf-dist/source/latex/oberdiek/zref.dtx index 5a58195685e..7ee0c56cd03 100644 --- a/Master/texmf-dist/source/latex/oberdiek/zref.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/zref.dtx @@ -193,7 +193,7 @@ and the derived files %</driver> % \fi % -% \CheckSum{1668} +% \CheckSum{0} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |