[odf-discuss] Idea: ODF in 30 seconds
Daniel
daniel.carrera at zmsl.com
Wed May 30 04:10:04 EDT 2007
Hello,
I'm starting a new thread from an idea that arose during Damon's "A Pit
Bull in the Mix" thread.
IDEA: Have a series of ODF "study sheets". One sheet of paper, printed
on both sides. You may have seen similar ones for school subjects like
Calculus and Algebra. [*]
[*] At the end of this email you will find sample content for the study
sheet on "Text Documents".
What should we call it?
- ODF in 30 seconds?
- ODF study sheet?
- ???
We can cover every major type of document:
- ODF in 30 seconds: Text Documents
- ODF in 30 seconds: Spreadsheets
- ODF in 30 seconds: Drawings
- ODF in 30 seconds: Presentations
And we can also cover particular technologies:
- ODF in 30 seconds: Odfpy - ODF in Python
- ODF in 30 seconds: OOdoc - ODF in Perl
- ODF in 30 seconds: odftools - ODF for SysAdmins
We could have these as a free download in ODF/PDF format and also offer
to sell professionally printed versions at 4€ each plus shipping. All
funds go to support Fellowship activities. I doubt we'd get rich doing
this, but it might be fun.
What do you think?
------// ODF in 30 seconds: Text Documents //--------
What you should know: HTML, OpenOffice.org (OOo).
Learn HTML at http://www.w3schools.com/html/
Learn OOo at http://oooauthors.org/en/
<heading> Basic Steps </heading>
1. Using OpenOffice, create a blank document and save it as
"template.odt". Don't forget to turn the page and look at "Styles: Bold,
Italics, Underlined, Colour..." to improve your template.
2. Unzip the file in a separate directory. One of the files created is
content.xml
3. In a new text file, write your document as if it were HTML, using the
TABLE 1 below.
4. Put your document inside the <office:text> tags in content.xml
5. Zip the file again and voila! You've made your very own ODF file.
---- start table ----
TABLE 1: ODF for HTML coders.
Paragraphs:
<p> ... </p> Becomes... <text:p> ... </text:p>
<br/> Becomes... <text:line-break/>
Text
Headings:
<h1> ... </h1> Becomes...
<text:h text:style-name="Heading_20_1"> ... </text:h>
Same for h2, h3, ...
Lists:
<ul> ... </ul> Becomes...
<text:list text:style-name="L1"> ... </text:list>
<ol> ... </ol> Becomes...
<text:list text:style-name="L2"> ... </text:list>
<li> ... </li> Becomes...
<text:list-item> <text:p> ... </text:p> </text:list-item>
Tables:
<table> ... </table> Becomes...
<table:table> ... </table:table>
<tr> ... </tr> Becomes...
<table:table-row> ... </table:table-row>
<td> ... </td> Becomes...
<table:table-cell> <text:p> ... </text:p> </table:table-cell>
---- end table ----
<heading> Styles: Bold, Italics, Underlined, Colour... </heading>
With ODF you can define styles, similar to CSS, to make the text more
interesting.
Step 1: Add a style to your template:
1. Open your template (template.odt).
2. Press F11 to open the Stylist.
3. Click on the second button to go to "Character Styles".
4. Create a new Character Style that makes text bold and blue-coloured.
Call the style "Bold_Blue".
5. Save your template again.
Step 2: Use the style in your document:
Now you can create text that is bold and blue coloured with:
<text:p>
<text:span text:style-name="Bold_Blue"> This is bold blue </text:span>
</text:p>
--------------// END STUDY SHEET //-------------------
Cheers,
Daniel.
More information about the odf-discuss
mailing list