mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 06:48:47 +02:00
Update man pages.
This commit is contained in:
@@ -69,6 +69,8 @@ know! Here are the basic guidelines:
|
||||
|
||||
- You can test your language file with the script "tests/tstlang.rem"
|
||||
|
||||
- Your localized strings must be encoded using UTF-8.
|
||||
|
||||
RELEASE NOTES -- miscellaneous info that couldn't go anywhere else!
|
||||
|
||||
1. POPUP REMINDERS
|
||||
|
||||
70
man/remind.1
70
man/remind.1
@@ -2752,7 +2752,7 @@ clauses are \fInot\fR taken into account by this function.
|
||||
.TP
|
||||
.B language()
|
||||
Returns a \fBSTRING\fR naming the language supported by \fBRemind\fR.
|
||||
(See "Foreign Language Support.") By default, \fBRemind\fR is compiled
|
||||
(See "SUPPORT FOR OTHER LANGUAGES") By default, \fBRemind\fR is compiled
|
||||
to support English messages, so this function returns "English". For
|
||||
other languages, this function will return the English name of the
|
||||
language (e.g. "German") Note that \fBlanguage()\fR is not available
|
||||
@@ -3197,18 +3197,17 @@ Returns (as a \fBDATE\fR type) the \fBFROM\fR parameter of the last \fBREM\fR or
|
||||
|
||||
.TP
|
||||
.B trigger(d_date [,t_time [,i_utcflag]]) \fRor\fB trigger(q_datetime [,i_utcflag])
|
||||
Returns a string suitable for use in a \fBREM\fR command or a \fBSCANFROM\fR
|
||||
or UNTIL clause, allowing you to calculate trigger dates in advance.
|
||||
Note that in earlier versions of \fBRemind\fR, \fBtrigger\fR was
|
||||
required to convert a date into something the \fBREM\fR command could
|
||||
consume. However, in this version of \fBRemind\fR, you can omit it.
|
||||
Note that \fBtrigger()\fR \fIalways\fR returns its result in English,
|
||||
even for foreign-language versions of \fBRemind\fR. This is to avoid
|
||||
problems with certain C libraries that do not handle accented
|
||||
characters properly. Normally, the \fIdate\fR and \fItime\fR are the
|
||||
local date and time; however, if \fIutcflag\fR is non-zero, the
|
||||
\fIdate\fR and \fItime\fR are interpreted as UTC times, and are
|
||||
converted to local time. Examples:
|
||||
Returns a string suitable for use in a \fBREM\fR command or a
|
||||
\fBSCANFROM\fR or UNTIL clause, allowing you to calculate trigger
|
||||
dates in advance. Note that in earlier versions of \fBRemind\fR,
|
||||
\fBtrigger\fR was required to convert a date into something the
|
||||
\fBREM\fR command could consume. However, in this version of
|
||||
\fBRemind\fR, you can omit it. Note that \fBtrigger()\fR \fIalways\fR
|
||||
returns its result in English, even for non-English versions of
|
||||
\fBRemind\fR. Normally, the \fIdate\fR and \fItime\fR are the local
|
||||
date and time; however, if \fIutcflag\fR is non-zero, the \fIdate\fR
|
||||
and \fItime\fR are interpreted as UTC times, and are converted to
|
||||
local time. Examples:
|
||||
.RS
|
||||
.PP
|
||||
trigger('1993/04/01')
|
||||
@@ -4457,23 +4456,42 @@ error messages. For an example of this, define the following:
|
||||
fset msgprefix(x) x/0
|
||||
.fi
|
||||
.PP
|
||||
.SH FOREIGN LANGUAGE SUPPORT
|
||||
.SH SUPPORT FOR OTHER LANGUAGES
|
||||
.PP
|
||||
Your version of \fBRemind\fR may have been compiled to support a
|
||||
language other than English. This support may or may not be complete -
|
||||
for example, all error and usage messages may still be in English.
|
||||
However, at a minimum, foreign-language versions of \fBRemind\fR will
|
||||
output names of months and weekdays in the foreign language. Also,
|
||||
However, at a minimum, non-English versions of \fBRemind\fR will
|
||||
output names of months and weekdays in the selected language. Also,
|
||||
the substitution mechanism will substitute constructs suitable for the
|
||||
foreign language rather than for English.
|
||||
selected language rather than for English.
|
||||
.PP
|
||||
A foreign-language version of \fBRemind\fR will accept either the English
|
||||
or foreign-language names of weekdays and months in a reminder script.
|
||||
However, for compatibility between versions of \fBRemind\fR, you should
|
||||
use only the English names in your scripts. Also, if your C compiler or
|
||||
run-time libraries are not "8-bit clean" or don't understand the ISO-Latin
|
||||
character set, month or day names with accented letters may not be
|
||||
recognized.
|
||||
Note that a non-English version of \fBRemind\fR will accept \fIonly\fR
|
||||
English names of weekdays and months in a reminder script.
|
||||
.PP
|
||||
If there is no support for your particular language, you can set
|
||||
\fBRemind\fR system variables so that calendars are printed using
|
||||
your language's day and month names. The system variables that you
|
||||
can set are:
|
||||
.PP
|
||||
.TP
|
||||
.B $Monday, $Tuesday, $Wednesday, $Thursday, $Friday, $Saturday
|
||||
Set each of these system variables to a string representing the corresponding
|
||||
day's name in your language. Strings must be valid UTF-8 strings.
|
||||
.TP
|
||||
.B $January, $February, $March, $April, $May, $June, $July, $August, $September, $October, $November, $December
|
||||
Set each of these system variables to a string representing the corresponding
|
||||
month's name in your language. Strings must be valid UTF-8 strings.
|
||||
.PP
|
||||
Note that if you set the day- or month-name system variables, they
|
||||
should be set in a section of your script that always is evaluated.
|
||||
If you set them inside an \fBIF\fR statement, for example, results
|
||||
are unpredictable.
|
||||
.PP
|
||||
Note also that the \fBRem2PS\fR back-end does not support the full
|
||||
range of UTF-8 characters. The \fBTkRemind\fR, \fBrem2html\fR and
|
||||
\fBrem2pdf\fR back-ends all do support the full UTF-8 range.
|
||||
|
||||
.PP
|
||||
.SH THE HEBREW CALENDAR
|
||||
.PP
|
||||
@@ -4963,7 +4981,7 @@ was copied largely unmodified from "moontool" by John Walker. The
|
||||
sunrise and sunset functions use ideas from programs by Michael
|
||||
Schwartz and Marc T. Kaufman. The Hebrew calendar support was taken
|
||||
from "hdate" by Amos Shapir. OS/2 support was done by Darrel
|
||||
Hankerson, Russ Herman, and Norman Walsh. The supported foreign
|
||||
Hankerson, Russ Herman, and Norman Walsh. The supported
|
||||
languages and their translators are listed below. Languages marked
|
||||
"complete" support error messages and usage instructions in that
|
||||
language; all others only support the substitution filter mechanism
|
||||
@@ -5032,4 +5050,4 @@ Catalog\fR, Jewish Publication Society of America.
|
||||
.PP
|
||||
.SH SEE ALSO
|
||||
.PP
|
||||
rem, rem2ps, tkremind
|
||||
\fBrem\fR(1), \fBrem2ps\fR(1), \fBrem2pdf\fR(1), \fBtkremind\fR(1)
|
||||
|
||||
@@ -115,6 +115,8 @@ edit the reminder, thereby gaining access to advanced features of
|
||||
To print the current month's calendar, click \fBPrint...\fR on the
|
||||
main calendar window. This brings up the print dialog. Printing
|
||||
either produces a PostScript file or sends PostScript to a UNIX command.
|
||||
(If you have \fBrem2pdf\fR installed, you can choose to produce
|
||||
PDF output rather than PostScript.)
|
||||
|
||||
Select the print destination by choosing either \fBTo file:\fR or
|
||||
\fBTo command:\fR in the print dialog. Press \fBBrowse...\fR to bring
|
||||
@@ -131,12 +133,13 @@ the directory.
|
||||
Select the appropriate paper size and orientation. Activate
|
||||
\fBFill page\fR if you want the calendar to fill the page. This should
|
||||
be the normal case unless you have many reminders in a particular
|
||||
day. (See the \fBRem2PS\fR documentation.)
|
||||
day. (See the \fBRem2PS\fR or \fBrem2pdf\fR documentation.)
|
||||
|
||||
Finally, click \fBPrint\fR to print or \fBCancel\fR to cancel. Note
|
||||
that during printing, \fBRemind\fR is called with the
|
||||
\fB-itkremind=1\fR option and also an additional \fB-itkprint=1\fR
|
||||
option.
|
||||
option. If you are producing PDF output, then the option \fB-itkpdf=1\fR
|
||||
is also supplied to \fBRemind\fR.
|
||||
|
||||
|
||||
.SH EDITING REMINDERS
|
||||
|
||||
@@ -280,6 +280,10 @@ and the Cairo graphics library (L<https://www.cairographics.org/>) to produce
|
||||
its output. The CPAN modules Pango (L<https://metacpan.org/pod/Pango>)
|
||||
and Cairo (L<https://metacpan.org/pod/Cairo>) are prerequisites.
|
||||
|
||||
B<rem2pdf> assumes that its input stream is valid UTF-8. If this is not
|
||||
the case, it may render output incorrectly or even fail to render
|
||||
output at all.
|
||||
|
||||
=head1 OPTIONS
|
||||
|
||||
=over
|
||||
|
||||
40
src/token.c
40
src/token.c
@@ -105,33 +105,6 @@ Token TokArray[] = {
|
||||
{ "wednesday", 3, T_WkDay, 2 }
|
||||
};
|
||||
|
||||
/* If language != English, we must also search the following... */
|
||||
#if LANG != ENGLISH
|
||||
Token NonEnglishToks[] = {
|
||||
/* NAME MINLEN TYPE VALUE */
|
||||
|
||||
{ L_MONDAY, 3, T_WkDay, 0 },
|
||||
{ L_TUESDAY, 3, T_WkDay, 1 },
|
||||
{ L_WEDNESDAY, 3, T_WkDay, 2 },
|
||||
{ L_THURSDAY, 3, T_WkDay, 3 },
|
||||
{ L_FRIDAY, 3, T_WkDay, 4 },
|
||||
{ L_SATURDAY, 3, T_WkDay, 5 },
|
||||
{ L_SUNDAY, 3, T_WkDay, 6 },
|
||||
{ L_JAN, 3, T_Month, 0 },
|
||||
{ L_FEB, 3, T_Month, 1 },
|
||||
{ L_MAR, 3, T_Month, 2 },
|
||||
{ L_APR, 3, T_Month, 3 },
|
||||
{ L_MAY, 3, T_Month, 4 },
|
||||
{ L_JUN, 3, T_Month, 5 },
|
||||
{ L_JUL, 3, T_Month, 6 },
|
||||
{ L_AUG, 3, T_Month, 7 },
|
||||
{ L_SEP, 3, T_Month, 8 },
|
||||
{ L_OCT, 3, T_Month, 9 },
|
||||
{ L_NOV, 3, T_Month, 10 },
|
||||
{ L_DEC, 3, T_Month, 11 }
|
||||
};
|
||||
#endif
|
||||
|
||||
static int TokStrCmp (Token const *t, char const *s);
|
||||
|
||||
/***************************************************************/
|
||||
@@ -232,19 +205,6 @@ void FindToken(char const *s, Token *tok)
|
||||
if (r > 0) top = mid-1; else bot=mid+1;
|
||||
}
|
||||
|
||||
/* If language is other than English, search the DayNames[] and MonthNames[]
|
||||
array. */
|
||||
#if LANG != ENGLISH
|
||||
for (i=0; i<(sizeof(NonEnglishToks) / sizeof(Token)); i++) {
|
||||
if (l >= NonEnglishToks[i].MinLen &&
|
||||
!TokStrCmp(&NonEnglishToks[i], s)) {
|
||||
tok->type = NonEnglishToks[i].type;
|
||||
tok->val = NonEnglishToks[i].val;
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user