From 122d9fd53ccff924b347e1539c91673fa5e840c5 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 13 Mar 2021 23:01:11 +0200 Subject: [PATCH] Add support for experimental checks ("-e") --- main.py | 3 +++ templates/index.html | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 0bb2d00..6d2ed42 100644 --- a/main.py +++ b/main.py @@ -55,6 +55,9 @@ def process(): if "unsafe" in request.form: args.append("-u") + if "experimental" in request.form: + args.append("-e") + # run subprocess and capture output as UTF-8 so we get a string instead of # bytes for ansi2html results = subprocess.run( diff --git a/templates/index.html b/templates/index.html index a33ea6b..f2f6bd7 100644 --- a/templates/index.html +++ b/templates/index.html @@ -12,7 +12,7 @@ -

Options

+

Basic options:

@@ -20,6 +20,14 @@
This will remove newlines and perform normalization of Unicode characters. Read more about these unsafe fixes.
+

Experimental options

+ +
+ + +
Attempt to validate whether the value of an item's dc.language.iso or dcterms.language field matches the actual language of text used in its title, abstract, and citation. Read more about these experimental checks.
+
+