emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com>
To: Subhan Tindall <subhan.tindall@rentrakmail.com>
Cc: Org-mode <emacs-orgmode@gnu.org>, Nicolas Goaziou <n.goaziou@gmail.com>
Subject: Re: pxref in texinfo export
Date: Mon, 25 Feb 2013 17:06:03 -0500	[thread overview]
Message-ID: <CAEWDx5c2+ocdYUYscRQc14Q=CQ_setfT-mRDzV0udnMe_qi1Yg@mail.gmail.com> (raw)
In-Reply-To: <CAKKEbDsJjDG8Bv4LW_mg0guB4x+nxY=zN89V3OULjwWuNtDh6Q@mail.gmail.com>

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

Hello

On 25 February 2013 16:48, Subhan Tindall <subhan.tindall@rentrakmail.com>wrote:

> I don't think there is a specific context that can clearly separate
> them. The differences are largely semantic, not syntactic. What is
> needed is some sort of marker on the tag in the original file telling
>  it what kind of link is to be used.
>

Agreed, although there is a semi-syntactic method potentially.


>
> On Mon, Feb 25, 2013 at 1:38 PM, Nicolas Goaziou <n.goaziou@gmail.com>
> wrote:
> > Hello,
> >
> > Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com> writes:
> >
> >> I had to compare these possible outcomes when working on the texinfo
> >> exporter.  Since links are parsed before being included in their
> >> paragraphs, I did not have a way to obtain context and therefore
> >> attempt to guess (and be successful) at which type of reference was
> >> intended by a link in Org.
> >
> > What kind of context would you need to know? The string that will be
> > exported just before the current ref link?
> >


 For @xref{} I would need to know if it was at the start of a sentence and
followed
by a comma or period.
For @pxref{} I would need to determine if it was at end of sentence,
mid sentence followed by a comma or within parentheses, and not preceeded by
"see" or "see".  Although even this would not suffice, since there are
contexts where
@ref{} is the better choice.

Allowing for attributes on the links would allow for differentiating,
however the
alternative (which is the current behaviour) is just to create them all as
@ref{} and
then include the semantic context (See, see or nil) as appropriate for
export.

Regards,

Jon


> > Regards,
> >
> > --
> > Nicolas Goaziou
>
>
>
> --
> Subhan Michael Tindall | Software Developer
> | smt@rentrakmail.com
> RENTRAK | www.rentrak.com | NASDAQ: RENT
>

[-- Attachment #2: Type: text/html, Size: 2957 bytes --]

  reply	other threads:[~2013-02-25 22:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-25 17:52 pxref in texinfo export Thomas S. Dye
2013-02-25 18:32 ` Jonathan Leech-Pepin
2013-02-25 18:40   ` Subhan Tindall
2013-02-25 18:48     ` Jonathan Leech-Pepin
2013-02-25 19:01       ` Subhan Tindall
2013-02-25 20:24         ` Jonathan Leech-Pepin
2013-02-25 20:29           ` Jonathan Leech-Pepin
2013-02-25 21:34             ` Subhan Tindall
2013-02-25 22:01               ` Jonathan Leech-Pepin
2013-02-25 21:38           ` Nicolas Goaziou
2013-02-25 21:48             ` Subhan Tindall
2013-02-25 22:06               ` Jonathan Leech-Pepin [this message]
2013-02-25 22:23                 ` Nicolas Goaziou

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='CAEWDx5c2+ocdYUYscRQc14Q=CQ_setfT-mRDzV0udnMe_qi1Yg@mail.gmail.com' \
    --to=jonathan.leechpepin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    --cc=subhan.tindall@rentrakmail.com \
    /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).