From: Jacob Lifshay Date: Tue, 6 Sep 2022 09:17:44 +0000 (-0700) Subject: add pandoc filter to convert
to latex X-Git-Tag: opf_rfc_ls005_v1~657 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e442f09195487e653f6b7e7eb08a088bb8535e5;p=libreriscv.git add pandoc filter to convert
to latex --- diff --git a/openpower/pandoc_img.py b/openpower/pandoc_img.py index 55c1d7317..0b135e081 100755 --- a/openpower/pandoc_img.py +++ b/openpower/pandoc_img.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import os +import re import subprocess from pandocfilters import (toJSONFilter, RawInline, Space, Str, walk, Image, Link) @@ -109,6 +110,9 @@ def inlinenotes(k, v, f, meta): if k == 'Link': out.write(" link type %s\n" % (type(v[1][0]))) + if k == 'RawInline' and v[0] == 'html' \ + and re.fullmatch(r"< *br */? *>", v[1]): + return [RawInline('latex', r'\\')] if __name__ == "__main__": diff --git a/openpower/power_trans_ops.mdwn b/openpower/power_trans_ops.mdwn index e227ea6fb..c1aa551f7 100644 --- a/openpower/power_trans_ops.mdwn +++ b/openpower/power_trans_ops.mdwn @@ -9,16 +9,16 @@ Parenthesized entries are not part of fptrans. -| XO LSB half →
XO MSB half ↓ | 01100 | 01101 | 01110 | 01111 | -|-----------------------------------------------|---------------------------------------------------------------------|--------------------------------------------------------------------|----------------------------------------------------------------------|---------------------------------------------------------------------| -| 10000 | `10000 01100`
(ffadds) (draft) | `10000 01101`
fsinpis (draft) | `10000 01110`
fatan2pis (draft) | `10000 01111`
fasinpis (draft) | -| 10001 | `10001 01100`
fcospis (draft) | `10001 01101`
ftanpis (draft) | `10001 01110`
facospis (draft) | `10001 01111`
fatanpis (draft) | -| 10010 | `10010 01100`
**TBD** (draft) | `10010 01101`
fsins (draft) | `10010 01110`
fatan2s (draft) | `10010 01111`
fasins (draft) | -| 10011 | `10011 01100`
fcoss (draft) | `10011 01101`
ftans (draft) | `10011 01110`
facoss (draft) | `10011 01111`
fatans (draft) | -| 10100 | `10100 01100`
**TBD** (draft) | `10100 01101`
fsinhs (draft) | `10100 01110`
fhypots (draft) | `10100 01111`
fasinhs (draft) | -| 10101 | `10101 01100`
fcoshs (draft) | `10101 01101`
ftanhs (draft) | `10101 01110`
facoshs (draft) | `10101 01111`
fatanhs (draft) | -| 10110 | `10110 01100`
**TBD** (draft) | `10110 01101`
**TBD** (draft) | `10110 01110`
**TBD** (draft) | `10110 01111`
**TBD** (draft) | -| 10111 | `10111 01100`
**TBD** (draft) | `10111 01101`
**TBD** (draft) | `10111 01110`
**TBD** (draft) | `10111 01111`
**TBD** (draft) | +| XO LSB half →
XO MSB half ↓ | 01100 | 01101 | 01110 | 01111 | +|-----------------------------------------------|-----------------------------------|----------------------------------|------------------------------------|-----------------------------------| +| 10000 | `10000 01100`
(ffadds) (draft) | `10000 01101`
fsinpis (draft) | `10000 01110`
fatan2pis (draft) | `10000 01111`
fasinpis (draft) | +| 10001 | `10001 01100`
fcospis (draft) | `10001 01101`
ftanpis (draft) | `10001 01110`
facospis (draft) | `10001 01111`
fatanpis (draft) | +| 10010 | `10010 01100`
**TBD** (draft) | `10010 01101`
fsins (draft) | `10010 01110`
fatan2s (draft) | `10010 01111`
fasins (draft) | +| 10011 | `10011 01100`
fcoss (draft) | `10011 01101`
ftans (draft) | `10011 01110`
facoss (draft) | `10011 01111`
fatans (draft) | +| 10100 | `10100 01100`
**TBD** (draft) | `10100 01101`
fsinhs (draft) | `10100 01110`
fhypots (draft) | `10100 01111`
fasinhs (draft) | +| 10101 | `10101 01100`
fcoshs (draft) | `10101 01101`
ftanhs (draft) | `10101 01110`
facoshs (draft) | `10101 01111`
fatanhs (draft) | +| 10110 | `10110 01100`
**TBD** (draft) | `10110 01101`
**TBD** (draft) | `10110 01110`
**TBD** (draft) | `10110 01111`
**TBD** (draft) | +| 10111 | `10111 01100`
**TBD** (draft) | `10111 01101`
**TBD** (draft) | `10111 01110`
**TBD** (draft) | `10111 01111`
**TBD** (draft) | ## PO=63 XO=10--011--