Text-to-HTML processing program

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • phil hunt

    Text-to-HTML processing program

    Does anyone know of a text-to-HTML processing program, ideally
    written in Python because I'll probably be wanting to make small
    modifications to it, which is simple and straightforward to use
    and which uses a simple markup language (something like Wikipedia
    markup would be ideal)?


    --
    "It's easier to find people online who openly support the KKK than
    people who openly support the RIAA" -- comment on Wikipedia
    (Email: <zen20000@zen.c o.ku>, but first subtract 275 and reverse
    the last two letters).


  • Paul Rubin

    #2
    Re: Text-to-HTML processing program

    philh@invalid.e mail.address (phil hunt) writes:[color=blue]
    > Does anyone know of a text-to-HTML processing program, ideally
    > written in Python because I'll probably be wanting to make small
    > modifications to it, which is simple and straightforward to use
    > and which uses a simple markup language (something like Wikipedia
    > markup would be ideal)?[/color]

    I really wish Wikipedia, BBCodes, and all that would just use regular
    HTML instead of continually inventing new "simplified " markup codes
    for users to remember. The one thing they do that's useful is convert
    blank lines to <p>.

    Comment

    • John Hunter

      #3
      Re: Text-to-HTML processing program

      >>>>> "phil" == phil hunt <philh@invalid. email.address> writes:

      phil> Does anyone know of a text-to-HTML processing program,
      phil> ideally written in Python because I'll probably be wanting
      phil> to make small modifications to it, which is simple and
      phil> straightforward to use and which uses a simple markup
      phil> language (something like Wikipedia markup would be ideal)?

      Structured text is one of the simplest markups around (and
      sufficiently powerful to make nice looking hardcopy) and is well
      supported in python





      Beyond that, search google groups for

      structured text group:*python*

      Here's a link to a post from me about the conversion of one of the old
      diehards in our hospital to structured text:
      http://mail.zope.org/pipermail/zope/...ay/115243.html.

      JDH

      Comment

      • Jarek Zgoda

        #4
        Re: Text-to-HTML processing program

        phil hunt <philh@invalid. email.address> pisze:
        [color=blue]
        > Does anyone know of a text-to-HTML processing program, ideally
        > written in Python because I'll probably be wanting to make small
        > modifications to it, which is simple and straightforward to use
        > and which uses a simple markup language (something like Wikipedia
        > markup would be ideal)?[/color]

        Try PyTextile: http://www.diveintomark.org/projects/pytextile -- it's
        Python implementation of Dean Allen's original PHP Textile.

        --
        Jarek Zgoda
        Unregistered Linux User #-1
        http://www.zgoda.biz/ JID:zgoda-a-chrome.pl http://zgoda.jogger.pl/

        Comment

        • Rene Pijlman

          #5
          Re: Text-to-HTML processing program

          phil hunt:[color=blue]
          >Does anyone know of a text-to-HTML processing program, ideally
          >written in Python [...] which uses a simple markup language
          >(something like Wikipedia markup would be ideal)?[/color]

          "reStructuredTe xt is an easy-to-read, what-you-see-is-what-you-get
          plaintext markup syntax and parser system. The reStructuredTex t parser is
          a component of Docutils. reStructuredTex t is a revision and
          reinterpretatio n of the StructuredText and Setext lightweight markup
          systems."


          "Structured Text is a simple plain text markup format used by Zope and
          many Zope products, invented by.. JimFulton? ? The idea is to have text
          that is easy to read both in source and rendered form."


          --
          René Pijlman

          Comment

          • Patrick Useldinger

            #6
            Re: Text-to-HTML processing program

            On Sat, 3 Jan 2004 05:51:33 +0000, philh@invalid.e mail.address (phil
            hunt) wrote:
            [color=blue]
            >Does anyone know of a text-to-HTML processing program, ideally
            >written in Python because I'll probably be wanting to make small[/color]

            I like http://txt2tags.sourceforge.net/, used it to design my homepage.
            --

            Comment

            • Jeff Schwab

              #7
              Re: Text-to-HTML processing program

              phil hunt wrote:[color=blue]
              > Does anyone know of a text-to-HTML processing program, ideally
              > written in Python because I'll probably be wanting to make small
              > modifications to it, which is simple and straightforward to use
              > and which uses a simple markup language (something like Wikipedia
              > markup would be ideal)?[/color]

              How about troff? Or if you really want to keep it simple, why not use
              the <pre> tag in HTML?


              Comment

              • John Roth

                #8
                Re: Text-to-HTML processing program


                "phil hunt" <philh@invalid. email.address> wrote in message
                news:slrnbvcm32 .122.philh@caba lamat.cabalamat .org...[color=blue]
                > Does anyone know of a text-to-HTML processing program, ideally
                > written in Python because I'll probably be wanting to make small
                > modifications to it, which is simple and straightforward to use
                > and which uses a simple markup language (something like Wikipedia
                > markup would be ideal)?[/color]

                There's an old saying that's attributed to a lot of people:

                For every hard problem, there is a solution that is simple,
                obvious and wrong.

                Markup seems to be one of those problems. Lots of people
                look at the existing markup languages out there, go "oh, yuck!,"
                and invent a simpler markup language that promptly starts growing
                until it reaches the state of the languages they originally rejected
                as too complex.

                John Roth



                Comment

                • phil hunt

                  #9
                  Re: Text-to-HTML processing program

                  On 02 Jan 2004 22:18:56 -0800, Paul Rubin <http://phr.cx@NOSPAM.i nvalid> wrote:[color=blue]
                  >philh@invalid. email.address (phil hunt) writes:[color=green]
                  >> Does anyone know of a text-to-HTML processing program, ideally
                  >> written in Python because I'll probably be wanting to make small
                  >> modifications to it, which is simple and straightforward to use
                  >> and which uses a simple markup language (something like Wikipedia
                  >> markup would be ideal)?[/color]
                  >
                  >I really wish Wikipedia, BBCodes, and all that would just use regular
                  >HTML instead of continually inventing new "simplified " markup codes
                  >for users to remember. The one thing they do that's useful is convert
                  >blank lines to <p>.[/color]

                  Wikipedia markup is significantly easier to use than HTML. Compare:

                  This is a ''list'':
                  * A list
                  * [http://www.cabalamat.org/ my website]
                  * [http://slashdot.org/ Slashdot]

                  With:

                  <p>This is a <i>list</i>:
                  <ul>
                  <li><a href='http://www.cabalamat.o rg/'>my website</a></li>
                  <li><a href='http://slashdot.org/'>Slashdot</a></li>
                  </ul>

                  --
                  "It's easier to find people online who openly support the KKK than
                  people who openly support the RIAA" -- comment on Wikipedia
                  (Email: <zen20000@zen.c o.ku>, but first subtract 275 and reverse
                  the last two letters).


                  Comment

                  • phil hunt

                    #10
                    Re: Text-to-HTML processing program

                    On Sat, 03 Jan 2004 11:05:54 -0500, Jeff Schwab <jeffplus@comca st.net> wrote:[color=blue]
                    >phil hunt wrote:[color=green]
                    >> Does anyone know of a text-to-HTML processing program, ideally
                    >> written in Python because I'll probably be wanting to make small
                    >> modifications to it, which is simple and straightforward to use
                    >> and which uses a simple markup language (something like Wikipedia
                    >> markup would be ideal)?[/color]
                    >
                    >How about troff? Or if you really want to keep it simple, why not use
                    >the <pre> tag in HTML?[/color]

                    I wasn't aware troff did HTML output.
                    [color=blue]
                    >Or if you really want to keep it simple, why not use
                    >the <pre> tag in HTML?[/color]

                    Yuk.

                    --
                    "It's easier to find people online who openly support the KKK than
                    people who openly support the RIAA" -- comment on Wikipedia
                    (Email: <zen20000@zen.c o.ku>, but first subtract 275 and reverse
                    the last two letters).


                    Comment

                    • Jeff Schwab

                      #11
                      Re: Text-to-HTML processing program

                      phil hunt wrote:[color=blue]
                      > On Sat, 03 Jan 2004 11:05:54 -0500, Jeff Schwab <jeffplus@comca st.net> wrote:
                      >[color=green]
                      >>phil hunt wrote:
                      >>[color=darkred]
                      >>>Does anyone know of a text-to-HTML processing program, ideally
                      >>>written in Python because I'll probably be wanting to make small
                      >>>modification s to it, which is simple and straightforward to use
                      >>>and which uses a simple markup language (something like Wikipedia
                      >>>markup would be ideal)?[/color]
                      >>
                      >>How about troff? Or if you really want to keep it simple, why not use
                      >>the <pre> tag in HTML?[/color]
                      >
                      >
                      > I wasn't aware troff did HTML output.[/color]

                      There are separate utilities to do the translation. I have
                      groff/grohtml on my linux machine; I think there's something different
                      on my Solaris box.
                      [color=blue][color=green]
                      >>Or if you really want to keep it simple, why not use
                      >>the <pre> tag in HTML?[/color]
                      >
                      >
                      > Yuk.[/color]

                      Simple.

                      Of course, one *could* just use HTML, and stop whining. :)

                      Comment

                      • Reinier Post

                        #12
                        Re: Text-to-HTML processing program

                        phil hunt wrote:
                        [color=blue]
                        >Does anyone know of a text-to-HTML processing program, ideally
                        >written in Python because I'll probably be wanting to make small
                        >modification s to it, which is simple and straightforward to use
                        >and which uses a simple markup language (something like Wikipedia
                        >markup would be ideal)?[/color]

                        Last time I looked for it, I Googled for

                        txt2html

                        and found a program of that name based on

                        txt2tex

                        I haven't used them heavily.

                        There are other "plaintext with conventions" text formats out there,
                        but I can't find my pointers to them.

                        --
                        Reinier

                        Comment

                        Working...