Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 22-03-2017, 14:26   #1
Registered User
 
Aart K.'s Avatar

Join Date: Oct 2015
Location: the Netherlands
Posts: 121
Layers or layers?

The foldername layers, must that be Layers with a uppercase L or a l as lowercase?

Same question for the foldername UserIcons. Two uppercases? Or Usericons with one uppercase or usericons without any uppercase?

Or does it make no sense how you do it?

Aart
from the Netherlands
Aart K. is offline   Reply With Quote
Old 23-03-2017, 03:53   #2
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 722
Re: Layers or layers?

Under windows, upper-case or lover case does not matter. Under Linux, UserIconns will be different than usericons. as a thumb rule always stick to lover case when naming files and folders, that might avoid incomparability and confusions
Quote:
Originally Posted by Aart K. View Post
The foldername layers, must that be Layers with a uppercase L or a l as lowercase?

Same question for the foldername UserIcons. Two uppercases? Or Usericons with one uppercase or usericons without any uppercase?

Or does it make no sense how you do it?

Aart
from the Netherlands
petter5 is offline   Reply With Quote
Old 23-03-2017, 05:21   #3
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,546
Re: Layers or layers?

Best choice to take always the name as it is hard coded in the sources.
Often it doesn't matter but in some operating systems as petter5 wrote above already it matters. Not only Unix but also macOS allows to format a drive with HFS+ case-sensitive filesystem.
Layers is coded as "layers" and UserIcons is coded as "UserIcons" in the OpenCPN code. It is up to the developer to inform the users however.

Gerhard
CarCode is offline   Reply With Quote
Old 23-03-2017, 05:29   #4
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: Layers or layers?

The directory for user-defined layers should be named "layers".
The directory for user-defined icons should be named "UserIcons".
These names, even though inconsistent, are recognized by O.

This is exactly the way it is described in the documentation.
In Windows you may get away with other versions of the words, as petter5 indicates, but it's a good idea to stick to the official naming accepted by O.

Thomas
cagney is offline   Reply With Quote
Old 23-03-2017, 07:09   #5
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 722
Re: Layers or layers?

Hmmm, it might be an idea to for the future to change the code and force all letters to lover case,,, just my 10 cents.
Quote:
Originally Posted by cagney View Post
The directory for user-defined layers should be named "layers".
The directory for user-defined icons should be named "UserIcons".
These names, even though inconsistent, are recognized by O.

This is exactly the way it is described in the documentation.
In Windows you may get away with other versions of the words, as petter5 indicates, but it's a good idea to stick to the official naming accepted by O.

Thomas
petter5 is offline   Reply With Quote
Old 10-06-2020, 06:19   #6
Registered User

Join Date: Apr 2016
Location: Netherlands
Boat: Luxe motor from 1927 30m
Posts: 30
Re: Layers or layers?

If the "translation" to lower-case (or upper.... ) isn't to hard to implement in OpenCPN, and then working with that "uniform" version within the program itself, it would make use of LaYeRs and uSeRiCoNs a lot easier for end-users :-)
spithost is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Organizing Nav Objects into Layers PjotrC OpenCPN 70 27-06-2022 18:18
A Library of Layers cagney OpenCPN 7 15-02-2012 03:16
Daily Track, Anchor Watch, Layers Visibility . . . PjotrC OpenCPN 0 16-09-2011 10:55
Implementing Layers in 0324 Beta PjotrC OpenCPN 10 30-06-2011 08:07
Are Ten Layers of Fiberglass Strong? goldbeard Construction, Maintenance & Refit 18 14-04-2010 08:05

Advertise Here


All times are GMT -7. The time now is 15:07.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.