Double Arrow chars

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Double Arrow chars

Jeremie Bresson
I am currently helping colleagues to migrate their document to Asciidoctor.

They use the "left right double arrow" character a lot in their documentation ('⇔', encoded as "%E2%87%94" in urls or as "U+21D4" in unicode). On Wikipedia: the ⇔ page redirects to the "If and only if" definition.


Thanks to the numeric character reference section in the documentation, I was able to use my "left right double arrow" in Asciidoctor:
⇔

In Asciidoctor:
* "=>" is automatically translated to ⇒ (right double arrow)
* "<=" is automatically translated to ⇐ (left double arrow)
* "->" is automatically translated to → (right arrow)
* "<-" is automatically translated to ← (left arrow)

Why is there support for those unidirectional arrows in Asciidoctor and not for the bidirectional ones?

Reply | Threaded
Open this post in threaded view
|

Re: Double Arrow chars

mojavelinux
Administrator

On Wed, Oct 28, 2015 at 1:37 AM, Jeremie Bresson [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Why is there support for those unidirectional arrows in Asciidoctor and not for the bidirectional ones?

Only because it's not as common and wasn't a requirement for compliance with AsciiDoc Python at the time. It does seem logical to support it. I have it in my notes, so it must have come up before.

We should probably support both <=> and <-> for completeness.

Cheers,

-Dan


--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: Double Arrow chars

Jeremie Bresson
In reply to this post by Jeremie Bresson
I was probabelly to quick...
My solution does not work for PDF.

Source:
= Example Manual
Doc Writer <doc.writer@example.org>
v1.0, 2014-09-09

This is a user manual for an example project.

This is a double arrow: &#x21D4;

This is a user manual for an example project.

Maven output:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Asciidoctor PDF Maven example 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- asciidoctor-maven-plugin:1.5.2.1:process-asciidoc (generate-pdf-doc) @ asciidoctor-pdf-example ---
io/console not supported; tty will not be manipulated
Failed to parse formatted text: This is a double arrow: &#x21D4;
[INFO] Rendered ###\asciidoctor-pdf-example\src\docs\asciidoc\example-manual.adoc
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ asciidoctor-pdf-example ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory ###\asciidoctor-pdf-example\src\main\resources
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.089 s
[INFO] Finished at: 2015-10-28T10:15:48+01:00
[INFO] Final Memory: 82M/989M
[INFO] ------------------------------------------------------------------------

Thank you in advance for your help.
Reply | Threaded
Open this post in threaded view
|

Re: Double Arrow chars

Jeremie Bresson
In reply to this post by mojavelinux
mojavelinux wrote
We should probably support both <=> and <-> for completeness.
I have opened this issue: https://github.com/asciidoctor/asciidoctor/issues/1554
Reply | Threaded
Open this post in threaded view
|

Re: Double Arrow chars

Jeremie Bresson
In reply to this post by Jeremie Bresson
Jeremie Bresson wrote
I was probabelly to quick...
My solution does not work for PDF.
This is not working for PDF:
This is a double arrow: &#x21D4;

But this works:
This is a double arrow: &#8660;

Problem solved.
Reply | Threaded
Open this post in threaded view
|

Re: Double Arrow chars

mojavelinux
Administrator
+1

On Wed, Oct 28, 2015 at 6:38 AM, Jeremie Bresson [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Jeremie Bresson wrote
I was probabelly to quick...
My solution does not work for PDF.
This is not working for PDF:
This is a double arrow: &#x21D4;

But this works:
This is a double arrow: &#8660;

Problem solved.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Double-Arrow-chars-tp3918p3926.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen