2019-03-06 00:36:05 +01:00
|
|
|
|
2020-05-20 23:56:35 +02:00
|
|
|
# Text handling - mixed mode and pure texts
|
2019-03-06 00:36:05 +01:00
|
|
|
|
|
|
|
|
source($drc_test_source, "TOP")
|
|
|
|
|
target($drc_test_target)
|
|
|
|
|
|
|
|
|
|
# Flat mode
|
|
|
|
|
|
2020-05-20 23:56:35 +02:00
|
|
|
flat_labels = input(1, 1) # mixed mode, labels only
|
|
|
|
|
flat_texts = labels(1, 0) # text objects
|
2019-03-06 00:36:05 +01:00
|
|
|
flat_all = input(1, 0)
|
|
|
|
|
flat_poly = polygons(1, 0)
|
|
|
|
|
|
2019-03-06 07:41:44 +01:00
|
|
|
flat_texts_from_labels1 = flat_labels.texts(text("XYZ"))
|
|
|
|
|
flat_texts_from_labels2 = flat_labels.texts("*")
|
2020-05-20 23:56:35 +02:00
|
|
|
flat_texts_from_texts1 = flat_texts.texts(text("XYZ"))
|
|
|
|
|
flat_texts_from_texts2 = flat_texts.texts("*")
|
|
|
|
|
flat_texts_from_texts3 = flat_texts.texts_not("U*")
|
2019-03-06 07:41:44 +01:00
|
|
|
flat_texts_from_all1 = flat_all.texts(text("XYZ"))
|
|
|
|
|
flat_texts_from_all2 = flat_all.texts("*")
|
|
|
|
|
flat_texts_from_poly1 = flat_poly.texts(text("XYZ"))
|
|
|
|
|
flat_texts_from_poly2 = flat_poly.texts("*")
|
2019-03-06 00:36:05 +01:00
|
|
|
|
|
|
|
|
flat_labels.output(100, 0)
|
|
|
|
|
flat_all.output(101, 0)
|
|
|
|
|
flat_poly.output(102, 0)
|
2020-05-20 23:56:35 +02:00
|
|
|
flat_texts.output(103, 0)
|
2019-03-06 00:36:05 +01:00
|
|
|
flat_texts_from_labels1.output(110, 0)
|
|
|
|
|
flat_texts_from_labels2.output(111, 0)
|
|
|
|
|
flat_texts_from_all1.output(112, 0)
|
|
|
|
|
flat_texts_from_all2.output(113, 0)
|
|
|
|
|
flat_texts_from_poly1.output(114, 0)
|
|
|
|
|
flat_texts_from_poly2.output(115, 0)
|
2020-05-20 23:56:35 +02:00
|
|
|
flat_texts_from_texts1.output(116, 0)
|
|
|
|
|
flat_texts_from_texts2.output(117, 0)
|
|
|
|
|
flat_texts_from_texts3.output(118, 0)
|
2019-03-06 00:36:05 +01:00
|
|
|
|
|
|
|
|
# Deep mode
|
|
|
|
|
|
|
|
|
|
deep
|
|
|
|
|
|
2020-05-20 23:56:35 +02:00
|
|
|
deep_labels = input(1, 1) # mixed mode, labels only
|
|
|
|
|
deep_texts = labels(1, 1) # text objects
|
2019-03-06 00:36:05 +01:00
|
|
|
deep_all = input(1, 0)
|
|
|
|
|
deep_poly = polygons(1, 0)
|
|
|
|
|
|
2019-03-06 07:41:44 +01:00
|
|
|
deep_texts_from_labels1 = deep_labels.texts(text("XYZ"))
|
|
|
|
|
deep_texts_from_labels2 = deep_labels.texts("*")
|
2020-05-20 23:56:35 +02:00
|
|
|
deep_texts_from_texts1 = deep_texts.texts(text("XYZ"))
|
|
|
|
|
deep_texts_from_texts2 = deep_texts.texts("*")
|
|
|
|
|
deep_texts_from_texts3 = deep_texts.texts_not("U*")
|
2019-03-06 07:41:44 +01:00
|
|
|
deep_texts_from_all1 = deep_all.texts(text("XYZ"))
|
|
|
|
|
deep_texts_from_all2 = deep_all.texts("*")
|
|
|
|
|
deep_texts_from_poly1 = deep_poly.texts(text("XYZ"))
|
|
|
|
|
deep_texts_from_poly2 = deep_poly.texts("*")
|
2019-03-06 00:36:05 +01:00
|
|
|
|
|
|
|
|
deep_labels.output(200, 0)
|
|
|
|
|
deep_all.output(201, 0)
|
|
|
|
|
deep_poly.output(202, 0)
|
2020-05-20 23:56:35 +02:00
|
|
|
deep_texts.output(203, 0)
|
2019-03-06 00:36:05 +01:00
|
|
|
deep_texts_from_labels1.output(210, 0)
|
|
|
|
|
deep_texts_from_labels2.output(211, 0)
|
|
|
|
|
deep_texts_from_all1.output(212, 0)
|
|
|
|
|
deep_texts_from_all2.output(213, 0)
|
|
|
|
|
deep_texts_from_poly1.output(214, 0)
|
|
|
|
|
deep_texts_from_poly2.output(215, 0)
|
2020-05-20 23:56:35 +02:00
|
|
|
deep_texts_from_texts1.output(216, 0)
|
|
|
|
|
deep_texts_from_texts2.output(217, 0)
|
|
|
|
|
deep_texts_from_texts3.output(218, 0)
|
2019-03-06 00:36:05 +01:00
|
|
|
|