From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Wagner Subject: Re: RFC: Syntax for page numbers in file: links? Date: Thu, 7 Jan 2010 10:24:56 +0900 Message-ID: <201001071024.56797.torsten.wagner@googlemail.com> References: <4B3FE803.6090400@jboecker.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSh3S-0005Ac-Q1 for emacs-orgmode@gnu.org; Wed, 06 Jan 2010 20:20:50 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSh3N-0004z6-VH for emacs-orgmode@gnu.org; Wed, 06 Jan 2010 20:20:50 -0500 Received: from [199.232.76.173] (port=53393 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSh3N-0004yf-PG for emacs-orgmode@gnu.org; Wed, 06 Jan 2010 20:20:45 -0500 Received: from mx20.gnu.org ([199.232.41.8]:38051) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NSh3N-0002cv-Fd for emacs-orgmode@gnu.org; Wed, 06 Jan 2010 20:20:45 -0500 Received: from mail-yw0-f177.google.com ([209.85.211.177]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSh3L-0005iz-9p for emacs-orgmode@gnu.org; Wed, 06 Jan 2010 20:20:43 -0500 Received: by ywh7 with SMTP id 7so9289905ywh.24 for ; Wed, 06 Jan 2010 17:20:41 -0800 (PST) In-Reply-To: <4B3FE803.6090400@jboecker.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 >