From: Frank Bergmann <pandoc-eSlkCAlw8VwAvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Translating style sheets in reader on HTML input
Date: Sat, 25 Jun 2022 11:34:42 +0200 [thread overview]
Message-ID: <c09f254c-5ccf-1ed4-97ab-4e6bccbbdcb6@tuxad.com> (raw)
In-Reply-To: <m2pmp6q3ah.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
Hi,
this time I have some questions.
As far as I understood the lua scripting it is not working on actual
input but just on already translated native format.
What I need is to do some "translations" on raw HTML input.
(BTW - actual output here is asciidoc.)
My issue is that the "HTML" input has a lot of styles like these:
<span class="Kursiv">
<span class="FettUnterstrichen">
<p class="Normal_fett">
<p class="rml10_101__Normal_fett">
<p class="rml10_112__Normal_fett">
<p class="rml10_114__Normal_fett">
<p class="rml10_11__Normal_fett">
<p class="rml10_122__Normal_fett">
<p class="rml10_124__Normal_fett">
<p class="rml10_133__Normal_fett">
<p class="rml10_136__Normal_fett">
<p class="rml10_138__Normal_fett">
<p class="rml10_177__Normal_fett">
<span class="Fett">
<span class="FettUnterstrichen">
(Note: kursiv=italic/emphasized, fett=bold, unterstrichen=underline)
Is there a way in pandoc to "translate" styles like e.g. the ones with
"fett" to e.g. a simple HTML tag "<b>" before internally doing the
actual translation to native and then to output format?
Can a lua script be used for this?
Or do I need to write a translator of my own and run it BEFORE using pandoc?
(Note: The "HTML" input is coming from Adobe RoboHelp.)
kind regards,
Frank
--
Frank Bergmann, Pödinghauser Str. 5, D-32051 Herford, Tel. +49-5221-9249753
SAP Hybris & Linux LPIC-3, E-Mail tx2014-VEyjnN4Vo9k@public.gmane.org, USt-IdNr DE237314606
http://tdyn.de/freel -- Redirect to profile at freelancermap
http://www.gulp.de/freiberufler/2HNKY2YHW.html -- Profile at GULP
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c09f254c-5ccf-1ed4-97ab-4e6bccbbdcb6%40tuxad.com.
next prev parent reply other threads:[~2022-06-25 9:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-04 18:02 "double emphasis" bug when converting to asciidoc? Frank Bergmann
[not found] ` <3f7b920b-c982-5be5-fa04-9025e008e518-eSlkCAlw8VwAvxtiuMwx3w@public.gmane.org>
2022-01-04 19:12 ` John MacFarlane
[not found] ` <m2v8yzpb5x.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
2022-01-04 19:50 ` Leonard Rosenthol
[not found] ` <CALu=v3JE2PPCY8=agCY9wtvwrMKXAidpSVFN650oc+Hge8J3dw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-01-05 3:17 ` John MacFarlane
[not found] ` <m2pmp6q3ah.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
2022-01-05 17:19 ` Frank Bergmann
2022-06-25 9:34 ` Frank Bergmann [this message]
[not found] ` <c09f254c-5ccf-1ed4-97ab-4e6bccbbdcb6-eSlkCAlw8VwAvxtiuMwx3w@public.gmane.org>
2022-06-25 11:23 ` Translating style sheets in reader on HTML input William Lupton
[not found] ` <CAEe_xxh02ZZ_HbZS0cPDZ4rWE+ES5zYJQsa4Uw9_bTBX5aEAVg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-06-28 11:56 ` Frank Bergmann
2022-01-05 8:39 ` "double emphasis" bug when converting to asciidoc? Frank Bergmann
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=c09f254c-5ccf-1ed4-97ab-4e6bccbbdcb6@tuxad.com \
--to=pandoc-eslkcalw8vwavxtiumwx3w@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).