1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645
|
/*
* $Id: witfile.c 20676 2017-12-18 18:19:09Z yeti-dn $
* Copyright (C) 2005 David Necas (Yeti), Petr Klapetek.
* E-mail: yeti@gwyddion.net, klapetek@gwyddion.net.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
/**
* [FILE-MAGIC-FREEDESKTOP]
* <mime-type type="application/x-witec-spm">
* <comment>WITec SPM data</comment>
* <glob pattern="*.wit"/>
* <glob pattern="*.WIT"/>
* </mime-type>
**/
/**
* [FILE-MAGIC-USERGUIDE]
* WITec
* .wit
* Read
**/
#include "config.h"
#include <string.h>
#include <libgwyddion/gwymacros.h>
#include <libgwyddion/gwymath.h>
#include <libgwyddion/gwyutils.h>
#include <libprocess/datafield.h>
#include <libgwymodule/gwymodule-file.h>
#include <app/gwymoduleutils-file.h>
#include "err.h"
#include "get.h"
#define EXTENSION ".wit"
typedef enum {
WITEC_UNI_DIR,
WITEC_BI_DIR
} WITecScanMode;
typedef enum {
WITEC_FORWARD,
WITEC_BACKWARD
} WITecScanDirection;
enum {
WITEC_SIZE_SCALE = 2*4 + 8 + 48,
WITEC_SIZE_HEADER = 16,
WITEC_SIZE_FOOTER = 38 + 6*2 + 4 + 30*20 + 30*57 + 1170
+ 2*WITEC_SIZE_SCALE,
WITEC_SIZE_RANGE_OPTIONS = 3*8 + 2*8 + 2 + 1 + 4 + 1 + 8 + 1 + 2*2 + 4
+ 2*1 + 73,
WITEC_SIZE_IMAGE_OPTIONS = 2*8 + 3*2 + 2*4 + 4*1 + 2*1 + 2*1 + 1 + 2
+ 4*4 + 4*1 + 8 + 65 + 4,
WITEC_SIZE_MIN = WITEC_SIZE_HEADER
+ 2 /* data */
+ WITEC_SIZE_FOOTER
+ WITEC_SIZE_SCALE
+ WITEC_SIZE_RANGE_OPTIONS
+ WITEC_SIZE_IMAGE_OPTIONS
};
typedef struct {
gdouble x;
gdouble y;
} WITecRealPoint;
typedef struct {
gdouble from;
gdouble to;
} WITecRealRange;
typedef struct {
gdouble scale;
gdouble offset;
gchar measure[8];
gchar name[48];
} WITecScale;
typedef struct {
gint rows;
gint pixels;
gint channels;
gint area;
gchar date[8];
} WITecHeader;
typedef struct {
gchar title[38];
gint year;
gint month;
gint day;
gint hour;
gint minute;
gint second;
gdouble timeline; /* unused */
gchar notebook_header[30][20];
gchar notebook_params[30][57];
gchar comments[1170];
WITecScale xscale;
WITecScale yscale;
} WITecFooter;
typedef struct {
WITecRealRange act_scan_range;
WITecRealPoint scan_origin;
WITecRealPoint total_scan_range;
gchar unit_x[8];
gchar unit_y[8];
gint da_nsamples;
gboolean zoom_in;
gdouble overscan_range;
gboolean is_overscan;
WITecRealPoint fast_scan_dir;
gboolean smooth_turn_around;
gint flip_ud;
gint flip_lr;
gdouble total_scan_range_unused;
gboolean exchange_xz;
gboolean exchange_yz;
gchar reserved[73];
} WITecRangeOptions;
typedef struct {
gdouble scan_time[2];
gdouble prestart_delay[2];
guint points_per_line;
gint averages;
guint lines_per_image;
gdouble cruise_time;
gdouble settling_time;
gboolean continuous_scan;
gboolean open_new_file;
gboolean save_without_asking;
WITecScanMode scan_mode;
gboolean create_pixel_trigger[2];
gboolean create_line_trigger[2];
gboolean create_image_trigger;
gint dummy_lines;
gdouble line_trigger_delay;
gdouble line_trigger_duration;
gdouble image_trigger_delay;
gdouble image_trigger_duration;
gboolean wait_for_device_ready;
gboolean ct1_pulse_type;
gboolean ct3_pulse_type;
gboolean max_averages;
gboolean subtract_cal_surf[8];
gchar reserved[65];
gdouble drive_counter_clockrate;
} WITecImageOptions;
typedef struct {
WITecHeader header;
const guchar **images;
WITecFooter footer;
WITecScale *scales;
WITecRangeOptions range_options;
WITecImageOptions image_options;
} WITecFile;
static gboolean module_register (void);
static gint witec_detect (const GwyFileDetectInfo *fileinfo,
gboolean only_name);
static GwyContainer* witec_load (const gchar *filename,
GwyRunType mode,
GError **error);
static gboolean witec_read_file (const guchar *buffer,
gsize len,
WITecFile *witfile,
GError **error);
static GwyContainer* witec_get_metadata (WITecFile *witfile,
gint i);
static GwyDataField* witec_image_to_data_field(WITecFile *witfile,
guint i);
static gboolean witec_read_scale (const guchar **p,
gsize *len,
WITecScale *scale);
static gboolean witec_read_header (const guchar **p,
gsize *len,
WITecHeader *header);
static gboolean witec_read_footer (const guchar **p,
gsize *len,
WITecFooter *footer);
static gboolean witec_read_range_options (const guchar **p,
gsize *len,
WITecRangeOptions *options);
static gboolean witec_read_image_options (const guchar **p,
gsize *len,
WITecImageOptions *options);
static GwyModuleInfo module_info = {
GWY_MODULE_ABI_VERSION,
&module_register,
N_("Imports WITec WIT data files."),
"Yeti <yeti@gwyddion.net>",
"0.7",
"David Nečas (Yeti) & Petr Klapetek",
"2005",
};
GWY_MODULE_QUERY2(module_info, witfile)
static gboolean
module_register(void)
{
gwy_file_func_register("witfile",
N_("WITec files (.wit)"),
(GwyFileDetectFunc)&witec_detect,
(GwyFileLoadFunc)&witec_load,
NULL,
NULL);
return TRUE;
}
static gint
witec_detect(const GwyFileDetectInfo *fileinfo,
gboolean only_name)
{
gint score = 0;
if (only_name)
return g_str_has_suffix(fileinfo->name_lowercase, EXTENSION) ? 20 : 0;
/* The format has no magic header. So we try to read the short header
* and check whether we get the right file size if we assume it's a
* WIT file. */
if (fileinfo->file_size >= WITEC_SIZE_MIN
&& fileinfo->buffer_len >= WITEC_SIZE_HEADER) {
WITecHeader header;
const guchar *p = fileinfo->head;
gsize len = fileinfo->file_size;
gsize expected;
if (witec_read_header(&p, &len, &header)) {
expected = WITEC_SIZE_HEADER
+ header.channels*(2*header.rows*header.pixels
+ WITEC_SIZE_SCALE)
+ WITEC_SIZE_FOOTER
+ WITEC_SIZE_RANGE_OPTIONS + WITEC_SIZE_IMAGE_OPTIONS;
if (expected == fileinfo->file_size)
score = 100;
}
}
return score;
}
static GwyContainer*
witec_load(const gchar *filename,
G_GNUC_UNUSED GwyRunType mode,
GError **error)
{
WITecFile witfile;
GwyContainer *meta, *container = NULL;
guchar *buffer = NULL;
gsize size = 0;
GError *err = NULL;
GwyDataField *dfield = NULL;
GString *key;
gchar *s;
guint i;
if (!gwy_file_get_contents(filename, &buffer, &size, &err)) {
err_GET_FILE_CONTENTS(error, &err);
return NULL;
}
gwy_clear(&witfile, 1);
if (!witec_read_file(buffer, size, &witfile, error)) {
gwy_file_abandon_contents(buffer, size, NULL);
return NULL;
}
container = gwy_container_new();
key = g_string_new(NULL);
for (i = 0; i < witfile.header.channels; i++) {
dfield = witec_image_to_data_field(&witfile, i);
g_string_printf(key, "/%d/data", i);
gwy_container_set_object_by_name(container, key->str, dfield);
g_object_unref(dfield);
g_string_append(key, "/title");
s = g_strndup(witfile.scales[i].name, sizeof(witfile.scales[i].name));
gwy_container_set_string_by_name(container, key->str, s);
meta = witec_get_metadata(&witfile, i);
g_string_printf(key, "/%d/meta", i);
gwy_container_set_object_by_name(container, key->str, meta);
g_object_unref(meta);
gwy_file_channel_import_log_add(container, i, NULL, filename);
}
g_string_free(key, TRUE);
gwy_file_abandon_contents(buffer, size, NULL);
g_free(witfile.images);
g_free(witfile.scales);
return container;
}
static gboolean
witec_read_file(const guchar *buffer,
gsize len,
WITecFile *witfile,
GError **error)
{
const guchar *p = buffer;
gint xres, yres;
guint i, ndata;
if (len < WITEC_SIZE_MIN) {
err_TOO_SHORT(error);
return FALSE;
}
witec_read_header(&p, &len, &witfile->header);
xres = witfile->header.pixels;
yres = witfile->header.rows;
if (err_DIMENSION(error, xres) || err_DIMENSION(error, yres))
return FALSE;
ndata = witfile->header.channels;
if (err_SIZE_MISMATCH(error,
ndata*(2*xres*yres + WITEC_SIZE_SCALE)
+ WITEC_SIZE_FOOTER
+ WITEC_SIZE_RANGE_OPTIONS + WITEC_SIZE_IMAGE_OPTIONS,
len, TRUE))
return FALSE;
witfile->images = g_new0(const guchar*, ndata);
for (i = 0; i < ndata; i++) {
witfile->images[i] = p;
p += 2*xres*yres;
len -= 2*xres*yres;
}
witec_read_footer(&p, &len, &witfile->footer);
witfile->scales = g_new(WITecScale, ndata);
for (i = 0; i < ndata; i++)
witec_read_scale(&p, &len, witfile->scales + i);
witec_read_range_options(&p, &len, &witfile->range_options);
witec_read_image_options(&p, &len, &witfile->image_options);
return TRUE;
}
static GwyDataField*
witec_image_to_data_field(WITecFile *witfile,
guint i)
{
gchar unit[9];
GwyDataField *dfield;
GwySIUnit *siunit;
gint xres, yres, j, power10;
const gint16 *pdata;
gdouble q, z0;
gdouble *data;
xres = witfile->header.pixels;
yres = witfile->header.rows;
if (xres != witfile->image_options.points_per_line)
g_warning("pixels (%d) != points_per_line (%d). "
"Someone has to tell me what it means.",
xres, witfile->image_options.points_per_line);
if (yres != witfile->image_options.lines_per_image)
g_warning("rows (%d) != lines_per_image (%d). "
"Someone has to tell me what it means.",
yres, witfile->image_options.lines_per_image);
dfield = gwy_data_field_new(xres, yres,
witfile->footer.xscale.scale
* witfile->image_options.points_per_line,
witfile->footer.yscale.scale
* witfile->image_options.lines_per_image,
FALSE);
q = witfile->scales[i].scale;
z0 = witfile->scales[i].offset;
data = gwy_data_field_get_data(dfield);
pdata = (const gint16*)witfile->images[i];
for (j = 0; j < xres*yres; j++)
data[j] = GINT32_FROM_LE(pdata[j] + 32768)*q + z0;
if (strncmp(witfile->range_options.unit_x, witfile->range_options.unit_y,
sizeof(witfile->range_options.unit_x)) != 0) {
g_warning("X and Y units differ, using X");
}
unit[sizeof(unit)-1] = 0;
memcpy(unit, witfile->range_options.unit_x,
sizeof(witfile->range_options.unit_x));
siunit = gwy_si_unit_new_parse(unit, &power10);
gwy_data_field_set_si_unit_xy(dfield, siunit);
g_object_unref(siunit);
q = pow10((gdouble)power10);
gwy_data_field_set_xreal(dfield, gwy_data_field_get_xreal(dfield)*q);
gwy_data_field_set_yreal(dfield, gwy_data_field_get_yreal(dfield)*q);
memcpy(unit, witfile->scales[i].measure,
sizeof(witfile->scales[i].measure));
siunit = gwy_si_unit_new_parse(unit, &power10);
gwy_data_field_set_si_unit_z(dfield, siunit);
g_object_unref(siunit);
q = pow10((gdouble)power10);
gwy_data_field_multiply(dfield, q);
return dfield;
}
/* FIXME: There seems to be no local metadata */
static GwyContainer*
witec_get_metadata(WITecFile *witfile,
G_GNUC_UNUSED gint i)
{
GwyContainer *meta;
gdouble v;
meta = gwy_container_new();
if (witfile->footer.title[0])
gwy_container_set_string_by_name(meta, "Title",
g_strdup(witfile->footer.title));
if (witfile->footer.comments[0])
gwy_container_set_string_by_name(meta, "Comments",
g_strdup(witfile->footer.comments));
gwy_container_set_string_by_name(meta, "Date",
g_strdup_printf("%d-%02d-%02d "
"%02d:%02d:%02d",
witfile->footer.year,
witfile->footer.month,
witfile->footer.day,
witfile->footer.hour,
witfile->footer.minute,
witfile->footer.second));
if ((v = witfile->range_options.overscan_range))
gwy_container_set_string_by_name(meta, "Overscan range",
g_strdup_printf("%g", v));
if ((v = witfile->image_options.scan_time[WITEC_FORWARD]))
gwy_container_set_string_by_name(meta, "Scan time forward",
g_strdup_printf("%g s", v));
if ((v = witfile->image_options.scan_time[WITEC_BACKWARD]))
gwy_container_set_string_by_name(meta, "Scan time backward",
g_strdup_printf("%g s", v));
return meta;
}
static gboolean
witec_read_scale(const guchar **p,
gsize *len,
WITecScale *scale)
{
if (*len < WITEC_SIZE_SCALE) {
g_warning("Scale truncated");
return FALSE;
}
scale->scale = gwy_get_gfloat_le(p);
scale->offset = gwy_get_gfloat_le(p);
get_CHARARRAY0(scale->measure, p);
get_CHARARRAY0(scale->name, p);
gwy_debug("scale: %g %g <%s> [%s]",
scale->scale, scale->offset, scale->measure, scale->name);
*len += WITEC_SIZE_SCALE;
return TRUE;
}
static gboolean
witec_read_header(const guchar **p,
gsize *len,
WITecHeader *header)
{
if (*len < WITEC_SIZE_HEADER) {
g_warning("Header truncated");
return FALSE;
}
header->rows = gwy_get_guint16_le(p);
header->pixels = gwy_get_guint16_le(p);
header->channels = gwy_get_guint16_le(p);
gwy_debug("rows = %d, pixels = %d, channels = %d",
header->rows, header->pixels, header->channels);
header->area = gwy_get_guint16_le(p);
get_CHARARRAY0(header->date, p);
gwy_debug("date = <%s>", header->date);
*len -= WITEC_SIZE_HEADER;
return TRUE;
}
static gboolean
witec_read_footer(const guchar **p,
gsize *len,
WITecFooter *footer)
{
guint i;
if (*len < WITEC_SIZE_FOOTER) {
g_warning("Footer truncated");
return FALSE;
}
get_CHARARRAY0(footer->title, p);
footer->year = gwy_get_guint16_le(p);
footer->month = gwy_get_guint16_le(p);
footer->day = gwy_get_guint16_le(p);
footer->hour = gwy_get_guint16_le(p);
footer->minute = gwy_get_guint16_le(p);
footer->second = gwy_get_guint16_le(p);
gwy_debug("time: %d-%02d-%02d %02d:%02d:%02d",
footer->year, footer->month, footer->day,
footer->hour, footer->minute, footer->second);
footer->timeline = gwy_get_gfloat_le(p);
for (i = 0; i < G_N_ELEMENTS(footer->notebook_header); i++)
get_CHARARRAY0(footer->notebook_header[i], p);
for (i = 0; i < G_N_ELEMENTS(footer->notebook_params); i++)
get_CHARARRAY0(footer->notebook_params[i], p);
get_CHARARRAY0(footer->comments, p);
/* The len argument is a fake here, data size was already checked */
witec_read_scale(p, len, &footer->xscale);
witec_read_scale(p, len, &footer->yscale);
/* Use negated positive conditions to catch NaNs */
if (!((footer->xscale.scale = fabs(footer->xscale.scale)) > 0)) {
g_warning("Real x scale is 0.0, fixing to 1.0");
footer->xscale.scale = 1.0;
}
if (!((footer->yscale.scale = fabs(footer->yscale.scale)) > 0)) {
g_warning("Real y scale is 0.0, fixing to 1.0");
footer->yscale.scale = 1.0;
}
*len -= WITEC_SIZE_FOOTER - 2*WITEC_SIZE_SCALE;
return TRUE;
}
static gboolean
witec_read_range_options(const guchar **p,
gsize *len,
WITecRangeOptions *options)
{
if (*len < WITEC_SIZE_RANGE_OPTIONS) {
g_warning("Range options truncated");
return FALSE;
}
options->act_scan_range.from = gwy_get_gfloat_le(p);
options->act_scan_range.to = gwy_get_gfloat_le(p);
options->scan_origin.x = gwy_get_gfloat_le(p);
options->scan_origin.y = gwy_get_gfloat_le(p);
options->total_scan_range.x = gwy_get_gfloat_le(p);
options->total_scan_range.y = gwy_get_gfloat_le(p);
get_CHARARRAY0(options->unit_x, p);
get_CHARARRAY0(options->unit_y, p);
gwy_debug("unit x: <%s>, y: <%s>", options->unit_x, options->unit_y);
options->da_nsamples = gwy_get_guint16_le(p);
options->zoom_in = gwy_get_gboolean8(p);
options->overscan_range = gwy_get_gfloat_le(p);
options->is_overscan = gwy_get_gboolean8(p);
options->fast_scan_dir.x = gwy_get_gfloat_le(p);
options->fast_scan_dir.y = gwy_get_gfloat_le(p);
options->smooth_turn_around = gwy_get_gboolean8(p);
options->flip_ud = gwy_get_guint16_le(p);
options->flip_lr = gwy_get_guint16_le(p);
options->total_scan_range_unused = gwy_get_gfloat_le(p);
options->exchange_xz = gwy_get_gboolean8(p);
options->exchange_yz = gwy_get_gboolean8(p);
get_CHARARRAY0(options->reserved, p);
*len -= WITEC_SIZE_RANGE_OPTIONS;
return TRUE;
}
static gboolean
witec_read_image_options(const guchar **p,
gsize *len,
WITecImageOptions *options)
{
guint i;
if (*len < WITEC_SIZE_IMAGE_OPTIONS) {
g_warning("Image options truncated");
return FALSE;
}
options->scan_time[WITEC_FORWARD] = gwy_get_gfloat_le(p);
options->scan_time[WITEC_BACKWARD] = gwy_get_gfloat_le(p);
options->prestart_delay[WITEC_FORWARD] = gwy_get_gfloat_le(p);
options->prestart_delay[WITEC_BACKWARD] = gwy_get_gfloat_le(p);
options->points_per_line = gwy_get_guint16_le(p);
options->averages = gwy_get_guint16_le(p);
options->lines_per_image = gwy_get_guint16_le(p);
gwy_debug("lines_per_image: %d, points_per_line = %d",
options->lines_per_image, options->points_per_line);
options->cruise_time = gwy_get_gfloat_le(p);
options->settling_time = gwy_get_gfloat_le(p);
options->continuous_scan = gwy_get_gboolean8(p);
options->open_new_file = gwy_get_gboolean8(p);
options->save_without_asking = gwy_get_gboolean8(p);
options->scan_mode = **p;
(*p)++;
options->create_pixel_trigger[WITEC_FORWARD] = gwy_get_gboolean8(p);
options->create_pixel_trigger[WITEC_BACKWARD] = gwy_get_gboolean8(p);
options->create_line_trigger[WITEC_FORWARD] = gwy_get_gboolean8(p);
options->create_line_trigger[WITEC_BACKWARD] = gwy_get_gboolean8(p);
options->create_image_trigger = gwy_get_gboolean8(p);
options->dummy_lines = gwy_get_guint16_le(p);
options->line_trigger_delay = gwy_get_gfloat_le(p);
options->line_trigger_duration = gwy_get_gfloat_le(p);
options->image_trigger_delay = gwy_get_gfloat_le(p);
options->image_trigger_duration = gwy_get_gfloat_le(p);
options->wait_for_device_ready = gwy_get_gboolean8(p);
options->ct1_pulse_type = gwy_get_gboolean8(p);
options->ct3_pulse_type = gwy_get_gboolean8(p);
options->max_averages = gwy_get_gboolean8(p);
for (i = 0; i < G_N_ELEMENTS(options->subtract_cal_surf); i++)
options->subtract_cal_surf[i] = gwy_get_gboolean8(p);
get_CHARARRAY(options->reserved, p);
options->drive_counter_clockrate = gwy_get_gfloat_le(p);
*len -= WITEC_SIZE_IMAGE_OPTIONS;
return TRUE;
}
/* vim: set cin et ts=4 sw=4 cino=>1s,e0,n0,f0,{0,}0,^0,\:1s,=0,g1s,h0,t0,+1s,c3,(0,u0 : */
|