From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/14005 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?R=C3=B3bert_Nagy?= Newsgroups: gmane.text.pandoc Subject: Re: Docx extract media as original filenames Date: Thu, 26 Nov 2015 00:10:41 -0800 (PST) Message-ID: <101a2b4f-667a-4687-adb4-d45f45b22742@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_9033_1062979037.1448525441817" X-Trace: ger.gmane.org 1448525455 2807 80.91.229.3 (26 Nov 2015 08:10:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Nov 2015 08:10:55 +0000 (UTC) Cc: rnagy.monguz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDSOTDO3QQPRBA753KZAKGQEC665K3I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Nov 26 09:10:53 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk0-f64.google.com ([209.85.213.64]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a1rdZ-0006Zt-Vh for gtp-pandoc-discuss@m.gmane.org; Thu, 26 Nov 2015 09:10:42 +0100 Original-Received: by vkha189 with SMTP id a189sf15718185vkh.0 for ; Thu, 26 Nov 2015 00:10:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-type:x-original-sender:reply-to:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe; bh=OZYBx/7Wd8ByhDwY7+kAH6QJaUYxCBJ2O0yuOmm4X6k=; b=Pr+WJMTKkqyPKG8y/Q5Tt15jMVUi0lgOgMDQIzOB/8pe6I6I8c0BjbXERemxp2/mrA V/xmshQ22XkaP+dg2l59L+4F4FC5doDB0zx69YktmqtrgsON/sixSxYFInEqWOXw5mXG +IeWPQBsF/O4UbQZPV91lscgQNUQyM0DYTXd1fzXy1nbHoJgnCNliXM7gbio6+FBoAej v0KWiEladrJbSmjcL0uw8GkOjbgAxhg1WqnBHEjIODztHnp8PN+D2W1H4JYNyw90uA59 I7MMHjk9IMAd4opSCLlputLrNxWgBMAqjkGWxqhtEhu+EJpU6FQSjS8CLftf/UM1nBuo D1dg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-type:x-original-sender:reply-to:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe; bh=OZYBx/7Wd8ByhDwY7+kAH6QJaUYxCBJ2O0yuOmm4X6k=; b=sFM0cOL5p4TFBKr/EVbINY+horGTMueueE+hh9xKbej2W0dASJvYdWqYQVyHNsCYTP rUgUrEc2ThBAhtWUbOE7VIKfhU1bZREXz+j8e6Cqmm7gVlkdMHkP5utPJZv3FqVxWJEP YHOFFRkkcSEp3nfeXcjRIWkh2wF92Msiuw40A4uDzfWeH6+JW4IQbvdPlnxxzrsl3zc5 VEm/gSJvYfH19T81SvrGxXX+Rf1Aw+ZVZFTN7b+9Aly4C8Roajq4XT33CK1MoKtnb01S FqFgMePj8MHr4ciKMskowFHKOo7m5/jNfD5YXVwWmCdfsxdUNx9rKLbOcXWOGUhavGzG CiOg== X-Received: by 10.50.112.201 with SMTP id is9mr31716igb.10.1448525443963; Thu, 26 Nov 2015 00:10:43 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.162.11 with SMTP id l11ls154691ioe.63.gmail; Thu, 26 Nov 2015 00:10:42 -0800 (PST) X-Received: by 10.50.72.72 with SMTP id b8mr32307igv.2.1448525442879; Thu, 26 Nov 2015 00:10:42 -0800 (PST) In-Reply-To: X-Original-Sender: rnagy.monguz-Re5JQEeQqe8AvxtiuMwx3w@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:14005 Archived-At: ------=_Part_9033_1062979037.1448525441817 Content-Type: multipart/alternative; boundary="----=_Part_9034_66323238.1448525441818" ------=_Part_9034_66323238.1448525441818 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank you for the reply! The main problems are with the docbook's fileref's value. Here is the complete example what i want to do: 1. Upload a bunch of docx file, convert into a docbook, because my db's=20 main content is a docbook file. 2. Save the converted file with the images into a database. 3. Convert the docbook again to a html, when the user wants to read it in a= =20 browser. Because the images are in the same database, the final tag's "src"=20 attribute's - with a little modification - will be this:=20 http://.../rest/. In this case it's possible to show a complete html content in the main=20 webapplication, without copy the source images into it, and if I can't=20 change the extracted filenames (maybe with a prefix), there are going to be a lot of files in the database= =20 what's name is just "image1". The second problem, if i want to update a=20 picture, i won't know which one is it. 2015. november 25., szerda 20:49:45 UTC+1 id=C5=91pontban Jesse Rosenthal a= =20 k=C3=B6vetkez=C5=91t =C3=ADrta: > > > Hello,=20 > > R=C3=B3bert Nagy > writes:=20 > > > For example...=20 > > 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= =20 > to=20 > > 'picture_upload.png' or './media/picture_upload.png'.=20 > > Here's the problem. Let's say you have two files named "pic.jpg":=20 > "~/pics/pic.jpg" and "~/Downloads/pic.jpg." They would *both* show as=20 > having "pic.jpg" in their name field. Or maybe you added one, and then=20 > added another later on a different computer. In any case, that name=20 > attribute isn't dependable. > ... > Best,=20 > Jesse=20 > --=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/101a2b4f-667a-4687-adb4-d45f45b22742%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_9034_66323238.1448525441818 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thank you for the reply!

The main probl= ems are with the docbook's fileref's value.
Here is the complete= example what i want to do:
1. Upload a bunch of docx file, convert into= a docbook, because my db's main content is a docbook file.
2. Save = the converted file with the images into a database.
3. Convert the docbo= ok again to a html, when the user wants to read it in a browser.
=
Because the images are in the same database, the final <i= mg> tag's "src" attribute's - with a little modificati= on - will be this: http://.../rest/<file's identifier>.
In this case it's possible to show a complete html content in the main= webapplication, without copy the source images into it, and if I can't= change the extracted filenames
(maybe with a prefix), there are = going to be a lot of files in the database what's name is just "im= age1". The second problem, if i want to update a picture, i won't = know
which one is it.


2015. november= 25., szerda 20:49:45 UTC+1 id=C5=91pontban Jesse Rosenthal a k=C3=B6vetkez= =C5=91t =C3=ADrta:

Hello,

R=C3=B3bert Nagy <rnagy....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> For example...
> I have a file what has been pasted into the docx file with this na= me ->=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= 9;.

Here's the problem. Let's say you have two files named "pi= c.jpg":
"~/pics/pic.jpg" and "~/Downloads/pic.jpg." They wo= uld *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.
...

Best,
Jesse

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/101a2b4f-667a-4687-adb4-d45f45b22742%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_9034_66323238.1448525441818-- ------=_Part_9033_1062979037.1448525441817--