emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: Citation syntax: Underscore MUST(?) be allowed in cite keys?
Date: Sun, 08 Mar 2015 07:07:07 -1000	[thread overview]
Message-ID: <m2oao3mn9g.fsf@tsdye.com> (raw)
In-Reply-To: <87r3szk6q9.fsf@gmx.us> (rasmus@gmx.us's message of "Sun, 08 Mar 2015 13:34:54 +0100")

Aloha Rasmus,

Rasmus <rasmus@gmx.us> writes:

> tsd@tsdye.com (Thomas S. Dye) writes:
>
>> Rasmus <rasmus@gmx.us> writes:
>>
>>> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>>>
>>>>> I'm asking because I haven't fully grasped uses for the shorthand.  What
>>>>> is the use case?
>>>>
>>>> More readable, I guess.
>>>
>>> I agree.  In time, "org-reftex" would insert @key if no notes are
>>> requested at the time of insertion.
>>
>> I think the OP has a valid point.  After we teach org-reftex to insert
>> @key if no notes are requested, are we going to convince all key
>> generating software to prohibit keys that end in punctuation?
>
> So just to get it straight: are you advocating for only allowing
> [cite:@key]-like constructs to allow punctuation at the end of words?
>
> Perhaps it's a can of worms, but you can also match keys against a
> "punctuation at end of word"-regexp and use the fuller cite command then.
> I'm not too happy with having the regexps used in [cite:@·] and @· diverge
> too much, though...
>
> So /given support for end-of-word punctuation/, we'd either have two
> abandon a "single" org-element--citation-key-re (yes that's not entirely
> correct) or give up short citations.
>
>> As I currently understand the problem, that seems like a tall order to
>> me.
>
> It's also a tall order to support end of word punctuation cf. above.
>
> I think another important question is how easy is it to configure the
> citation manager in question not to insert punctuation marks at the end?

I'm not an advocate at this point.  I'm just trying to be clear about
a choice that apparently needs to be made.

As I see it, the choice boils down to the relative benefit of citation
shortcuts vs. the limitation of requiring authors to configure the
citation manager so it doesn't produce a key ending in punctuation (or
your solution that uses different regexps for full citations and
shortcuts).

Nicolas guessed that the benefit of citation shortcuts is that they are
more "readable" than a full citation, and you agree with his guess.  The
shortcuts are certainly shorter, so in this sense are more readable.
However, having two different representations of the same thing, a
shortcut and a full citation, means that, for the author (and the
software) recognition is more complex and thus, less readable.  For this
reason, IMHO the readability benefit is not particularly strong.

Richard and Stefan both see keys ending in punctuation marks as corner
cases, so the burden imposed on the author to configure the citation
manager is relatively infrequent.  They know more about this than I do,
so I'm heartened by this information.  However, in the event the
citation manager has to be configured, the author faces a potentially
daunting task.  The algorithm for automatic key generation in
bibtex-mode is summarized in 18 steps, including two near the end that
allow arbitrary input!  I strongly believe Org mode shouldn't send an
author here, unless the corresponding benefits are great.

I'm not capable of forming an opinion about your solution that uses
different regexps.

At this point I think the benefit of citation shortcuts is relatively
modest and the limitation of requiring authors to ensure keys don't end
in punctuation potentially onerous.  On balance, I think strong
consideration should be given to the option of not using shortcuts.

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com

  reply	other threads:[~2015-03-08 17:07 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-04 18:21 Citation syntax: Underscore MUST(?) be allowed in cite keys? Vaidheeswaran C
2015-03-04 18:30 ` Rasmus
2015-03-04 18:42   ` Vaidheeswaran C
2015-03-04 19:01     ` Rasmus
2015-03-04 19:18       ` Vaidheeswaran C
2015-03-04 21:38       ` Christian Moe
2015-03-05  5:00       ` Richard Lawrence
2015-03-06 10:49         ` Nicolas Goaziou
2015-03-06 11:55           ` Rasmus
2015-03-06 17:34             ` Nicolas Goaziou
2015-03-06 17:55               ` Rasmus
2015-03-06 21:01                 ` Eric S Fraga
2015-03-06 12:41           ` Vaidheeswaran C
2015-03-06 18:09             ` Richard Lawrence
2015-03-07  6:28               ` Vaidheeswaran C
2015-03-07 17:09                 ` Richard Lawrence
2015-03-07 18:20                   ` Vaidheeswaran C
2015-03-08  8:19                   ` Stefan Nobis
2015-03-07 17:50                 ` Thomas S. Dye
2015-03-08  0:18                   ` Nicolas Goaziou
2015-03-08  2:12                     ` Rasmus
2015-03-08  4:19                       ` Thomas S. Dye
2015-03-08 12:34                         ` Rasmus
2015-03-08 17:07                           ` Thomas S. Dye [this message]
2015-03-08 17:49                             ` Rasmus
2015-03-09  1:56                             ` Richard Lawrence
2015-03-09  2:29                               ` Thomas S. Dye
2015-03-09  8:57                                 ` Stefan Nobis
2015-03-09  9:19                                   ` Vaidheeswaran C
2015-03-09  9:49                                     ` Stefan Nobis
2015-03-09 10:46                                       ` Vaidheeswaran C
2015-03-09 11:02                                         ` Rasmus
2015-03-09 11:27                                         ` Stefan Nobis
2015-03-09 16:05                                 ` Richard Lawrence
2015-03-09 16:37                                   ` Thomas S. Dye
2015-03-09 16:49                                   ` Eric S Fraga
2015-03-09 17:49                                     ` Thomas S. Dye
2015-03-09 18:00                                       ` Eric S Fraga
2015-03-09 18:44                                         ` Thomas S. Dye
2015-03-09 19:26                                           ` Eric S Fraga
2015-03-09 18:50                                       ` Richard Lawrence
2015-03-09 21:07                                         ` Rasmus
2015-03-09 22:33                                           ` Richard Lawrence
2015-03-10  0:37                                             ` Rasmus
2015-03-10 15:35                                               ` Richard Lawrence
2015-03-10  0:36                                     ` Richard Lawrence
2015-03-10  7:06                                       ` Eric S Fraga
2015-03-10  8:15                                         ` Nicolas Goaziou
2015-03-10  8:50                                           ` Rasmus
2015-03-10 10:18                                             ` Eric S Fraga
2015-03-10 14:35                                               ` Matt Price
2015-03-10 15:32                                               ` Richard Lawrence
  -- strict thread matches above, loose matches on Subject: below --
2015-03-04 18:21 Vaidheeswaran C

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=m2oao3mn9g.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /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).