Help System: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
mNo edit summary
Line 2: Line 2:
CumulusUtils has a help system for the Charts (through the ChartsCompiler) and for the Climate Charts (Graphs menu choice).
CumulusUtils has a help system for the Charts (through the ChartsCompiler) and for the Climate Charts (Graphs menu choice).


For the website viewer there is no difference: the small word ''info'' appears left of the hamburger menu if there is some Help info available. If it is not, the word Info won't appear.
For the website viewer there is no difference: the small word ''info'' appears left of the hamburger menu in the chart and when clicked there is some Help info available through a popup modal window. If it is not available, the word Info won't appear.


For the owner of the Website is the task to write some information which makes the charts more clear for the viewer.
For the owner of the Website is the task to write some information which makes the charts more clear for the viewer.
Line 10: Line 10:
# The charts generated through the [[ChartsCompiler]] have the [[Charts_Definition_Language_(CDL)#Info_specifier|keyword Info in CDL]]
# The charts generated through the [[ChartsCompiler]] have the [[Charts_Definition_Language_(CDL)#Info_specifier|keyword Info in CDL]]
# The charts in the menu ''Graphs'' assemble the Info text from the ''file CUhelptexts.txt'' where the website owner has his help texts.
# The charts in the menu ''Graphs'' assemble the Info text from the ''file CUhelptexts.txt'' where the website owner has his help texts.

The CutilsCharts.def for the ChartsCompiler is described elsewhere.

The CUhelptexts.txt file resides in the utils directory and has the following default content:

HT_DailyRain = " "
HT_MonthlyRain = " "
HT_YearlyRainStats = " "
HT_YearlyMonthlyRainStats = " "
HT_MonthlyTemp = " "
HT_YearlyTempStats = " "
HT_YearlyMonthlyTempStats = " "
HT_WarmerDays = " "
HT_HeatMap = " "
HT_WindRose = " "
HT_WindRun = " "
HT_YearlySolarHRSstats = " "
HT_YearlyMonthlySolarHRSstats = " "
HT_YearlyInsolationStats = " "
HT_YearlyMonthlyInsolationStats = " "
HT_TempSum = " "
HT_GrowingDegreeDays = " "
HT_ThermalSeasons = " "
HT_DailyEVT = " "
HT_MonthlyEVT = " "
HT_ClashOfAverages = " "

The structure is <code><tag> = " <free text> "</code> ; The spaces are obligatory.

The spaces are obligatory for the parser to recognize the structure of the file and a space between the double quote and the free text between the quotes is also obligatory. The user can write any HTML formatted text between the quotes, in principle of any length (though some restraint is advisable).

All climate graphs have their own meaningful entry - e.g. HT_DailyRain means Help Text for the Daily Rain chart - and can have their own text. If no text is specified (only white space between the double quotes) the ''Info'' word will not appear in the chart.


= Output =
= Output =
The helptexts are assembled in the website ''index.html''.


= Inifile parameters =
= Inifile parameters =
There are no inifile parameters related to this helptext information system


= Other remarks =
= Other remarks =
The ''Info'' keyword in the ChartsCompiler will eventually be unified with the CUhelptexts.txt file system when an unambiguous merge can be constructed.



[[Category:CumulusUtils]]
[[Category:CumulusUtils]]

Revision as of 17:38, 7 October 2022

Introduction

CumulusUtils has a help system for the Charts (through the ChartsCompiler) and for the Climate Charts (Graphs menu choice).

For the website viewer there is no difference: the small word info appears left of the hamburger menu in the chart and when clicked there is some Help info available through a popup modal window. If it is not available, the word Info won't appear.

For the owner of the Website is the task to write some information which makes the charts more clear for the viewer.

Operation

There are currently two technical systems:

  1. The charts generated through the ChartsCompiler have the keyword Info in CDL
  2. The charts in the menu Graphs assemble the Info text from the file CUhelptexts.txt where the website owner has his help texts.

The CutilsCharts.def for the ChartsCompiler is described elsewhere.

The CUhelptexts.txt file resides in the utils directory and has the following default content:

HT_DailyRain = " "
HT_MonthlyRain = " "
HT_YearlyRainStats = " "
HT_YearlyMonthlyRainStats = " "
HT_MonthlyTemp = " "
HT_YearlyTempStats = " "
HT_YearlyMonthlyTempStats = " "
HT_WarmerDays = " "
HT_HeatMap = " "
HT_WindRose = " "
HT_WindRun = " "
HT_YearlySolarHRSstats = " "
HT_YearlyMonthlySolarHRSstats = " "
HT_YearlyInsolationStats = " "
HT_YearlyMonthlyInsolationStats = " "
HT_TempSum = " "
HT_GrowingDegreeDays = " "
HT_ThermalSeasons = " "
HT_DailyEVT = " "
HT_MonthlyEVT = " "
HT_ClashOfAverages = " "

The structure is <tag> = " <free text> " ; The spaces are obligatory.

The spaces are obligatory for the parser to recognize the structure of the file and a space between the double quote and the free text between the quotes is also obligatory. The user can write any HTML formatted text between the quotes, in principle of any length (though some restraint is advisable).

All climate graphs have their own meaningful entry - e.g. HT_DailyRain means Help Text for the Daily Rain chart - and can have their own text. If no text is specified (only white space between the double quotes) the Info word will not appear in the chart.

Output

The helptexts are assembled in the website index.html.

Inifile parameters

There are no inifile parameters related to this helptext information system

Other remarks

The Info keyword in the ChartsCompiler will eventually be unified with the CUhelptexts.txt file system when an unambiguous merge can be constructed.