Package: pandoc
Version: 1.6-1~0jones1
Severity: normal

When I start reStructuredText-file, its title and sub-title is written
like this:

---- Clip here ----

####################################
Läsnäolon voima -kirjan harjoitukset
####################################

=============
Muistiinpanot
=============

---- Clip here ----

But when I convert it to Docbook, it becomes this:

---- Clip here ----
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
                  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd";>
<article>
  <articleinfo>
    <title></title>
  </articleinfo>
<para>
  #################################### Läsnäolon voima -kirjan
  harjoitukset ####################################
</para>
<section id="muistiinpanot">
  <title>Muistiinpanot</title>

---- Clip here ----

This is stupid bug!

Now I need this stupid kludge to fix it:

pandoc -f rst -t docbook -s harjoitukset.txt | sed 's/\#*//g' \
| sed 's/<title><\/title>/<title>Läsnäolon voima -kirjan 
harjoitukset<\/title>/' >| harjoitukset.xml

In addition, I can not use any subtitle at all.

Now that Docbook-code looks like this:

---- Clip here ----
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
                  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd";>
<article>
  <articleinfo>
    <title>Läsnäolon voima -kirjan harjoitukset</title>
  </articleinfo>
<para>
   Läsnäolon voima -kirjan
  harjoitukset 
</para>
---- Clip here ----

Blah! A little bit better. But it causes problems, when I convert that
Docbook-file to EPUB with dbtoepub: First it has title in right way,
but then that title comes again in normal font. It looks very stupid.


-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (1100, 'stable'), (990, 'testing'), (500, 
'testing-proposed-updates'), (500, 'proposed-updates'), (102, 'stable'), (101, 
'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=fi_FI.utf8, LC_CTYPE=fi_FI.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pandoc depends on:
ii  libc6                   2.11.2-9         Embedded GNU C Library: Shared lib
ii  libffi5                 3.0.9-3          Foreign Function Interface library
ii  libgmp3c2               2:4.3.2+dfsg-1   Multiprecision arithmetic library
ii  libpcre3                8.02-1.1         Perl 5 Compatible Regular Expressi
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

pandoc recommends no packages.

Versions of packages pandoc suggests:
ii  texlive-latex-extra           2009-10    TeX Live: LaTeX supplementary pack
ii  texlive-latex-recommended     2009-11    TeX Live: LaTeX recommended packag
ii  texlive-xetex                 2009-11    TeX Live: XeTeX packages

-- no debconf information

-- 
Juhapekka "naula" Tolvanen * http colon slash slash iki dot fi slash juhtolv
"Quidquid Latine dictum sit altum videtur."



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to