From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/14004 Path: news.gmane.org!not-for-mail From: Jesse Rosenthal Newsgroups: gmane.text.pandoc Subject: Re: Docx extract media as original filenames Date: Wed, 25 Nov 2015 14:49:42 -0500 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1448480994 1898 80.91.229.3 (25 Nov 2015 19:49:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Nov 2015 19:49:54 +0000 (UTC) To: =?utf-8?Q?R=C3=B3bert?= Nagy , pandoc-discuss Original-X-From: pandoc-discuss+bncBDF7DMU574PBBWFB3CZAKGQERXQCEPY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Nov 25 20:49:44 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ob0-f188.google.com ([209.85.214.188]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a1g4V-0002og-4Z for gtp-pandoc-discuss@m.gmane.org; Wed, 25 Nov 2015 20:49:43 +0100 Original-Received: by obczm5 with SMTP id zm5sf13440915obc.1 for ; Wed, 25 Nov 2015 11:49:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type:content-transfer-encoding :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe; bh=IgCP2HRfXeKnYwm0hUGdQ/vZl/JTCxyE0o7tQZ8n+KA=; b=X1RmI7Z3CgHKcEY64IqPv8EnKHh1tWWYGAdX+SGbb1CG20KaQ3kVcLI9ka971HwmKS HeN6BqLS9VSplur/Yj06Z2oC0xv9/Vi3431U73wAzfcsxLdjABhJkZGngt5m5mpeDXpf 7CnbXlx6uDpJIc6WcgVXZFtuHwfRrrWDF14AxB1puBUjOYCoWKMKT7HffTqkn3Go4z/n m4uc8WyzcEAFSx3hhSwEIAcgemVguEKYBc3URholwF3lEHTpdRVU0rJrwLKlICEBvS4z 31nADl/eWv+NkO7ZOL70BbeanwpoUmTlIKlxgpHp4xr/oViVZkPa57OiyaUVSNJfRWV0 X-Received: by 10.50.6.40 with SMTP id x8mr180564igx.0.1448480984801; Wed, 25 Nov 2015 11:49:44 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.50.182.35 with SMTP id eb3ls1327174igc.15.canary; Wed, 25 Nov 2015 11:49:44 -0800 (PST) X-Received: by 10.107.47.162 with SMTP id v34mr35511583iov.14.1448480984297; Wed, 25 Nov 2015 11:49:44 -0800 (PST) Original-Received: from smtpauth.johnshopkins.edu (smtpauth.johnshopkins.edu. [162.129.8.150]) by gmr-mx.google.com with ESMTPS id a22si181446ywe.4.2015.11.25.11.49.44 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Nov 2015 11:49:44 -0800 (PST) Received-SPF: neutral (google.com: 162.129.8.150 is neither permitted nor denied by best guess record for domain of prvs=764c22628=jrosenthal-4GNroTWusrE@public.gmane.org) client-ip=162.129.8.150; X-IronPort-AV: E=Sophos;i="5.20,343,1444708800"; d="scan'208";a="264179548" Original-Received: from c-73-163-131-44.hsd1.md.comcast.net (HELO localhost) ([73.163.131.44]) by IPEB2.johnshopkins.edu with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 Nov 2015 14:49:43 -0500 In-Reply-To: User-Agent: Notmuch/0.21+5~gca076ce (http://notmuchmail.org) Emacs/24.4.1 (x86_64-apple-darwin13.4.0) X-Hashcash: 1:20:151125:rnagy.monguz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org::2knzbD0UGbnqzM86:0000000000000000000000000000000000000000V1h X-Hashcash: 1:20:151125:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org::zFsFuCjETX3z7cGV:0000000000000000000000000000000E2H X-Original-Sender: jrosenthal-4GNroTWusrE@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 162.129.8.150 is neither permitted nor denied by best guess record for domain of prvs=764c22628=jrosenthal-4GNroTWusrE@public.gmane.org) smtp.mailfrom=prvs=764c22628=jrosenthal-4GNroTWusrE@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:14004 Archived-At: Hello, R=C3=B3bert Nagy writes: > For example... > I have a file what has been pasted into the docx file with this name ->= =20 > picture_upload.png. I want to extract into the /media folder as=20 > 'picture_upload.png', and set the docbook's imegamedia fileref's value to= =20 > 'picture_upload.png' or './media/picture_upload.png'. Here's the problem. Let's say you have two files named "pic.jpg": "~/pics/pic.jpg" and "~/Downloads/pic.jpg." They would *both* show as having "pic.jpg" in their name field. Or maybe you added one, and then added another later on a different computer. In any case, that name attribute isn't dependable. I'm not sure if it's even required. Without looking at the spec, I'm also not sure whether the characters in it are guaranteed to be legal for a filename. (And that's not even going into the issue of going from a case-sensitive FS to a case-insensitive one.) Seems I suppose it's possible to do it by sanitizing and then adding numeri= cal suffixes if there's a collision. Seems like it might be a can of worms, though, and it would probably create inconsitencies with other input formats. Best, Jesse --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/m137vtuaeh.fsf%40jhu.edu. For more options, visit https://groups.google.com/d/optout.