The branch, dummynewenv, has been updated.

- Log -----------------------------------------------------------------

commit f8428888dd3d72161b85a0ea187bb7b11b727428
Author: Prannoy Pilligundla <prannoy.b...@gmail.com>
Date:   Tue May 20 21:56:00 2014 +0530

    Configured a custom lyx environment lyxgreyedout for tex4ht using a 
configuration file. In the branch tex4htTesting same thing has been done 
directly in ooffice.4ht

diff --git a/tests/dummyenv.odt b/tests/dummyenv.odt
new file mode 100644
index 0000000..bf4fb6f
Binary files /dev/null and b/tests/dummyenv.odt differ
diff --git a/tests/dummyenv.tex b/tests/dummyenv.tex
index 04180cb..8756c1b 100644
--- a/tests/dummyenv.tex
+++ b/tests/dummyenv.tex
@@ -5,9 +5,9 @@
 \begin{document}
 text
 
-\begin{code}
+\begin{lyxgreyedout}
 line one
 line two
-\end{code}
+\end{lyxgreyedout}
 
 \end{document}
\ No newline at end of file
diff --git a/tests/grey.4ht b/tests/grey.4ht
index 9ba88fb..d8c0eda 100644
--- a/tests/grey.4ht
+++ b/tests/grey.4ht
@@ -1,6 +1,21 @@
-\renewenvironment{code}{\:tempa\verbatim}{\endverbatim\:tempb}
-\ConfigureEnv{code}{\HCode{<div class="code">}}{\HCode{</div>}}{}{}
-\Css{.code{
-border:1px solid black;
-background-color: \#999;
-}}
\ No newline at end of file
+\:CheckOption{ooffice}\if:Option
+%\renewenvironment{code}{\:tempa\bgroup\ignorespaces}{\ignorespacesafterend\egroup\:tempb}
+\NewConfigureOO{lyxgreyedout}
+\ConfigureOO{lyxgreyedout}{%
+<style:style style:name="First-line-indent"
+                  style:family="paragraph"
+                  style:parent-style-name="Text-body"
+                  style:class="text">\Hnewline
+<style:paragraph-properties  fo:margin-left="0cm"
+                  fo:margin-right="0cm"
+                  fo:text-indent="0.499cm"
+                  style:auto-text-indent="false"/>
+</style:style>\Hnewline
+<style:style style:name="greyedoutnote" style:family="text">\Hnewline
+   <style:text-properties fo:color="\#808080"/>\Hnewline
+</style:style>\Hnewline
+}
+\ConfigureEnv{lyxgreyedout}{\HCode{<text:p 
text:style-name="First-line-indent">}\HCode{<text:span 
text:style-name="greyedoutnote">}}
+                           {\HCode{</text:span>}\HCode{</text:p>\Hnewline}}{}{}
+
+\fi
\ No newline at end of file
diff --git a/tests/grey.sty b/tests/grey.sty
index b8f7907..a8834c7 100644
--- a/tests/grey.sty
+++ b/tests/grey.sty
@@ -1,7 +1,7 @@
 \ProvidesPackage{grey}
-\RequirePackage{framed,color,verbatim}
-\definecolor{shadecolor}{rgb}{.9, .9, .9}
+\usepackage{xcolor}
+\definecolor{note_fontcolor}{rgb}{0.80078125, 0.80078125, 0.80078125}
 
-\newenvironment{code}%
-   {\verbatim}%
-   {\endverbatim}
\ No newline at end of file
+\newenvironment{lyxgreyedout}
+  {\textcolor{note_fontcolor}\bgroup\ignorespaces}
+  {\ignorespacesafterend\egroup}
\ No newline at end of file

-----------------------------------------------------------------------

Summary of changes:
 tests/dummyenv.odt |  Bin 0 -> 7168 bytes
 tests/dummyenv.tex |    4 ++--
 tests/grey.4ht     |   27 +++++++++++++++++++++------
 tests/grey.sty     |   10 +++++-----
 4 files changed, 28 insertions(+), 13 deletions(-)
 create mode 100644 tests/dummyenv.odt


hooks/post-receive
-- 
Repositories for GSOC work

Reply via email to