View | Details | Raw Unified | Return to issue 15456
Collapse All | Expand All

(-)svtools/source/svhtml/htmlout.cxx (-1 / +50 lines)
Lines 99-104 Link Here
99
											 rtl_TextEncoding eDestEnc )
99
											 rtl_TextEncoding eDestEnc )
100
{
100
{
101
	const sal_Char* pStr = 0;
101
	const sal_Char* pStr = 0;
102
103
    // Note: We currently handle special cases for ISO-8859-2 here simply because
104
    // the code was already submitted.  But we should also handle other code pages
105
    // as well as the code becomes available.
106
107
    if( eDestEnc == RTL_TEXTENCODING_ISO_8859_2 || eDestEnc == RTL_TEXTENCODING_MS_1250 )
108
    {
109
        // Don't handle the following characters for Easter European (ISO-8859-2).
110
        switch ( c )
111
        {
112
        case 164: // curren
113
        case 184: // ccedil
114
        case 193: // Aacute
115
        case 194: // Acirc
116
        case 196: // Auml 
117
        case 199: // Ccedil
118
        case 201: // Eacute
119
        case 203: // Euml 
120
        case 205: // Iacute
121
        case 206: // Icirc
122
        case 211: // Oacute
123
        case 212: // Ocirc
124
        case 214: // Ouml 
125
        case 215: // times
126
        case 218: // Uacute
127
        case 220: // Uuml 
128
        case 221: // Yacute
129
        case 225: // aacute
130
        case 226: // acirc
131
        case 228: // auml 
132
        case 233: // eacute
133
        case 235: // euml 
134
        case 237: // iacute
135
        case 238: // icirc
136
        case 243: // oacute
137
        case 244: // ocirc
138
        case 246: // ouml 
139
        case 247: // divide
140
        case 250: // uacute
141
        case 252: // uuml
142
        case 253: // yacute
143
        case 352: // Scaron
144
        case 353: // scaron
145
            return pStr;
146
        }
147
    }
148
149
    // TODO: handle more special cases for other code pages.
150
102
	switch( c )
151
	switch( c )
103
	{
152
	{
104
//	    case '\x0a':   return HTMLOutFuncs::Out_Tag( rStream, sHTML_linebreak );
153
//	    case '\x0a':   return HTMLOutFuncs::Out_Tag( rStream, sHTML_linebreak );
Lines 402-408 Link Here
402
		// The new HTML4 entities above 255 are not used for UTF-8,
451
		// The new HTML4 entities above 255 are not used for UTF-8,
403
		// because Netscape 4 does support UTF-8 but does not support
452
		// because Netscape 4 does support UTF-8 but does not support
404
		// these entities.
453
		// these entities.
405
		if( c < 256 || RTL_TEXTENCODING_UTF8 != rContext.m_eDestEnc )
454
		if( c < 128 || RTL_TEXTENCODING_UTF8 != rContext.m_eDestEnc )
406
			pStr = lcl_svhtml_GetEntityForChar( c, rContext.m_eDestEnc );
455
			pStr = lcl_svhtml_GetEntityForChar( c, rContext.m_eDestEnc );
407
		break;
456
		break;
408
	}
457
	}

Return to issue 15456