[XeTeX] asterism
Benct Philip Jonsson
bpj at melroch.se
Sun Jan 17 11:23:08 CET 2010
Khaled Hosny skrev:
> On Sat, Jan 16, 2010 at 07:56:19PM -0500, Joel C. Salomon wrote:
>> Seems to me that the custom asterism construction could also work, if
>> there’s some way to tell the PDF reader, “here’s a couple of arbitrary
>> glyphs, but treat them as a single U+2042 character for search &
>> copy-paste purposes.”
>
> AFAIK, PDF's /ActualText tag is what you are lokking for, though not
> every PDF reader support it (Poppler-based reaaders don't for example).
>
> \documentclass{article}
>
> \usepackage{xltxtra}
> \setromanfont{Adobe Garamond Pro}
> \usepackage{accsupp}
>
> \newcommand{\asterism}{%
> \BeginAccSupp{method=hex,unicode,ActualText=2042}%
> \raisebox{-.15em}{%
> \setlength{\tabcolsep}{0.05em}%
> \begin{tabular}{@{}cc@{}}%
> \multicolumn2c*\\[-.75em]*&*%
> \end{tabular}%
> }%
> \EndAccSupp{}%
> }
>
> \begin{document}
>
> This \asterism\ is an asterism.
>
> \end{document}
It seems to me it would be easier to just create a font
containing just a U+2042 character. I realize there might
be a license problem, but asterisks don't look that different
between fonts; it should be possible to find a suitable free
font to copy and if needed scale the outline from.
/BP 8^)>
--
Benct Philip Jonsson -- melroch atte melroch dotte se
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"C'est en vain que nos Josués littéraires crient
à la langue de s'arrêter; les langues ni le soleil
ne s'arrêtent plus. Le jour où elles se *fixent*,
c'est qu'elles meurent." (Victor Hugo)
More information about the XeTeX
mailing list