# -*- coding: UTF-8 -*- # Copyright (C) 2005-2007 Juan David Ibáñez Palomar <*****@*****.**> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import add_type, get_abspath from tmx import TMXFile, Sentence, TMXUnit, TMXNote from itools.xml import register_dtd __all__ = ['TMXFile', 'Sentence', 'TMXUnit', 'TMXNote'] add_type('application/x-tmx', '.tmx') # Register DTD register_dtd(get_abspath('tmx14.dtd'), uri='http://www.lisa.org/tmx/tmx14.dtd')
# This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import add_type, get_abspath from itools.xml import register_dtd from xliff import XLFFile, XLFUnit, XLFNote, File __all__ = ['XLFFile', 'XLFUnit', 'XLFNote', 'File'] # Register mime type add_type('application/x-xliff', '.xlf') # Register DTD # -//XLIFF//DTD XLIFF//EN register_dtd(get_abspath('xliff.dtd'), urn='urn:publicid:-:XLIFF:DTD+XLIFF:EN')
'sanitize_str', # Other functions 'stream_to_str_as_html', 'stream_to_str_as_xhtml', # Constants 'xhtml_uri', 'xhtml_doctype', ] # Register type add_type('application/xhtml+xml', '.xhtml') # Register DTD # -//W3C//DTD XHTML 1.0 Strict//EN register_dtd(get_abspath('xhtml1-strict.dtd'), urn='urn:publicid:-:W3C:DTD+XHTML+1.0+Strict:EN') #-//W3C//DTD XHTML 1.0 Transitional//EN register_dtd(get_abspath('xhtml1-transitional.dtd'), urn='urn:publicid:-:W3C:DTD+XHTML+1.0+Transitional:EN') # -//W3C//DTD XHTML 1.0 Frameset//EN register_dtd(get_abspath('xhtml1-frameset.dtd'), urn='urn:publicid:-:W3C:DTD+XHTML+1.0+Frameset:EN') # -//W3C//ENTITIES Latin 1 for XHTML//EN register_dtd(get_abspath('xhtml-lat1.ent'), urn='urn:publicid:-:W3C:ENTITIES+Latin+1+for+XHTML:EN') # -//W3C//ENTITIES Symbols for XHTML//EN register_dtd(get_abspath('xhtml-symbol.ent'),
# Other functions 'stream_is_empty', 'stream_to_str_as_html', 'stream_to_str_as_xhtml', # Constants 'xhtml_uri', 'xhtml_doctype', ] # Register type add_type('application/xhtml+xml', '.xhtml') # Register DTD # -//W3C//DTD XHTML 1.0 Strict//EN register_dtd(get_abspath('xhtml1-strict.dtd'), urn='urn:publicid:-:W3C:DTD+XHTML+1.0+Strict:EN') #-//W3C//DTD XHTML 1.0 Transitional//EN register_dtd(get_abspath('xhtml1-transitional.dtd'), urn='urn:publicid:-:W3C:DTD+XHTML+1.0+Transitional:EN') # -//W3C//DTD XHTML 1.0 Frameset//EN register_dtd(get_abspath('xhtml1-frameset.dtd'), urn='urn:publicid:-:W3C:DTD+XHTML+1.0+Frameset:EN') # -//W3C//ENTITIES Latin 1 for XHTML//EN register_dtd(get_abspath('xhtml-lat1.ent'), urn='urn:publicid:-:W3C:ENTITIES+Latin+1+for+XHTML:EN') # -//W3C//ENTITIES Symbols for XHTML//EN register_dtd(get_abspath('xhtml-symbol.ent'),