Printing Templates

447 views
Skip to first unread message

jmcke...@murraystate.edu

unread,
Jan 7, 2016, 10:18:22 PM1/7/16
to Subsurface Divelog
I wanted to create the discussion on sharing different templates of printing ideas.  I haven't taken much time to develop a very specific template for printing on copy paper (  in × 11 in)  but I wanted to open a discussion on the coding of the templates and a way to share specific templates to help pretend.  Also I wanted to start tossing around some ideas on what would you like to have printed if you made your logbook into a binder with pages from this program. Thanks

Dirk Hohndel

unread,
Jan 8, 2016, 12:14:04 AM1/8/16
to subsurfac...@googlegroups.com
That sounds like a great discussion to have. I'll be happy to create a place to host user contributed templates.
I'll admit that I haven't printed my dive log in ages - I just have no need for my dives on paper, but that doesn't mean we can't have better templates for those who do prefer that format.

/D

On Jan 7, 2016, at 7:18 PM, jmcke...@murraystate.edu wrote:

I wanted to create the discussion on sharing different templates of printing ideas.  I haven't taken much time to develop a very specific template for printing on copy paper (  in × 11 in)  but I wanted to open a discussion on the coding of the templates and a way to share specific templates to help pretend.  Also I wanted to start tossing around some ideas on what would you like to have printed if you made your logbook into a binder with pages from this program. Thanks

--
You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-dive...@googlegroups.com.
To post to this group, send email to subsurfac...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/7e1a46b2-23e0-4ba0-b018-18e2cdacc47f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brian Boyle

unread,
Jan 9, 2016, 2:30:48 PM1/9/16
to Subsurface Divelog
Dirk

Would you mind if I ask how you demonstrate your "level" when you go somewhere and interact with a new dive shop? Do they simply look at your cert card and accept that at face value? When my wife and I go on a dive trip we take our printed dive logs to show the shop so they know we are not newbies.


On Friday, January 8, 2016 at 12:14:04 AM UTC-5, Dirk wrote:
That sounds like a great discussion to have. I'll be happy to create a place to host user contributed templates.
I'll admit that I haven't printed my dive log in ages - I just have no need for my dives on paper, but that doesn't mean we can't have better templates for those who do prefer that format.

/D

On Jan 7, 2016, at 7:18 PM, jmcke...@murraystate.edu wrote:

I wanted to create the discussion on sharing different templates of printing ideas.  I haven't taken much time to develop a very specific template for printing on copy paper (  in × 11 in)  but I wanted to open a discussion on the coding of the templates and a way to share specific templates to help pretend.  Also I wanted to start tossing around some ideas on what would you like to have printed if you made your logbook into a binder with pages from this program. Thanks

--
You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-divelog+unsub...@googlegroups.com.

jmcke...@murraystate.edu

unread,
Jan 9, 2016, 2:42:20 PM1/9/16
to Subsurface Divelog
I dive with SSI, and all of our certifications are available on the diver verification on the dive SSI website.  That is usually how I present my experience to a new group that I go dive with.  Sometimes they like to see my logs, but I usually wont have any issues since having my own equipment.

-Jerry

Stuart Vernon

unread,
Jan 11, 2016, 11:18:50 AM1/11/16
to subsurfac...@googlegroups.com

I have only been diving a bit over a year. But, I completed my SDI Master Scuba Diver certification in September. And I have dived with at least 5 or 6 different charter operators, between Mexico, Hawaii, North Carolina, Florida, and Nevada (Lake Mead). Plus at least 3 different local quarry operators. A number of those have been dives that “required” “Advanced”. So far, none of them have asked to see my log book. Some of them never even asked to see a C card at all – not even for Nitrox fills. The operator in Mexico provided my g/f Nitrox to dive even though I specifically told them that she was not certified for Nitrox (but I am and I wanted Nitrox for myself for those dives).

 

OTOH, I read somewhere a forum post from a guy in Israel (I think) where he said that you are legally required to show your log book to dive in Israel. I don’t know anything about that other than that one bit of hearsay. Regardless, I suppose it’s worth either taking your logbook or checking ahead to make sure you don’t need it.

 

Personally, when I’m going to dive with someone new, I call ahead to book myself anyway and I ask them then if they will need to see my log book or if my C card alone is sufficient. Or check their website for that info.

 

-          Stuart

 

From: subsurfac...@googlegroups.com [mailto:subsurfac...@googlegroups.com] On Behalf Of Brian Boyle
Sent: Saturday, January 09, 2016 2:31 PM
To: Subsurface Divelog
Subject: Re: Printing Templates

 

Dirk

 

Would you mind if I ask how you demonstrate your "level" when you go somewhere and interact with a new dive shop? Do they simply look at your cert card and accept that at face value? When my wife and I go on a dive trip we take our printed dive logs to show the shop so they know we are not newbies.

On Friday, January 8, 2016 at 12:14:04 AM UTC-5, Dirk wrote:

That sounds like a great discussion to have. I'll be happy to create a place to host user contributed templates.

I'll admit that I haven't printed my dive log in ages - I just have no need for my dives on paper, but that doesn't mean we can't have better templates for those who do prefer that format.

 

/D

 

On Jan 7, 2016, at 7:18 PM, jmcke...@murraystate.edu wrote:

 

I wanted to create the discussion on sharing different templates of printing ideas.  I haven't taken much time to develop a very specific template for printing on copy paper (  in × 11 in)  but I wanted to open a discussion on the coding of the templates and a way to share specific templates to help pretend.  Also I wanted to start tossing around some ideas on what would you like to have printed if you made your logbook into a binder with pages from this program. Thanks

 

--
You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.

To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-dive...@googlegroups.com.

 

--

You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.

To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-dive...@googlegroups.com.


To post to this group, send email to subsurfac...@googlegroups.com.

Martin Heggli

unread,
Jan 23, 2017, 11:39:28 AM1/23/17
to Subsurface Divelog

Hi all

I'll stick to this thread with another idea about loogbook printing templates... So far the templates are some kind of html-file using html-tables combined with some div's... This is suitable for folks who are used to work with websites, but not for ordinary users. For them it would be easier to create printing templates with standard-software like MS Word, LibreOffice or OpenOffice (or PDF)... You can draw tables, use colors and fonts - and most important - you can set page layout and page size the way you want to print, for example page size DIN A6... Some kind of WYSIWYG :-)

I'm not a programmer so i don't know if it would be possible to have some kind of parser, which replaces the tags like {{ dive.location }} with the logbook content while printing the logbook. But i think an option like this would be very handsome.

Robert C. Helling

unread,
Jan 23, 2017, 11:44:01 AM1/23/17
to Subsurface Divelog
Martin,
this would be very hard to implement: We would need to be able to parse and edit the native formats of those programs and then you would still need your word processor to actually print the file. I cannot see that happening.

Best
Robert 

Tomaz Canabrava

unread,
Jan 23, 2017, 11:44:17 AM1/23/17
to Subsurface Divelog
On Mon, Jan 23, 2017 at 5:39 PM, Martin Heggli <scuba...@gmail.com> wrote:

Hi all

I'll stick to this thread with another idea about loogbook printing templates... So far the templates are some kind of html-file using html-tables combined with some div's... This is suitable for folks who are used to work with websites, but not for ordinary users. For them it would be easier to create printing templates with standard-software like MS Word, LibreOffice or OpenOffice (or PDF)... You can draw tables, use colors and fonts - and most important - you can set page layout and page size the way you want to print, for example page size DIN A6... Some kind of WYSIWYG :-)

That's *very* hard :)
Basically, the standard software (like the ones you pointed out) will need to create an HTML-like document using the Subsurface internals (like dive.buddy to get the dive buddy)


I'm not a programmer so i don't know if it would be possible to have some kind of parser, which replaces the tags like {{ dive.location }} with the logbook content while printing the logbook. But i think an option like this would be very handsome.

Something that's not that hard is to create an WYSIWYG editor from *within* subsurface, but that's four-month of work minimum

It is, but as I said on the top, *very* hard. I agree that it would be nice to have this to generate something easy, but with the manpower that we have this won't happen ever.
(not saynig that to make you go away, but the opposite, we have many non-coders that actually helped with code, so step in, try to help us to do that.)

--
You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-divelog+unsub...@googlegroups.com.
To post to this group, send email to subsurface-divelog@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/515aac2e-14b0-4e79-8101-7049bd37b7f2%40googlegroups.com.

Martin Heggli

unread,
Jan 24, 2017, 5:57:30 AM1/24/17
to Subsurface Divelog, tcana...@kde.org
Ok. I see that this is not that easy as i thought... :-) i guess i have to look for a wysiwyg-html-editor... :-(

Ben McCandless

unread,
Jun 30, 2017, 12:54:14 AM6/30/17
to Subsurface Divelog
I really like the idea of having some other user generated templates to work with.

For me, I'd like to be able to print pages directly for my logbook, however, my logbook uses 4-5/8" x 7" 6 hole punched sheets.  I can get these where there are two sheets in a "letter" sized sheet that runs through my printer. (example here)

So, I'm trying to get a template that would print neatly to those sheets, which I could then punch out and would fit nicely in my binder.  Here's a DRAFT template that is moving in the right direction.  However, there's still lots of things I have to figure out:
  • Can I specify the paper size as part of the template?
  • Can I force it to print in landscape, always?
  • What should the margins be set to for each field?  (Using percentages to set everything makes it difficult to know how much something is being changed.)
  • Is there some way to reduce all the white space on the dive profile image?  (The temperature chart seems to want to have lots of space between it and the depth profile.)
  • Can I make text overflow into a field that then gets printed on the reverse side of the sheet?
  • Why do the dives sink further down the sheet on each subsequent page?
I have zero prior experience with CSS, so I'm just fumbling around in the dark here.  Any advice or suggestions would be welcome!

Ben
LL8511-DRAFT-Rev1.html

Lubomir I. Ivanov

unread,
Jun 30, 2017, 7:11:38 AM6/30/17
to subsurfac...@googlegroups.com
On 30 June 2017 at 07:54, Ben McCandless <mcc...@gmail.com> wrote:
> I really like the idea of having some other user generated templates to work
> with.
>
> For me, I'd like to be able to print pages directly for my logbook, however,
> my logbook uses 4-5/8" x 7" 6 hole punched sheets. I can get these where
> there are two sheets in a "letter" sized sheet that runs through my printer.
> (example here)
>
> So, I'm trying to get a template that would print neatly to those sheets,
> which I could then punch out and would fit nicely in my binder. Here's a
> DRAFT template that is moving in the right direction. However, there's
> still lots of things I have to figure out:
>
> Can I specify the paper size as part of the template?

you shouldn't. you should be using the printer setup paper size and
just consider the HTML as a layout.

> Can I force it to print in landscape, always?

yes, from the printer setup again.

> What should the margins be set to for each field? (Using percentages to set
> everything makes it difficult to know how much something is being changed.)

everything should work in terms of units:
https://www.w3schools.com/cssref/css_units.asp

if in doubt use 'px' - e.g.:
margin: 12px;

but mind that "* Pixels (px) are relative to the viewing device"

> Is there some way to reduce all the white space on the dive profile image?

sorry, not from the HTML template. the profile is converted to an
image and it just scales to fit the available rectangle reserved for
it.

> (The temperature chart seems to want to have lots of space between it and
> the depth profile.)

these are part of the profile graph and cannot be changed.

> Can I make text overflow into a field that then gets printed on the reverse
> side of the sheet?

i'm exactly sure what that means, but maybe with some sort of a CSS hack.
probably not so easy to do.

> Why do the dives sink further down the sheet on each subsequent page?
>

that seems to be a Granlee (our template engine) side effect, that is
avoided if you don't use margins at a root tag, but rather add margins
at child tags.

not so long ago Martin Long <mar...@longhome.co.uk> reported that he
can reproduce it if he adds margins to the body CSS:

body {
padding: 0px;
margin: 0px; // <-------------------- here
font-family: sans-serif;
}

try narrowing down the cause in your case.

> I have zero prior experience with CSS, so I'm just fumbling around in the
> dark here. Any advice or suggestions would be welcome!
>

we may add more templates eventually, but the thing is users have
hundreds of different preferences and we really can't satisfy them
all.

lubomir
--

Ben McCandless

unread,
Jul 3, 2017, 2:18:14 PM7/3/17
to subsurfac...@googlegroups.com
Lubomir,

Thank you for taking the time to reply to me.   My comments below.

> Can I specify the paper size as part of the template?

you shouldn't. you should be using the printer setup paper size and
just consider the HTML as a layout.

> Can I force it to print in landscape, always?

yes, from the printer setup again.

For both of the above points, I'd like to disagree.  Ideally, I'd select the template that matches the sheet I'm choosing to print on, then select print - no other modification of the default settings should be correct.   If my template is for a landscape print only, that should be the default behavior set by the template.  

Otherwise, the most straightforward course of action (Select template LL8511, which I know to be a landscape format, then clicking the print button) results in a botched print, since I'll get it printed portrait-style on a landscape-style sheet.  If these things are not able to be set in the template, the user will need to be alerted and told where to look to find the correct orientation and margin settings. 

> What should the margins be set to for each field?  (Using percentages to set
> everything makes it difficult to know how much something is being changed.)

everything should work in terms of units:
https://www.w3schools.com/cssref/css_units.asp

if in doubt use 'px' - e.g.:
    margin: 12px;

but mind that "* Pixels (px) are relative to the viewing device"

This is actually giving me some problems right now, and I'm not sure what is going on.  For example, if I print to the "Flowlayout" template (unmodified), and measure the Data Section, It comes out to 8.21 inches wide when set at 100%: 
image.png
But if I go into the template, and change this text:

.dataSection {

width: 100%;

height: 40%;

margin: 0%;

}


To read:

.dataSection {

width: 8in;

height: 40%;

margin: 0%;

}

Then I expect that that new measurement will be near 8 inches.  Instead, it comes in at 3.94 inches

image.png

Note: setting the width to 20 cm results in a measured section width of 9.85 cm.  

So, is there something I'm missing, or are units being misinterpreted?  Is that something that can be fixed?
 
> Is there some way to reduce all the white space on the dive profile image?

sorry, not from the HTML template. the profile is converted to an
image and it just scales to fit the available rectangle reserved for
it. 

Thanks for the info.  I guess I'll live with it until I know enough about subsurface to get in and change that myself.  (Hah!  That might be a while.)
 
 
> (The temperature chart seems to want to have lots of space between it and
> the depth profile.)

these are part of the profile graph and cannot be changed.

Again, thanks! 

> Can I make text overflow into a field that then gets printed on the reverse
> side of the sheet?

i'm exactly sure what that means, but maybe with some sort of a CSS hack.
probably not so easy to do.

Yeah, the more I have reasearched this, the less feasible it seems.  Oh well.
  
> Why do the dives sink further down the sheet on each subsequent page?
>

that seems to be a Granlee (our template engine) side effect, that is
avoided if you don't use margins at a root tag, but rather add margins
at child tags.

not so long ago Martin Long <mar...@longhome.co.uk> reported that he
can reproduce it if he adds margins to the body CSS:

body {
    padding: 0px;
    margin: 0px; // <-------------------- here
    font-family: sans-serif;
}

try narrowing down the cause in your case.

That seems to have been the problem.  Thanks!  I'm able to get around that by adjusting page margins. 
 
we may add more templates eventually, but the thing is users have
hundreds of different preferences and we really can't satisfy them
all.

I understand, and I'm sure that can be frustrating to deal with.  I do think that is one of the really nice things about having templates available for the users to modify themselves.

Again, thanks for getting back to me about this Lubomir.  If I do ever get this template working correctly, you will be welcome to add it, if you wish!

Best Regards, and thanks for taking the time to reply to me,

Ben 

Lubomir I. Ivanov

unread,
Jul 3, 2017, 8:59:13 PM7/3/17
to subsurfac...@googlegroups.com
On 3 July 2017 at 21:18, Ben McCandless <mcc...@gmail.com> wrote:
>
> Lubomir,
>
> Thank you for taking the time to reply to me. My comments below.
>
>> > Can I specify the paper size as part of the template?
>>
>> you shouldn't. you should be using the printer setup paper size and
>> just consider the HTML as a layout.
>>
>> > Can I force it to print in landscape, always?
>>
>> yes, from the printer setup again.
>
>
> For both of the above points, I'd like to disagree. Ideally, I'd select the template that matches the sheet I'm choosing to print on, then select print - no other modification of the default settings should be correct. If my template is for a landscape print only, that should be the default behavior set by the template.
>
> Otherwise, the most straightforward course of action (Select template LL8511, which I know to be a landscape format, then clicking the print button) results in a botched print, since I'll get it printed portrait-style on a landscape-style sheet. If these things are not able to be set in the template, the user will need to be alerted and told where to look to find the correct orientation and margin settings.

it's complicated and wouldn't rely much on page and paper properties in the CSS.
we can extract page properties like margins from the CSS, but i think
feeding it to the printer is a bit of a problem in a portable way.

i see you point, but consider a template being just *a layout*. the
size and orientation of the page on which this layout is rendered is
controlled by the printer setup.

>
> Then I expect that that new measurement will be near 8 inches. Instead, it comes in at 3.94 inches
>
> Note: setting the width to 20 cm results in a measured section width of 9.85 cm.
>
> So, is there something I'm missing, or are units being misinterpreted? Is that something that can be fixed?
>

i would like to add to my previous comment:
>> everything should work in terms of units:

"unless CSS thinks the paper is of a different size and/or CSS does
not know the printer resolution"

for layouts, i suggest that you should use percentage based values for
everything.
e.g. if the whole page is 10 inches wide, a box with width 40% would
be 4 inches.

relative values are safe because we are using the printer setup sizes.

in your case the resulted size is half of the expected, so it seems
like a resolution problem. not sure what's causing that.

lubomir
--

Eric Lecan

unread,
Jul 4, 2017, 7:09:28 AM7/4/17
to Subsurface Divelog
Hi

If I do ever get this template working correctly, you will be welcome to add it, if you wish!

Why don't we create a section with our modified or created templates, so that all the SSF community could use them ?
We could share the HTML file with a PDF result and anybody could see, get and use them ???

And more over, if anyone of the community (and not only the SSF devs) is confortable with the HTML CSS code, it could be some kind of Ask and Get...

Regards
Eric

Lubomir I. Ivanov

unread,
Jul 4, 2017, 7:23:44 AM7/4/17
to subsurfac...@googlegroups.com
i like this idea,

also having that template HTML / CSS without hardcoded resolution and
only with relative values will benefit all users as they would be able
to use the templates as layouts and specify their own printer setup
and margins.

maybe just create a thread here in the Google Group (e.g. "Share your
print templates") and start adding links to them.
we don't really have a real platform for users sharing their templates ATM.

lubomir
--
Reply all
Reply to author
Forward
0 new messages