Ms writer: use light gray for strikeout.
Pending groff definitions for striking out an arbitrary section of text (not just a few words).
This commit is contained in:
parent
c941a00cac
commit
ed6249bd0b
3 changed files with 8 additions and 2 deletions
|
@ -36,6 +36,8 @@
|
|||
.nr FL \n[LL]
|
||||
.\" footnote point size
|
||||
.nr FPS (\n[PS] - 2000)
|
||||
.\" color used for strikeout
|
||||
.defcolor strikecolor rgb 0.7 0.7 0.7
|
||||
.\" ***************************************************************
|
||||
.\" PDF metadata
|
||||
.mso pdfmark.tmac
|
||||
|
|
|
@ -425,7 +425,9 @@ inlineToMs opts (Strong lst) =
|
|||
withFontFeature 'B' (inlineListToMs opts lst)
|
||||
inlineToMs opts (Strikeout lst) = do
|
||||
contents <- inlineListToMs opts lst
|
||||
return $ text "[STRIKEOUT:" <> contents <> char ']'
|
||||
-- we use grey color instead of strikeout, which seems quite
|
||||
-- hard to do in groff for arbitrary bits of text
|
||||
return $ text "\\m[strikecolor]" <> contents <> text "\\m[]"
|
||||
inlineToMs opts (Superscript lst) = do
|
||||
contents <- inlineListToMs opts lst
|
||||
return $ text "\\*{" <> contents <> text "\\*}"
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
.nr FL \n[LL]
|
||||
.\" footnote point size
|
||||
.nr FPS (\n[PS] - 2000)
|
||||
.\" color used for strikeout
|
||||
.defcolor strikecolor rgb 0.2 0.2 0.2
|
||||
.\" ***************************************************************
|
||||
.\" PDF metadata
|
||||
.mso pdfmark.tmac
|
||||
|
@ -588,7 +590,7 @@ So is \f[B]\f[BI]this\f[B]\f[] word.
|
|||
This is code: \f[C]>\f[], \f[C]$\f[], \f[C]\\\f[], \f[C]\\$\f[],
|
||||
\f[C]<html>\f[].
|
||||
.PP
|
||||
[STRIKEOUT:This is \f[I]strikeout\f[].]
|
||||
\m[strikecolor]This is \f[I]strikeout\f[].\m[]
|
||||
.PP
|
||||
Superscripts: a\*{bc\*}d a\*{\f[I]hello\f[]\*} a\*{hello\ there\*}.
|
||||
.PP
|
||||
|
|
Loading…
Add table
Reference in a new issue