]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/logicalmkup.module
Update covington support in linguistics module (file format change)
[lyx.git] / lib / layouts / logicalmkup.module
index c9565b94c3e3c0c40927eb47990234fcd819a73a..b1d80cf281bd8de2897e6e8af2b4e8980a13284e 100644 (file)
@@ -1,10 +1,14 @@
-#\DeclareLyXModule{Defines some character styles for logical markup: noun, emph, strong, and code.}{Logical Markup}
+#\DeclareLyXModule{Logical Markup}
+#\DeclareCategory{Text Markup}
+#DescriptionBegin
+#Defines some character styles for logical markup: noun, emph, strong, and code.
+#DescriptionEnd
 
 # Author : Martin vermeer <martin.vermeer@hut.fi>
 
-Format 5
+Format 100
 
-InsetLayout CharStyle:Noun
+InsetLayout Flex:Noun
        LyxType               charstyle
        LabelString           noun
        LatexType             command
@@ -12,13 +16,23 @@ InsetLayout CharStyle:Noun
        Font
          Shape               Smallcaps
        EndFont
-       Preamble
-       \newcommand{\noun}[1]{\textsc{#1}}
-       EndPreamble
+       Requires              noun
+       InToc                 true
+       HTMLTag               span
+       HTMLClass             "noun"
+       HTMLStyle
+               span.noun {
+                       font-family: sans-serif;
+               }
+       EndHTMLStyle
+       ResetsFont            true
+       CustomPars            false
+       DocBookTag            personname
+       DocBookTagType        inline
 End
 
 
-InsetLayout CharStyle:Emph
+InsetLayout Flex:Emph
        LyxType               charstyle
        LabelString           emph
        LatexType             command
@@ -26,10 +40,16 @@ InsetLayout CharStyle:Emph
        Font
          Shape               Italic
        EndFont
+       InToc                 true
+       HTMLTag               em
+       ResetsFont            true
+       CustomPars            false
+       DocBookTag            emphasis
+       DocBookTagType        inline
 End
 
 
-InsetLayout CharStyle:Strong
+InsetLayout Flex:Strong
        LyxType               charstyle
        LabelString           strong
        LatexType             command
@@ -38,12 +58,19 @@ InsetLayout CharStyle:Strong
          Series              Bold
        EndFont
        Preamble
-       \newcommand{\strong}[1]{\textbf{#1}}
+       \providecommand*{\strong}[1]{\textbf{#1}}
        EndPreamble
+       InToc                 true
+       HTMLTag               strong
+       ResetsFont            true
+       CustomPars            false
+       DocBookTag            personname
+       DocBookAttr           role='bold'
+       DocBookTagType        inline
 End
 
 
-InsetLayout CharStyle:Code
+InsetLayout Flex:Code
        LyxType               charstyle
        LabelString           code
        LatexType             command
@@ -52,7 +79,13 @@ InsetLayout CharStyle:Code
          Family              Typewriter
        EndFont
        Preamble
-       \newcommand{\code}[1]{\texttt{#1}}
+       \providecommand*{\code}[1]{\texttt{#1}}
        EndPreamble
+       InToc                 true
+       HTMLTag               code
+       ResetsFont            true
+       CustomPars            false
+       Spellcheck            false
+       DocBookTag            code
+       DocBookTagType        inline
 End
-