3 Commits
v2.2 ... v2.3.1

Author SHA1 Message Date
60ba48d308 Update to 2.3.1:
* Fix: Compatibility with sqlite3 version >= 3.52.0
2026-03-31 19:31:00 -04:00
c2f99c259d Update to v2.3:
New: access 'url' entry in sqlite databases.
2023-07-26 09:34:22 -05:00
c6e9cb3af4 Update to v2.2.1:
Fix: Missing quotes in filter interpreter.
2023-03-27 11:47:09 -04:00
6 changed files with 27 additions and 14 deletions

View File

@@ -1,3 +1,15 @@
2.3.1:
* Fix: Compatibility with sqlite3 version >= 3.52.0
2.3:
* New: access 'url' entry in sqlite databases.
2.2.1:
* Fix: Missing quotes in filter interpreter.
2.2: 2.2:
* New: Allow for the value of other entries to be in the 'sed' command of a * New: Allow for the value of other entries to be in the 'sed' command of a

2
NOTICE
View File

@@ -1,2 +1,2 @@
BBlog BBlog
Copyright Ian Jauslin 2015-2023 Copyright Ian Jauslin 2015-2026

View File

@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
## Copyright Ian Jauslin 2015-2023 ## Copyright Ian Jauslin 2015-2026
## ##
## Licensed under the Apache License, Version 2.0 (the "License"); ## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License. ## you may not use this file except in compliance with the License.
@@ -15,10 +15,10 @@
## limitations under the License. ## limitations under the License.
# directory containing the engine files # directory containing the engine files
enginedir=/usr/share/BBlog/engines enginedir=/home/ian/Programs/BBlog2/src/engines
# version # version
version=2.2 version=2.3.1
function print_config { function print_config {
echo "engine: $engine" echo "engine: $engine"
@@ -223,7 +223,7 @@ function replace_format {
# apply filter # apply filter
if [ -n "$filter" ]; then if [ -n "$filter" ]; then
# replace '%' inside filter text # replace '%' inside filter text
sed_cmd=$(replace_format $(eval "echo \$filter_$filter")) sed_cmd=$(replace_format "$(eval echo \$filter_$filter)")
replacement=$(eval "echo \$$field" | sed -r "$sed_cmd" ) replacement=$(eval "echo \$$field" | sed -r "$sed_cmd" )
else else
replacement=$(eval "echo \$$field") replacement=$(eval "echo \$$field")

View File

@@ -1,5 +1,5 @@
base_SQL="SELECT title,author,journal,year,token,doi,arxiv,citeref,prauth,bibtex FROM bibliography" base_SQL="SELECT title,author,journal,year,token,doi,arxiv,citeref,prauth,bibtex,url FROM bibliography"
base_SQL_noprauth="SELECT title,author,journal,year,token,doi,arxiv,citeref,bibtex FROM bibliography" base_SQL_noprauth="SELECT title,author,journal,year,token,doi,arxiv,citeref,bibtex,url FROM bibliography"
# add quotes # add quotes
function SQL_addquotes { function SQL_addquotes {
@@ -7,7 +7,6 @@ function SQL_addquotes {
# add quotes and escape string # add quotes and escape string
if [ -n "$line" ]; then if [ -n "$line" ]; then
line=$(escape_string "$line") line=$(escape_string "$line")
line="${line/%=/= }"
line="${line/ = /=\"}" line="${line/ = /=\"}"
line="${line/%/\"}" line="${line/%/\"}"
fi fi
@@ -63,7 +62,7 @@ function generate_SQL_alpha {
function fetch_BBlog_entries_alpha { function fetch_BBlog_entries_alpha {
SQL="$(generate_SQL_alpha)" SQL="$(generate_SQL_alpha)"
SQL="${SQL% OR citeref=\'} ORDER BY prauth,year" SQL="${SQL% OR citeref=\'} ORDER BY prauth,year"
sqlite3 -line "$db" "$SQL" | SQL_addquotes sqlite3 "$db" ".mode line --colsep ' = '" "$SQL" | SQL_addquotes
# add an empty line # add an empty line
echo "" echo ""
} }

View File

@@ -1,5 +1,5 @@
.Dd $Mdocdate: March 21 2022 $ .Dd $Mdocdate: July 26 2026 $
.Dt BBLOG 2.2 .Dt BBLOG 2.3.1
.Os .Os
.Sh NAME .Sh NAME
.Nm BBlog .Nm BBlog
@@ -194,6 +194,6 @@ automatically adds a letter (from 'b' to 'z') at the end of non-unique tokens, i
.Nm .Nm
was written by Ian Jauslin. was written by Ian Jauslin.
.Sh COPYRIGHT .Sh COPYRIGHT
copyright Ian Jauslin 2015-2023 copyright Ian Jauslin 2015-2026
.Sh SEE ALSO .Sh SEE ALSO
.Sx BBlog-sqlite Ns (7) .Sx BBlog-sqlite Ns (7)

View File

@@ -1,4 +1,4 @@
.Dd $Mdocdate: November 5 2019 $ .Dd $Mdocdate: July 26 2026 $
.Dt BBLOG-sqlite .Dt BBLOG-sqlite
.Os .Os
.Sh DESCRIPTION .Sh DESCRIPTION
@@ -28,11 +28,13 @@ label of the reference
.It prauth .It prauth
bibliography entries are ordered alphabetically with respect to this entry bibliography entries are ordered alphabetically with respect to this entry
label of the reference label of the reference
.It url
link to paper
.El .El
.Sh AUTHORS .Sh AUTHORS
The sqlite BBlog engine was written by Ian Jauslin. The sqlite BBlog engine was written by Ian Jauslin.
.Sh COPYRIGHT .Sh COPYRIGHT
copyright Ian Jauslin 2015-2023 copyright Ian Jauslin 2015-2026
.Sh SEE ALSO .Sh SEE ALSO
.Sx BBlog Ns (1) , .Sx BBlog Ns (1) ,
.Sx sqlite3 Ns (1) .Sx sqlite3 Ns (1)