Skip to content

Commit

Permalink
#11: proof of concept with html and javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed Nov 29, 2021
1 parent 28df3f2 commit 10dc0c5
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 3 deletions.
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 19 additions & 3 deletions ontologia/cor.hxltm.215.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<hxltag>\#[a-zA-Z_]*)(?P<hxlattrs>\+\w*){0,20}

# abstractum, https://en.wiktionary.org/wiki/abstractus#Latin
abstractum:
existere: "^#meta"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 10dc0c5

Please sign in to comment.