emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: William Denton <wtd@pobox.com>
To: "Berry, Charles" <ccberry@health.ucsd.edu>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Preserving leading zeros
Date: Sun, 28 May 2023 13:50:15 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.2.22.394.2305281318570.91074@shell3.miskatonic.org> (raw)
In-Reply-To: <AD6F0698-F38C-4853-8BCA-75E640DDE639@health.ucsd.edu>

[-- Attachment #1: Type: text/plain, Size: 1443 bytes --]

On 28 May 2023, Berry, Charles wrote:

> Have you considered http://gewhere.github.io/org-bibtex ??
>
> Or using the approach therein, viz. use properties to store bib data in org?

That would be great for a smaller bibliography, but I'm dealing with over 2,400 
books.  They're in a simple database now, with a web front end I wrote over 
twenty years ago in Perl.  Amazingly it's worked ever since, maybe with one fix 
required along the way, but some update to a library or package broke it 
recently and I haven't figured out why yet.  Even if I do, I'm thinking it's 
time to get away from that code.

I don't feel like getting into the overhead of writing a new web-based system, 
so I might try managing the database through Org with R.  I was thinking I might 
add a new book by having a table like this, which the code would read and 
operate on:

|       isbn | title            | pub_date |
|------------+------------------+----------+
| 0006145396 | A Buyer's Market |     1952 |

I guess I could have the code pad the left with zeros if the ISBN is a number 
with fewer than 10 digits.  That way I'd see the right ISBN on the screen, and 
if Emacs removes the zeros they get put back before it's added to the 
catalogue.

Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada
CO₂: 424.57 ppm (Mauna Loa Observatory, 2023-05-27)

  reply	other threads:[~2023-05-28 17:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-28 14:46 Preserving leading zeros William Denton
2023-05-28 17:01 ` Berry, Charles
2023-05-28 17:50   ` William Denton [this message]
2023-05-28 18:40     ` tomas
2023-05-29  8:04 ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.22.394.2305281318570.91074@shell3.miskatonic.org \
    --to=wtd@pobox.com \
    --cc=ccberry@health.ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).