On 9/14/07, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Mojca Miklavec wrote:
> > On 9/14/07, Hans Hagen wrote:
> >> Mojca Miklavec wrote:
> >>> Hello,
> >>>
> >>> I was trying to figure out how to process simple HTML files with the
> >>> new code, but I fail to understand the details. Here's a simple file I
> >>> would like to process:
> >>>
> >> keep in mind that this is still somewhat experimental
> >
> > Sure :)
> > That's why I'm sending files for testing :) :) :)
>
> - i'll make a table mapper (need it anyway), cals tables are already
> provided
>
> - idem for preformatted and verbatim

Thanks a lot. I'm waiting patiently :)

> - your code:
>
> d[k] = dk:gsub("&nbsp;",' ')
> dk = d[k]
> d[k] = dk:gsub("&le;", '\\mathematics{\\le}')
>
> local dk = d[k]
> dk = dk:gsub("&nbsp;",' ')
> dk = dk:gsub("&le;", '\\mathematics{\\le}')
> d[k] = dk
>
> or ....
>
> mojcasentities = {
>         nbsp = " ",
>         le   = "'\\mathematics{\\le}'
> }
>
> local d[k]= d[k]:gsub("&(.-);",mojcasentities)

Thanks a lot!

> (there probably already is code for that)

Yes, I saw it, but didn't try to understand what the &(.-) serves for.
In any case, that was the wrong place to replace le with something.

Thanks again,
    Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to