asciidoctor / asciidoctor-fopub

A portable DocBook-to-PDF build command that wraps DocBook XSL and Apache FOP
MIT License
113 stars 37 forks source link

AsciiMath/Fopub problem whit white space between word #86

Closed Daniele-Damiano closed 6 years ago

Daniele-Damiano commented 6 years ago

Hi i have problem whit fopub and asciimath. Work all good but when i try to add white space between word, is not rendered in pdf:
Example: I have this file:

= Insiemi Equivalenze Logiche e Definizioni :stem: |=== |Insieme |Definizione

| stem:[A nn B] | stem:[{ x \ : \ x in A ^^ x in B }]

| stem:[A - B] | stem:[{ x \ : \ x in A ^^ x !in B }]

| stem:[bar A] | stem:[{x \ : \ x in bbb"U" ^^ x !in A}] |===

When i preview this code on Mozilla the \ render a white space correctly between semicolon and x:

a

But when i use fopub for render the pdf \ not work, render this:

2018-08-29-084314_1280x1024_scrot

Command i use for for convert to docbook xml is this: asciidoctor -b docbook -a stem insiemi_equivalenze_logiche.adoc

and later execute fopub like this: fopub insiemi_equivalenze_logiche.xml

How can add white space in pdf usig fopub?

Thanks.

Daniele-Damiano commented 6 years ago

i found the error, when you write \ for give a white space in the document, fopub do not map \ to <mml:mo>&#160;</mml:mo> in the xml file. I'm insert <mml:mo>&#160;</mml:mo> this string manually in the xml file generated from fopub and work well.

mojavelinux commented 6 years ago

This appears to be a shortcoming with the asciimath gem. I'll report it there and close this one.

See https://github.com/asciidoctor/asciimath/issues/8