Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • tools/spec2md
1 result
Show changes
Commits on Source (2)
......@@ -55,13 +55,13 @@ addTocMacro = false
; Mapping of Word paragraph styles to markdown styles.
; Note: the paragraph style names must be in lower-case.
[paragraphs]
normal = normal, onem2m-normal
normal = normal, onem2m-normal, normal (web), onem2m-frontmatter, standard, altnormal, annotation text
h1 = heading 1, tt, onem2m-heading1
h2 = heading 2, onem2m-heading2
h3 = heading 3
h4 = heading 4
h5 = heading 5
h6 = heading 6
h6 = heading 6, h6
h7 = heading 7
h8 = heading 8
h9 = heading 9
......@@ -125,6 +125,12 @@ b7 = 2a
2013 = 2d
; Full-size comma
ff0c = 2c20
; Fullwidth colon
ff1a = 3a20
; Fullwidth left parenthesis
ff08 = 2028
; Fullwidth right parenthesis
ff09 = 2920
; "<="
2264 = 3c3d
; ">="
......@@ -140,9 +146,14 @@ fb01 = 6669
; "<="
f0fd = 3c3d
; "=>"
f0e0 = 3e3d
f0e0 = 3d3e
; "<=>"
f0df = 3c3d3e
; "<->"
f0f3 = 266c743b2d3e
; subscript 2
2082 = 32
......
......@@ -350,6 +350,7 @@ def processDocuments(documents:list[str],
'commentReference',
'smartTag',
'footnoteRef',
'annotationRef',
)
......@@ -822,7 +823,7 @@ def processDocuments(documents:list[str],
lines.append('') # Add an empty line before a table
if errorDetected:
lines.append('<mark>The table below caused an error during conversion and may need extra attention</mark>')
lines.append('<mark>The table below caused an error during conversion (e.g. incorrect number of columns) and may need extra attention</mark>')
lines.append('') # Add an empty line before a table
lines.extend(tableLines)
lines.append('') # Add another empty line after a table
......@@ -846,6 +847,9 @@ def processDocuments(documents:list[str],
lines[i] = line
else:
_print(f'[yellow]({linenumber(i)}) Non-ASCII character (consider to add a replacement in the config.ini file): "{ch}" / {ord(ch)} / {hex(ord(ch))}')
line = line.replace(ch, f'<mark>Non-ASCII character {ch} / {hex(ord(ch))}</mark>')
lines[i] = line
#
......