[OS X TeX] Bug in PDFKit

Herbert Schulz herbs at wideopenwest.com
Fri Apr 12 15:58:59 CEST 2013


On Apr 12, 2013, at 8:27 AM, Victor Ivrii <vivrii at gmail.com> wrote:

> 
> 
> 
> On Fri, Apr 12, 2013 at 9:05 AM, Herbert Schulz <herbs at wideopenwest.com> wrote:
> 
> On Apr 12, 2013, at 7:59 AM, Victor Ivrii <vivrii at gmail.com> wrote:
> 
> > I found that if using hyperref I include in URL non-ASCII characters like
> >
> > \href{http://ru.wikipedia.org/wiki/Физико-математическая_школа_им._М._А._Лаврентьева_при_НГУ}{Physical Mathematical School at Novosibirsk State University}
> >
> > then resulting pdf link works in Adobe Reader/Acrobat (and in kpdf) but not in Preview or TeXShop which do not launch WebBrowser to access this link. Definitely bug in Apple PDF ToolKit
> 
> Howdy,
> 
> Could you supply a minimal but compilable example so we can see how you are including the cyrilic characters? Are you using UTF-8?
> 
> yes, I use UTF8 (in the source via TS preferences restarting TS each time and creating new files for reliability) but it affects neither Adobe Reader nor PDFKit based browsers (I tried several encodings to be sure).
> 
> \usepackage{hyperref}
> \usepackage[unicode]{hyperref}
> \usepackage[unicode,pdfencoding=auto]{hyperref}
> 
> again, it affects neither AR no Preview (or TS)
> 
> Also I tried 
> \usepackage{cmap}
> again, it affects neither AR no Preview (or TS)
> 
> Including
> 
> \usepackage[utf8]{inputenc}
> 
> returns an error
> 
> In the attached example second link works
> 
> \documentclass[12pt]{article}
> %%%\usepackage[utf8]{inputenc}
> %\usepackage{cmap}
> %\usepackage{hyperref}
> \usepackage[unicode,pdfencoding=auto]{hyperref}
> \begin{document}
> \href{http://ru.wikipedia.org/wiki/Физико-математическая_школа_им._М._А._Лаврентьева_при_НГУ}{Physical Mathematical School at Novosibirsk State University}.
> 
> \href{http://ru.wikipedia.org/wiki/}{Russian wikipedia}.
> \end{document}
> 
> 
> PS The second URL always works (used for comparison)
> 
> PPS Checked with Skim (does not work, no surprise—it is Apple PDFKit based as well), TeXWorks (works, it is poppler based)
> 
> 
> Probably someone should file bug repport with Apple
> 
> 
> Victor

Howdy,

I can't compile using pdflatex and \usepackage[utf8]{inputenc} but \usepackage[utf8x]{inputenc} seems to allow compilation. I believe the [utf8] is very limited and doesn't translate Cyrillic 
Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the macostex-archives mailing list