From d1d17c543c450931b1fa3402496cbd2d47ffea1b Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sun, 18 Dec 2011 14:36:28 +0200 Subject: [PATCH] Multiple cylinder support for JDiveLog import Support for multiple cylinders and gas change events when Importing JDiveLog logs to Subsurface. This is tested with manually crafted data and not real data (originating from dive computer). NOTE: Subsurface does not handle importing multiple cylinders correctly but imports only the first cylinder. However, manually converting data to a file and opening that in Subsurface works correctly. (xsltproc jdivelog2subsurface.xslt jdivelog-gas.jlb > gas.xml) Some minor tweaking on importing JDiveLog specific fields to notes fields in Subsurface is also included. Signed-off-by: Miika Turkia Signed-off-by: Linus Torvalds --- xslt/jdivelog2subsurface.xslt | 99 +++++++++++++++++++++-------------- 1 file changed, 61 insertions(+), 38 deletions(-) diff --git a/xslt/jdivelog2subsurface.xslt b/xslt/jdivelog2subsurface.xslt index 73b4590..e2f40c5 100644 --- a/xslt/jdivelog2subsurface.xslt +++ b/xslt/jdivelog2subsurface.xslt @@ -66,13 +66,10 @@ - +Diveactivity: - - - - - + +Divetype: Visibility: @@ -86,41 +83,51 @@ Gloves: Weight: + +Comment: + - - - - - - 21.0% - - - - - - - - 0 l - - - - - - - - - - - - - - - - - - + + + + + + + + 21.0% + + + + + + + + + + + + + 0 l + + + + + + + + + + + + + + + + + + @@ -156,6 +163,22 @@ Weight: + + + + + + + + + + + + + + + + -- 2.43.0