9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] Troff ms srefs, weird commata
@ 2021-02-17 17:15 sirjofri
  2021-02-17 17:48 ` sirjofri
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: sirjofri @ 2021-02-17 17:15 UTC (permalink / raw)
  To: 9front

Hello 9front devs,

I was looking at srefs style for typesetting references. I noticed some 
very weird behavior:

Reference titles (eg articles) are typeset like this: "Title," Journal 
.... The comma is _inside_ the quotes, which is very weird. I checked the 
document in /sys/doc/9.ps, where the comma is placed outside the quotes: 
"Title", Journal, which is also what I know.

Is this style just a regular style I don't know? Is a patch interesting?
It is only relevant when using refer.

sirjofri

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [9front] Troff ms srefs, weird commata
@ 2021-02-17 17:52 sirjofri
  0 siblings, 0 replies; 10+ messages in thread
From: sirjofri @ 2021-02-17 17:52 UTC (permalink / raw)
  To: 9front

[-- Attachment #1: Type: text/plain, Size: 383 bytes --]

Sorry, I have issues with my mail setup and attachments. Here's the 
patch.

17.02.2021 18:48:32 sirjofri <sirjofri+ml-9front@sirjofri.de>:
> this patch places the commas behind the quotes around the title.
>
> Before: Author, "Title," Journal, ...
> After: Author, "Title", Journal, ...
>
> It also changes the quoting style from the old troff ``Title'' to 
> “Title”.

[-- Attachment #2: tmac.srefs.patch --]
[-- Type: text/x-diff, Size: 1343 bytes --]

/sys/lib/tmac/tmac.srefs:1,4 - tmac.srefs:1,5
  .\" REFER macros .... citations
  .de []
  .][ \\$1
  ..
/sys/lib/tmac/tmac.srefs:12,19 - tmac.srefs:13,22
  .if t .ds .] \v'.4m'\s+2\fP
  .if n .ds [o ""
  .if n .ds [c ""
- .if t .ds [o ``
- .if t .ds [c ''
+ .\"if t .ds [o ``
+ .\"if t .ds [c ''
+ .if t .ds [o “
+ .if t .ds [c ”
  .\" the next lines deal with the problem of .[1] or [1].
  .\" refer will write "linexxx\*(<.[1]\*(>.
  .\" and either "<." or ">." should produce the .;
/sys/lib/tmac/tmac.srefs:62,68 - tmac.srefs:65,71
  .if !"\\*([R"" .rm [C
  .if !"\\*([F"" .IP "\\*([F.\0"
  .if !"\\*([A"" \\*([A,
- .if !"\\*([T"" \\*([o\\*([T,\\*([c
+ .if !"\\*([T"" \\*([o\\*([T\\*([c,
  \\f2\\*([J\\f1\c
  .if !"\\*([C"" , \\*([C\c
  .if !"\\*([V"" .if n ,\& Vol.\&\c
/sys/lib/tmac/tmac.srefs:101,107 - tmac.srefs:104,110
  .FS
  .if !"\\*([F"" .IP "\\*([F.\0"
  .nr %T 1
- \\*([A, \\*([o\\*([T,\\*([c
+ \\*([A, \\*([o\\*([T\\*([c,
  \\*([R\c
  .if !"\\*([G"" \& (\\*([G)\c
  .if !"\\*([I"" ,  \\*([I\c
/sys/lib/tmac/tmac.srefs:118,124 - tmac.srefs:121,127
  .nr %T 1
  .if !"\\*([F"" .IP "\\*([F.\0"
  .if !"\\*([A"" \\*([A,
- .if !"\\*([T"" \\*([o\\*([T,\\*([c
+ .if !"\\*([T"" \\*([o\\*([T\\*([c,
  .if !"\\*([P"" pp. \\*([P
  in \\f2\\*([B\\f1\c
  .if !"\\*([E"" , ed. \\*([E\c



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-02-22 14:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-17 17:15 [9front] Troff ms srefs, weird commata sirjofri
2021-02-17 17:48 ` sirjofri
2021-02-17 17:48 ` sirjofri
2021-02-17 20:24 ` Amavect
2021-02-19  5:50   ` [9front] " magma698hfsp273p9f
2021-02-20  0:18     ` sirjofri
2021-02-20  2:11       ` magma698hfsp273p9f
2021-02-22  6:32         ` sirjofri
2021-02-22 14:00           ` Marshall Conover
2021-02-17 17:52 [9front] " sirjofri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).