From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UK5dOkU5dWOwOQAAbAwnHQ (envelope-from ) for ; Wed, 16 Nov 2022 20:25:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QEqCOUU5dWNhCgAAG6o9tA (envelope-from ) for ; Wed, 16 Nov 2022 20:25:57 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8F9B023372 for ; Wed, 16 Nov 2022 20:25:57 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovO2F-000539-Sy; Wed, 16 Nov 2022 14:25:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovO2E-00052s-He for emacs-orgmode@gnu.org; Wed, 16 Nov 2022 14:25:22 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovO26-0001zs-4w for emacs-orgmode@gnu.org; Wed, 16 Nov 2022 14:25:16 -0500 Received: by mail-wm1-x32d.google.com with SMTP id c3-20020a1c3503000000b003bd21e3dd7aso2446811wma.1 for ; Wed, 16 Nov 2022 11:24:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=sQgNXeXhtwIl6/CWd6Yj9peeBR4pqDn3zdUhZBwAvLw=; b=kH5KaW54WPRcyJ6SNu0DjqarHsXz7pfFXSTSE3stkEGtL+njEZrk22TBVR2m608+7v t5+wkQBjchuOXer7xphRKFFsJhe2K38GjdAmfDWYmnzENMnDwncLQckYZF1YSs7mFqwm Dvdp3jY/B8fZPQLYWXnS8QrWL19btMaqr6Zoyuzm6Sdk2QCEfvru9NcOE9yM3XwHmK8d MOU0NN1gvuoEAwxAW8DAMpL2RlXwHQAFwQo7pKig912JCaYh6+QF+DA1dbniOumYqtuL 9joSnu6Al/KolTrPTrsMvzKd2Kyr4aAOqWBlj1qOyAVEBUtnh/g+0d+jV0HoSRQZaDPT 78gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=sQgNXeXhtwIl6/CWd6Yj9peeBR4pqDn3zdUhZBwAvLw=; b=XaLXzRwaEUkfc7uYStCkjWsg8VtBCm97PzO4vPe/Q/oz/XU3p6+tNQ37lenl1CFohK t+ob00BDvM3lfKLNQ5U80ndzgziunBg0hP+9VrXokbGE8tYA8sFuuxqdi4NIDuqU/sC7 pwJNCwOH0cphBFCMZRX/8jUz35z5FHb/crkdXk8pCvz55geHAH+LBWXcZ3pCWlemvg9i 3kGOVj71P09QGrnvnfmDVhjpP7Ghtx+7VSpIyVzncZcLa2lphUJ7xtMTbPVl0j5BRoVE LfpExJeoyu9/C4s8iQse6ZrRqmBNIiaJQbQLNXgfIULm71HHYl3GZmLgYiem4shqG4aZ bo8A== X-Gm-Message-State: ANoB5pmXeQQ+EKJfzq7SK6E7D9mJzypx/pk6NItE9d/hG3diYg4DyXTd 9wTMa7h28dIkVFY/wdZoEMA= X-Google-Smtp-Source: AA0mqf600sTc3kMAKVR2pOw6tPMxCvWea7KcNDNfoQyesg9VHUBg8R+s2uQXtB2owy05G3yBvt4FQA== X-Received: by 2002:a05:600c:3d8d:b0:3c6:c05a:a50e with SMTP id bi13-20020a05600c3d8d00b003c6c05aa50emr3074784wmb.81.1668626696951; Wed, 16 Nov 2022 11:24:56 -0800 (PST) Received: from [192.168.0.97] (static-236-73-225-77.ipcom.comunitel.net. [77.225.73.236]) by smtp.gmail.com with ESMTPSA id h14-20020a05600c2cae00b003cfd0bd8c0asm3214122wmc.30.2022.11.16.11.24.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Nov 2022 11:24:56 -0800 (PST) Content-Type: multipart/alternative; boundary="------------0wDVppN2V2oHWpLNJj9uWjG5" Message-ID: Date: Wed, 16 Nov 2022 20:20:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: Help with a (query) replacement Content-Language: en-GB To: alain.cochard@unistra.fr Cc: Org-mode References: <4b3f7f60-9983-8a46-7a42-b14644f18347@gmail.com> <25455.48184.105349.393390@gargle.gargle.HOWL> From: Ypo In-Reply-To: <25455.48184.105349.393390@gargle.gargle.HOWL> Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=ypuntot@gmail.com; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668626757; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=sQgNXeXhtwIl6/CWd6Yj9peeBR4pqDn3zdUhZBwAvLw=; b=pBYqYK6tMnkIN0zYww4kC0zTpgIlZVuGmGBesNsq5F3Aaeho4W224UxXCnFDO3xalHAqGr m4hAqlUMav5bgKb9n0XSokZ6Mi28y3YFXo9GoKehq2vJQXD6xrPjDcjQAF+PXijNv6lAWQ xJ3RDltosEvof3FyCVX9VqBZqTXrMmh3mRN1ppnxaRyJDnsom0KPOz1+4o58En2ngF6qzR HOeMFyiwpHjvX3BGYP9nAR41p6z2smatHT59Awnbt1+RDCneO0J6uT8s342g4y6Es/MOJG gjY7eTK9JngE1Uikuc53r0+IP0Alaxu9SHL205VU8MErPt70UEGkHKI4/tdtXg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668626757; a=rsa-sha256; cv=none; b=lpEY9o0SigMSaRFwsyyq/89Ez3VnK3nn2N0OI/6oPCZ9knRYY3DlYSvec1qPT/FN6w+cI9 oJvpvj/bdt8D6TRSjG3XCI2xoNq+vsozz2E2Umb72IzCVmL1gsQbg8x6PuB6o+Jq5wEAaI RaviqG2JWeXFvgaU4L/Y4H2VlZB6mD3cqV5Vr6zhJweGnWTt9hgUjQuLpqn7u/diPwlrMw ih/T3ehmyvOSO7vwbDOBQWkkXaSjqu407QXsWhknctExxQ1kdsKLH0cw/GTWEWPOlAn0l3 uoVo/e95nbm6ZW0tXJNInDn+4THNuKa85qW5oimKaz+CnFRtDo7o2vNQxItWew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kH5KaW54; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kH5KaW54; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8F9B023372 X-Spam-Score: -2.54 X-Migadu-Scanner: scn1.migadu.com X-TUID: Om1uiG0H/MfA This is a multi-part message in MIME format. --------------0wDVppN2V2oHWpLNJj9uWjG5 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Thanks, working!! I can't see those options in the manual (15.10.4 Query Replace) and the help is a little bit obscure for me, a new rabbit hole to study ;D Thanks! El 12/11/2022 a las 16:31, Alain.Cochard@unistra.fr escribió: > Ypo writes on Sat 12 Nov 2022 15:42: > > Hi > > > > I am copy-pasting e-books into org-mode to read and study them. > > > > Usually, words come hyphenated, like "ato- mized", that I wanted to > > transform into "atomized". > > > > I am trying with query replace, but I am starting to think that it is > > not the correct tool for this job. > > I tried "query-replace [a-z]-" but I don't know how to exclude the > > letter before the "-". > > I don't really understand the thing with e-books but as for > transforming "ato- mized" (or "ato-mized") into "atomized", how about > something like > > query-replace-regex > > \([a-z]\)-[[:blank:]]*\([a-z]\) > > \1\2 > > --------------0wDVppN2V2oHWpLNJj9uWjG5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Thanks, working!!

I can't see those options in the manual (15.10.4 Query Replace) and the help is a little bit obscure for me, a new rabbit hole to study ;D

Thanks!


El 12/11/2022 a las 16:31, Alain.Cochard@unistra.fr escribió:
Ypo writes on Sat 12 Nov 2022 15:42:
 > Hi
 > 
 > I am copy-pasting e-books into org-mode to read and study them.
 > 
 > Usually, words come hyphenated, like "ato- mized", that I wanted to 
 > transform into "atomized".
 > 
 > I am trying with query replace, but I am starting to think that it is 
 > not the correct tool for this job.
 > I tried "query-replace [a-z]-" but I don't know how to exclude the 
 > letter before the "-".

I don't really understand the thing with e-books but as for
transforming "ato- mized" (or "ato-mized") into "atomized", how about
something like

query-replace-regex

\([a-z]\)-[[:blank:]]*\([a-z]\)

\1\2


--------------0wDVppN2V2oHWpLNJj9uWjG5--