static LineCompedSingle lineComp_compressTextAsChars(LineCompCompressor compressor default new LineCompCompressor, S text) { SS data = litmap("" := lines_rtrim(lambdaMap charToHex(characters(text)))); compressor.loadTexts(data); compressor.verify = true; compressor.run(); new L literals; new L pairs; for (LineCompCompressor.Chunk c : compressor.chunks) if (c cast LineCompCompressor.CPair) pairs.add(IntPair(c.i1, c.i2)); else literals.add(charFromHex(((LineCompCompressor.CPrim) c).s)); ret new LineCompedSingle(literals, pairs, firstValue(compressor.finalEncodings)); }