From: Torsten Wagner <torsten.wagner@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: RFC: Syntax for page numbers in file: links?
Date: Thu, 7 Jan 2010 10:24:56 +0900 [thread overview]
Message-ID: <201001071024.56797.torsten.wagner@googlemail.com> (raw)
In-Reply-To: <4B3FE803.6090400@jboecker.de>
Hi,
during following this thread I noticed one "problem" with the page and line-
number concept
> - file:~/some-file.txt::23 some-file.txt, line 23
A txt-file may have no clear page boarders. Thus only a line number might make
sens
> - file:~/document.pdf:4 document.pdf, page 4
A PDF may have only pages and maybe (I do not know at the moment) there is a
way to address bookmarks and toc entries and even line numbers
> - file:~/document.odf:3::5 document.odf, page 3, line 5
A odf can have both line numbers and page numbers as well as chapters-,
paragraphs- etc. markers.
Thus, it depends heavily on the kind of document and on the ability of the
external reader.
I would suggest to make sure, if no page number but a line number is given,
this line number should be dealt as absolute value (starting from the very
first line). If a page number and a line number is given, the line number is
relative to the given page. Furthermore, there should be something to deal
with wrong inputs. E.g. given page number for file-types which does not have
defined pages (like txt, source code, etc.).
Nice would be the possibility to refer to TOC, paragraphs and other markers
since they would keep valid even if later versions of the file change the
position and make page and line number invalid.
Just my thoughts
Torsten
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
prev parent reply other threads:[~2010-01-07 1:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-03 0:42 RFC: Syntax for page numbers in file: links? Jan Böcker
2010-01-03 20:14 ` Samuel Wales
2010-01-05 12:32 ` Carsten Dominik
2010-01-05 17:05 ` Jan Böcker
2010-01-06 9:05 ` Carsten Dominik
2010-01-06 11:07 ` Jan Böcker
2010-01-06 11:08 ` Carsten Dominik
2010-01-07 1:24 ` Torsten Wagner [this message]
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=201001071024.56797.torsten.wagner@googlemail.com \
--to=torsten.wagner@gmail.com \
--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).