]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/logicalmkup.module
Amend 3058deb: Make convert_fonts robust
[lyx.git] / lib / layouts / logicalmkup.module
index d31acfecdb6166a91913408c29f5e7c8b9a686eb..6d36fd1d43e990b06843a7303c16f477363a89eb 100644 (file)
@@ -2,12 +2,13 @@
 #DescriptionBegin
 #Defines some character styles for logical markup: noun, emph, strong, and code.
 #DescriptionEnd
+#Category: charstyles
 
 # Author : Martin vermeer <martin.vermeer@hut.fi>
 
-Format 11
+Format 68
 
-InsetLayout CharStyle:Noun
+InsetLayout Flex:Noun
        LyxType               charstyle
        LabelString           noun
        LatexType             command
@@ -17,10 +18,19 @@ InsetLayout CharStyle:Noun
        EndFont
        Requires              noun
        InToc                 true
+       HTMLTag               span
+       HTMLAttr              class='noun'
+       HTMLStyle
+               span.noun {
+                       font-family: sans-serif;
+               }
+       EndHTMLStyle
+       ResetsFont            true
+       CustomPars            false
 End
 
 
-InsetLayout CharStyle:Emph
+InsetLayout Flex:Emph
        LyxType               charstyle
        LabelString           emph
        LatexType             command
@@ -29,10 +39,13 @@ InsetLayout CharStyle:Emph
          Shape               Italic
        EndFont
        InToc                 true
+       HTMLTag               em
+       ResetsFont            true
+       CustomPars            false
 End
 
 
-InsetLayout CharStyle:Strong
+InsetLayout Flex:Strong
        LyxType               charstyle
        LabelString           strong
        LatexType             command
@@ -41,13 +54,16 @@ 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
 End
 
 
-InsetLayout CharStyle:Code
+InsetLayout Flex:Code
        LyxType               charstyle
        LabelString           code
        LatexType             command
@@ -56,7 +72,11 @@ 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
 End