Subject: Re: bug#31665: libxml-parse-html-region' doesn't extract text in tables

From: 積丹尼 Dan Jacobson <[email-masked]>
Date: Mon, 30 Sep 2019 00:52:40 +0800

>>>>> "LI" == Lars Ingebrigtsen <[email-masked]> writes:
LI> 積丹尼 Dan Jacobson <[email-masked]> writes:

>>>>>>> "LI" == Lars Ingebrigtsen <[email-masked]> writes:
>> 
LI> Do you have an example table that `libxml-parse-html-region' doesn't
LI> "extract" text from?
>> 
>> 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 Chinese,
LI> but there didn't seem to be any text in that table, just a bunch of
LI> images.

It should look like:

+----------------------------------------------------------------------------------------------------------------------------------------------------+
|+---------------------------------------------------------------------------------------------------------------------+                             |
||+------------------------------------------------------------------------------------------------------------------+ |                             |
|||[banner2]                                                                                                         | |                             |
|||------------------------------------------------------------------------------------------------------------------| |                             |
|||+---------------------------------------------------------------------------------------------------------------+ | |                             |
||||                                    |親愛的客戶，您好：                   |                                    | | |                             |
||||                                    |-------------------------------------|                                    | | |                             |
||||                                    |為保障您資料的安全，請輸入密碼開啟附 |                                    | | |                             |
||||                                    |加檔案瀏覽您本期的帳單，密碼為『身分 |                                    | | |                             |
||||               [IS1]                |證號碼』(英文字母須大寫)，營業人客戶 |               [IS2]                | | |                             |
||||                                    |不需輸入密碼即可瀏覽。               |                                    | | |                             |
||||                                    |若無法開啟附加檔案，請先確認是否已下 |                                    | | |                             |
||||                                    |載Acrobat Reader軟體。               |                                    | | |                             |
||||                                    |-------------------------------------|                                    | | |                             |
|||+---------------------------------------------------------------------------------------------------------------+ | |                             |
||+------------------------------------------------------------------------------------------------------------------+ |                             |
||++                                                                                                                   |                             |
||||                                                                                                                   |                             |
||++                                                                                                                   |                             |
||+-------------------------------------------------------------------------------------------------------------------+|                             |
|||[new1]                                                                                                             ||                             |
|||+-----------------------------------------------------------------------------------------------------------------+||                             |
||||                                                        |                                                [enf201]|||                             |
||||                                                        |--------------------------------------------------------|||                             |
||||[end101]                                                |                                                [enl301]|||                             |
||||                                                        |--------------------------------------------------------|||                             |
||||                                                        |                                                [enl401]|||                             |
|||+-----------------------------------------------------------------------------------------------------------------+||                             |
||+-------------------------------------------------------------------------------------------------------------------+|                             |
||++                                                                                                                   |                             |
||||                                                                                                                   |                             |
||++                                                                                                                   |                             |
||+------------------------------------------------------------------------------------------------------------------+ |                             |
|||[hot1]                                                                                                            | |                             |
|||------------------------------------------------------------------------------------------------------------------| |                             |
|||+----------------------------------+                                                                              | |                             |
||||[hot1]|[hot2]|[hot3]|[hot4]|[hot5]|                                                                              | |                             |
|||+----------------------------------+                                                                              | |                             |
||+------------------------------------------------------------------------------------------------------------------+ |                             |
||++                                                                                                                   |                             |
||||                                                                                                                   |                             |
||++                                                                                                                   |                             |
||+------------------------------------------------------------------------------------------------------------------+ |                             |
|||[link1]                                                                                                           | |                             |
|||+-----------------------------------------------------------------+                                               | |                             |
||||||            |                |                |                |                                               | |                             |
||||++------------+----------------+----------------+----------------|                                               | |                             |
||||||電子帳單Q&A |    費率說明    |  客戶消費資訊  |    線上繳費    |                                               | |                             |
||||++------------+----------------+----------------+----------------|                                               | |                             |
||||||  服務專線  |    貼心提醒    |不可不知行動優惠| HiNet好康優惠  |                                               | |                             |
|||+-----------------------------------------------------------------+                                               | |                             |
||+------------------------------------------------------------------------------------------------------------------+ |                             |
||++                                                                                                                   |                             |
||||                                                                                                                   |                             |
||++                                                                                                                   |                             |
||+------------------------------------------------------------------------------------------------------------------+ |                             |
|||                                                      [cht]                                                       | |                             |
||+------------------------------------------------------------------------------------------------------------------+ |                             |
|+---------------------------------------------------------------------------------------------------------------------+                             |
+----------------------------------------------------------------------------------------------------------------------------------------------------+

But instead all we get is:

From: Phone Co. <[email-masked]>
Subject: Phone Bill
To: "[email-masked]" <[email-masked]>
Date: Thu, 17 May 2018 12:12:06 +0800
Reply-To: [email-masked]

[1. text/html]
中華電信電子帳單

*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*