I have created a patch that automatically sets up 
LyxBlogger file formats and converter definitions for
both of the supported input types: LyXHTML and eLyXer. 


For the LyXHTML format, it adds:
    \converter xhtml      xblog      "lyxblogger $$i"       ""
    \Format    xblog      blog       "LyxBlogger"           "" "" ""  "document"


If eLyXer is installed, it also adds:
    \converter html       eblog      "lyxblogger $$i"       ""
    \Format    eblog      blog       "LyxBlogger (eLyXer)"  "" "" ""  "document"


This patch makes LyX - LyxBlogger integration a breeze. 
Would someone review this patch and commit the changes
if it meets your standards?

Jack

(attachment)



 




Index: configure.py
===================================================================
--- configure.py	(revisión: 33868)
+++ configure.py	(copia de trabajo)
@@ -646,6 +646,17 @@
       else:
         addToRC(r'''\copier    html       "python -tt $$s/scripts/ext_copy.py $$i $$o"''')
 
+    # LyxBlogger with LyXHTML:
+    path, lyxblogger = checkProg('A LyX to WordPress Blog Publishing Tool',
+      ['lyxblogger $$i'],
+      rc_entry = [ r'\converter xhtml      xblog      "%%"       ""'])
+    if lyxblogger.find('lyxblogger') >= 0:
+      addToRC(r'\Format    xblog      blog       "LyxBlogger"           "" "" ""  "document"')
+      # LyxBlogger with eLyXer
+      if elyxerfound:
+        addToRC(r'\converter html       eblog      "lyxblogger $$i"       ""')
+        addToRC(r'\Format    eblog      blog       "LyxBlogger (eLyXer)"  "" "" ""  "document"')
+
     # On SuSE the scripts have a .sh suffix, and on debian they are in /usr/share/tex4ht/
     path, htmlconv = checkProg('a LaTeX -> MS Word converter', ["htlatex $$i 'html,word' 'symbol/!' '-cvalidate'", \
         "htlatex.sh $$i 'html,word' 'symbol/!' '-cvalidate'", \

Reply via email to