From 23b15dd1036700a899998d5ddd61fe1bda224c00 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 10 Jun 2023 17:30:32 -0400 Subject: =?UTF-8?q?cosmetic,=20use=20of=20=E2=9D=AE=20=E2=9D=AF=20&=20?= =?UTF-8?q?=E1=8D=A8=20unicode=20chars?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - use of ❮ & ❯ unicode chars for prev & next, replacing < > aka. < > - use of ፨ (paragraph separator) replacing previously used ※ (reference mark) (either would be fairly appropriate and may end up using more or less interchangeably) --- flake.lock | 6 +++--- org/cgi_spine_search.org | 22 +++++++++++++--------- org/config_d_cfte.org | 12 ++++++------ src/spine_search.d | 20 +++++++++++--------- src/spine_search.d_ | 20 +++++++++++--------- views/configuration.txt | 2 +- 6 files changed, 45 insertions(+), 37 deletions(-) diff --git a/flake.lock b/flake.lock index 426214d..11433d2 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1686277352, - "narHash": "sha256-quryYLnntwZZrwJ4Vsx24hiCkwiYZAEttiOu983akGg=", + "lastModified": 1687103638, + "narHash": "sha256-dwy/TK6Db5W7ivcgmcxUykhFwodIg0jrRzOFt7H5NUc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "a9fa8f8450a2ae296f152a9b3d52df68d24b7cfc", + "rev": "91430887645a0953568da2f3e9a3a3bb0a0378ac", "type": "github" }, "original": { diff --git a/org/cgi_spine_search.org b/org/cgi_spine_search.org index ea52c59..6b7d29d 100644 --- a/org/cgi_spine_search.org +++ b/org/cgi_spine_search.org @@ -672,7 +672,7 @@ _matched_objects_text = ~ "" - ~ "※" + ~ "፠" ~ ""; return _matched_objects_text; #+END_SRC @@ -713,7 +713,7 @@ if (_url_previous.empty) { ~ "" - ~ "<< prev" + ~ "❮❮ prev" ~ " || "; } arrow_next = @@ -721,7 +721,7 @@ arrow_next = ~ "" - ~ "next >>" + ~ "next ❯❯" ~ ""; _previous_next = "
" ~ arrow_previous ~ arrow_next; return _previous_next; @@ -888,6 +888,8 @@ return tip; **** form +⁜ ☀ ፨ ፠ ※ ⚏ + #+NAME: spine_search_form #+HEADER: :noweb yes #+BEGIN_SRC d @@ -926,12 +928,14 @@ return tip; - - index - text / grep; - match limit: + + match [ results: + ፨ (index) + ⚏ (text / grep) + ]  [ limit: 1,000 2,500 + ]
echo query search url @@ -1297,12 +1301,12 @@ if (!select_query_results.empty) { #+BEGIN_SRC d cgi.write("


-
git +
Δ git

"); #+END_SRC diff --git a/org/config_d_cfte.org b/org/config_d_cfte.org index 1aa2a4c..6b2c96c 100644 --- a/org/config_d_cfte.org +++ b/org/config_d_cfte.org @@ -132,7 +132,7 @@ struct Cfg { string http_host = "sisudoc.org"; string www_url_doc_subroot = "/spine"; string cgi_filename = "spine_search"; - string cgi_search_form_title = "≅ SiSU Spine search"; + string cgi_search_form_title = "≅ SiSU Spine search ፨"; string db_sqlite_path = "/var/www/sqlite"; string db_sqlite_filename = "spine.search.db"; } @@ -153,7 +153,7 @@ struct Cfg { string cgi_port = ""; string cgi_user = ""; string cgi_url_action = "https://sisudoc.org/spine_search"; - string cgi_search_form_title = "≅ SiSU Spine search"; + string cgi_search_form_title = "≅ SiSU Spine search ፨"; string db_sqlite_path = "/var/www/sqlite"; string db_sqlite_filename = "spine.search.db"; string default_language = "en"; @@ -174,7 +174,7 @@ struct Cfg { string http_host = "localhost"; string www_url_doc_subroot = "/spine"; string cgi_filename = "spine_search"; - string cgi_search_form_title = "≅ SiSU Spine search"; + string cgi_search_form_title = "≅ SiSU Spine search ፨"; string db_sqlite_path = "/var/www/sqlite"; string db_sqlite_filename = "spine.search.db"; } @@ -195,7 +195,7 @@ struct Cfg { string cgi_port = ""; string cgi_user = ""; string cgi_url_action = "http://localhost/cgi-bin/spine_search"; - string cgi_search_form_title = "≅ SiSU Spine search"; + string cgi_search_form_title = "≅ SiSU Spine search ፨"; string db_sqlite_path = "/var/www/sqlite"; string db_sqlite_filename = "spine.search.db"; string default_language = "en"; @@ -230,7 +230,7 @@ struct Cfg { string http_host = "sisudoc.org"; string www_url_doc_subroot = "/spine"; string cgi_filename = "spine_search"; - string cgi_search_form_title = "≅ SiSU Spine search"; + string cgi_search_form_title = "≅ SiSU Spine search ፨"; string db_sqlite_path = "/var/www/sqlite"; string db_sqlite_filename = "spine.search.db"; } @@ -291,7 +291,7 @@ spine_search #+NAME: cgi_search_form_title #+BEGIN_SRC sh -≅ SiSU Spine search +≅ SiSU Spine search ፨ #+END_SRC #+NAME: db_sqlite_filename diff --git a/src/spine_search.d b/src/spine_search.d index 73a3934..57b817b 100644 --- a/src/spine_search.d +++ b/src/spine_search.d @@ -491,7 +491,7 @@ void cgi_function_intro(Cgi cgi) { ~ "" - ~ "※" + ~ "፠" ~ ""; return _matched_objects_text; } @@ -532,7 +532,7 @@ void cgi_function_intro(Cgi cgi) { ~ "" - ~ "<< prev" + ~ "❮❮ prev" ~ " || "; } arrow_next = @@ -540,7 +540,7 @@ void cgi_function_intro(Cgi cgi) { ~ "" - ~ "next >>" + ~ "next ❯❯" ~ ""; _previous_next = "
" ~ arrow_previous ~ arrow_next; return _previous_next; @@ -1516,12 +1516,14 @@ void cgi_function_intro(Cgi cgi) { - - index - text / grep; - match limit: + + match [ results: + ፨ (index) + ⚏ (text / grep) + ]  [ limit: 1,000 2,500 + ]
echo query search url @@ -1894,12 +1896,12 @@ LIMIT %s OFFSET %s } cgi.write("


-
git +
Δ git

"); } diff --git a/src/spine_search.d_ b/src/spine_search.d_ index 4258940..d2c5e1f 100755 --- a/src/spine_search.d_ +++ b/src/spine_search.d_ @@ -493,7 +493,7 @@ void cgi_function_intro(Cgi cgi) { ~ "" - ~ "※" + ~ "፠" ~ ""; return _matched_objects_text; } @@ -534,7 +534,7 @@ void cgi_function_intro(Cgi cgi) { ~ "" - ~ "<< prev" + ~ "❮❮ prev" ~ " || "; } arrow_next = @@ -542,7 +542,7 @@ void cgi_function_intro(Cgi cgi) { ~ "" - ~ "next >>" + ~ "next ❯❯" ~ ""; _previous_next = "
" ~ arrow_previous ~ arrow_next; return _previous_next; @@ -1518,12 +1518,14 @@ void cgi_function_intro(Cgi cgi) { - - index - text / grep; - match limit: + + match [ results: + ፨ (index) + ⚏ (text / grep) + ]  [ limit: 1,000 2,500 + ]
echo query search url @@ -1896,12 +1898,12 @@ LIMIT %s OFFSET %s } cgi.write("


-
git +
Δ git

"); } diff --git a/views/configuration.txt b/views/configuration.txt index 8e9540d..f3944b7 100644 --- a/views/configuration.txt +++ b/views/configuration.txt @@ -3,7 +3,7 @@ struct Cfg { string http_host = "localhost"; string www_url_doc_subroot = "/spine"; string cgi_filename = "spine_search"; - string cgi_search_form_title = "≅ SiSU Spine search"; + string cgi_search_form_title = "≅ SiSU Spine search ፨"; string db_sqlite_path = "/var/www/sqlite"; string db_sqlite_filename = "spine.search.db"; } -- cgit v1.2.3