LRM html Support: Difference between revisions
Jump to navigation
Jump to search
| Line 29: | Line 29: | ||
<resource-extensions> | <resource-extensions> | ||
<resource-extension> | <resource-extension> | ||
'''<!-- parser-type not needed since . | '''<!-- parser-type not needed since .html is a standard LRM extension that maps to the ''html'' parser type -->''' | ||
'''<extension> | '''<extension>html</extension>''' | ||
'''<file-name-pattern>*-l_c_v</file-name-pattern>''' | '''<file-name-pattern>*-l_c_v</file-name-pattern>''' | ||
'''<use-pattern-on-dflt-locale>0</use-pattern-on-dflt-locale>''' | '''<use-pattern-on-dflt-locale>0</use-pattern-on-dflt-locale>''' | ||
'''<file-location-pattern/>''' | '''<file-location-pattern>l_c_v</file-location-pattern>''' | ||
'''<use-location-pattern-on-dflt-locale> | '''<use-location-pattern-on-dflt-locale>1</use-location-pattern-on-dflt-locale>''' | ||
'''<base-file-encoding>UTF-8</base-file-encoding>''' | '''<base-file-encoding>UTF-8</base-file-encoding>''' | ||
'''<localized-file-encoding>UTF-8</localized-file-encoding>''' | '''<localized-file-encoding>UTF-8</localized-file-encoding>''' | ||
'''<parameter-regex-pattern><! | '''<parameter-regex-pattern></parameter-regex-pattern>''' | ||
</resource-extension> | |||
<resource-extension> | |||
'''<!-- parser-type not needed since .htm is a standard LRM extension that maps to the ''html'' parser type -->''' | |||
'''<extension>htm</extension>''' | |||
'''<file-name-pattern>*-l_c_v</file-name-pattern>''' | |||
'''<use-pattern-on-dflt-locale>0</use-pattern-on-dflt-locale>''' | |||
'''<file-location-pattern>l_c_v</file-location-pattern>''' | |||
'''<use-location-pattern-on-dflt-locale>1</use-location-pattern-on-dflt-locale>''' | |||
'''<base-file-encoding>UTF-8</base-file-encoding>''' | |||
'''<localized-file-encoding>UTF-8</localized-file-encoding>''' | |||
'''<parameter-regex-pattern></parameter-regex-pattern>''' | |||
</resource-extension> | </resource-extension> | ||
<resource-extension> | <resource-extension> | ||
'''<!-- parser-type is required because .myext is not a standard LRM extension -->''' | '''<!-- parser-type is required because .myext is not a standard LRM extension -->''' | ||
'''<extension>''myext''</extension>''' | '''<extension>''myext''</extension>''' | ||
'''''<parser-type>html</parser-type>''''' | |||
'''''<parser-type> | |||
'''<file-name-pattern>*-l_c_v</file-name-pattern>''' | '''<file-name-pattern>*-l_c_v</file-name-pattern>''' | ||
'''<use-pattern-on-dflt-locale>0</use-pattern-on-dflt-locale>''' | '''<use-pattern-on-dflt-locale>0</use-pattern-on-dflt-locale>''' | ||
'''<file-location-pattern/>''' | '''<file-location-pattern>l_c_v</file-location-pattern>''' | ||
'''<use-location-pattern-on-dflt-locale> | '''<use-location-pattern-on-dflt-locale>1</use-location-pattern-on-dflt-locale>''' | ||
'''<base-file-encoding>UTF-8</base-file-encoding>''' | '''<base-file-encoding>UTF-8</base-file-encoding>''' | ||
'''<localized-file-encoding>UTF-8</localized-file-encoding>''' | '''<localized-file-encoding>UTF-8</localized-file-encoding>''' | ||
'''<parameter-regex-pattern | '''<parameter-regex-pattern></parameter-regex-pattern>''' | ||
</resource-extension> | </resource-extension> | ||
</resource-extensions> | </resource-extensions> | ||
Revision as of 22:09, 31 August 2017
Example .html or .htm File or a file extension that uses the html parser type
<html> <p>This is some text in an html file</p> </html>
Example Project Definition File
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<lrmconf>
<model-version>2.0.11</model-version>
<project-name>DemoRxml</project-name>
<project-desc>This is a sample LRM Project definition file, configured for Globalyzer Rxml resource files</project-desc>
<group-name>acme</group-name>
<top-level-dir>C:\acme\source</top-level-dir>
<detect-errors>
<missed-trans-error>1</missed-trans-error>
<parameter-mismatch-error>1</parameter-mismatch-error>
</detect-errors>
<track-back-locale>br</track-back-locale>
<pseudo-locale>eo</pseudo-locale>
<target-locales>
<locale>es_MX</locale>
<locale>fr_CA</locale>
<locale>fr_FR</locale>
</target-locales>
<default-locale>en_US</default-locale>
<resource-extensions>
<resource-extension>
<!-- parser-type not needed since .html is a standard LRM extension that maps to the html parser type -->
<extension>html</extension>
<file-name-pattern>*-l_c_v</file-name-pattern>
<use-pattern-on-dflt-locale>0</use-pattern-on-dflt-locale>
<file-location-pattern>l_c_v</file-location-pattern>
<use-location-pattern-on-dflt-locale>1</use-location-pattern-on-dflt-locale>
<base-file-encoding>UTF-8</base-file-encoding>
<localized-file-encoding>UTF-8</localized-file-encoding>
<parameter-regex-pattern></parameter-regex-pattern>
</resource-extension>
<resource-extension>
<!-- parser-type not needed since .htm is a standard LRM extension that maps to the html parser type -->
<extension>htm</extension>
<file-name-pattern>*-l_c_v</file-name-pattern>
<use-pattern-on-dflt-locale>0</use-pattern-on-dflt-locale>
<file-location-pattern>l_c_v</file-location-pattern>
<use-location-pattern-on-dflt-locale>1</use-location-pattern-on-dflt-locale>
<base-file-encoding>UTF-8</base-file-encoding>
<localized-file-encoding>UTF-8</localized-file-encoding>
<parameter-regex-pattern></parameter-regex-pattern>
</resource-extension>
<resource-extension>
<!-- parser-type is required because .myext is not a standard LRM extension -->
<extension>myext</extension>
<parser-type>html</parser-type>
<file-name-pattern>*-l_c_v</file-name-pattern>
<use-pattern-on-dflt-locale>0</use-pattern-on-dflt-locale>
<file-location-pattern>l_c_v</file-location-pattern>
<use-location-pattern-on-dflt-locale>1</use-location-pattern-on-dflt-locale>
<base-file-encoding>UTF-8</base-file-encoding>
<localized-file-encoding>UTF-8</localized-file-encoding>
<parameter-regex-pattern></parameter-regex-pattern>
</resource-extension>
</resource-extensions>
<dirset>
<includes>
<include-dir-file>**/**</include-dir-file>
</includes>
<excludes>
<exclude-dir-file>**/source/bin/**</exclude-dir-file>
</excludes>
</dirset>
</lrmconf>