From dev-return-56865-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Mon Jun 4 17:59:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 72775180636 for ; Mon, 4 Jun 2018 17:59:03 +0200 (CEST) Received: (qmail 93478 invoked by uid 500); 4 Jun 2018 15:59:02 -0000 Mailing-List: contact dev-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list dev@pdfbox.apache.org Received: (qmail 93466 invoked by uid 99); 4 Jun 2018 15:59:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2018 15:59:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 0E5AF1807F4 for ; Mon, 4 Jun 2018 15:59:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id kKdupLopTMH5 for ; Mon, 4 Jun 2018 15:59:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id D4F765F39F for ; Mon, 4 Jun 2018 15:59:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 626B8E00C9 for ; Mon, 4 Jun 2018 15:59:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1B6F121094 for ; Mon, 4 Jun 2018 15:59:00 +0000 (UTC) Date: Mon, 4 Jun 2018 15:59:00 +0000 (UTC) From: "Michael Klink (JIRA)" To: dev@pdfbox.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PDFBOX-4236) PDFTextStripper diacritic merge sometimes chooses wrong base glyph MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PDFBOX-4236?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Klink updated PDFBOX-4236: ---------------------------------- Priority: Minor (was: Major) > PDFTextStripper diacritic merge sometimes chooses wrong base glyph > ------------------------------------------------------------------ > > Key: PDFBOX-4236 > URL: https://issues.apache.org/jira/browse/PDFBOX-4236 > Project: PDFBox > Issue Type: Bug > Components: Text extraction > Affects Versions: 3.0.0 PDFBox > Reporter: Michael Klink > Priority: Minor > Attachments: SA-U-NA.png, pattern3.pdf > > > In the course of answering=C2=A0[this stack overflow question|https://sta= ckoverflow.com/q/50664162/1729265] I=C2=A0saw that text extraction from the= =C2=A0example file [^pattern3.pdf] exposes an error in the diacritic mergi= ng code, the wrong base glyph is chosen. > From the bottom of [my answer|https://stackoverflow.com/a/50679508/172926= 5] there: > {quote}By the way, your test file exposes an error in the PDFBox determin= ation of the base glyph to merge a diacritic with: The "=E0=A4=B8[1434]=E0= =A5=81[1441]=E0=A4=A8[1418]" is meant to be rendered as "=E0=A4=B8=E0=A5=81= =E0=A4=A8", i.e. the vowel sign u "=E0=A5=81" is combined with the letter s= a "=E0=A4=B8", but PDFBox combines it with the subsequent letter na "=E0=A4= =A8" as "=E0=A4=B8=E0=A4=A8=E0=A5=81". > The cause is that it determines the letter to combine the diacritic with = by its origin which here indeed is in the range of the latter letter na "= =E0=A4=A8", but as the vowel sign glyph is rendered before its origin (it i= s drawn in an area with a negative x coordinate), PDFBox determines the wro= ng association: > !SA-U-NA.png!=20 > {quote} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org For additional commands, e-mail: dev-help@pdfbox.apache.org