Skip to content

Commit

Permalink
fixing output of qnames
Browse files Browse the repository at this point in the history
  • Loading branch information
josd committed Aug 24, 2024
1 parent bc20bf6 commit 547cbbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.1
1.2.2
8 changes: 6 additions & 2 deletions lingua.pl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
:- use_module(library(semweb/turtle)).
:- catch(use_module(library(http/http_open)), _, true).

version_info('lingua v1.2.1').
version_info('lingua v1.2.2').

help_info('Usage: lingua <options>* <data>*

Expand Down Expand Up @@ -880,6 +880,8 @@
( wtcache(X, W)
-> true
; ( atom(X),
atom_codes(X, Y),
intersection(Y, [0'!, 0'$, 0'&, 0'', 0'(, 0'), 0'*, 0'+, 0',, 0';, 0'=], []),
( sub_atom(X, I, 1, J, '#')
-> J > 1,
sub_atom(X, 0, I, _, C),
Expand All @@ -902,7 +904,9 @@
; assertz(apfx(E, D))
),
K is J-1,
sub_atom(X, _, K, 1, F)
sub_atom(X, _, K, 1, F),
\+sub_atom(F, _, 1, _, '/'),
\+sub_atom(F, _, 1, 0, '.')
-> atom_concat(E, F, W),
assertz(wtcache(X, W))
; ( atom(X),
Expand Down

0 comments on commit 547cbbc

Please sign in to comment.