git.iko.soy/typeable/pandoc
on master help sign in
DocBook reader: implemented authorinitials and other minor tags.
commit0db7d87240d64e526348a78f550a434c495a6e64 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSun 29 Apr 2012, 10:10 (14 years ago) parent1455a3c
1 file changed+8−5
src/Text/Pandoc/Readers/DocBook.hs+8−5
src/Text/Pandoc/Readers/DocBook.hs+8−5
@@ -31,7 +31,7 @@ List of all DocBook tags, with [x] indicating implemented:
3131[ ] areaset - A set of related areas in a graphic or code example
3232[ ] areaspec - A collection of regions in a graphic or code example
3333[ ] arg - An argument in a CmdSynopsis
34−[ ] article - An article
34+[x] article - An article
3535[x] articleinfo - Meta-information for an Article
3636[ ] artpagenums - The page numbers of an article as published
3737[x] attribution - The source of a block quote or epigraph
@@ -41,7 +41,7 @@ List of all DocBook tags, with [x] indicating implemented:
4141[ ] authorblurb - A short description or note about an author
4242[ ] authorgroup - Wrapper for author information when a document has
4343 multiple authors or collabarators
44−[ ] authorinitials - The initials or other short identifier for an author
44+[x] authorinitials - The initials or other short identifier for an author
4545[ ] beginpage - The location of a page break in a print version of the document
4646[ ] bibliocoverage - The spatial or temporal coverage of a document
4747[ ] bibliodiv - A section of a Bibliography
@@ -130,12 +130,12 @@ List of all DocBook tags, with [x] indicating implemented:
130130[ ] fax - A fax number
131131[ ] fieldsynopsis - The name of a field in a class definition
132132[ ] figure - A formal figure, generally an illustration, with a title
133−[ ] filename - The name of a file
133+[x] filename - The name of a file
134134[ ] firstname - The first name of a person
135135[ ] firstterm - The first occurrence of a term
136136[x] footnote - A footnote
137137[ ] footnoteref - A cross reference to a footnote (a footnote mark)
138−[ ] foreignphrase - A word or phrase in a language other than the primary
138+[x] foreignphrase - A word or phrase in a language other than the primary
139139 language of the document
140140[ ] formalpara - A paragraph with a title
141141[ ] funcdef - A function (subroutine) name and its return type
@@ -555,7 +555,8 @@ parseBlock (Elem e) =
555555 return $ blockQuote (contents <> attrib)
556556 "attribution" -> return mempty
557557 "titleabbrev" -> return mempty
558− "title" -> return mempty -- handled by getTitle
558+ "authorinitials" -> return mempty
559+ "title" -> return mempty -- handled by getTitle or sect
559560 "chapter" -> sect 0
560561 "appendix" -> sect 0
561562 "preface" -> sect 0
@@ -645,6 +646,7 @@ parseInline (Elem e) =
645646 then singleQuoted contents
646647 else doubleQuoted contents
647648 "code" -> return $ code $ strContent e -- TODO attrs
649+ "filename" -> return $ code $ strContent e -- TODO attrs
648650 "literal" -> return $ code $ strContent e -- TODO attrs
649651 "markup" -> return $ code $ strContent e -- TODO attrs
650652 "wordasword" -> emph <$> innerInlines
@@ -660,6 +662,7 @@ parseInline (Elem e) =
660662 Just href -> link href "" <$> innerInlines
661663 _ -> link ('#' : attrValue "linkend" e) ""
662664 <$> innerInlines
665+ "foreignphrase" -> emph <$> innerInlines
663666 "emphasis" -> case attrValue "role" e of
664667 "strong" -> strong <$> innerInlines
665668 _ -> emph <$> innerInlines