From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#31665: libxml-parse-html-region' doesn't extract text in tables Date: Mon, 30 Sep 2019 00:52:40 +0800 Message-ID: <877e5rgi3r.5.fsf@jidanni.org> References: <8736zjmtsa.fsf@jidanni.org> <87tvqof8uf.fsf_-_@jidanni.org> <87d0x3od14.fsf@jidanni.org> <87r23zqz4f.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="244728"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Katsumi Yamaoka , 31665@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 29 18:53:21 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEcRj-0011Vk-QG for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Sep 2019 18:53:20 +0200 Original-Received: from localhost ([::1]:41130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEcRh-000186-Ui for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Sep 2019 12:53:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57830) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEcRU-00015U-BA for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 12:53:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iEcRT-0000Zh-1Q for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 12:53:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46921) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iEcRR-0000Ye-Qr for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 12:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iEcRR-0001kH-O3 for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 12:53:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87tvqof8uf.fsf_-_@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Sep 2019 16:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31665 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 31665-submit@debbugs.gnu.org id=B31665.15697759786701 (code B ref 31665); Sun, 29 Sep 2019 16:53:01 +0000 Original-Received: (at 31665) by debbugs.gnu.org; 29 Sep 2019 16:52:58 +0000 Original-Received: from localhost ([127.0.0.1]:55742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEcRN-0001k0-Qw for submit@debbugs.gnu.org; Sun, 29 Sep 2019 12:52:58 -0400 Original-Received: from caracal.birch.relay.mailchannels.net ([23.83.209.30]:63616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEcRK-0001jo-1c for 31665@debbugs.gnu.org; Sun, 29 Sep 2019 12:52:56 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id AE2F86A152D; Sun, 29 Sep 2019 16:52:52 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a100.g.dreamhost.com (100-96-87-159.trex.outbound.svc.cluster.local [100.96.87.159]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 27B8E6A21F6; Sun, 29 Sep 2019 16:52:52 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a100.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.1); Sun, 29 Sep 2019 16:52:52 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Abortive-Print: 6f886202067fb7da_1569775972567_316348013 X-MC-Loop-Signature: 1569775972567:115607621 X-MC-Ingress-Time: 1569775972567 Original-Received: from pdx1-sub0-mail-a100.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a100.g.dreamhost.com (Postfix) with ESMTP id C0DAF80D75; Sun, 29 Sep 2019 09:52:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=GGDdZoK0nrX+V43qUM xSAnGZiMo=; b=b6QTuqbKeyrBDUydSaTCimkMl9sQNsltA5tOMoAmmrNBouBObb e3CK3inIGgrxfvsvJ5u8hHHvF++O1hhSML1erPVbdbN2r57kvebr2fprEQva2Tuo cvp3o8Y0jybLdVwpHYUX2pA9klqtiYz1Aceua5gqUHOH6f9iMZ0keK6v0= Original-Received: from jidanni.org (220-140-6-101.dynamic-ip.hinet.net [220.140.6.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a100.g.dreamhost.com (Postfix) with ESMTPSA id 8D43F80D6E; Sun, 29 Sep 2019 09:52:44 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a100 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrgedtgddutdekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhffffkgggtgfesthekredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppedvvddtrddugedtrdeirddutddunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepvddvtddrudegtddriedruddtuddprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopeefudeiieehseguvggssghughhsrdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:167728 Archived-At: >>>>> "LI" =3D=3D Lars Ingebrigtsen writes: LI> =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes= : >>>>>>> "LI" =3D=3D Lars Ingebrigtsen writes: >>=20 LI> Do you have an example table that `libxml-parse-html-region' doesn't LI> "extract" text from? >>=20 >> OK here is a mail that I cleaned off my personal phone bill from: LI> What was it you think is missing from that table? I don't read Chine= se, LI> but there didn't seem to be any text in that table, just a bunch of LI> images. It should look like: +------------------------------------------------------------------------= -------------------------------------------------------------------------= ---+ |+-----------------------------------------------------------------------= ----------------------------------------------+ = | ||+----------------------------------------------------------------------= --------------------------------------------+ | = | |||[banner2] = | | = | |||----------------------------------------------------------------------= --------------------------------------------| | = | |||+---------------------------------------------------------------------= ------------------------------------------+ | | = | |||| |=E8=A6=AA=E6=84=9B=E7=9A=84=E5=AE= =A2=E6=88=B6=EF=BC=8C=E6=82=A8=E5=A5=BD=EF=BC=9A | = | | | | |||| |--------------------------------= -----| | | | = | |||| |=E7=82=BA=E4=BF=9D=E9=9A=9C=E6=82= =A8=E8=B3=87=E6=96=99=E7=9A=84=E5=AE=89=E5=85=A8=EF=BC=8C=E8=AB=8B=E8=BC=B8= =E5=85=A5=E5=AF=86=E7=A2=BC=E9=96=8B=E5=95=9F=E9=99=84 | = | | | | |||| |=E5=8A=A0=E6=AA=94=E6=A1=88=E7=80= =8F=E8=A6=BD=E6=82=A8=E6=9C=AC=E6=9C=9F=E7=9A=84=E5=B8=B3=E5=96=AE=EF=BC=8C= =E5=AF=86=E7=A2=BC=E7=82=BA=E3=80=8E=E8=BA=AB=E5=88=86 | = | | | | |||| [IS1] |=E8=AD=89=E8=99=9F=E7=A2=BC=E3=80= =8F(=E8=8B=B1=E6=96=87=E5=AD=97=E6=AF=8D=E9=A0=88=E5=A4=A7=E5=AF=AB)=EF=BC= =8C=E7=87=9F=E6=A5=AD=E4=BA=BA=E5=AE=A2=E6=88=B6 | [IS2] = | | | | |||| |=E4=B8=8D=E9=9C=80=E8=BC=B8=E5=85= =A5=E5=AF=86=E7=A2=BC=E5=8D=B3=E5=8F=AF=E7=80=8F=E8=A6=BD=E3=80=82 = | | | | = | |||| |=E8=8B=A5=E7=84=A1=E6=B3=95=E9=96= =8B=E5=95=9F=E9=99=84=E5=8A=A0=E6=AA=94=E6=A1=88=EF=BC=8C=E8=AB=8B=E5=85=88= =E7=A2=BA=E8=AA=8D=E6=98=AF=E5=90=A6=E5=B7=B2=E4=B8=8B | = | | | | |||| |=E8=BC=89Acrobat Reader=E8=BB=9F= =E9=AB=94=E3=80=82 | | |= | | |||| |--------------------------------= -----| | | | = | |||+---------------------------------------------------------------------= ------------------------------------------+ | | = | ||+----------------------------------------------------------------------= --------------------------------------------+ | = | ||++ = | = | |||| = | = | ||++ = | = | ||+----------------------------------------------------------------------= ---------------------------------------------+| = | |||[new1] = || = | |||+---------------------------------------------------------------------= --------------------------------------------+|| = | |||| | = [enf201]||| = | |||| |------------= --------------------------------------------||| = | ||||[end101] | = [enl301]||| = | |||| |------------= --------------------------------------------||| = | |||| | = [enl401]||| = | |||+---------------------------------------------------------------------= --------------------------------------------+|| = | ||+----------------------------------------------------------------------= ---------------------------------------------+| = | ||++ = | = | |||| = | = | ||++ = | = | ||+----------------------------------------------------------------------= --------------------------------------------+ | = | |||[hot1] = | | = | |||----------------------------------------------------------------------= --------------------------------------------| | = | |||+----------------------------------+ = | | = | ||||[hot1]|[hot2]|[hot3]|[hot4]|[hot5]| = | | = | |||+----------------------------------+ = | | = | ||+----------------------------------------------------------------------= --------------------------------------------+ | = | ||++ = | = | |||| = | = | ||++ = | = | ||+----------------------------------------------------------------------= --------------------------------------------+ | = | |||[link1] = | | = | |||+-----------------------------------------------------------------+ = | | = | |||||| | | | | = | | = | ||||++------------+----------------+----------------+----------------| = | | = | ||||||=E9=9B=BB=E5=AD=90=E5=B8=B3=E5=96=AEQ&A | =E8=B2=BB=E7=8E=87=E8=AA= =AA=E6=98=8E | =E5=AE=A2=E6=88=B6=E6=B6=88=E8=B2=BB=E8=B3=87=E8=A8=8A= | =E7=B7=9A=E4=B8=8A=E7=B9=B3=E8=B2=BB | = | | | ||||++------------+----------------+----------------+----------------| = | | = | |||||| =E6=9C=8D=E5=8B=99=E5=B0=88=E7=B7=9A | =E8=B2=BC=E5=BF=83=E6=8F= =90=E9=86=92 |=E4=B8=8D=E5=8F=AF=E4=B8=8D=E7=9F=A5=E8=A1=8C=E5=8B=95=E5= =84=AA=E6=83=A0| HiNet=E5=A5=BD=E5=BA=B7=E5=84=AA=E6=83=A0 | = | | | |||+-----------------------------------------------------------------+ = | | = | ||+----------------------------------------------------------------------= --------------------------------------------+ | = | ||++ = | = | |||| = | = | ||++ = | = | ||+----------------------------------------------------------------------= --------------------------------------------+ | = | ||| [cht] = | | = | ||+----------------------------------------------------------------------= --------------------------------------------+ | = | |+-----------------------------------------------------------------------= ----------------------------------------------+ = | +------------------------------------------------------------------------= -------------------------------------------------------------------------= ---+ But instead all we get is: From: Phone Co. Subject: Phone Bill To: "jidanni@jidanni.org" Date: Thu, 17 May 2018 12:12:06 +0800 Reply-To: x@cht.com.tw [1. text/html] =E4=B8=AD=E8=8F=AF=E9=9B=BB=E4=BF=A1=E9=9B=BB=E5=AD=90=E5=B8=B3=E5=96=AE * * * * * * * * * * * * * * * *