Main > Free Download Search >

Free writer software for linux

writer

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 129
OPML Writer 0.1

OPML Writer 0.1


OPML Writer is a PHP4 class for writing OPML files with an object-oriented approach. more>>
OPML Writer is a PHP4 class for writing OPML files with an object-oriented approach.

<<less
Download (0.16MB)
Added: 2006-10-16 License: MIT/X Consortium License Price:
1105 downloads
RTF::Writer 1.11

RTF::Writer 1.11


RTF::Writer is a Perl module for generating documents in Rich Text Format. more>>
RTF::Writer is a Perl module for generating documents in Rich Text Format.

SYNOPSIS

use RTF::Writer;
my $rtf = RTF::Writer->new_to_file("greetings.rtf");
$rtf->prolog( title => "Greetings, hyoomon" );
$rtf->number_pages;
$rtf->paragraph(
fs40bi, # 20pt, bold, italic
"Hi there!"
);
$rtf->close;

This module is a class; an object belonging to this class acts like an output filehandle, and calling methods on it causes RTF text to be written.
Incidentally, this module also exports a few useful functions, upon request.

METHODS

$h = RTF::Writer->new_to_file($filename);

This creates a new RTF output stream object, such that sending text to this object will write to the filespec given. This is basically a wrapper around new_to_handle. If opening a write-handle to $filename fails (or if $filename is undef or zero-length), then a fatal error results.

$h = RTF::Writer->new_to_handle(*FILEHANDLE);

This creates a new RTF output stream object, such that sending text to this object will write to the filehandle given. The filehandle can be a glob (*FH) or a filehandle object (*FH{IO} or the value from IO::File->new(...)).

$h = RTF::Writer->new_to_string($string);

This creates a new RTF output stream object, such that sending text to this object will append to the string that youve passed a reference to.

$h->print(...);

This is the basic method for writing text to an RTF stream. This takes a list of items. Each item is either:
a plain string, like "foon"

In this case, the value is imputed to be a plaintext string, and an rtf-escaped version of it is written. For example "StuffnttUmmmn" causes Stuffline tab tab Ummline to be written. See rtfesc(x) for further details of escaping.

a scalar-reference, like ul

In this case, the value is imputed to be a reference to already escaped text. This is the basic way to emit RTF codes. Text passed this way will be written without any additional escaping.

Unless $RTF::Writer::AUTO_NL (normally on) has been turned off, the item written will be followed with a (presumably harmless) newline character to delimit any code in there from any following text, if the last character of this string is a digit or a lowercase letter. This is so that (i, "foo!") emits i[newline]foo! (which does what you expected), instead of ifoo!, which looks like an RTF command "ifoo" followed by a plaintext "!".

an array-reference, like [ ul, foo ]

This emits an open-brace "{", as RTF uses for opening "groups" (generally for delimiting the effects of character-formatting commands like ul, or a few formatting commands like footnote); then it emits the items in the referred-to array; and then emits a closing "}". I intend this to be useful is making sure that you dont emit more open-braces than close-braces, since that usually makes RTF readers immediately reject such a file.

You can nest these array-references, like:

$h->print(
col2,
[ pard,
"It is now ",
[ f1,
scalar(localtime), " local, or ",
scalar(gmtime), " GMT.",
],
" -- if youre ",
[ i,
"keeping track.",
],
],
parpage,
);

The return value of the print() method is currently always the value 1, although this may change.

$h->prolog(...);

This writes an RTF prolog to $h. You are free to make your own prolog using just $h->print(...your own code...), but I find in easier to automate this task, particularly with some sane defaults.

Since emitting a prolog opens a "{"-group, calling $h->prolog(...) sets a flag in $h so that when you call $h->close(), a closing "}" will automatically be written before the stream object is actually closed.

The options to the prolog() method are passed as a list of keys and values, for controlling the contents of the prolog written. The options are listed below, roughly with the most important options first.

(Be careful with the spelling of these options. Some are rather odd, because they are (mostly) based on the name of the relevent RTF command, and a systematic naming scheme for commands is one thing you wont find in RTF!)
fonts => [ "Courier New", "Georgia", "Whatever"...],

This value is for the font table section of the prolog. If the value is an arrayref, then it should be a reference to an array whose items should be either plain text strings, like "Times Roman", which are the (unescaped) names of fonts; or the items in the array can be scalar-refs, for expressing RTF control words along with the (escaped) font name, as in froman Times New Roman. If the value of the "fonts" parameters is a scalar ref, then it is taken to be a reference to code of your own that expresses the whole font table. If you dont specify a value for the "font" option, then you get a font table with one entry, "Times New Roman".
You should be sure to declare all fonts that you switch to in your document (as with f3, to change the current font to whats declared in entry 3 (counting from 0) in the font table).

deff => INTEGER,

This is for expressing, in the prolog, the font-table number of the default font for this document. The default is 0, which is an often useful value.

colors => [ undef, [0,142,252], [200,32,0], ...],

This value is for expressing the documents (generally optional) color table. If you stipulate an arrayref value, then each item of the array should be either an RGB triplet expressed as an arrayref like [200,32,0], or undef, for a null color-entry. If you stipulate a scalar-ref value for colors, then it is taken to be a reference to code of your own that expresses the whole font table.

If you dont stipulate any value for colors, then you get a table consisting of three colors: null/default (undef), 100% red ([2550,0,0]), and 100% blue ([0,0,255]).

You can freely ignore concerns of color tables if you dont use color-changing codes in your document (like cf2, to switch the text foreground color to whats declared at entry 2 (starting from 0) in the color table).

stylesheet => STRING,
filetbl => STRING,
listtables => STRING,
revtbl => STRING,

These are for expressing, in the prolog, code constituting the documents style sheet, table-of-files, table-of-lists, and table-of-revisions, respectively. The default value of each of these is empty-string. None of these are needed by a typical RTF document.

more_default => STRING,

This is for inserting any additional code just after the deffN in the start of the prolog, before the font table. A common useful value here is deflang1033, to express the default language (1033 = RTFese for US English) for the document, although my reading of the RTF spec leads me to believe that this doesnt need to be in the prolog here (where many writers put it, as apparently accepted by many RTF readers), but should (instead?) go just after the prolog, with other "document formatting" commands described in the "Document Formatting Properties" section of the RTF Specification.

doccomm => STRING,

This value is for the "document comment" metainformation item in the prolog, which appears as the "Comment" field in the "File Properties" panel in MSWord, or as the "Abstract" field in the "File Properties" window in WordPerfect.
If no value is specified, then RTF::Writer puts a string noting the value of $0 (typically the filespec to the current Perl program), and the version of RTF::Writer used.

title => STRING,
subject => STRING,
author => STRING,
manager => STRING,
company => STRING,
operator => STRING,
category => STRING,
keywords => STRING,
hlinkbase => STRING,
comment => STRING,

These are for stipulating the string values of these various optional document metainformation items. operator is for the name of the person who last made changes to the document; hlinkbase is which is the URL or path that is used for for resolving any all relative hyperlinks in the document; comment is reportedly just ignored (cf. the doccomm attribute, which is not ignored); and you can guess the rest.

The meanings of all of these are explained in greater detail in the RTF spec.

revtim => EPOCH_NUMBER,

This value is for the document metainformation section of the prolog. It signifies the last-modified time of the document. EPOCH_NUMBER is the number of seconds since the epoch, such as one gets from (stat($thing)[9]) or time(); or you may pass a reference a timelist, like [localtime($whatever)].
If no defined value for revtime is stipulated in the call to prolog(...) then the current value of time() is used. Explicitly pass a value of undef to suppress emitting any creatim value.

creatim => EPOCH_NUMBER,

This value is for the document metainformation section of the prolog. It signifies the last-modified time of the document. If no defined value for creatim is stipulated in the call to prolog(...) then the current value of time() is used. Explicitly pass a value of undef to suppress emitting any creatim value.

printim => EPOCH_NUMBER,

This value is for the document metainformation section of the prolog. It signifies the time when this document was last printed. If you dont stipulate a defined value here, no printim metainformation is written.

buptim => EPOCH_NUMBER,

This value is for the document metainformation section of the prolog. It signifies the "backup time" of this document. If you dont stipulate a defined value here, no buptim metainformation is written.

version => INTEGER,
vern => INTEGER,
edmins => INTEGER,
nofpages => INTEGER,
nofwords => INTEGER,
nofchars => INTEGER,
nofcharsws => INTEGER,
id => INTEGER,

These are for stipulating the integer values of these various optional (and not terribly useful, for most purposes!) document metainformation items. The meanings of all of these are explained in the RTF spec.

charset => STRING,

This is for expressing, in the prolog, RTF codename for the character set being used in this document. The default is "ansi", and dont stipulate anything else (like "mac", "pc", or "pca") unless you know what youre doing.

rtf_version => INTEGER,

This is for expressing, in the prolog, what major version of RTF is being used in this document. The default is 1, and dont use anything else unless you really know what youre doing.

$h->printf(format, ...items...);
This is just short for $h->print(sprintf(format, ...items...)
$h->printf(format, ...items...);

In this case, format is assumed to contain already-escaped RTF code. The items in ...items... are escaped as necessary, and then interpolated. I.e., this is rather like: $h->print(sprintf format, map rtfesc($_), ...items...)) except that numeric items dont get escaped (and dont need to be). Example:

$h->printf(
{i "%s"} was found in %2.2f percent of matchespar,
$word, 100 * $count / $total
);
$h->number_pages();
$h->number_pages(...);

This is just a handy wrapper for some code that turns on page numbering. If you call this method, you should call it right after you emit a prolog.

The page numbering consists of just putting the page number at the top-right of each page. If you provide items in the list (...), then that is pre-pended to the page number. Example:

$h->number_pages("Lexicon, p.");

Or:

$h->number_pages(bfs30f2, "page ");

$trdecl = RTF::Writer::TableRowDecl->new( ...options... )

This constructs an object representing a declaration for a table row. You can have to use it in calls to $h->row($tabldecl,...), and can reuse it on subsequent calls. This object is for declaring the dimensions of table rows.

The work that a declaration has to do, is best explained in this diagram of a bordered three-cell table (first cell containing "Foo ya!"), placed near a left margin (shown as the line of colons). The things in brackets are not on the page, but just for our reference:

: [..w1...]
: [......w2.......]
: [...w3....]
[.A..] [.B.] [.B.]
:
: +-------+---------------+---------+
: | Foo | Bar baz | Yee! |
: | ya! | quuxi quuxo | |
: | | quaqua. | |
: +-------+---------------+---------+
:
[.A..] [.B.] [.B.]
[..r1........]
[.....r2.....................]
[........r3............................]

Here the horizontal dimensions of the three-celled table are expressed in terms of: A, the distance from the current left margin; B, the minimum distance between the content of the cells (or you can think of this as twice the internal left or right borders in each cell); and then EITHER [w1, w2, w3], expressing the width of each cell, OR [r1, r2, r3], expressing each cells right ends distance from the current left margin. All distances are, of course, in twips.

Options to RTF::Writer::TableRowDecl->new( ...options... ) are:

left_start => TWIPS,

This declares the distance between the left margin, and the left end of the table. Default is 0.

inbetween => TWIPS,

This declares the distance labelled "B", above. Default is 120, which is 6 points, 1/12th-inch, about 2mm.

widths => [TWIPS, TWIPS, TWIPS, ... ],

This expresses the widths of each of the cells in this row, starting from the leftmost.

reaches => [TWIPS, TWIPS, TWIPS, ... ],

This expresses the rightmost extreme of each of the cells in this row.

align => alignmentspecs,

This is explained in detail in the section "Cell Alignment Syntax", below.

borders => borderspecs,

This is explained in detail in the section "Cell Border Syntax", below.

$h->paragraph(...);

This makes the items in the list (...) into a paragraph. Basically just a wrapper for $h->print([ {par, ..., pard}, ])
$h->row($trdecl, ...items...);

This emits a table row, with dimensions as stipulated by the $trdecl object, and with row content from the items given.

You must provide a value for $trdecl, or a fatal error results.

If you provide fewer items than $trdecl declares cells, then you get empty cells to fill out the row. If you provide more items than $trdecl declares cells, then the width of the last declared row is used in figuring the width of the additional cells for this row.

Example:

my $decl = RTF::Writer::TableRowDecl->new(widths => [1500,1900]);
$h->row($decl, "Stuff", "Hmmm");
$h->row($decl, [ul, Foo], Bar, bullet);
$h->row($decl, "Hooboy.");

This creates a table resembing:

+-------------+-------------------+
| Stuff | Hmm |
+-------------+-------------------+-------------------+
| _Foo_ | Bar | * |
+-------------+-------------------+-------------------+
| "Hooboy." | |
+-------------+-------------------+

Note that you MUST NOT use par commands in any items you emit in row cells!

The $h->row(...) method is a wrapper for producing elementary tables in RTF, with the minimum of parameters; the myriad other options that tables can have (for example, changing borders) are not supported. If you really need to generate tables fancier than what $h->row(...) can produce, start off reading the RTF spec, reading the source for row() (and the RTF::Writer::TableRowDecl class), and progress from there. Note that MSWord has been known to crash when given malformed RTF table code.

$h->table($trdecl, [...row1 items...], [...row2 items...], ... );
$h->table([...row1 items...], [...row2 items...], ... );

This is a wrapper around $h->row. It takes a list of arrayrefs, which are fed to calls to h->row($tr_decl, @$each_arrayref). You should provide a $trdecl, but if you dont, then one is crudely guessed at, based on the maximum number of columns in all rows.

$h->image( image_parameters )

This returns a scalar-reference to RTF-code representing the given image with given parameters. For example:

$h->paragraph(
"See here: ",
$h->image( filename => "foo.png", ),
);

The legal options are explained below:

filename => FILENAME,

This should be the path to a readable filename. You have to specify this. If you dont specify this, or if the value isnt a readable file, then a fatal error results. Currently, only JPEGs and PNGs are allowed; specifying any other kind of file causes a fatal error.

(The filename option above is required, but the following options are all generally optional -- altho some RTF processors may be finicky if you set some of the following but not others, for no apparent reason. When in doubt, test.)

wgoal => TWIPS,

The desired width of the image

hgoal => TWIPS,

The desired height of the image

scalex => PERCENT,
scaley => PERCENT,

Respectively, the horizontal (X) or vertical (Y) scaling value. The argument is an integer representing a percentage. (The default is 100 percent)

cropt => TWIPS,
cropb => TWIPS,
cropl => TWIPS,
cropr => TWIPS,

These specify the top, bottom, left, and right cropping values. A positive value crops toward the center of the image. A negative value crops away from the center, adding a padding space around the image.

(The default is to do neither, as youd get from a cropping value of 0.)
picspecs => SCALARVALUE,

This overrides generation of the normal image values based the image and the above parameters, and instead uses whatever value you pass a reference to. You normally shouldnt need to use this.

$h->image_paragraph( image_parameters );

This take the same options as $h->image(...), but has three differences: First, it is a shortcut for this:

$h->paragraph( qc,
$h->image( ...params...),
);

Secondly, whereas $h->image(...) returns the image data (as an RTF scalarref), $h->image_paragraph(...) doesnt return much of anything.
Thirdly, $h->image_paragraph(...) is often much more memory-efficient, since it can write the image data to a file as its RTF-ified, instead of building it all up in memory.

$h->close();

This completes writing to the stream denoted by the object in $h; this generally (assuming youd called $h->prolog) involves just writing a final close-brace to $h, and then closing whatever filehandle or file $h writes to (unless were writing to a string, in which case we just discard $hs reference to it). After you call $h->close, you should not call any other methods with $h!

Note that you dont have to explicitly call $h->close -- when an unclosed RTF::Writer object goes out of scope (or, more precisely speaking, when if its refcount hits zero), then something equivalent to calling $h->close is done automatically for you.

<<less
Download (0.056MB)
Added: 2007-07-17 License: Perl Artistic License Price:
515 downloads
XML::Writer 0.601

XML::Writer 0.601


XML::Writer is a Perl extension for writing XML documents. more>>
XML::Writer is a Perl extension for writing XML documents.

SYNOPSIS

use XML::Writer;
use IO::File;

my $output = new IO::File(">output.xml");

my $writer = new XML::Writer(OUTPUT => $output);
$writer->startTag("greeting",
"class" => "simple");
$writer->characters("Hello, world!");
$writer->endTag("greeting");
$writer->end();
$output->close();

XML::Writer is a helper module for Perl programs that write an XML document. The module handles all escaping for attribute values and character data and constructs different types of markup, such as tags, comments, and processing instructions.

By default, the module performs several well-formedness checks to catch errors during output. This behaviour can be extremely useful during development and debugging, but it can be turned off for production-grade code.

The module can operate either in regular mode in or Namespace processing mode. In Namespace mode, the module will generate Namespace Declarations itself, and will perform additional checks on the output.

Additional support is available for a simplified data mode with no mixed content: newlines are automatically inserted around elements and elements can optionally be indented based as their nesting level.

<<less
Download (0.022MB)
Added: 2006-09-14 License: Perl Artistic License Price:
1136 downloads
webCDwriter 2.7.3

webCDwriter 2.7.3


webCDwriter can be used to make the CD- and DVD-writer(s) connected to a Linux box available to all users in your network. more>>
webCDwriter can be used to make the CD- and DVD-writer(s) connected to a Linux box available to all users in your network.
It consists of the server CDWserver and the clients webCDcreator and rcdrecord. CDWserver stores the files transmitted by the clients, reserves the CD-writer and controls the CD-writer using cdrecord.
webCDcreator is a Java applet that runs within your browser or by Java Web Start, assists you when putting together a CD, and transmits the files. Finally rcdrecord is a command line client that tries to offer the functionality of cdrecord over the network with full multi-user support.
Main features:
- multi user support
- the client webCDcreator can run as a JavaTM Web Start application or as an applet within your browser
- fully web-based - no installation on the clients
- supports data CDs, audio CDs and multisession
- use the image of a bootable floppy to make a bootable CD for PCs
- the ISO image of data CDs is created while burning (saves time and disk space)
- MP3 decoding for audio CDs using mpg123
- multi writer support (connected to the same server) burning independent sessions
- export of server directories
- verifying the CD after writing it (optional)
- copying a data CD in a CD-ROM drive on the server "on the fly" to the CD-writer
- user accounts
- upload the files from one machine and burn them by another one
- command line client rcdrecord
Internationalization:
- Catalannew, Dutch, English, French, German, Hungarian, Korean and Spanish web pages
- Catalannew, Chinese, Dutch, English, French, German, Hungarian, Italian, Korean, Norwegian, Polish, Portuguese, Russian, Sloveniannew, Spanish and Swedish messages in webCDcreator
- If you get empty boxes instead of the characters, try to modify your font.properties file.
- Note: Chinese and Korean support is still experimental. I need feedback on this!
<<less
Download (0.57MB)
Added: 2005-11-10 License: GPL (GNU General Public License) Price:
1443 downloads
Live Writerfox 0.3

Live Writerfox 0.3


Live Writerfox allows you to blog it from Windows Live Writer. more>>
Live Writerfox allows you to blog it from Windows Live Writer.

Windows Live Writer is a new desktop application for composing blog posts to your blog service.

It blogs a page or selected text to Windows Live Writer.

To use it you need to have Windows Live Writer installed on your machine.

<<less
Download (0.009MB)
Added: 2007-04-13 License: MPL (Mozilla Public License) Price:
930 downloads
XML::SAX::Writer 0.50

XML::SAX::Writer 0.50


XML::SAX::Writer is a Perl module with SAX2 Writer. more>>
XML::SAX::Writer is a Perl module with SAX2 Writer.

SYNOPSIS

use XML::SAX::Writer;
use XML::SAX::SomeDriver;

my $w = XML::SAX::Writer->new;
my $d = XML::SAX::SomeDriver->new(Handler => $w);

$d->parse(some options...);

Why yet another XML Writer ?

A new XML Writer was needed to match the SAX2 effort because quite naturally no existing writer understood SAX2. My first intention had been to start patching XML::Handler::YAWriter as it had previously been my favourite writer in the SAX1 world.

However the more I patched it the more I realised that what I thought was going to be a simple patch (mostly adding a few event handlers and changing the attribute syntax) was turning out to be a rewrite due to various ideas Id been collecting along the way. Besides, I couldnt find a way to elegantly make it work with SAX2 without breaking the SAX1 compatibility which people are probably still using. There are of course ways to do that, but most require user interaction which is something I wanted to avoid.

So in the end there was a new writer. I think its in fact better this way as it helps keep SAX1 and SAX2 separated.

<<less
Download (0.012MB)
Added: 2006-09-21 License: Perl Artistic License Price:
1128 downloads
XML::TMX::Writer 0.16

XML::TMX::Writer 0.16


XML::TMX::Writer is a Perl extension for writing TMX files. more>>
XML::TMX::Writer is a Perl extension for writing TMX files.

SYNOPSIS

use XML::TMX::Writer;

my $tmx = new XML::TMX::Writer();

$tmx->start_tmx(ID => paulojjs);

$tmx->add_tu(SRCLANG => en, en => some text, pt => algum texto);
$tmx->add_tu(SRCLANG => en,
en => some text,
pt => algum texto,
-note => [32, 34 ],
-prop => { q => 23,
aut => "jj"}
);

$tmx->end_tmx();

This module provides a simple way for writing TMX files.

METHODS

The following methods are available:

new

$tmx = new XML::TMX::Writer();

Creates a new XML::TMX::Writer object

start_tmx

$tmx->start_tmx(OUTPUT => some_file.tmx);

Begins a TMX file. Several options are available:

OUTPUT

Output of the TMX, if none is defined stdout is used by default.

TOOL

Tool used to create the TMX. Defaults to XML::TMX::Writer

TOOLVERSION

Some version identification of the tool used to create the TMX. Defaults to the current module version

SEGTYPE

Segment type used in the < tu > elements. Possible values are block, paragraph, sentence and phrase. Defaults to sentence.

SRCTMF

Specifies the format of the translation memory file from which the TMX document or segment thereof have been generated.

ADMINLANG

Specifies the default language for the administrative and informative elements < note > and < prop >.

SRCLANG

Specifies the language of the source text. If a element does not have a srclang attribute specified, it uses the one defined in the element. Defaults to *all*.

DATATYPE

Specifies the type of data contained in the element. Depending on that type, you may apply different processes to the data.

The recommended values for the datatype attribute are as follow (this list is not exhaustive):

unknown
undefined
alptext
WinJoust data
cdf
Channel Definition Format
cmx
Corel CMX Format
cpp
C and C++ style text
hptag
HP-Tag
html
HTML, DHTML, etc
interleaf
Interleaf documents
ipf
IPF/BookMaster
java
Java, source and property files
javascript
JavaScript, ECMAScript scripts
lisp
Lisp
mif
Framemaker MIF, MML, etc
opentag
OpenTag data
pascal
Pascal, Delphi style text
plaintext
Plain text (default)
pm
PageMaker
rtf
Rich Text Format =item sgml
SGML
stf-f
S-Tagger for FrameMaker
stf-i
S-Tagger for Interleaf
transit
Transit data
vbscript
Visual Basic scripts
winres
Windows resources from RC, DLL, EXE
xml
XML
xptag
Quark XPressTag

SRCENCODING

All TMX documents are in Unicode. However, it is sometimes useful to know what code set was used to encode text that was converted to Unicode for purposes of interchange. This option specifies the original or preferred code set of the data of the element in case it is to be re-encoded in a non-Unicode code set. Defaults to none.

ID

Specifies the identifier of the user who created the element. Defaults to none.

<<less
Download (0.015MB)
Added: 2007-05-31 License: Perl Artistic License Price:
878 downloads
XML::Writer::Simple 0.01

XML::Writer::Simple 0.01


XML::Writer::Simple is a Perl module to create XML files easily! more>>
XML::Writer::Simple is a Perl module to create XML files easily!

SYNOPSIS

use XML::Writer::Simple dtd => "file.dtd";

print para("foo",b("bar"),"zbr");

USAGE

This module takes some ideas from CGI to make easier the life for those who need to generated XML code. You can use the module in three flavours (or combine them):
tags

When importing the module you can specify the tags you will be using:
use XML::Writer::Simple tags => [qw/p b i tt/];

print p("Hey, ",b("you"),"! ", i("Yes ", b("you")));
that will generate
< p >Hey < b >you< /b >! < i >Yes < b >you< /b >< /i >< /p >
dtd

You can supply a DTD, that will be analyzed, and the tags used:
use XML::Writer::Simple dtd => "tmx.dtd";

print tu(seg("foo"),seg("bar"));
xml

You can supply an XML (or a reference to a list of XML files). They will be parsed, and the tags used:

use XML::Writer::Simple xml => "foo.xml";

print foo("bar");

<<less
Download (0.004MB)
Added: 2006-09-07 License: Perl Artistic License Price:
1143 downloads
Doc::Perlish::Writer 0.14

Doc::Perlish::Writer 0.14


Doc::Perlish::Writer is a base class for stream output functions. more>>
Doc::Perlish::Writer is a base class for stream output functions.

SYNOPSIS

# using - generally use a subclass
my $writer = Doc::Perlish::Writer::XML->new();

$doc->receiver($writer);
$doc->send_all();

my $output = $writer->output; # an IO::All object

# or, you can pass an object or specify an IO::All source
$writer->output("filename");
$writer->output($scalar);

# to get the document body
$writer->doc;

A writer is something that takes Doc::Perlish Serial API events, and converts them into a stream.

<<less
Download (0.055MB)
Added: 2007-03-10 License: Perl Artistic License Price:
958 downloads
XML::ValidWriter 0.39

XML::ValidWriter 0.39


XML::ValidWriter is DOCTYPE driven valid XML output. more>>
XML::ValidWriter is DOCTYPE driven valid XML output.

SYNOPSIS

## As a normal perl object:
$writer = XML::ValidWriter->new(
DOCTYPE => $xml_doc_type,
OUTPUT => *FH
) ;
$writer->startTag( b1 ) ;
$writer->startTag( c2 ) ;
$writer->end ;

## Writing to a scalar:
$writer = XML::ValidWriter->new(
DOCTYPE => $xml_doc_type,
OUTPUT => $buf
) ;

## Or, in scripting mode:
use XML::Doctype NAME => a, SYSTEM_ID => a.dtd ;
use XML::ValidWriter qw( :all :dtd_tags ) ;
b1 ; # Emits < a >< b1 >
c2( attr=>"val" ) ; # Emits < /b1 >< b2 >< c2 attr="val" >
endAllTags ; # Emits < /c2 >< /b2 >< /a >

## If youve got an XML::Doctype object handy:
use XML::ValidWriter qw( :dtd_tags ), DOCTYPE => $doctype ;

## If youve saved a preparsed DTD as a perl module
use FooML::Doctype::v1_0001 ;
use XML::ValidWriter qw( :dtd_tags ) ;

#
# This all assumes that the DTD contains:
#
# < !ELEMENT a ( b1, b2?, b3* ) >
#
# < !ELEMENT b1 ( c1 ) >
# < !ELEMENT b2 ( c2 ) >
#

STATUS

Alpha. Use and patch, dont depend on things not changing drastically.
Many methods supplied by XML::Writer are not yet supplied here.

<<less
Download (0.028MB)
Added: 2006-09-13 License: Perl Artistic License Price:
1137 downloads
Graph::Writer::TGXML 0.01

Graph::Writer::TGXML 0.01


Graph::Writer::TGXML is a Perl module used to write out directed graph as TouchGraph LinkBrowser XML. more>>
Graph::Writer::TGXML is a Perl module used to write out directed graph as TouchGraph LinkBrowser XML.

SYNOPSIS

use Graph;
use Graph::Writer::TGXML;

$graph = Graph->new();
# add edges and nodes to the graph

$writer = Graph::Writer::TGXML->new();
$writer->write_graph($graph, mygraph.xml);

Graph::Writer::TGXML is a class for writing out a directed graph in a format suitable for use with TouchGraphs LinkBrowser. The graph must be an instance of the Graph class, which is actually a set of classes developed by Jarkko Hietaniemi.

The XML format contains Nodes and Edges. For nodes, the label, URL and tooltip attributes are used, for label, url and hint respectively. For edges, no attributes are currently used.

METHODS

new()

Constructor - generate a new writer instance.

$writer = Graph::Writer::TGXML->new();

This doesnt take any arguments.

write_graph()

Write a specific graph to a named file:

$writer->write_graph($graph, $file);

The $file argument can either be a filename, or a filehandle for a previously opened file.

<<less
Download (0.004MB)
Added: 2007-06-18 License: Perl Artistic License Price:
863 downloads
Graph::Writer::DrGeo 0.01

Graph::Writer::DrGeo 0.01


Graph::Writer::DrGeo can save the graph output DrGeo scheme script. more>>
Graph::Writer::DrGeo can save the graph output DrGeo scheme script.

SYNOPSIS

my $g = new Graph;

# Add some vertices/edges to $g

my $writer = Graph::Writer::DrGeo->new();
$writer->write_graph($g,"graph.scm");

# graph.scm can be evaluated and rendered with Dr.Geo

Dr. Geo is a GTK interactive geometry software. It allows one to create geometric figure plus the interactive manipulation of such figure in respect with their geometric constraints. It is useable in teaching situation with students from primary or secondary level.

Besides the general file format, Dr.Geo also provide a dynamic graph definition using the language of Scheme. This module save any Graph object into Scheme language, which can be evaluated and rendered in Dr.Geo.

So far the default layout is the circle layout, more kind of layout could be added, and patches welcome.

<<less
Download (0.008MB)
Added: 2006-07-19 License: Perl Artistic License Price:
1193 downloads
Philips Music Writer 4.12

Philips Music Writer 4.12


Philips Music Writer is a program for typesetting music. more>> <<less
Download (1.2MB)
Added: 2005-12-28 License: GPL (GNU General Public License) Price:
1417 downloads
RSS Writer class 2007.06.01

RSS Writer class 2007.06.01


RSS Writer class is XML-RSS feed generator for content syndication. more>>
RSS Writer class is XML-RSS feed generator for content syndication.
It extends the XML Writer class to generate XML-RSS documents. It features simplified definitions of channel and item properties, support for defining optional channel graphic images and search form text inputs, support for RSS specification versions 0.9, 0.91, 1.0, and 2.0, support for using namespace modules to extend the document property set, and an optional XSL stylesheet example to automatically view RSS documents as HTML pages in XML capable browsers.
Main features:
- Extends the XML Writer class to generate human readable XML-RSS documents.
- Simplified definition of channel and item properties.
- Support to define optional channel graphic image and search form text input.
- Supports RSS specification versions 0.9, 0.91, 1.0 and 2.0 .
- Supports for use of namespace modules to extend document property set.
- Optional XSL stylesheet example to render automatically RSS documents as HTML pages in XML capable browsers.
Enhancements:
- This release adds support for the RSS 2.0 item category property and other properties that may have multiple values.
<<less
Download (MB)
Added: 2007-06-07 License: BSD License Price:
871 downloads
Classfile Reader & Writer

Classfile Reader & Writer


Classfile Reader & Writer is a package for reading and writing Java .class files. more>>
This package makes it easy to read and write java classfiles. It doesnt, however, provide any help with displaying the contents of a classfile to the user (unless you count debug output), or disassembling the bytecodes.

This code snippet will read in a classfile and write it back out to a different file.

InputStream is = new FileInputStream("Foo.class");
OutputStream os = new FileOutputStream("FooCopy.class");
ClassInfo classInfo = new ClassInfo();
new ClassFileReader().read(is, classInfo);
classInfo.setName("FooCopy"); // Java requires the class name to match the file name
new ClassFileWriter().write(classInfo, os);
is.close();os.close();

The package can read "obfuscated" classfiles, like those generated by Crema, but it cant write them. Obfuscated classfiles have invalid data in them and the only reason they work is because most VMs ignore the data thats invalid (attributes like SourceFile, LineNumberTable, and LocalVariableTable). If a ClassFileReader encounters invalid data, it just ignores it.
<<less
Download (0.056MB)
Added: 2005-04-22 License: Public Domain Price:
1651 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5