Re: [dev] ASCII Delimited Text

From: Adrian Grigore <adrian.emil.grigore_AT_gmail.com>
Date: Mon, 21 May 2018 19:12:46 +0300

> Maybe a nice thing to have would be to get the terminal emulator to
treat the field and record separator in a special way. So the programs
all output fs and rs, and the terminal emulator uses these characters to
layout the data in a tabular way

But would it still be plain text?

I'm having problems compiling usul:
cc -lutf -o cat cat.o util.o
cat.o: In function `main':
cat.c:(.text+0x179): undefined reference to `chartorune'
cat.c:(.text+0x1dd): undefined reference to `runetochar'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake: *** [Makefile:15: cat] Error 1

I mention have libutf.a in my path.

On Mon, May 21, 2018 at 12:09 PM, Truls Becken <truls.becken_AT_gmail.com> wrote:
> As an anecdote, I actually wanted to use US/RS delimited text at work
> a while ago to consume XML downloaded from some service. The idea was
> to use XSLT to convert the data to a sane format that I could easily
> ingest. As it turns out, that was a no-can-do because XSL transforms
> are defined in an XML dialect, and XML is not allowed to contain ASCII
> control characters, not even on escaped form &#x1F; So you cannot
> express this transformation to any of the XSLT engines I tested! I
> ended up using a pair of Unicode control chars instead.
>
> -Truls
>



-- 
Thanks,
Adi
Received on Mon May 21 2018 - 18:12:46 CEST

This archive was generated by hypermail 2.3.0 : Mon May 21 2018 - 18:24:19 CEST