public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Federer Fanatic <nafdef-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Inserting  extra class attribute in <span class="math inline">latex </span> (notranslate for eg.)
Date: Thu, 26 Jan 2017 05:53:11 -0800 (PST)	[thread overview]
Message-ID: <8c5a97e3-2603-4aa5-a820-7180a4b008b2@googlegroups.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 3430 bytes --]

I had originally posted the topic below 
in: https://github.com/jgm/pandoc/issues/3381, for convenience i repeat it 
here

                   AND 

I asked a question on the email list of luatex:

=================================== mail to luatex list ================
Basically have complete mathml markup or some other kind of html math output
that is completely capable of doing what is now done for pdf output. This 
would 

elminate the need for the clumsy workarounds that mathjax, for example, 

provides---there appears to be no easy way to convert arbitarilly/personally

written latex packages/classes into something that mathjax can understand. 

Obviously the original latex code could still remain in the resulting 
html/math

output so that people would still have access to the "original" source code.

One of my motivations is to allow for google translate to work on html
math documents...


    it WORKS provided you add 'notranslate' to the 'class' option of the 
spans:


  <class="math display">latex math commands/span>


similarly for "math inline"


However LaTeX commands that mathjax is not familiar
with are not rendered ... I regard that project, while laudable, wrong

headed as the real problem should be solved by a proper TeX engine such as 
luatex?

===================== end of email to the luatex dev list 
-------------------------------------


Someone on the the luatex  list suggested that ConTeXt might be the way to 
go via a TeXlike engine...


---------------- Getting back to a solution via pandoc 
-----------------------------------



I succeeded in getting this to work with --mathjax option of pandoc to get 
a nicely rendered
document in html/mathjax, however as noted above when one does this with, 
say, a french
latex file with the goal to translate this into english while preserving 
the latex google translate

mangles the math, unless one does the "notranslate" argument as described 
above.


Is this the best solution?


One of my primary goals is then translate LaTeX/heavy math document into 
LaTeX/English/Math documents.


So to summarise I have done:


   LaTeX file in Language A --> convert to html/js/mathjax using pandoc---> 
Edit resulting file and put in 'no translate'

   argument of <span> -----> Put into  Google translate


  I have not tried the final step (which is obviously easy) of converting 
the result of Google translate into English.


Using Pandoc I suspect constructing a filter would achieve the goal (it's 
easy enough to create a oneline perl -ne command, but...)


So is  http://pandoc.org/scripting.html 
<https://github.com/jgm/pandoc/issues/url> ?


On a different tangent .....

===============================================================================


Someone on the pandoc the dev list of luatex suggests that ConTeXt can 
achieve my goals directly?



-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8c5a97e3-2603-4aa5-a820-7180a4b008b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 16694 bytes --]

             reply	other threads:[~2017-01-26 13:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-26 13:53 Federer Fanatic [this message]
     [not found] ` <8c5a97e3-2603-4aa5-a820-7180a4b008b2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-01-27  8:49   ` John MacFarlane
     [not found]     ` <20170127084935.GA43985-BKjuZOBx5Kn2N3qrpRCZGbhGAdq7xJNKhPhL2mjWHbk@public.gmane.org>
2017-01-27 11:35       ` Federer Fanatic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8c5a97e3-2603-4aa5-a820-7180a4b008b2@googlegroups.com \
    --to=nafdef-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).