diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-20 13:33:35 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-21 11:19:55 +0200 |
commit | 45a1cc39c6515c6f8462a1d833da1bd58af420b6 (patch) | |
tree | 1e3172f4138478ab5cb7eddc8fe959eb582aae0d /fref.1 | |
parent | 577a9653d0c22779a64d38e2338ed07ffbe0ecf5 (diff) | |
download | fref-45a1cc39c6515c6f8462a1d833da1bd58af420b6.tar.gz |
Add -l (language) flag
Diffstat (limited to 'fref.1')
-rw-r--r-- | fref.1 | 88 |
1 files changed, 44 insertions, 44 deletions
@@ -7,6 +7,7 @@ . .Sh SYNOPSIS .Nm +.Op Fl l Ar lang . .Sh DESCRIPTION .Pp @@ -24,32 +25,19 @@ They are inserted in the places they are specified in the .Xr troff 1 source code. .Pp -.Pa fref.lex -contains a number of hardcoded strings -that should be manually changed -depending on the desired output language: -.Bl -tag -width AVAIL -offset indent -.It AND -.Dq and : -Inserted between next to last and last author. -.It AVAIL -.Dq available : -Inserted before a hypertext reference. -.It ED -.Dq editor : -Inserted before the name of the editor. -.It P -.Dq page : -Inserted before a single page. -.It PP -.Dq pages : -Inserted before multiple pages. -.It TR -.Dq translator : -Inserted before the name of the translator. -.It VOL -.Dq volume : -Inserted before the volume number. +The +.Fl l +flag controls the language of certain strings, such as +.Dq ed. , +.Dq pp. , +and +.Dq and . +The following values are supported: +.Bl -tag -width xx -offset indent +.It Em en +English (default) +.It Em sv +Swedish .El . .Sh SYNTAX @@ -68,38 +56,46 @@ non-field lines. The following fields are available: .Bl -tag -width xxx -offset indent .It Sy %ad -Access date. +Access date .It Sy %bo -Book. +Book .It Sy %ci -City. +City .It Sy %da -Date (year). +Date (year) .It Sy %ed -Editor. +Editor .It Sy %hr -Hypertext reference. +Hypertext reference .It Sy %jo -Journal. +Journal .It Sy %la -Label. +Label .It Sy %no -TODO: Issue number. +TODO: Issue number .It Sy %pp -Pages. +Pages .It Sy %pu -Publisher. +Publisher .It Sy %se -TODO: Series. +TODO: Series .It Sy %ti -Title. +Title .It Sy %tr -Translator. +Translator .It Sy %vo -Volume. +Volume .It Sy %xx -Extra information. +Extra information .El +.Pp +Note that +.Nm +performs no special formatting of the +.Sy %au +field. +Thus, it should be specified as +.Dq "last name, first name" . . .Sh EXAMPLES .Pp @@ -119,6 +115,8 @@ References %ci Bloomington %pu Indiana University Press %xx Extra information +\&.XP +\&.\\" ... .Ed .Pp results in the following output: @@ -128,10 +126,12 @@ References \&.XP Baudouin de Courtenay, J. (1972). The Difference between Phonetics and Psychophonetics. -\\fIA Baudouin de Courtenay Anthology\\fP (red. T. A. Sebeok et al.). -Övers. Edward Stankiewicz. +\\fIA Baudouin de Courtenay Anthology\\fP (ed. T. A. Sebeok et al.). +Trans. Edward Stankiewicz. Bloomington: Indiana University Press. Extra information. +\&.XP +\&.\\" ... .Ed . .Sh SEE ALSO |