Bugzilla – Attachment 56968 Details for
Bug 45994
FILESAVE/FILEOPEN: ODF - Frame and image position properties not preserved on roundtrip
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
This is the original AsciiDoc source that generated the FODT.
asciidoc-odt-test.txt (text/plain), 14.37 KB, created by
Dag Wieers
on 2012-02-13 06:06:23 UTC
(
hide
)
Description:
This is the original AsciiDoc source that generated the FODT.
Filename:
MIME Type:
Creator:
Dag Wieers
Created:
2012-02-13 06:06:23 UTC
Size:
14.37 KB
patch
obsolete
>= Simple test document for ODF backend >:author: Dag Wieërs >:data-uri: >:icons: >:iconsdir: /usr/share/asciidoc/images/icons >:showcomments: >:toc: > >This document is meant for testing the AsciiDoc ODF backend and highlighting >known problems to developers. The output of this document, using the default >ODF stylesheet should match the HTML output as close as possible. > > >== Paragraph >First paragraph is here. > >And this is the second paragraph. > > >== Formatting >A paragraph can have differently formatted text, like *strong* text, >_emphasized_ text or +monospaced+ text. But also `quoted', ``double-quoted'', >^superscript^ and ~subscript~ are possibilities. > >And a anchor:formatting[referenced] paragraph. > > >== Lists >.Numbered list >1. Lift left foot >2. Put left foot forward >3. Put left foot down >4. Lift right foot >5. Put right foot forward >6. Put right foot down > >.Bulleted list >- Clean room > * Look for garbage > * Throw garbage away > ** Look for trashbin > ** Throw garbage in trashbin > *** Estimate distance > *** Estimate gravity > *** Estimate resistance > *** Estimate force > *** Throw precisely >- Eat >- Read book >- Socialize > >.Labeled list >one:: > Open box >two:: > Take candy >three:: > Close box > >[horizontal] >.Horizontal list >alpha:: First Greek letter >+ > Test > >beta:: Second Greek letter > >gamma:: Third Greek letter >+ > * List item 1 > * List item 2 > >.Nested list >1. Eat candy >+ >==== >one:: > Open box >two:: > Take candy >three:: > Close box >==== > >2. Be happy >+ >==== > - Enjoy what you have > - Share > - Don't think to deeply > - Sleep regularly > - Eat candy >==== > >3. Try something >+ >==== > >[horizontal] >uno:: Een >due:: Twee >tre:: Drie > >==== > > >== Blocks > >.Listing block >---- >[example] >variable=value >variable2=value2 >---- > >.Code listing block >[source,python] >---- >''' A multi-line > comment.''' >def sub_word(mo): > ''' Single line comment.''' > word = mo.group('word') # Inline comment > if word in keywords[language]: > return quote + word + quote > else: > return word >---- > >.Literal block >.... >[example] >variable=value >variable2=value2 >.... > >But also inline literals are supported: > > # pvcreate /dev/sda1 > # vgcreate rootvg /dev/sda1 > # lvcreate -L 500M -n rootlv rootvg > >.Sidebar block >**** >This is Sidebar material, and sidebars can contain lists too: > >* Item 1 >* Item 2 >**** > >.Quote block >[quote, Dag Wieers, Emails since 1995] >Any errors in spelling, tact or fact >are transmission errors. > >.Verse block >[verse, William Blake, from Auguries of Innocence] >To see a world in a grain of sand, >And a heaven in a wild flower, >Hold infinity in the palm of your hand, >And eternity in an hour. > >.Example block >====== >This is an example block >with some content > >And some more content >====== > >.Nested example block >====== >This is a listing block inside an example block. > >---- >Some demo commands >---- > >And some more text below the listing block. >====== > >.Comment block >Comment blocks are never made visible, not even when the +showcomments+ attribute is set. >//// >Content inside a comment block is never visible. >//// > >.Passthrough block >[pass] >++++ ><text:p>Line1:<text:s text:c="4"/>Example pass-through content<text:s text:c="4"/><text:line-break/>Line2:<text:s text:c="4"/>Testing inline ODF syntax<text:s text:c="4"/><text:line-break/>Line3:<text:title/></text:p> >++++ > >.Open block >//[abstract] >---- >Open Block >---- > > >== Admonitions > >[WARNING] >There is a dragon reading over your shoulder ! > >[CAUTION] >Reading beyond this line may breach your contract. > >[IMPORTANT] >Don't forget to drink coffee on a *regular* basis. > >[NOTE] >Do not believe everything that is written in this document. > >[TIP] >==== >Throw away everything you already know and think out of the box. > >.Bulleted lists are possible >* As you can see >* Bullets can be >* Part of a block >==== > > >== References >It is not uncommon to create <<formatting,references>> to other parts of a >document. Here are some <<tables,tests>>. > > >== Footnotes >This is a simple footnote >footnote:[A footnote is a note in the footer] >test. Obviously you can have more than one footnote >footnote:[A second footnote is possible] in a document. > >You can also create footnote references >footnoteref:[footnote,A footnote reference is just like a footnote, but with a reference ID in it]. > >// This fails to work >And then create a reference to an earlier footnote >footnoteref:[footnote] somewhere else in your text. > > >== Comments and annotations >// This is a comment > >[annotation,dag,2011-12-03] >//// >This is an example annotation that should be a proper annotation in >LibreOffice or OpenOffice. >//// > >[annotation] >//// >This is an anonymous annotation. >//// > >[comment] >//// >This is a block comment. >//// > > >[[tables]] >== Tables > >.Test table >[width="0%",cols=",>",frame="topbot",options="header,footer"] >|==== >|week |aantal >|01-09-2011 tot 02-09-2011| 2d >|05-09-2011 tot 09-09-2011| 5d >|12-09-2011 tot 16-09-2011| 5d >|19-09-2011 tot 23-09-2011| 5d >|26-09-2011 tot 30-09-2011| 5d >|Totaal aantal dagen | 22d >|==== > > >== Columns >[cols=4] >-- >- This >- Is >- A >- Long >- List >- Of >- Items >- That >- Would >- Normally >- Stretch >- Multiple >- Pages >- But >- In >- This >- Case >- Thanks >- To >- A >- Section >- With >- Four >- Columns >- Only >- Takes >- Up >- Part >- Of >- A >- Page >- How >- Cool >- Is >- That >- ? >-- > > >== Variables >Author variable: pass:[<text:initial-creator/>] > >Title variable: pass:[<text:title>This is a simple test document</text:title>] > >Subject variable: pass:[<text:variable-set text:name="Subject" office:value-type="string">Subject</text:variable-set>] > > >== Definition >Nested definition lists should work: > >definition term 1:: >definition description 1 > >==== >definition list 2 term 1:: >definition list 2 description 1 > >definition list 2 term 2:: >definition list 2 description 2 >==== > >definition term 2:: >definition description 2 > >definition term 3:: >definition description 3 > > >== Images > >.Dag gesticulating >[width="50mm",height="50mm",align="right",caption="Picture 1:"] >image::dag-professional-250.jpg[Photo] > >[width="50mm",height="50mm",align="left"] >image::inkscape.svg[Inkscape logo] > > ><<< > >== Filters: graphviz > >["graphviz",width="100mm",height="15mm"] >---- >digraph G { rankdir=LR; Graphviz->AsciiDoc->HTML} >---- > >["graphviz", "sample2.png",width="90mm",height="100mm"] >---- >digraph automata_0 { > size ="8.5, 11"; > node [shape = circle]; > 0 [ style = filled, color=lightgrey ]; > 2 [ shape = doublecircle ]; > 0 -> 2 [ label = "a " ]; > 0 -> 1 [ label = "other " ]; > 1 -> 2 [ label = "a " ]; > 1 -> 1 [ label = "other " ]; > 2 -> 2 [ label = "a " ]; > 2 -> 1 [ label = "other " ]; > "Machine: a" [ shape = plaintext ]; >} >---- > ><<< > >== Filters: aafigure > >.Example DocBook toolchain >["aafigure",width="21cm",height="3cm",align="center",format="svg",options="fixed",aspect="0.7",linewidth="1"] >---- > /---------\ > --->|"DocBook"|--- >/----------\ +----------+ / \---------/ \ +-----+ /--------\ +---+ /---\ >|Plain Text|--+"AsciiDoc"+-+ +--+Saxon+->|"XSL-FO"|--+FOP+->|PDF| >\----------/ +----------+ /----------------\ / +-----+ \--------/ +---+ \---/ > |"XSL Stylesheet"|- > \----------------/ >---- > >.Example: asciidoc-odf toolchain >["aafigure",width="20cm",height="6cm",align="center",format="svg",options="fixed",aspect="0.7",linewidth="1"] >---- > /---\ > +->|ODF| > / \---/ > / > /--------\ / /---\ > ->|Flat ODF|-- +----->|PDF| >/----------\ +----------+ / \--------/ \ +-------+ / \---/ >|Plain Text|--+"asciidoc"+-+ +--+unoconv+-+ >\----------/ +----------+ /------------\ / +---+---+ \ /---\ > |ODF template|- | +----->|DOC| > \------+-----/ +------+------+ \ \---/ > |"LibreOffice"| \ > +-------------+ \ /---\ > +->|RTF| > \---/ >---- > >.Example: a2x odf toolchain >["aafigure",width="16cm",height="6cm",align="center",format="svg",options="fixed",aspect="0.7",linewidth="1"] >---- > /---\ > +->|ODF| > / \---/ > / > /----------\ / /---\ > |Plain Text|-- +----->|PDF| > \----------/ \ +---+ /---\ +-------+ / \---/ > +--+a2x+->|ODF|--+unoconv+-+ >/------------\ / +---+ \---/ +---+---+ \ /---\ >|ODF template|- | +----->|DOC| >\------------/ +------+------+ \ \---/ > |"LibreOffice"| \ > +-------------+ \ /---\ > +->|RTF| > \---/ >---- > ><<< > >== Filters: ditaa > > >=== DocBook-based toolchains >.Example: dblatex toolchain >["ditaa",scaling="4",width="195mm",height="35mm",align="center"] >---- > +----------+ > +->|DocBook |-+ >+-------+ +--------+ | |XML {d}| | +-------+ +------+ +------+ +-----+ >|Plain |--+asciidoc+-+ +----------+ +-+dblatex+->|LaTeX |--+pdftex+->|PDF | >|Text{d}| | c789| |XSL {d}| | | c789| | {d}| | c789| | {d}| >+-------+ +--------+ |Stylesheet|-+ +-------+ +------+ +------+ +-----+ > +----------+ >---- > >.Example: Docbook FOP toolchain >["ditaa",scaling="4",width="192.5mm",height="35mm",align="center"] >---- > +----------+ +------+ > +->|DocBook |-+ +->|FO XML|-+ >+-------+ +--------+ | |XML {d}| | +-----+ | | {d}| | +----+ +-----+ >|Plain |--+asciidoc+-+ +----------+ +-+saxon+-+ +------+ +-+FOP +->|PDF | >|Text{d}| | c789| |XSL {d}| | | c789| |XSL-FO| | |c789| | {d}| >+-------+ +--------+ |Stylesheet|-+ +-----+ | {d}|-+ +----+ +-----+ > +----------+ +------+ >---- > >.Example: Docbook2odf toolchain >["ditaa",scaling="4",width="210mm",height="50mm",align="center"] >---- > +------+ > +----------+ +->|ODF{d}| > +->|DocBook |-+ | +------+ >+-------+ +--------+ | |XML {d}| | +-----------+ +---+ +-------+ +->|PDF{d}| >|Plain |--+asciidoc+-+ +----------+ +-+docbook2odf+->|ODF|--+unoconv+--+ +------+ >|Text{d}| | c789| |XSLT {d}| | | c789| |{d}| | c789| +->|DOC{d}| >+-------+ +--------+ |Stylesheet|-+ +-----------+ +---+ +---*---+ | +------+ > +----------+ | +->|PPT{d}| > +-----*-----+ +------+ > |LibreOffice| > | c897| > +-----------+ >---- > >=== ODF-based toolchains >.Example: AsciiDoc toolchain with unoconv >["ditaa",scaling="4",width="152.5mm",height="50mm",align="center"] >---- > +------+ > +--------+ +->|ODF{d}| > +->|Flat ODF|-+ | +------+ >+--------+ +--------+ | | {d}| | +-------+ +->|PDF{d}| >|Plain |--+asciidoc+-+ +--------+ +-+unoconv+--+ +------+ >|Text {d}| | c789| | ODF{io}| | | c789| +->|DOC{d}| >+--------+ +--------+ |Template|-+ +---*---+ | +------+ > +--------+ | +->|PPT{d}| > +-----*-----+ +------+ > |libreoffice| > | c897| > +-----------+ >---- > >.Example: AsciiDoc a2x toolchain with unoconv >["ditaa",scaling="4",width="125mm",height="50mm",align="center"] >---- > +------+ >+--------+ +->|ODF{d}| >|Plain |-+ | +------+ >|Text {d}| | +----+ +---+ +-------+ +->|PDF{d}| >+--------+ +-+a2x +->|ODF|--+unoconv+--+ +------+ >| ODF{io}| | |c789| |{d}| | c789| +->|DOC{d}| >|Template|-+ +----+ +---+ +---*---+ | +------+ >+--------+ | +->|PPT{d}| > +-----*-----+ +------+ > |libreoffice| > | c897| > +-----------+ >---- > >.Example: AsciiDoc a2x toolchain with LibreOffice >["ditaa",scaling="4",width="132.5mm",height="40mm",align="center"] >---- > +------+ >+--------+ +->|ODF{d}| >|Plain |-+ | +------+ >|Text {d}| | +----+ +---+ +-----------+ +->|PDF{d}| >+--------+ +-+a2x +->|ODF|--+libreoffice+-+ +------+ >| ODF{io}| | |c789| |{d}| | c789| +->|DOC{d}| >|Template|-+ +----+ +---+ +-----------+ | +------+ >+--------+ +->|PPT{d}| > +------+ >---- > >.Example: Integrated AsciiDoc a2x toolchain >["ditaa",scaling="4",width="80mm",height="50mm",align="center"] >---- > +------+ >+--------+ +->|ODF{d}| >|Plain |-+ | +------+ >|Text {d}| | +----+ +->|PDF{d}| >+--------+ +-+a2x +--+ +------+ >| ODF{io}| | |c789| +->|DOC{d}| >|Template|-+ +--*-+ | +------+ >+--------+ | +->|PPT{d}| > +-----*-----+ +------+ > |libreoffice| > | c897| > +-----------+ >---- > ><<< > >== Filters: plantuml > >.Example: Demo example from website >["plantuml","sample4.svg","svg",width="100mm",height="100mm",align="center"] >---- >:User: -> (Start) >:User: --> (Use the application) : Some label > >:Main Admin: ---> (Use the application) : This is\nyet another\nlabel >----
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 45994
:
56968
|
61756
|
62867