From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82469 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Off-topic: Convert PDF to (Con/La)TeX Date: Mon, 13 May 2013 09:55:30 +0200 Message-ID: References: <518FA7E2.7030105@telefonica.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0595325342==" X-Trace: ger.gmane.org 1368431750 25747 80.91.229.3 (13 May 2013 07:55:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 May 2013 07:55:50 +0000 (UTC) To: mailing list for ConTeXt users , dxpublica@telefonica.net Original-X-From: ntg-context-bounces@ntg.nl Mon May 13 09:55:51 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ubnbq-00048O-MU for gctc-ntg-context-518@m.gmane.org; Mon, 13 May 2013 09:55:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 29C56101F1; Mon, 13 May 2013 09:55:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id C5nocFnKSxtG; Mon, 13 May 2013 09:55:47 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6F177101E7; Mon, 13 May 2013 09:55:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 12499101E7 for ; Mon, 13 May 2013 09:55:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MAgyNxzxMjao for ; Mon, 13 May 2013 09:55:44 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 14215101E0 for ; Mon, 13 May 2013 09:55:44 +0200 (CEST) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r4D7tVAf019119 for ; Mon, 13 May 2013 09:55:41 +0200 Original-Received: by mail-ee0-f41.google.com with SMTP id d4so2337930eek.14 for ; Mon, 13 May 2013 00:55:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=oqgowO7/JkGKf1zZbCQrkyBOVksIVYD5Z0OvENWYDTA=; b=fzgHgNZKR2GXwtH1LMO4o7Y8T3wcP1ZHd9TR2ktGcZFjujR6K6i1oSnt4gzJ1abuV7 f9KFwGZ6ySo/RTpcYARc5c0Jy8wDLvPbW3ILTwjvhKqeubFwfd1NiiEePmPStsntKpp8 sEuVOMjsZXCl3XRMpbbSnAUYVecUJBeYl4gAvKeXEuD/GbJGJ0a0Vx3np6JeGTV/obfm rIbF0N+9zYCqtmrMSfuzPj9BkEBlwAEKrduB8N7PhjahKGF5xo3bjpP/CYJv0uRT+N3+ HqzQhOWq7r+OjEHZ03HXbcY9AuQEG2VCzbhCAyavSFgbqCbzyaj9YLJHaJ2l9ipGSzuB JXKA== X-Received: by 10.14.111.129 with SMTP id w1mr75478283eeg.13.1368431730942; Mon, 13 May 2013 00:55:30 -0700 (PDT) Original-Received: by 10.15.41.134 with HTTP; Mon, 13 May 2013 00:55:30 -0700 (PDT) In-Reply-To: <518FA7E2.7030105@telefonica.net> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06JzjTvGh - a33cb555aaf7 - 20130513 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82469 Archived-At: --===============0595325342== Content-Type: multipart/alternative; boundary=089e0163465239171a04dc94d768 --089e0163465239171a04dc94d768 Content-Type: text/plain; charset=UTF-8 On Sun, May 12, 2013 at 4:32 PM, Xan wrote: > Hi, > > I just want to know if there is any tool to convert a pdf (generated by > latex or context) to latex source or context source file. Does anyone have > got an experience on that? > > I'm thinking about two alternatives: > * libraries for reading like podofo and custom script for passing pdf > context (text) to context commands > * pass pdf to jpg, and apply http://detexify.kirelabs.org/**classify.htmlfor passing to tex symbols. > > For me it's vital to pass mathematical symbols like (\int) to tex symbol > and not like utf-8 symbols. > > Thanks a lot, > Xan. > > Have you seen the mudraw program of mupdf http://www.mupdf.com/ ? It has a -t switch that outputs txt and a -tt and -ttt switches that output xml. -- luigi --089e0163465239171a04dc94d768 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Sun, May 12, 2013 at 4:32 PM, Xan <dxpublica@telefonica= .net> wrote:
Hi,

I just want to know if there is any tool to convert a pdf (generated by lat= ex or context) to latex source or context source file. Does anyone have got= an experience on that?

I'm thinking about two alternatives:
* libraries for reading like podofo and custom script for passing pdf conte= xt (text) to context commands
* pass pdf to jpg, and apply http://detexify.kirelabs.org/classify.htm= l for passing to tex symbols.

For me it's vital to pass mathematical symbols like (\int) to tex symbo= l and not like utf-8 symbols.

Thanks =C2=A0a lot,
Xan.


Have you seen the mudraw program of mu= pdf
http://www.mupdf.com/
?
=
It has a -t switch that outputs txt=C2=A0 and a -tt and -ttt swi= tches that output xml.

--
luigi
--089e0163465239171a04dc94d768-- --===============0595325342== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0595325342==--