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 OO/sHbhslWILXAEAbAwnHQ (envelope-from ) for ; Tue, 31 May 2022 03:17:44 +0200 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 qFP7HLhslWIdGAAAG6o9tA (envelope-from ) for ; Tue, 31 May 2022 03:17:44 +0200 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 0BEF918DFC for ; Tue, 31 May 2022 03:17:44 +0200 (CEST) Received: from localhost ([::1]:53536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvqVy-0001wG-Tn for larch@yhetil.org; Mon, 30 May 2022 21:17:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58578) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvqUu-0001tz-NW for emacs-orgmode@gnu.org; Mon, 30 May 2022 21:16:36 -0400 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]:36539) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvqUs-0004lj-KF for emacs-orgmode@gnu.org; Mon, 30 May 2022 21:16:36 -0400 Received: by mail-ed1-x535.google.com with SMTP id fd25so15548896edb.3 for ; Mon, 30 May 2022 18:16:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SVYmDvS/bl2bvtAvrq9SgjLuqEp0rJAbeSFM/bQzCYE=; b=DYJVSTTdN+l8KB/jAX62gR9fyV0dJJGtcoyojiIcUnpBrwlLZHU8iXKlqUlVLxUwyZ MnrUd710wKyIk/+wC7SMppWnChLJ9Ut7Oz3cQzeGjQtT6Rf9qHPLaFeKMqVKIIpw9mkf LruVZ21tkFH4oN7tVOdL5wWvKPEEu7sWuZdp1FMaRayb6yIirSfxiBCiRpw1GM823Psw FqOErU0DeKC/jhkyQsSyQgKhePFRjgUsuKW+JvwZgk/iIDN9aXg9pKZozB9OFZ7RVr3L rkRYwW518tYez7aZAG5mBYy557WeB0YSqMo173k3cM33bS4Naebf+ildhHj7+MA2Ks24 r7qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=SVYmDvS/bl2bvtAvrq9SgjLuqEp0rJAbeSFM/bQzCYE=; b=wZF6DPioehkeT1LWoRPOM6zltsNIBk/FkpfL6hXmDN+RQMTzJNB/scarLfR+R0ue8d gWGZ1QprIlrQWciOPL4VLVQ1TiQFU/cNvKyl2DZ7p00AHHF+6tUDI+2QKU9OO3FWGEML 3muHNF9E8N8U8f4Q4wWryv6hwsMBJ04YAYhksYrBEOZ0IaGe+TNyvEyDvtPB7BIa7Xdp gLB4gvnDchJC882Crs2eaRJx9tl4cEe/K1IYNObsK85r+ffDfHZY7xEVhksKGgwJ8KI8 Vafj4u6JvgChemxx+XWJBjdFwPSl8i6S3MhJidCIc0y5dWpLxgXvCmDPLxdsdergQNCM ir4Q== X-Gm-Message-State: AOAM532uXH445cRCHVB6UnRh8rnxIo40OToAK7clUI/I9Ci7IAhoSSmc ePIL1CgoLhAPM1xFyE8wFB3yxvjHagmJJd+smt4= X-Google-Smtp-Source: ABdhPJyBlTMV6/stYLOdIBW4MHc8wLJsCg5PZo6YJUAFHcD5QzbBMX3sZNehvJ/j6JbkxijCrpjHhePfWf8dzB2dZeo= X-Received: by 2002:a05:6402:4c1:b0:42b:e03f:d940 with SMTP id n1-20020a05640204c100b0042be03fd940mr23456813edw.235.1653959793007; Mon, 30 May 2022 18:16:33 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:906:478b:b0:6fe:f76c:8596 with HTTP; Mon, 30 May 2022 18:16:32 -0700 (PDT) In-Reply-To: References: <871qwbc98q.fsf@mat.ucm.es> <87bkve3eeu.fsf@gmail.com> From: Samuel Wales Date: Mon, 30 May 2022 18:16:32 -0700 Message-ID: Subject: Re: export a org table to ascii format (tabs) are not conserved, culprit orgtbl-to-tsv? To: Tim Cross Cc: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::535; envelope-from=samologist@gmail.com; helo=mail-ed1-x535.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653959864; 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=SVYmDvS/bl2bvtAvrq9SgjLuqEp0rJAbeSFM/bQzCYE=; b=EVHdiR4uPubRDtATIqNjk4bZFBxaMZEjF3r4BhZTHnWO8xmo32ZNjMs5VHnhZShmlbnI9N QW0jPOJWQFN2tEm9vrgizPgSlPT66W70euWndKm0/O5frEQCwEfgnzI/E2mFOVl4TelfSp uSFGthSBxkzKDVk8lvZ1skpC6Y0RQagrb3m+qO/oDeijpuYTs7dM+q3FHp+RraTfLtJPv8 k+YhScjwGU5pqXbcoIiHJD220XFDtOAiFlTm+rN8iRX6+obubWWYRrJsO4bcSZtOfTM6ZM aIkgYMftL0WkMs9OXKP21aY2k1svvJW3WW3FT9k/wVb2Ue6Fa0UeQZBa6F2N6A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653959864; a=rsa-sha256; cv=none; b=FwLPJ26ZqqrlA5XvBJFXVyidmANyDTu37zlG6yNO0oGCQw19sjU1RCoCjWjiBuVeNUaZp/ 7jb8yBk7/NjStofRMnSRRxFMaaXVCK5JZM+nGTFZn7HVb7CoSigmOgaAwcq0LQJAQx3oVj SCxhjp68p1Lwi438PjFgO2uCkXMngzolAGQ8hbbluIeenrSf734NBzz380wcGpweURqNH6 JqGcgVQIpPu3cvsq9NRwrO7gyV1029qiOCugDvOzC6AwGLd74V8G4hmG02uUSlUrnQKlFO DFk7lFdSM+DMFp5Y/QufF4f5AKk6yjgOdNJfl3XqO7NCilOb6+nRWyST7o0HdA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=DYJVSTTd; 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: -4.33 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=DYJVSTTd; 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: 0BEF918DFC X-Spam-Score: -4.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: IhnM/Cf5YuLq i was thinking of a nother element when i said div. i meant pre On 5/30/22, Samuel Wales wrote: > some web ui support some subset of html. i think blogger does. then > you might have a div. which i think [not sure] might enforce line > breaks and also be monospace, or something like that. [pardon my html > ignorance.] > > On 5/30/22, Tim Cross wrote: >> >> Uwe Brauer writes: >> >>> Hi >>> >>> I wanted to export a 4x4 table to ascii to insert it into a web fill in >>> interface. However the column get distorted. I tried to tabify or >>> untabify the buffer but it did not help. >>> >>> >>> The problem also occurs when I export the table using the >>> orgtbl-to-tsv >>> >>> #+begin_example >>> | Course | L | M | X >>> | >>> J | V | >>> |------------------------------+-------------+-------------+-------------+-------------+-------------| >>> | Statistics | 10:30-11:30 | | 10:00-11:20 >>> | >>> | 10:30-11:30 | >>> | Differential Equations | 12:30-13:30 | | 13:00-14:15 >>> | >>> | 12:30-13:30 | >>> | Master | 14:30-15:30 | | 15:30-16:30 >>> | >>> 14:30-15:30 | | >>> | Numerical Analysis :00-19:00 | 18:00-19:00 | 18:00-19:00 | 18:00-19:00 >>> | >>> | 7.5 | >>> | | | | >>> | >>> 19:00-20:00 | | >>> |------------------------------+-------------+-------------+-------------+-------------+-------------| >>> | | | | >>> | >>> | | >>> >>> #+end_example >>> >>> >>> Converted to >>> >>> #+begin_example >>> Course L M X J V >>> Statistics 10:30-11:30 10:00-11:20 10:30-11:30 >>> Differential Equations 12:30-13:30 13:00-14:15 12:30-13:30 >>> Master 14:30-15:30 15:30-16:30 14:30-15:30 >>> Numerical Analysis 18:00-19:00 18:00-19:00 18:00-19:00 18:00-19:00 >>> 19:00-20:00 >>> #+end_example >>> >>> >>> Any idea what is wrong here? >>> >>> >> >> I think you might be working under a false expectation. A quick look at >> the exported table example and it looks to be correct to me - values are >> tab separated, with is what a tsv format is. There is no requirement >> that the columns should be aligned, only that they are separated by >> tabs. >> >> With regards to more formatted output options, a common issue is with >> respect to the fonts people use. If the font being used to view th >> eoutput is a proportional font rather than a fixed width one, then all >> formatting will be broken. Most web interfaces tend to use proportional >> fonts due to their more pleasing look for most people. This is also why >> tables sent via email often don't look right for the recipient - they >> are using a proportional or condensed font. >> >> As you have no control over the fonts used by those viewing your ASCII >> content, you cannot reliably make it look well formatted. Either you >> have to do HTML, some form of markdown or some other format with >> enforces tgable alignment. >> >> If your entering data into a web UI, I would not have any expectations >> regarding the final formatting as that will depend heavily on what the >> backend does to the supplied input and how the data is presented to >> anyone looking at that output. >> >> > > > -- > The Kafka Pandemic > > A blog about science, health, human rights, and misopathy: > https://thekafkapandemic.blogspot.com > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com