moniwiki 위키의 문서를 rst 형식으로 변환하고 싶은데 좋은 도구 없나요?

ikw3179의 이미지

moniwiki위키의 문서를 rst(reStructuredText http://docutils.sourceforge.net/rst.html )형식으로 변환하여 sphinx (http://sphinx.pocoo.org/)문서를 만들려고 합니다.

즉 기본문서를 위키에서 만들고 만들어진 위키문서를 sphinx 에서는 제너레이션된 rst 문서만 사용하는 것이지요.

다음과 같이

=== 제목 ===
 * ...
 * ...

위키 형식의 텍스트가

=====
제목
=====
 ...

형식의 rst 텍스트로 바꾸는 도구를 찾고 있습니다.

사용하는 언어는 python 입니다. python 라이브러리나 실행명령이 있을 법한데 말입니다.

wkpark의 이미지

모니위키는 모인모인 버전 1.0.x의 문법을 따릅니다. 모인모인은 python이고, 모인모인에는 ReST 파서도 같이 들어 있는 것으로 알고있습니다.

모인모인(혹은 모니위키)문법 => ReST 문법 컨버팅을 다이렉트로 해주는 툴은 아마 없을 것으로 생각되며,

모인모인 => xml => ReST문법을 고려해야 하지 않을까요?

온갖 참된 삶은 만남이다 --Martin Buber

ikw3179의 이미지

감사합니다. 힌트를 얻었습니다.

모인모인위키에서 포맷설정으로 rst 형식의 문서를 직접 사용할수 있군요 ^ ^

#format rst
=======
 Title
=======
 
This is a *test*.
 
* Some list item
* Some more
* And even more
 
An RST simple table:
 
========  ========
Column 1  Column 2
========  ========
Blah      Blah
Bloh      Bluu
bill      Bleh
========  ========

모니위키에서도 rst 를 사용할 수 있으면 좋겠군요.

wkpark의 이미지

rst포맷을 지원하는 php가 이미 있었다면 이미 지원했을겁니다. 그런데 아무리 구글링해봐도 rst를 지원하도록 만든 php는 없고, 대부분 rst2html.py를 통해서 지원하는 방식이더군요 (모인모인 제외?)
(참고로 rst를 제외하고 Markdown이나 textile지원은 모니위키 1.1.3부터 지원하고 있습니다~)

온갖 참된 삶은 만남이다 --Martin Buber

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.