Re: xsun - r23920 - abiword/branches/gsoc2008latex/plugins/latex/xp

From: Martin Sevior <martines_at_unimelb.edu.au>
Date: Fri May 16 2008 - 07:45:16 CEST

HI xsun,
        I think doing strstr("sumbol",szValue) would be even safer since
their are other symbol fonts with even more different names (bit still
have "symbol" inthem) like th Open Office Symbol font.

Cheers

Martin

On Fri, 2008-05-16 at 04:32 +0200, cvs@abisource.com wrote:
> Author: xsun
> Date: 2008-05-16 04:32:19 +0200 (Fri, 16 May 2008)
> New Revision: 23920
>
> Modified:
> abiword/branches/gsoc2008latex/plugins/latex/xp/ie_exp_LaTeX.cpp
> Log:
> "Standard Symbols" should be "Standard Symbols L"; $ and ^ now actually work
>
> Modified: abiword/branches/gsoc2008latex/plugins/latex/xp/ie_exp_LaTeX.cpp
> ===================================================================
> --- abiword/branches/gsoc2008latex/plugins/latex/xp/ie_exp_LaTeX.cpp 2008-05-16 02:15:48 UTC (rev 23919)
> +++ abiword/branches/gsoc2008latex/plugins/latex/xp/ie_exp_LaTeX.cpp 2008-05-16 02:32:19 UTC (rev 23920)
> @@ -921,7 +921,7 @@
> {
> // TODO: Use a dynamic substitution table
> if (!strcmp("Symbol", szValue) ||
> - !strcmp("Standard Symbols", szValue))
> + !strcmp("Standard Symbols L", szValue))
> m_bInSymbol = true;
> if (!strcmp("Courier", szValue) ||
> !strcmp("Courier New", szValue) ||
> @@ -1085,7 +1085,7 @@
> if (pAP->getProperty("font-family", szValue) && !m_bInHeading)
> {
> if (!strcmp ("Symbol", szValue) ||
> - !strcmp("Standard Symbols", szValue))
> + !strcmp("Standard Symbols L", szValue))
> m_bInSymbol = false;
> if (!strcmp("Courier", szValue) ||
> !strcmp("Courier New", szValue))
> @@ -1279,7 +1279,6 @@
> {
> // only-if-amssymb
> // SUB('\\', "therefore");
> - // todo: $ and ^ don't actually work right.
>
> SUB('\"', "forall"); SUB('$', "exists");
> SUB('\'', "ni"); SUB('@', "cong");
>
> -----------------------------------------------
> To unsubscribe from this list, send a message to
> abisource-cvs-commit-request@abisource.com with the word
> unsubscribe in the message body.
Received on Fri May 16 08:29:06 2008

This archive was generated by hypermail 2.1.8 : Fri May 16 2008 - 08:29:06 CEST