mirror of
https://github.com/allankoechke/foodrescue-app.git
synced 2026-11-30 10:17:37 +00:00
adding experiments artifacts
These are undocumented pieces of work made as experiments during development. Perhaps they might be useful to somebody later.
This commit is contained in:
311
experiments/barcode-ean13-1000110007387.svg
Normal file
311
experiments/barcode-ean13-1000110007387.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 17 KiB |
311
experiments/barcode-ean13-2165741004149.svg
Normal file
311
experiments/barcode-ean13-2165741004149.svg
Normal file
@@ -0,0 +1,311 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
class="barcode-canvas"
|
||||
version="1.1"
|
||||
style="shape-rendering:crispEdges"
|
||||
id="svg1246"
|
||||
sodipodi:docname="Barcode.EAN13.2165741004149.svg"
|
||||
width="210mm"
|
||||
height="297mm"
|
||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||
<metadata
|
||||
id="metadata1252">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs1250" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1280"
|
||||
inkscape:window-height="1000"
|
||||
id="namedview1248"
|
||||
showgrid="false"
|
||||
units="mm"
|
||||
inkscape:zoom="0.59"
|
||||
inkscape:cx="402.60884"
|
||||
inkscape:cy="592.37288"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg1246" />
|
||||
<g
|
||||
id="g1244"
|
||||
style="text-rendering:geometricPrecision"
|
||||
transform="matrix(1.7360547,0,0,1.7360547,25.664636,301.87428)">
|
||||
<rect
|
||||
x="0"
|
||||
y="0"
|
||||
width="426"
|
||||
height="304"
|
||||
id="rect1170"
|
||||
style="fill:#ffffff" />
|
||||
<rect
|
||||
x="40"
|
||||
y="7"
|
||||
width="4"
|
||||
height="259"
|
||||
id="rect1172"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="48"
|
||||
y="7"
|
||||
width="4"
|
||||
height="259"
|
||||
id="rect1174"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="60"
|
||||
y="7"
|
||||
width="8"
|
||||
height="259"
|
||||
id="rect1176"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="76"
|
||||
y="7"
|
||||
width="4"
|
||||
height="259"
|
||||
id="rect1178"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="84"
|
||||
y="7"
|
||||
width="4"
|
||||
height="259"
|
||||
id="rect1180"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="92"
|
||||
y="7"
|
||||
width="16"
|
||||
height="259"
|
||||
id="rect1182"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="112"
|
||||
y="7"
|
||||
width="12"
|
||||
height="259"
|
||||
id="rect1184"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="132"
|
||||
y="7"
|
||||
width="4"
|
||||
height="259"
|
||||
id="rect1186"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="144"
|
||||
y="7"
|
||||
width="4"
|
||||
height="259"
|
||||
id="rect1188"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="160"
|
||||
y="7"
|
||||
width="4"
|
||||
height="259"
|
||||
id="rect1190"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="168"
|
||||
y="7"
|
||||
width="4"
|
||||
height="259"
|
||||
id="rect1192"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="184"
|
||||
y="7"
|
||||
width="8"
|
||||
height="259"
|
||||
id="rect1194"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="196"
|
||||
y="7"
|
||||
width="8"
|
||||
height="259"
|
||||
id="rect1196"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="212"
|
||||
y="7"
|
||||
width="8"
|
||||
height="259"
|
||||
id="rect1198"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="224"
|
||||
y="7"
|
||||
width="4"
|
||||
height="259"
|
||||
id="rect1200"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="232"
|
||||
y="7"
|
||||
width="4"
|
||||
height="259"
|
||||
id="rect1202"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="240"
|
||||
y="7"
|
||||
width="12"
|
||||
height="259"
|
||||
id="rect1204"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="260"
|
||||
y="7"
|
||||
width="4"
|
||||
height="259"
|
||||
id="rect1206"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="268"
|
||||
y="7"
|
||||
width="12"
|
||||
height="259"
|
||||
id="rect1208"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="288"
|
||||
y="7"
|
||||
width="4"
|
||||
height="259"
|
||||
id="rect1210"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="296"
|
||||
y="7"
|
||||
width="4"
|
||||
height="259"
|
||||
id="rect1212"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="304"
|
||||
y="7"
|
||||
width="12"
|
||||
height="259"
|
||||
id="rect1214"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="324"
|
||||
y="7"
|
||||
width="8"
|
||||
height="259"
|
||||
id="rect1216"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="340"
|
||||
y="7"
|
||||
width="8"
|
||||
height="259"
|
||||
id="rect1218"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="352"
|
||||
y="7"
|
||||
width="4"
|
||||
height="259"
|
||||
id="rect1220"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="360"
|
||||
y="7"
|
||||
width="12"
|
||||
height="259"
|
||||
id="rect1222"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="380"
|
||||
y="7"
|
||||
width="12"
|
||||
height="259"
|
||||
id="rect1224"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="396"
|
||||
y="7"
|
||||
width="4"
|
||||
height="259"
|
||||
id="rect1226"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="408"
|
||||
y="7"
|
||||
width="4"
|
||||
height="259"
|
||||
id="rect1228"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="416"
|
||||
y="7"
|
||||
width="4"
|
||||
height="259"
|
||||
id="rect1230"
|
||||
style="fill:#000000" />
|
||||
<rect
|
||||
x="7"
|
||||
y="253"
|
||||
width="33"
|
||||
height="45"
|
||||
id="rect1232"
|
||||
style="fill:#ffffff" />
|
||||
<path
|
||||
d="m 30.117187,282.54883 v 3.04101 H 13.083984 c -0.02344,-0.76172 0.09961,-1.49414 0.369141,-2.19726 0.433593,-1.16016 1.127929,-2.30274 2.083008,-3.42774 0.955076,-1.125 2.334959,-2.42578 4.139648,-3.90234 2.80078,-2.29688 4.69336,-4.11621 5.677735,-5.45801 0.984375,-1.34179 1.476562,-2.61035 1.476562,-3.80566 0,-1.25391 -0.448242,-2.31153 -1.344726,-3.17285 -0.896485,-0.86133 -2.06543,-1.292 -3.506836,-1.292 -1.52344,0 -2.74219,0.45704 -3.65625,1.3711 -0.914063,0.91406 -1.376955,2.17969 -1.388672,3.79687 l -3.251953,-0.33398 c 0.222655,-2.42578 1.060547,-4.27442 2.513671,-5.5459 1.453124,-1.27148 3.404295,-1.90723 5.853516,-1.90723 2.472654,0 4.429686,0.68555 5.871094,2.05664 1.441404,1.3711 2.162109,3.07032 2.162109,5.09766 0,1.03125 -0.210939,2.04492 -0.632812,3.04102 -0.421877,0.99609 -1.122072,2.04492 -2.100586,3.14648 -0.978518,1.10156 -2.604494,2.61328 -4.87793,4.53516 -1.898437,1.59375 -3.117189,2.6748 -3.65625,3.24316 -0.539064,0.56836 -0.984375,1.13965 -1.335937,1.71387 z"
|
||||
id="path1234"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:#000000;shape-rendering:geometricPrecision" />
|
||||
<rect
|
||||
x="53"
|
||||
y="253"
|
||||
width="168"
|
||||
height="45"
|
||||
id="rect1236"
|
||||
style="fill:#ffffff" />
|
||||
<rect
|
||||
x="237"
|
||||
y="253"
|
||||
width="168"
|
||||
height="45"
|
||||
id="rect1238"
|
||||
style="fill:#ffffff" />
|
||||
<path
|
||||
d="m 88.40625,285.58984 h -3.164063 v -20.16211 c -0.761726,0.72657 -1.760749,1.45313 -2.99707,2.17969 -1.236336,0.72656 -2.34668,1.27149 -3.331055,1.63477 v -3.0586 c 1.769524,-0.83203 3.316399,-1.83984 4.640625,-3.02343 1.324212,-1.1836 2.261712,-2.33204 2.8125,-3.44532 h 2.039063 z m 25.11914,-19.45898 -3.14648,0.24609 c -0.28126,-1.24218 -0.6797,-2.14453 -1.19532,-2.70703 -0.85547,-0.90234 -1.91016,-1.35351 -3.16406,-1.35351 -1.00782,0 -1.89258,0.28125 -2.6543,0.84375 -0.9961,0.72656 -1.78125,1.78711 -2.35546,3.18164 -0.57423,1.39453 -0.87306,3.38086 -0.89649,5.95898 0.76171,-1.16016 1.69335,-2.02148 2.79492,-2.58398 1.10156,-0.5625 2.25585,-0.84375 3.46289,-0.84375 2.10937,0 3.90527,0.77636 5.3877,2.3291 1.48241,1.55273 2.22363,3.55957 2.22363,6.02051 0,1.61718 -0.34864,3.12011 -1.0459,4.50879 -0.69727,1.38867 -1.65528,2.45214 -2.87402,3.19042 -1.21876,0.73826 -2.60156,1.10743 -4.14844,1.10743 -2.63672,0 -4.78711,-0.96976 -6.451169,-2.90918 -1.664071,-1.93946 -2.496094,-5.13575 -2.496094,-9.58887 0,-4.98047 0.919914,-8.60156 2.759765,-10.86328 1.605458,-1.96875 3.767568,-2.95313 6.486328,-2.95313 2.02734,0 3.68847,0.56836 4.9834,1.70508 1.29491,1.13672 2.07128,2.70703 2.3291,4.71094 z m -12.91992,11.10937 c 0,1.08985 0.23144,2.13282 0.69433,3.12891 0.46289,0.99609 1.11035,1.75488 1.94239,2.27637 0.83202,0.52148 1.70508,0.78222 2.61914,0.78222 1.33594,0 2.48437,-0.53906 3.44531,-1.61718 0.96093,-1.07813 1.4414,-2.54297 1.44141,-4.39453 -1e-5,-1.78125 -0.47462,-3.18457 -1.42383,-4.20997 -0.94922,-1.02539 -2.14453,-1.53808 -3.58594,-1.53808 -1.42969,0 -2.64258,0.51269 -3.63867,1.53808 -0.9961,1.0254 -1.49414,2.37012 -1.49414,4.03418 z m 17.12109,1.59961 3.32227,-0.28125 c 0.24609,1.61719 0.81738,2.83301 1.71387,3.64746 0.89648,0.81446 1.97753,1.22168 3.24316,1.22168 1.52343,0 2.8125,-0.57421 3.86719,-1.72265 1.05468,-1.14844 1.58203,-2.67188 1.58203,-4.57031 0,-1.80469 -0.50685,-3.22852 -1.52051,-4.27149 -1.01369,-1.04297 -2.34083,-1.56445 -3.98144,-1.56445 -1.01954,0 -1.93947,0.23144 -2.75977,0.69433 -0.82032,0.46289 -1.46485,1.06348 -1.93359,1.80176 l -2.97071,-0.38672 2.4961,-13.23633 h 12.81445 v 3.02344 h -10.2832 l -1.38868,6.92578 c 1.54687,-1.07812 3.16992,-1.61718 4.86915,-1.61718 2.24999,0 4.14843,0.77929 5.69531,2.33789 1.54687,1.55859 2.32031,3.5625 2.32031,6.01172 0,2.33203 -0.6797,4.34765 -2.03906,6.04687 -1.65235,2.08591 -3.90822,3.12891 -6.76758,3.12891 -2.34376,0 -4.25684,-0.65628 -5.73926,-1.96875 -1.48243,-1.3125 -2.3291,-3.05274 -2.54004,-5.22071 z m 20.83008,-15.64453 v -3.04101 h 16.68164 v 2.46093 c -1.64064,1.7461 -3.26662,4.06641 -4.87793,6.96094 -1.61133,2.89453 -2.85644,5.8711 -3.73535,8.92969 -0.63281,2.15625 -1.03711,4.51758 -1.21289,7.08398 h -3.25195 c 0.0352,-2.02734 0.43357,-4.47659 1.19531,-7.34765 0.7617,-2.8711 1.85448,-5.63965 3.27832,-8.30567 1.42383,-2.66601 2.93846,-4.91308 4.54394,-6.74121 z m 30.55078,22.39453 v -6.16992 h -11.17969 v -2.90039 l 11.75977,-16.69922 h 2.58398 v 16.69922 h 3.48047 v 2.90039 h -3.48047 v 6.16992 z m 0,-9.07031 v -11.61914 l -8.06836,11.61914 z m 22.39453,9.07031 h -3.16406 v -20.16211 c -0.76173,0.72657 -1.76076,1.45313 -2.99707,2.17969 -1.23634,0.72656 -2.34668,1.27149 -3.33105,1.63477 v -3.0586 c 1.76951,-0.83203 3.31639,-1.83984 4.64062,-3.02343 1.3242,-1.1836 2.2617,-2.33204 2.8125,-3.44532 h 2.03906 z"
|
||||
id="path1240"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:#000000;shape-rendering:geometricPrecision" />
|
||||
<path
|
||||
d="m 260.48828,272.88086 c 0,-3.04688 0.31345,-5.49902 0.94043,-7.35645 0.62692,-1.85742 1.55856,-3.29004 2.79492,-4.29785 1.2363,-1.00781 2.79196,-1.51172 4.66699,-1.51172 1.38279,0 2.59568,0.27832 3.63868,0.83496 1.04294,0.55665 1.90426,1.35938 2.58398,2.40821 0.67966,1.04883 1.21286,2.32617 1.59961,3.83203 0.38672,1.50586 0.58008,3.53613 0.58008,6.09082 0,3.02344 -0.31058,5.46387 -0.93164,7.32129 -0.62113,1.85739 -1.54984,3.29297 -2.78613,4.30664 -1.23636,1.01364 -2.79789,1.52051 -4.68458,1.52051 -2.4844,0 -4.43557,-0.89066 -5.85351,-2.67188 -1.69922,-2.14453 -2.54883,-5.63672 -2.54883,-10.47656 z m 3.25195,0 c 0,4.23047 0.49509,7.0459 1.48536,8.44629 0.9902,1.40039 2.21188,2.10058 3.66503,2.10058 1.4531,0 2.67478,-0.70312 3.66504,-2.10937 0.99021,-1.40625 1.48536,-4.21875 1.48536,-8.4375 0,-4.24219 -0.49515,-7.06055 -1.48536,-8.45508 -0.99026,-1.39453 -2.22363,-2.0918 -3.70019,-2.0918 -1.45316,0 -2.61331,0.61524 -3.48047,1.84571 -1.08984,1.57031 -1.63477,4.4707 -1.63477,8.70117 z m 17.36719,0 c 0,-3.04688 0.31345,-5.49902 0.94043,-7.35645 0.62692,-1.85742 1.55856,-3.29004 2.79492,-4.29785 1.2363,-1.00781 2.79197,-1.51172 4.667,-1.51172 1.38278,0 2.59567,0.27832 3.63867,0.83496 1.04294,0.55665 1.90426,1.35938 2.58398,2.40821 0.67966,1.04883 1.21286,2.32617 1.59961,3.83203 0.38672,1.50586 0.58008,3.53613 0.58008,6.09082 0,3.02344 -0.31058,5.46387 -0.93164,7.32129 -0.62113,1.85739 -1.54984,3.29297 -2.78613,4.30664 -1.23636,1.01364 -2.79789,1.52051 -4.68457,1.52051 -2.48441,0 -4.43558,-0.89066 -5.85352,-2.67188 -1.69922,-2.14453 -2.54883,-5.63672 -2.54883,-10.47656 z m 3.25195,0 c 0,4.23047 0.49509,7.0459 1.48536,8.44629 0.9902,1.40039 2.21188,2.10058 3.66504,2.10058 1.45309,0 2.67477,-0.70312 3.66503,-2.10937 0.99021,-1.40625 1.48536,-4.21875 1.48536,-8.4375 0,-4.24219 -0.49515,-7.06055 -1.48536,-8.45508 -0.99026,-1.39453 -2.22363,-2.0918 -3.70019,-2.0918 -1.45316,0 -2.61331,0.61524 -3.48047,1.84571 -1.08984,1.57031 -1.63477,4.4707 -1.63477,8.70117 z m 27.50977,12.70898 v -6.16992 h -11.17969 v -2.90039 l 11.75977,-16.69922 h 2.58398 v 16.69922 h 3.48047 v 2.90039 h -3.48047 v 6.16992 z m 0,-9.07031 v -11.61914 l -8.06836,11.61914 z m 22.39453,9.07031 h -3.16406 v -20.16211 c -0.76175,0.72657 -1.76077,1.45313 -2.99707,2.17969 -1.23636,0.72656 -2.34668,1.27149 -3.33106,1.63477 v -3.0586 c 1.76951,-0.83203 3.31638,-1.83984 4.64063,-3.02343 1.32419,-1.1836 2.26169,-2.33204 2.8125,-3.44532 h 2.03906 z m 18.84375,0 v -6.16992 h -11.17969 v -2.90039 l 11.75977,-16.69922 h 2.58398 v 16.69922 h 3.48047 v 2.90039 h -3.48047 v 6.16992 z m 0,-9.07031 v -11.61914 l -8.06836,11.61914 z m 10.95117,3.11133 3.04102,-0.28125 c 0.25778,1.42969 0.74997,2.4668 1.47656,3.11133 0.72653,0.64453 1.65817,0.96679 2.79492,0.96679 0.97263,0 1.82517,-0.22265 2.55762,-0.66796 0.73239,-0.44532 1.33298,-1.04004 1.80176,-1.78418 0.46872,-0.74414 0.8613,-1.74903 1.17773,-3.01465 0.31638,-1.26563 0.47458,-2.55469 0.47461,-3.86719 -3e-5,-0.14063 -0.006,-0.35156 -0.0176,-0.63281 -0.63281,1.00781 -1.4971,1.82519 -2.59277,2.45215 -1.09573,0.62695 -2.28226,0.94043 -3.55957,0.94043 -2.13284,0 -3.9375,-0.77344 -5.41406,-2.32032 -1.47656,-1.54687 -2.21485,-3.58593 -2.21485,-6.11718 0,-2.61329 0.77051,-4.7168 2.31153,-6.31055 1.54098,-1.59375 3.47168,-2.39063 5.79199,-2.39063 1.67575,0 3.20801,0.45118 4.59668,1.35352 1.38867,0.90234 2.44336,2.18848 3.16406,3.8584 0.72071,1.66992 1.08106,4.08691 1.08106,7.25097 0,3.29297 -0.35746,5.91504 -1.07227,7.86622 -0.71487,1.95117 -1.77835,3.43652 -3.19043,4.45605 -1.41214,1.0195 -3.06738,1.5293 -4.96582,1.5293 -2.01565,0 -3.66214,-0.5596 -4.93945,-1.67871 -1.27738,-1.11914 -2.04495,-2.69239 -2.30274,-4.71973 z m 12.95508,-11.37305 c -3e-5,-1.8164 -0.48343,-3.25781 -1.45019,-4.32422 -0.9668,-1.0664 -2.12992,-1.59961 -3.48926,-1.59961 -1.40625,0 -2.63089,0.57422 -3.67383,1.72266 -1.043,1.14844 -1.56445,2.63672 -1.56445,4.46484 0,1.64063 0.49508,2.97364 1.48535,3.99903 0.9902,1.02539 2.21188,1.53808 3.66504,1.53808 1.46481,0 2.66891,-0.51269 3.6123,-1.53808 0.94333,-1.02539 1.41501,-2.44629 1.41504,-4.2627 z"
|
||||
id="path1242"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:#000000;shape-rendering:geometricPrecision" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 14 KiB |
301
experiments/barcode-ean13-7613035588165.svg
Normal file
301
experiments/barcode-ean13-7613035588165.svg
Normal file
@@ -0,0 +1,301 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="210mm"
|
||||
height="297mm"
|
||||
version="1.1"
|
||||
id="svg1043"
|
||||
sodipodi:docname="Barcode.EAN13.7613035588165.svg"
|
||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||
<metadata
|
||||
id="metadata1049">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs1047" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1280"
|
||||
inkscape:window-height="1000"
|
||||
id="namedview1045"
|
||||
showgrid="false"
|
||||
units="mm"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:zoom="0.28913044"
|
||||
inkscape:cx="124.72744"
|
||||
inkscape:cy="88.5"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg1043" />
|
||||
<desc
|
||||
id="desc960">7613035588165
|
||||
</desc>
|
||||
<g
|
||||
id="barcode"
|
||||
style="fill:#000000"
|
||||
transform="matrix(2.1306656,0,0,2.1306656,43.834586,365.89567)">
|
||||
<rect
|
||||
x="0"
|
||||
y="0"
|
||||
width="345"
|
||||
height="177"
|
||||
id="rect962"
|
||||
style="fill:#ffffff" />
|
||||
<rect
|
||||
x="30"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect964" />
|
||||
<rect
|
||||
x="36"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect966" />
|
||||
<rect
|
||||
x="42"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect968" />
|
||||
<rect
|
||||
x="48"
|
||||
y="0"
|
||||
width="12"
|
||||
height="150"
|
||||
id="rect970" />
|
||||
<rect
|
||||
x="63"
|
||||
y="0"
|
||||
width="6"
|
||||
height="150"
|
||||
id="rect972" />
|
||||
<rect
|
||||
x="75"
|
||||
y="0"
|
||||
width="6"
|
||||
height="150"
|
||||
id="rect974" />
|
||||
<rect
|
||||
x="84"
|
||||
y="0"
|
||||
width="12"
|
||||
height="150"
|
||||
id="rect976" />
|
||||
<rect
|
||||
x="99"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect978" />
|
||||
<rect
|
||||
x="105"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect980" />
|
||||
<rect
|
||||
x="114"
|
||||
y="0"
|
||||
width="9"
|
||||
height="150"
|
||||
id="rect982" />
|
||||
<rect
|
||||
x="126"
|
||||
y="0"
|
||||
width="12"
|
||||
height="150"
|
||||
id="rect984" />
|
||||
<rect
|
||||
x="141"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect986" />
|
||||
<rect
|
||||
x="147"
|
||||
y="0"
|
||||
width="9"
|
||||
height="150"
|
||||
id="rect988" />
|
||||
<rect
|
||||
x="162"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect990" />
|
||||
<rect
|
||||
x="168"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect992" />
|
||||
<rect
|
||||
x="174"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect994" />
|
||||
<rect
|
||||
x="180"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect996" />
|
||||
<rect
|
||||
x="189"
|
||||
y="0"
|
||||
width="9"
|
||||
height="150"
|
||||
id="rect998" />
|
||||
<rect
|
||||
x="201"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect1000" />
|
||||
<rect
|
||||
x="210"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect1002" />
|
||||
<rect
|
||||
x="222"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect1004" />
|
||||
<rect
|
||||
x="231"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect1006" />
|
||||
<rect
|
||||
x="243"
|
||||
y="0"
|
||||
width="6"
|
||||
height="150"
|
||||
id="rect1008" />
|
||||
<rect
|
||||
x="255"
|
||||
y="0"
|
||||
width="6"
|
||||
height="150"
|
||||
id="rect1010" />
|
||||
<rect
|
||||
x="264"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect1012" />
|
||||
<rect
|
||||
x="270"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect1014" />
|
||||
<rect
|
||||
x="285"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect1016" />
|
||||
<rect
|
||||
x="294"
|
||||
y="0"
|
||||
width="9"
|
||||
height="150"
|
||||
id="rect1018" />
|
||||
<rect
|
||||
x="306"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect1020" />
|
||||
<rect
|
||||
x="312"
|
||||
y="0"
|
||||
width="3"
|
||||
height="150"
|
||||
id="rect1022" />
|
||||
<rect
|
||||
x="30"
|
||||
y="150"
|
||||
width="3"
|
||||
height="15"
|
||||
id="rect1024" />
|
||||
<rect
|
||||
x="36"
|
||||
y="150"
|
||||
width="3"
|
||||
height="15"
|
||||
id="rect1026" />
|
||||
<rect
|
||||
x="168"
|
||||
y="150"
|
||||
width="3"
|
||||
height="15"
|
||||
id="rect1028" />
|
||||
<rect
|
||||
x="174"
|
||||
y="150"
|
||||
width="3"
|
||||
height="15"
|
||||
id="rect1030" />
|
||||
<rect
|
||||
x="306"
|
||||
y="150"
|
||||
width="3"
|
||||
height="15"
|
||||
id="rect1032" />
|
||||
<rect
|
||||
x="312"
|
||||
y="150"
|
||||
width="3"
|
||||
height="15"
|
||||
id="rect1034" />
|
||||
<text
|
||||
x="9"
|
||||
y="177"
|
||||
font-size="33.0"
|
||||
id="text1036"
|
||||
style="font-size:33px;font-family:Helvetica;text-anchor:middle;fill:#000000">7</text>
|
||||
<text
|
||||
x="102"
|
||||
y="177"
|
||||
font-size="33.0"
|
||||
id="text1038"
|
||||
style="font-size:33px;font-family:Helvetica;text-anchor:middle;fill:#000000">613035</text>
|
||||
<text
|
||||
x="243"
|
||||
y="177"
|
||||
font-size="33.0"
|
||||
id="text1040"
|
||||
style="font-size:33px;font-family:Helvetica;text-anchor:middle;fill:#000000">588165</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.8 KiB |
31
experiments/qml-icon-source.qml
Normal file
31
experiments/qml-icon-source.qml
Normal file
@@ -0,0 +1,31 @@
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Controls 2.12
|
||||
import QtQuick.Layouts 1.2
|
||||
import org.kde.kirigami 2.10 as Kirigami
|
||||
|
||||
// Demonstrates the Kirigami 2.10 bug that custom icons are not shown for page actions.
|
||||
//
|
||||
// Page actions work with theme icons (see "rightAction:"), but not with custom icons
|
||||
// (see "leftAction:"). Even when using the exact same action that successfully displays the custom
|
||||
// icon on a button (see "ToolButton").
|
||||
Kirigami.ApplicationWindow {
|
||||
pageStack.initialPage: Kirigami.Page {
|
||||
title: "Icon Problem Demo"
|
||||
|
||||
Kirigami.Action {
|
||||
id: action1
|
||||
text: "Action 1"
|
||||
iconSource: "file:/home/matthias/Projects/Fairdirect.Food_Rescue_App/Repo.foodrescue-app/src/images/barcode-64x64.png"
|
||||
}
|
||||
|
||||
Kirigami.Action {
|
||||
id: action2
|
||||
text: "Action 2"
|
||||
iconName: "camera-web"
|
||||
}
|
||||
|
||||
leftAction: action1
|
||||
rightAction: action2
|
||||
ToolButton { action: action1 }
|
||||
}
|
||||
}
|
||||
19
experiments/qml-repeater-property.qml
Normal file
19
experiments/qml-repeater-property.qml
Normal file
@@ -0,0 +1,19 @@
|
||||
import QtQuick 2.1
|
||||
import QtQuick.Controls 2.0 as QQC2
|
||||
import QtQuick.Layouts 1.2
|
||||
import org.kde.kirigami 2.4 as Kirigami
|
||||
|
||||
Repeater {
|
||||
model: suggestions
|
||||
|
||||
property int currentIndex: 2
|
||||
|
||||
Component.onCompleted: {
|
||||
console.log("suggestions.currentIndex: " + suggestions.currentIndex)
|
||||
suggestions.currentIndex = 2
|
||||
console.log("suggestions.currentIndex: " + suggestions.currentIndex)
|
||||
currentIndex = 2
|
||||
console.log("suggestions.currentIndex: " + suggestions.currentIndex)
|
||||
}
|
||||
|
||||
}
|
||||
71
experiments/qt-htmlwidget-tests.html
Normal file
71
experiments/qt-htmlwidget-tests.html
Normal file
@@ -0,0 +1,71 @@
|
||||
<span style="font-weight:normal">font weight normal</span><br/>
|
||||
<span style="font-weight:bold">font weight bold</span><br/>
|
||||
<span style="font-weight:100">font weight 100</span><br/>
|
||||
<span style="font-weight:200">font weight 200</span><br/>
|
||||
<span style="font-weight:300">font weight 300</span><br/>
|
||||
<span style="font-weight:400">font weight 400</span><br/>
|
||||
<span style="font-weight:500">font weight 500</span><br/>
|
||||
<span style="font-weight:600">font weight 600</span><br/>
|
||||
<span style="font-weight:700">font weight 700</span><br/>
|
||||
<span style="font-weight:800">font weight 800</span><br/>
|
||||
<span style="font-weight:900">font weight 900</span>
|
||||
|
||||
<p style="background-color:lightslategray">Spacer test:</p>
|
||||
<p style="margin-top:4px; color: transparent; line-height: 1px; font-size: 1px;">.</p>
|
||||
<p style="background-color:lightslategray">Spacer test:</p>
|
||||
<p style="margin-top:8px; color: transparent; line-height: 1px; font-size: 1px;">.</p>
|
||||
<p style="background-color:lightslategray">Spacer test:</p>
|
||||
<p style="margin-top:16px; color: transparent; line-height: 1px; font-size: 1px;">.</p>
|
||||
<p style="background-color:lightslategray">Spacer test:</p>
|
||||
<p style="margin-top:32px; color: transparent; line-height: 1px; font-size: 1px;">.</p>
|
||||
<p style="background-color:lightslategray">Spacer test:</p>
|
||||
<p style="margin-top:64px; color: transparent; line-height: 1px; font-size: 1px;">.</p>
|
||||
<p style="background-color:lightslategray">Spacer test:</p>
|
||||
|
||||
<div style="background-color:lightslategray">Spacer test:</div>
|
||||
<div style="margin-top:4px; color: transparent; line-height: 1px; font-size: 1px;">.</div>
|
||||
<div style="background-color:lightslategray">Spacer test:</div>
|
||||
<div style="margin-top:8px; color: transparent; line-height: 1px; font-size: 1px;">.</div>
|
||||
<div style="background-color:lightslategray">Spacer test:</div>
|
||||
<div style="margin-top:16px; color: transparent; line-height: 1px; font-size: 1px;">.</div>
|
||||
<div style="background-color:lightslategray">Spacer test:</div>
|
||||
<div style="margin-top:32px; color: transparent; line-height: 1px; font-size: 1px;">.</div>
|
||||
<div style="background-color:lightslategray">Spacer test:</div>
|
||||
<div style="margin-bottom:64px; color: transparent; line-height: 1px; font-size: 1px;">.</div>
|
||||
<div style="background-color:lightslategray">Spacer test:</div>
|
||||
|
||||
<table width="100%"><tr><td>Spacer Test with table</td></tr></table>
|
||||
<div style="margin-top:4px; color: transparent; line-height: 1px; font-size: 1px;">.</div>
|
||||
<table width="100%"><tr><td>Spacer Test with table</td></tr></table>
|
||||
<div style="margin-top:8px; color: transparent; line-height: 1px; font-size: 1px;">.</div>
|
||||
<table width="100%"><tr><td>Spacer Test with table</td></tr></table>
|
||||
<div style="margin-top:16px; color: transparent; line-height: 1px; font-size: 1px;">.</div>
|
||||
<table width="100%"><tr><td>Spacer Test with table</td></tr></table>
|
||||
<div style="margin-top:32px; color: transparent; line-height: 1px; font-size: 1px;">.</div>
|
||||
<table width="100%"><tr><td>Spacer Test with table</td></tr></table>
|
||||
<div style="margin-bottom:64px; color: transparent; line-height: 1px; font-size: 1px;">.</div>
|
||||
<table width="100%"><tr><td>Spacer Test with table</td></tr></table>
|
||||
|
||||
<div style="background-color:lightslategray">Spacer test:</div>
|
||||
<table style="margin-bottom: 4px; border-width: 0px; padding: 0px;"/>
|
||||
<div style="background-color:lightslategray">Spacer test:</div>
|
||||
|
||||
<div style="background-color:lightslategray;">Spacer test:</div>
|
||||
<div style="background-color:goldenrod; margin-bottom: 2px; -qt-paragraph-type:empty;">.</div>
|
||||
<div style="background-color:lightslategray;">Spacer test:</div>
|
||||
|
||||
<div style="background-color:lightslategray;">Spacer test:</div>
|
||||
<br/><img src="qrc:/blue.png" height="4"/>
|
||||
<div style="background-color:lightslategray;">Spacer test:</div>
|
||||
<br/><img src="qrc:/blue.png" height="32"/>
|
||||
<div style="background-color:lightslategray;">Spacer test:</div>
|
||||
|
||||
<div style="background-color:lightslategray;">Spacer test:</div>
|
||||
<br/><img src="qrc:/spacer.png" height="4"/>
|
||||
<div style="background-color:lightslategray;">Spacer test:</div>
|
||||
<br/><img src="qrc:/spacer.png" height="32"/>
|
||||
<div style="background-color:lightslategray;">Spacer test:</div>
|
||||
|
||||
<div style="background-color:lightslategray;">Spacer test:</div>
|
||||
<hr style="color:black; background-color: goldenrod;">
|
||||
<div style="background-color:lightslategray;">Spacer test:</div>
|
||||
50
experiments/qt-xmlpatterns-test-01_frctopic.xml
Normal file
50
experiments/qt-xmlpatterns-test-01_frctopic.xml
Normal file
@@ -0,0 +1,50 @@
|
||||
<book xmlns="http://docbook.org/ns/docbook" version="5.1">
|
||||
<topic type="refrigerator_storage">
|
||||
|
||||
<info>
|
||||
<title>Fridge storage of smoked or processed ham</title>
|
||||
|
||||
<!-- <xi:include href="author-n-n.xml"/> -->
|
||||
|
||||
<edition><date>2020-05-01</date></edition>
|
||||
|
||||
<abstract>
|
||||
<simpara>It stays fresh for about a week.</simpara>
|
||||
</abstract>
|
||||
|
||||
<subjectset scheme="off-categories-subset-frc">
|
||||
<subject>
|
||||
<subjectterm>meats</subjectterm>
|
||||
</subject>
|
||||
|
||||
<subject>
|
||||
<subjectterm>hams</subjectterm>
|
||||
</subject>
|
||||
</subjectset>
|
||||
</info>
|
||||
|
||||
|
||||
<simpara>The typical maximum storage time in the refrigerator is:</simpara>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<emphasis>1 Weeks</emphasis> in the fridge, if stored there immediately after purchase, whether sealed or not
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<simpara>(The above applies to: 'Meat: Smoked or Processed: Ham (Fresh, cook-before-eating, Shoulder Roll (Butt), boneless)'.)</simpara>
|
||||
|
||||
<simpara>Sources used:</simpara>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>USDA-1 (PRODUCTS.ID=93)</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<!-- <xi:include href="bibliography.xml"/> -->
|
||||
|
||||
</topic>
|
||||
</book>
|
||||
68
experiments/qt-xmlpatterns-test-01_frctopic.xsl
Normal file
68
experiments/qt-xmlpatterns-test-01_frctopic.xsl
Normal file
@@ -0,0 +1,68 @@
|
||||
<?xml version='1.0'?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:db="http://docbook.org/ns/docbook"
|
||||
>
|
||||
<xsl:output method="html"/>
|
||||
|
||||
<!-- A "book xmlns=" element is namespaced so cannot be matched without a namespace
|
||||
prefix. See: https://stackoverflow.com/a/46478501 -->
|
||||
<xsl:template match="/db:book">
|
||||
<html>
|
||||
<head>
|
||||
<title><xsl:value-of select="./db:topic/db:info/db:title"/></title>
|
||||
</head>
|
||||
<body><xsl:apply-templates/></body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="db:info">
|
||||
<!-- TODO: Add appropriate output for the "info". -->
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="db:topic">
|
||||
<!-- TODO: Replace this placeholder of the section header. -->
|
||||
<h1><xsl:value-of select="./@type"/></h1>
|
||||
|
||||
<h2><xsl:value-of select="./db:info/db:title"/></h2>
|
||||
|
||||
<div><xsl:apply-templates/></div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="db:simpara">
|
||||
<p><xsl:apply-templates/></p>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="db:itemizedlist">
|
||||
<ul><xsl:apply-templates/></ul>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="db:listitem">
|
||||
<li><xsl:apply-templates/></li>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="db:emphasis">
|
||||
<em><xsl:apply-templates/></em>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
||||
|
||||
<!-- Content that still has to be transformed:
|
||||
<info>
|
||||
<edition><date>2020-05-01</date></edition>
|
||||
|
||||
<abstract>
|
||||
<simpara>It stays fresh for about a week.</simpara>
|
||||
</abstract>
|
||||
|
||||
<subjectset scheme="off-categories-subset-frc">
|
||||
<subject>
|
||||
<subjectterm>meats</subjectterm>
|
||||
</subject>
|
||||
|
||||
<subject>
|
||||
<subjectterm>hams</subjectterm>
|
||||
</subject>
|
||||
</subjectset>
|
||||
</info>
|
||||
-->
|
||||
5
experiments/qt-xmlpatterns-test-02_minimal.xml
Normal file
5
experiments/qt-xmlpatterns-test-02_minimal.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<document>
|
||||
<title>Using a mouse</title>
|
||||
<para>It's easy to use a mouse. Just roll it around and click the buttons.</para>
|
||||
</document>
|
||||
23
experiments/qt-xmlpatterns-test-02_minimal.xsl
Normal file
23
experiments/qt-xmlpatterns-test-02_minimal.xsl
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version='1.0'?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output method="html"/>
|
||||
|
||||
<xsl:template match="document">
|
||||
<html>
|
||||
<head>
|
||||
<title><xsl:value-of select="./title"/></title>
|
||||
</head>
|
||||
<body><xsl:apply-templates/></body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="title">
|
||||
<h1><xsl:apply-templates/></h1>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="para">
|
||||
<p><xsl:apply-templates/></p>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
7
experiments/qt-xmlpatterns-test-03_foreach.xml
Normal file
7
experiments/qt-xmlpatterns-test-03_foreach.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<book xmlns="http://docbook.org/ns/docbook" version="5.1">
|
||||
<topic type="pantry_storage">topic 1</topic>
|
||||
<topic type="refrigerator_storage">topic 2</topic>
|
||||
<topic type="freezer_storage">topic 3</topic>
|
||||
<topic type="pantry_storage">topic 4</topic>
|
||||
<topic type="refrigerator_storage">topic 5</topic>
|
||||
</book>
|
||||
140
experiments/qt-xmlpatterns-test-03_foreach.xsl
Normal file
140
experiments/qt-xmlpatterns-test-03_foreach.xsl
Normal file
@@ -0,0 +1,140 @@
|
||||
<?xml version='1.0'?>
|
||||
|
||||
<!-- Call as:
|
||||
xmlpatterns xmlpatterns-ex03-foreach.xsl xmlpatterns-ex03-foreach.xml
|
||||
-->
|
||||
|
||||
<xsl:stylesheet version="2.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:db="http://docbook.org/ns/docbook"
|
||||
>
|
||||
<xsl:output method="html" />
|
||||
|
||||
<xsl:variable name="absolute-root" select="/"/>
|
||||
|
||||
<xsl:template match="/db:book" >
|
||||
|
||||
<xsl:for-each select="./db:topic" >
|
||||
<xsl:variable name="key" select="@type" />
|
||||
@type = <xsl:value-of select="@type" />
|
||||
$key = <xsl:value-of select="$key" />
|
||||
|
||||
<xsl:variable name="key">'<xsl:value-of select="@type" />'</xsl:variable>
|
||||
@type = <xsl:value-of select="@type" />
|
||||
$key = <xsl:value-of select="$key" />
|
||||
|
||||
<xsl:variable name="key" select="'pantry_storage'" />
|
||||
@type = <xsl:value-of select="@type" />
|
||||
$key = <xsl:value-of select="$key" />
|
||||
|
||||
test1 = <xsl:value-of select="not(preceding-sibling::db:topic[@type = 'pantry_storage'])" />
|
||||
test2 = <xsl:value-of select="not(preceding-sibling::db:topic[@type = $key])" />
|
||||
|
||||
<!--
|
||||
<xsl:if test="preceding-sibling::db:topic[@type] = 'pantry_storage'" >
|
||||
<h1>GROUP HEADER: <xsl:value-of select="@type" /></h1>
|
||||
<xsl:for-each select="../db:topic[@type=$key]" >
|
||||
<xsl:apply-templates />
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
-->
|
||||
-------------
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
============================
|
||||
<!-- THIS WORKS (but only for one section, so would need a long sequence) -->
|
||||
<xsl:if test="./db:topic[@type = 'pantry_storage']" >
|
||||
<h1>GROUP HEADER</h1>
|
||||
|
||||
<xsl:for-each select="./db:topic[@type = 'pantry_storage']" >
|
||||
-------------
|
||||
<xsl:apply-templates/>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
|
||||
============================
|
||||
<xsl:variable name="typename" select="./db:topic[1][@type]" />
|
||||
$typename = <xsl:value-of select="$typename" />
|
||||
|
||||
----
|
||||
|
||||
<xsl:if test="./db:topic[@type = 'pantry_storage']" >
|
||||
<h1>GROUP HEADER</h1>
|
||||
|
||||
<xsl:for-each select="./db:topic[@type = 'pantry_storage']" >
|
||||
-------------
|
||||
<xsl:apply-templates/>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
|
||||
============================
|
||||
|
||||
<!-- This test leads to a segfault -->
|
||||
<xsl:variable name="book" select="." />
|
||||
|
||||
<xsl:for-each
|
||||
select="
|
||||
'pantry_storage',
|
||||
'There',
|
||||
'World'
|
||||
"
|
||||
>
|
||||
<!-- Enable this to get the segfault. It's due to adding "/db:topic".
|
||||
<xsl:if test="$book/db:topic" >
|
||||
<h1>GROUP HEADER</h1>
|
||||
</xsl:if>
|
||||
-->
|
||||
</xsl:for-each>
|
||||
|
||||
===========================
|
||||
<xsl:for-each
|
||||
select="
|
||||
'pantry_storage'
|
||||
"
|
||||
>
|
||||
|
||||
<xsl:call-template name="section">
|
||||
<xsl:with-param name="type" select="'pantry_storage'"/>
|
||||
</xsl:call-template>
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="section">
|
||||
<xsl:param name="type"/>
|
||||
|
||||
<xsl:if test="./db:topic[@type = $type]" >
|
||||
<h1>GROUP HEADER</h1>
|
||||
|
||||
<xsl:for-each select="./db:topic[@type = $type]" >
|
||||
-------------
|
||||
<xsl:apply-templates/>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!--
|
||||
<xsl:for-each-group select="./db:topic" group-by="@type">
|
||||
<xsl:for-each select="current-group()">
|
||||
<h1>GROUP HEADER: <xsl:value-of select="@type"/></h1>
|
||||
<xsl:apply-templates/>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each-group>
|
||||
-->
|
||||
|
||||
<!--
|
||||
<xsl:for-each select="./db:topic">
|
||||
<xsl:variable name="key" select="substring(@type, string-length(@type))" />
|
||||
<xsl:if test="not(preceding-sibling::[substring(@type, string-length(@type))=$key])">
|
||||
<h1>GROUP HEADER: <xsl:value-of select="@type"/></h1>
|
||||
<xsl:for-each select="../db:topic[@type=$key]">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
-->
|
||||
|
||||
</xsl:stylesheet>
|
||||
Reference in New Issue
Block a user