Hi William, awesome, thank you! Frank On 25.06.22 13:23, William Lupton wrote: > Yes, lua filters operate on the AST (abstract syntax tree). > > I think that some pre-processing will be necessary because (AFAIK) the > Para (p) element doesn't retain attributes in the AST. > > Here's an example using HTML derived from yours (the p element is > wrapped in a div). Note: I think perhaps the lua div logic could be > simpler, but this seems to work. > > % cat kursiv.html > span-text-with-class >
para-text-class-from-div
para-text-class-from-div
>>
>
>
>
>
>
>
>
>
>
>
>
>
> (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 "" 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>