From 10dc0c52ee3ee9ec7640d752e50a15900ef94d61 Mon Sep 17 00:00:00 2001 From: Emerson Rocha Date: Mon, 29 Nov 2021 08:30:59 -0300 Subject: [PATCH] #11: proof of concept with html and javascript --- .editorconfig | 25 +++++++++++++++++++++++++ .gitignore | 3 +++ ontologia/cor.hxltm.215.yml | 22 +++++++++++++++++++--- 3 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..9d60104 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,25 @@ +# https://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true + +[*.yml] +indent_style = space +indent_size = 2 + +[*.html] +indent_style = space +indent_size = 2 + +[*.js] +indent_style = space +indent_size = 2 + +[*.xml] +indent_style = space +indent_size = 2 diff --git a/.gitignore b/.gitignore index 3f5c44e..d840480 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,9 @@ docs/ontologia docs/testum ### Other, relevant to hxltm-eticaai ___________________________________________ +# yq < ontologia/cor.hxltm.215.yml > ontologia/cor.hxltm.215.json +ontologia/*.json + docs/*.htm docs/**/*.htm docs/*.html diff --git a/ontologia/cor.hxltm.215.yml b/ontologia/cor.hxltm.215.yml index 89f09f3..4ec7534 100644 --- a/ontologia/cor.hxltm.215.yml +++ b/ontologia/cor.hxltm.215.yml @@ -3005,6 +3005,22 @@ ontologia_regulam: # @see https://pkg.go.dev/regexp/syntax # @see https://www.php.net/manual/en/reference.pcre.pattern.syntax.php + __exemplum: + '#item+conceptum+codicem': + '#meta+linguam+i_pt+i_por+ig_port1283+is_latn': + '#item+terminum+i_pt+i_por+ig_port1283+is_latn+rem': + + _basim: + # let regEx = /quick\s(brown).+?(jumps)/ig; + # let result = regEx.exec('The Quick Brown Fox Jumps Over The Lazy Dog'); + javascriptum2: >- + quick\s(brown).+?(jumps) + javascriptum: >- + quick\s(brown).+?(jumps) + + # named group: + # (?P\#[a-zA-Z_]*)(?P\+\w*){0,20} + # abstractum, https://en.wiktionary.org/wiki/abstractus#Latin abstractum: existere: "^#meta" @@ -3077,9 +3093,9 @@ ontologia_regulam: #item+conceptum #meta+conceptum #item+conceptum+codicem -#meta+linguam+i_en+i_eng+is_latn+rem -#meta+linguam+i_en+i_eng+ig_port1283+is_latn+rem -#meta+linguam+i_en+i_eng+is_215+rem +#meta+linguam+i_en+i_eng+is_latn +#meta+linguam+i_en+i_eng+ig_port1283+is_latn +#meta+linguam+i_en+i_eng+is_215 #item+terminum+est_linguam+v_linguam_maximum, #item+terminum+est_linguam+v_linguam_a #item+terminum+est_linguam+v_linguam