The GCAL Manual

The GCAL Manual

Gcal Gcal An Extended Calendar Program Edition 4.1 June 2000 by Thomas Esken Copyright c 1994, 95, 96, 1997, 2000 Thomas Esken Any suggestions, improvements, extensions, bug reports, donations, proposals ¨ for contract work, and so forth are welcome! Please send them directly to my eMail address [email protected]. If you like my work, I'd appreciate a postcard from you! ------------------------oOO \\\_''/ OOo--------------------------- Thomas Esken O (/o-o\) O eMail: [email protected] Im Hagenfeld 84 (( ^ )) Phone: +49 251 232585 D-48147 Muenster; Germany \____) ~ (____/ MotD : 2old2live, 2young2die © This is Edition 4.1 of Gcal, an Extended Calendar Program, for the 4.1 (or later) version of the GNU implementation of cal and calendar. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the con- ditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into another lan- guage, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the Free Software Foundation. i Short Contents 1 Preface :::::::::::::::::::::::::::::::::::::::::::::: 1 2 Gcal Introduction ::::::::::::::::::::::::::::::::::::: 5 3 Invoking gcal :::::::::::::::::::::::::::::::::::::::: 7 4 Eternal Holidays ::::::::::::::::::::::::::::::::::::: 77 5 Fixed Dates ::::::::::::::::::::::::::::::::::::::::: 79 A Genesis of the Gregorian Calendar :::::::::::::::::::::: 125 B Gcal Utilities ::::::::::::::::::::::::::::::::::::::: 127 C Aspects in Internationalization ::::::::::::::::::::::::: 131 D Metasymbols ::::::::::::::::::::::::::::::::::::::: 135 E Regular Expressions ::::::::::::::::::::::::::::::::: 137 F Summary of all Regular Expressions :::::::::::::::::::: 143 G %?. Special Texts:::::::::::::::::::::::::::::::::: 145 H Summary of all %?. Special Texts :::::::::::::::::::: 211 I Obsolete Special Texts and Format Elements ::::::::::::: 245 J Format Instruction :::::::::::::::::::::::::::::::::: 249 K Coding Scheme ::::::::::::::::::::::::::::::::::::: 251 L Environment Variables ::::::::::::::::::::::::::::::: 255 M Error Codes :::::::::::::::::::::::::::::::::::::::: 257 N Glossary ::::::::::::::::::::::::::::::::::::::::::: 259 Command Line Argument Index ::::::::::::::::::::::::::: 271 Environment Variable Index ::::::::::::::::::::::::::::::: 275 Table Index :::::::::::::::::::::::::::::::::::::::::::: 277 O GNU Free Documentation License :::::::::::::::::::::: 279 Concept Index :::::::::::::::::::::::::::::::::::::::::: 287 iii Table of Contents 1 Preface ::::::::::::::::::::::::::::::::::::::::::: 1 2 Gcal Introduction ::::::::::::::::::::::::::::::: 5 3 Invoking gcal :::::::::::::::::::::::::::::::::::: 7 3.1 Command line arguments ::::::::::::::::::::::::::::::::::::::: 8 3.1.1 Options ::::::::::::::::::::::::::::::::::::::::::::::::::: 9 3.1.1.1 Common options::::::::::::::::::::::::::::::::::::: 10 3.1.1.2 Global options ::::::::::::::::::::::::::::::::::::::: 10 3.1.1.3 Calendar options::::::::::::::::::::::::::::::::::::: 14 3.1.1.4 Fixed date options ::::::::::::::::::::::::::::::::::: 37 3.1.2 Response file ::::::::::::::::::::::::::::::::::::::::::::: 65 3.1.3 Actual date modifier :::::::::::::::::::::::::::::::::::::: 67 3.1.4 Commands ::::::::::::::::::::::::::::::::::::::::::::::: 72 3.1.4.1 Single commands :::::::::::::::::::::::::::::::::::: 72 3.1.4.2 3-Month mode commands :::::::::::::::::::::::::::: 73 3.1.4.3 Lists of commands ::::::::::::::::::::::::::::::::::: 74 3.1.4.4 Ranges of commands::::::::::::::::::::::::::::::::: 75 3.2 The GCAL environment variable :::::::::::::::::::::::::::::::: 76 4 Eternal Holidays ::::::::::::::::::::::::::::::: 77 5 Fixed Dates::::::::::::::::::::::::::::::::::::: 79 5.1 Resource file::::::::::::::::::::::::::::::::::::::::::::::::::: 82 5.1.1 Structure of resource file :::::::::::::::::::::::::::::::::: 84 5.1.2 Date part of a line :::::::::::::::::::::::::::::::::::::::: 86 5.1.3 Further date part attributes :::::::::::::::::::::::::::::: 89 5.1.3.1 Lists of days ::::::::::::::::::::::::::::::::::::::::: 89 5.1.3.2 Ranges of days::::::::::::::::::::::::::::::::::::::: 90 5.1.3.3 Repetition factor of days ::::::::::::::::::::::::::::: 92 5.1.3.4 Appearance factor of days:::::::::::::::::::::::::::: 94 5.1.4 Text part of a line :::::::::::::::::::::::::::::::::::::::: 97 5.1.5 %?. Special Texts ::::::::::::::::::::::::::::::::::::: 100 5.1.6 Comment line ::::::::::::::::::::::::::::::::::::::::::: 101 5.1.7 Include directives :::::::::::::::::::::::::::::::::::::::: 102 5.1.8 Date variables ::::::::::::::::::::::::::::::::::::::::::: 103 5.1.9 Text variables ::::::::::::::::::::::::::::::::::::::::::: 106 5.2 Resource file examples:::::::::::::::::::::::::::::::::::::::: 114 Appendix A Genesis of the Gregorian Calendar :: 125 iv Gcal 4.1 Appendix B Gcal Utilities:::::::::::::::::::::: 127 B.1 Invoking tcal ::::::::::::::::::::::::::::::::::::::::::::::: 127 B.2 Invoking txt2gcal ::::::::::::::::::::::::::::::::::::::::::: 127 B.3 Invoking gcal2txt ::::::::::::::::::::::::::::::::::::::::::: 128 Appendix C Aspects in Internationalization :: 131 Appendix D Metasymbols :::::::::::::::::::::: 135 Appendix E Regular Expressions :::::::::::::: 137 E.1 How to Use Regular Expressions ::::::::::::::::::::::::::::: 137 E.2 Regular Expression Operators :::::::::::::::::::::::::::::::: 137 Appendix F Summary of all Regular Expressions ::::::::::::::::::::::::::: 143 Appendix G %?. Special Texts ::::::::::::::: 145 G.1 %?. special texts for date exclusion :::::::::::::::::::::::: 146 G.1.1 Exclusions with date argument %?[date] special texts :::: 146 G.1.1.1 Inclusive date period %i[date][#[date]] special text :: 146 G.1.1.2 Exclusive date period %e[date][#[date]] special text :: 147 G.1.2 Exclusions without any argument %? special texts ::::::: 148 G.1.2.1 Inclusive day period %? special texts:::::::::::::::: 149 G.1.2.2 Exclusive day period %? special texts ::::::::::::::: 149 G.2 %?. special texts for text replacement :::::::::::::::::::::: 150 G.2.1 Replacements with date argument %?[date] special texts :: 150 G.2.1.1 Weekday name %[format]K[date] special text ::::::: 150 G.2.1.2 Weekday number %[format]?[date] special texts :::: 151 G.2.1.3 Day-of-year number %[format]N[date] special text :: 153 G.2.1.4 Day number %[format]D[date] special text :::::::::: 153 G.2.1.5 Week number %k[date] special text ::::::::::::::::: 154 G.2.1.6 Month name %[format]U[date] special text:::::::::: 154 G.2.1.7 Month number %[format]M[date] special text ::::::: 154 G.2.1.8 Year number %[format]Y[date] special text ::::::::: 155 G.2.1.9 Moon phase %[format]?[date] special texts ::::::::: 155 G.2.1.10 Biorhythm %?[date] special texts :::::::::::::::::: 156 G.2.1.11 Difference value %[format]?[date] special texts :::: 158 G.2.2 Replacements with other argument %[format]?[argument] special texts ::::::::::::::::::::::::::: 158 G.2.2.1 Actual clocktime %[format]?[argument] special texts :: 158 G.2.2.2 Textual date %n[argument] special text ::::::::::::: 162 G.2.2.3 Julian day number %[format]j[argument] special text :: 162 G.2.2.4 Geographical distance and course angle %[format]bargument special text::::::::::::::::::::: 162 G.2.2.5 Sun data %[format]?argument special texts ::::::::: 165 v G.2.2.6 Moon data %[format]?argument special texts ::::::: 188 G.2.2.7 Environment variable %[format]-[argument] special text ::::::::::::::::::::::::: 206 G.2.3 Replacements without any argument %? special texts :::: 206 G.2.3.1 Difference value %[format]? special texts:::::::::::: 206 G.2.3.2 Highlighting %? special texts ::::::::::::::::::::::: 208 G.3 Shell command %![argument] special text :::::::::::::::::::: 210 Appendix H Summary of all %?. Special Texts :::::::::::::::::::::::::::: 211 Appendix I Obsolete Special Texts and Format Elements ::::::::::::::::::::::::::::::: 245 I.1 Table of Obsolete Special Texts ::::::::::::::::::::::::::::::: 246 I.2 Table of Obsolete Date Format Elements :::::::::::::::::::::: 247 I.3 Table of Obsolete Date Formats::::::::::::::::::::::::::::::: 247 Appendix J Format Instruction ::::::::::::::: 249 Appendix K Coding Scheme ::::::::::::::::::: 251 K.1 Coding Scheme Table 1 :::::::::::::::::::::::::::::::::::::: 252 K.2 Coding Scheme Table 2 :::::::::::::::::::::::::::::::::::::: 253 Appendix L Environment Variables ::::::::::: 255 Appendix M Error Codes ::::::::::::::::::::::: 257 Appendix N Glossary ::::::::::::::::::::::::::: 259 Command Line Argument Index :::::::::::::::: 271 Environment Variable Index ::::::::::::::::::::: 275 Table Index ::::::::::::::::::::::::::::::::::::::: 277 Appendix O GNU Free Documentation License :: 279 Concept Index :::::::::::::::::::::::::::::::::::: 287 1 1 Preface The reason why I have written Gcal was mainly to have an off-line tool1 which is able to display Julian and Gregorian calendar sheets in a highly flexible and internationalized manner, fixed date lists for reminding purposes and country respectively territory specific holiday lists. At a later stage, Gcal was extended in the way to perform some basic as- tronomical calculations like Moon phase, moonrise, moonset and other Moon based data, sunset, sunrise, different twilight times and

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    330 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us