OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: DocBook 5 support for OmegaT


Greetings,

There is a small group working to add DocBook 5 support to OmegaT an 
open source multi-platform language translation program 
(http://www.omegat.org/). OmegaT currently supports DocBook 4.  I was 
hoping someone on this list could shed some light on a question asked by 
one of the developers. In the DocBook filter it is only necessary to 
define some of the DocBook tags and the developer wants to know if new 
elements need to be added to the list of tags used in the DocBook 4 
filter. I pasted the tag list from the DocBook 4 filter below. Any 
comments would be appreciated.

Here is the note from the developer describing which types of tags need 
to be defined:
-----------

You have first to understand the purpose of tags ("elements") declaration in an OmegaT dialect.By default, the content of all tags is translatable, and is considered "inline", i.e., is not considered a new paragraph. Any tag agreeing with the previous definition does not have to be declared at all.

DefineParagraphTags decides whether a tag is a new "paragraph" (i.e., will be considered as a new segment regardless of punctuation). Is there any DB4 paragraph that is not anymore a paragraph in DB5? If the list of tags is long in the DB4 filter, it's because the list of paragraph tags is unusually long in DocBook (compared to other XML formats).

DefineOutOfTurnTags decides whether a tag has to be translated outside of the main sentence (like an index entry). Is there any DB4 out of turn that is not anymore out of turn in DB5? 
DefinePreformatTags decides whether a tag is preformatted (something like <code> </code>). Is there any DB4 preformatted tag that is not anymore preformatted in DB5?

DefineTranslatableAttribute decides whether an attribute should be translatable. In DB4, it has been set for "url", because sometimes translator have to change them. Are they any attributes that are translatable in DB4, and not in DB5?

-------------------------------------
Tags defined in the DocBook 4 filter
-------------------------------------
        defineParagraphTags(new String[]
        {
            
"book",                                                             // 
NOI18N
            
"bookinfo",                                                         // 
NOI18N
            
"title",                                                            // 
NOI18N
            
"subtitle",                                                         // 
NOI18N
            
"authorgroup",                                                      // 
NOI18N
            
"author",                                                           // 
NOI18N
            
"firstname",                                                        // 
NOI18N
            
"surname",                                                          // 
NOI18N
            
"affiliation",                                                      // 
NOI18N
            
"orgname",                                                          // 
NOI18N
            
"address",                                                          // 
NOI18N
            
"email",                                                            // 
NOI18N
            
"edition",                                                          // 
NOI18N
            
"pubdate",                                                          // 
NOI18N
            
"copyright",                                                        // 
NOI18N
            
"year",                                                             // 
NOI18N
            
"holder",                                                           // 
NOI18N
            
"isbn",                                                             // 
NOI18N
            
"keywordset",                                                       // 
NOI18N
            
"keyword",                                                          // 
NOI18N
            
"preface",                                                          // 
NOI18N
            
"title",                                                            // 
NOI18N
            
"para",                                                             // 
NOI18N
            
"chapter",                                                          // 
NOI18N
            
"table",                                                            // 
NOI18N
            
"tgroup",                                                           // 
NOI18N
            
"thead",                                                            // 
NOI18N
            
"tbody",                                                            // 
NOI18N
            
"row",                                                              // 
NOI18N
            
"entry",                                                            // 
NOI18N
            
"revhistory",                                                       // 
NOI18N
            
"revision",                                                         // 
NOI18N
            
"revnumber",                                                        // 
NOI18N
            
"date",                                                             // 
NOI18N
            
"authorinitials",                                                   // 
NOI18N
            
"revremark",                                                        // 
NOI18N
            
"itemizedlist",                                                     // 
NOI18N
            
"listitem",                                                         // 
NOI18N
            
"member",                                                           // 
NOI18N
        });
       
        defineOutOfTurnTags(new String[]
        {
            
"indexterm",                                                        // 
NOI18N
        });

        
definePreformatTag("screen");                                           
// NOI18N
       
        
defineTranslatableAttribute("url");                                     
// NOI18N




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]