XML::TMX::Writer

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

XML::TMX::Writer Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Paulo Jorge Jesus Silva and Alberto Sim
  • Publisher web site:
  • http://search.cpan.org/~ambs/XML-TMX-0.16/lib/XML/TMX/Writer.pm

XML::TMX::Writer Tags


XML::TMX::Writer Description

XML::TMX::Writer is a Perl extension for writing TMX files. 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 => , -prop => { q => 23, aut => "jj"} ); $tmx->end_tmx();This module provides a simple way for writing TMX files.METHODSThe following methods are available:new $tmx = new XML::TMX::Writer();Creates a new XML::TMX::Writer objectstart_tmx $tmx->start_tmx(OUTPUT => 'some_file.tmx');Begins a TMX file. Several options are available:OUTPUTOutput of the TMX, if none is defined stdout is used by default.TOOLTool used to create the TMX. Defaults to 'XML::TMX::Writer'TOOLVERSIONSome version identification of the tool used to create the TMX. Defaults to the current module versionSEGTYPESegment type used in the < tu > elements. Possible values are block, paragraph, sentence and phrase. Defaults to sentence.SRCTMFSpecifies the format of the translation memory file from which the TMX document or segment thereof have been generated.ADMINLANGSpecifies the default language for the administrative and informative elements < note > and < prop >.SRCLANGSpecifies 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*.DATATYPESpecifies 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):unknownundefinedalptextWinJoust datacdfChannel Definition FormatcmxCorel CMX FormatcppC and C++ style texthptagHP-TaghtmlHTML, DHTML, etcinterleafInterleaf documentsipfIPF/BookMasterjavaJava, source and property filesjavascriptJavaScript, ECMAScript scriptslispLispmifFramemaker MIF, MML, etcopentagOpenTag datapascalPascal, Delphi style textplaintextPlain text (default)pmPageMakerrtfRich Text Format =item sgmlSGMLstf-fS-Tagger for FrameMakerstf-iS-Tagger for InterleaftransitTransit datavbscriptVisual Basic scriptswinresWindows resources from RC, DLL, EXExmlXMLxptagQuark XPressTagSRCENCODINGAll 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.IDSpecifies the identifier of the user who created the element. Defaults to none.Requirements:· Perl Requirements: · Perl


XML::TMX::Writer Related Software