asciidoctor-pdf: Can't properly render URLs due to unknown glyphs
I’m linking to asciidoctor.org in my document. I’m using the TitilliumWeb font from Google for my template.
When I output the document I get error messages about non 1252 characters (see #794) but it also complains about the URLs. None of the other URLs in the document are affected by this.
The URLs are defined in the document like this:
==== Syntax
Die Grundlage für der Dokumente ist das AsciiDoc Format (link:http://asciidoctor.org/docs/what-is-asciidoc/[]). Es handelt sich um eine simple Syntaxsprache die es erlaubt mit einfachen Formatierungszeichen komplex strukturierte Dokumente zu erzeugen. Gleichzeitig ist das Format aber mächtig genug um nahezu alle Anforderungen an die Inhalte der Softwaredokumentation zu erfüllen. Das Format und die damit verbundenen Werkzeuge werden von einer aktiven Entwicklercommunity ständig weiter entwickelt.
Dabei bleibt alles in lesbarer Schreibweise in den Quelldokumenten erhalten so dass jeder Benutzer in kürzester Zeit alle Aspekte des Dokumentes verstehen und bearbeiten kann.
[TIP]
====
Das Format bietet eine riesige Bandbreite an Formatierungsoptionen und Möglichkeiten um die erzeugten Dokumente an seine Bedürfnisse anzupassen. Diese alle auch nur ansatzweise zu erklären würde den Rahmen dieses Dokumentes sprengen. Machen Sie sich einfach selbst ein Bild: http://asciidoctor.org/docs/user-manual/
Interestingly when I rewrite the URLs to look like this:
link:http://asciidoctor.org/docs/what-is-asciidoc/[What Is AsciiDoc]
and
link:http://asciidoctor.org/docs/user-manual/[AsciiDoctor User Manual]
It works fine and does not complain.
Why is it that only these URLs are interpreted incorrectly? I use several other URLs in the document and none of them gets rendered with the “not”-glyph.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 32 (32 by maintainers)
Commits related to this issue
- resolves #795 don't break URI when using AFM font — committed to mojavelinux/asciidoctor-pdf by mojavelinux 7 years ago
- resolves #795 don't add break hints to URI when using AFM font — committed to mojavelinux/asciidoctor-pdf by mojavelinux 7 years ago
- resolves #795 don't add break hints to URI when using AFM font — committed to mojavelinux/asciidoctor-pdf by mojavelinux 7 years ago
- resolves #795 don't add break hints to URI when using AFM font — committed to mojavelinux/asciidoctor-pdf by mojavelinux 7 years ago
- resolves #795 don't add break hints to URI when using AFM font - replace known characters with suitable replacements when encoding to winansi - effectively removes break hints in URI and gets markers... — committed to mojavelinux/asciidoctor-pdf by mojavelinux 7 years ago
Okay, I found a better way to do this that covers all cases of using an AFM font. It even allows most built-in glyphs to work out of the box, such as markers on unordered lists and narrow spaces inside button brackets and around dashes. Basically, we’re now making suitable substitutions when converting to an AFM font. (I suppose we still could replace conums, but let’s handle that in a separate issue).